[03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]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:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57: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:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15: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:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33: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:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:51]accept exits with 7 [04:57:51]New connection [04:57:51]New thread 3067632996 created [04:57:51]Thread 3067489636 joined [04:57:51]Waiting for new connection... [04:57:51] Sock 7.Parse request [04:57:51]Sock 7.Check first char [04:57:51]Sock 7.First char is OK [04:57:51]request: POST /json_proto HTTP/1.0 [04:57:51]Method: POST [04:57:51]URL: /json_proto [04:57:51]Method is POST - this is cgi request [04:57:51]url: /json_proto [04:57:51]query_string will be loaded in cgi processing [04:57:51]execute_cgi json_proto POST (null) [04:57:51]execute_cgi path=json_proto method=POST [04:57:51]POST find Content-Length [04:57:51]Host: 172.17.53.195:8080 [04:57:51]Content-Length: 679 [04:57:51]Content-Type: application/json [04:57:51] [04:57:51]POST finish read [04:57:51]Found Content-Length = 679 [04:57:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:51]execute_script... [04:57: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)221185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:51]POST & json_proto [04:57:51]process_json_proto [04:57:51]json parsed OK: [04:57:51]protocol is kg_v1.0 [04:57:51]action value=close_receipt [04:57:51]process_action close_receipt [04:57:51]cmd_close_receipt [04:57:51]MH_GetDate [04:57:51]Write to MH i2c: F0 00 00 5F 23 71 [04:57:51]Write i2c OK [04:57:51]MH_I2C_Read... [04:57:51]Read from MH i2c: F0 [04:57:51]MH_I2C_Read... [04:57:51]Read from MH i2c: F0 09 00 [04:57:51]MH_I2C_Read... [04:57:51]Read from MH i2c: F0 09 00 5F 23 00 52 82 18 67 21 48 4A 65 E5 [04:57:51]GetLastDocTimeStamp 1729653433 [04:57:51]current date 1729659474 [04:57:51]FM_GetShiftState [04:57:51]SAM_PROTO_GetShiftState [04:57:51]wFMCommunicate request_size=4 [04:57:51]MH_SAM_APDU [04:57:51]CAPDU: 80 13 01 00 [04:57:51]Write to MH i2c: E2 08 00 60 23 80 13 01 00 00 00 00 00 00 [04:57:51]Write i2c OK [04:57:51]MH_I2C_Read... [04:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:51]Read from MH i2c: E2 [04:57:51]MH_I2C_Read... [04:57:51]Read from MH i2c: E2 0E 00 [04:57:51]MH_I2C_Read... [04:57:51]Read from MH i2c: E2 0E 00 60 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CB [04:57:51]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [04:57:51]wFMCommunicate OK [04:57:51]SAM_PROTO_GetShiftState done [04:57:51]FM_GetShiftState done [04:57:51]opened in 1729643772 [04:57:51]opened+sec_in_day 1729730172 [04:57:51]quantity*price = 500024 [04:57:51]sum+1 = 500025 [04:57:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 18 23.10.2024 04:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166603 ФПД: 29535649055946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045754&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166603&fm=29535649055946&tin=02508201610067®Number=0000000000091764&sum=500000 [04:57:52]StoreToDocumentArchive [04:57:52]shift 537 fd 166603 [04:57:52]save to /storage/0537/doc_00166603 [04:57:52]save last doc name /storage/0537/doc_00166603 to /storage/kkm_last_doc_name [04:57:52]save OK [04:57:52]Clear old archive folders... [04:57:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:57:52]tlvbuf is 012AB7C0 [04:57:52]SAM_PROTO_ClearQueue [04:57:52]wFMCommunicate request_size=4 [04:57:52]MH_SAM_APDU [04:57:52]CAPDU: 80 09 00 00 [04:57:52]Write to MH i2c: E2 08 00 6D 23 80 09 00 00 00 00 00 00 02 [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [04:57:52]RAPDU: 90 00 [04:57:52]wFMCommunicate OK [04:57:52]SAM_PROTO_ClearQueue done [04:57:52]KKMCreateOFDPacket [04:57:52]OFDProtocolAddRootSTLVToBuf [04:57:52]FM_MakeSignedData [04:57:52]FM_MakeSignedData [04:57:52]SAM_PROTO_SignData [04:57:52]wFMCommunicate request_size=4 [04:57:52]MH_SAM_APDU [04:57:52]CAPDU: 80 0D 01 02 [04:57:52]Write to MH i2c: E2 08 00 6E 23 80 0D 01 02 00 00 00 00 0A [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [04:57:52]RAPDU: 90 00 [04:57:52]wFMCommunicate OK [04:57:52]wFMCommunicate request_size=255 [04:57:52]MH_SAM_APDU [04:57: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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 52 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8A 02 00 35 04 06 00 1A DC CD DE [04:57:52]Write to MH i2c: E2 02 01 6F 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 52 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8A 02 00 35 04 06 00 1A DC CD DE 00 00 21 [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 6F 23 00 90 00 06 [04:57:52]RAPDU: 90 00 [04:57:52]wFMCommunicate OK [04:57:52]wFMCommunicate request_size=7 [04:57:52]MH_SAM_APDU [04:57:52]CAPDU: 80 0D 02 02 02 C4 CA [04:57:52]Write to MH i2c: E2 0A 00 70 23 80 0D 02 02 02 00 C4 CA 00 00 9F [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 03 00 70 23 00 90 00 07 [04:57:52]RAPDU: 90 00 [04:57:52]wFMCommunicate OK [04:57:52]wFMCommunicate request_size=4 [04:57:52]MH_SAM_APDU [04:57:52]CAPDU: 80 0D 03 02 [04:57:52]Write to MH i2c: E2 08 00 71 23 80 0D 03 02 00 00 00 00 0F [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 0B 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 0B 00 71 23 00 89 6B F6 93 63 3D 55 28 90 00 AA [04:57:52]RAPDU: 89 6B F6 93 63 3D 55 28 90 00 [04:57:52]wFMCommunicate OK [04:57:52]SAM_PROTO_SignData done [04:57:52]FM_MakeSignedData done [04:57:52]CreateOFDProtocolMessage [04:57:52]wFMCommunicate request_size=4 [04:57:52]MH_SAM_APDU [04:57:52]CAPDU: 80 11 00 00 [04:57:52]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:52]Read from MH i2c: E2 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 17 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [04:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:57:52]wFMCommunicate OK [04:57:52]CreateOFDProtocolMessage done [04:57:52]OFDSenderStorePacket 166603 [04:57:52]StoreOFDPacket docnum=166603 [04:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0E 3D 04 01 3E F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 52 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8A 02 00 35 04 06 00 1A DC CD DE C4 CA 89 6B F6 93 63 3D 55 28 [04:57:52]CheckFolder [04:57:52]dirname=/storage/ofd_packets [04:57:52]CheckFolder done [04:57:52]ProducePacketName [04:57:52]name=ofd_packets/00166603 [04:57:52]NVStorageSaveData ofd_packets/00166603 [04:57:52]File name is /storage/ofd_packets/00166603 [04:57:52]Write 298 bytes [04:57:52]NVStorageSaveData done [04:57:52]OFDSenderStorePacket done [04:57:52]KKMCreateOFDPacket done [04:57:52]NVStorageSaveData kkm_last_timestamp [04:57:52]File name is /storage/kkm_last_timestamp [04:57:52]Write 4 bytes [04:57:52]NVStorageSaveData done [04:57:52]ExternCall_PrintAddStr [04:57:52]wPrintStart [04:57:52]Write to MH i2c: 01 00 00 73 23 96 [04:57:52]Write i2c OK [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: 01 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: 01 07 00 [04:57:52]MH_I2C_Read... [04:57:52]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 FF 0F AB [04:57:52]RasterBufferAndPrint [04:57:52]line Счет N : (1)221185 [04:57:52]line ИНН: 02508201610067 [04:57:52]line Контрольно-Кассовый Чек [04:57:52]line ПРОДАЖА [04:57:52]line ТРК (МРК, ГНК) : 21 [04:57:52]line Товар: 2710194210 [04:57:52]line ДТ-К-5 [04:57:52]line 65.620 * 76.20 [04:57:52]line = 5000.24 [04:57:52]line НДС 12% НСП 1% [04:57:52]line > о реализуемом товаре [04:57:52]line ОКРУГЛЕНИЕ: -0.24 [04:57:52]line ИТОГО: 5000.00 [04:57:52]line Внесено: 5000.00 [04:57:52]line СДАЧА: 0.00 [04:57:52]line НСП 1% : 44.25 [04:57:52]line НДС 12% : 531.00 [04:57:52]line Наличными: 5000.00 [04:57:52]line Безнал.: 0.00 [04:57:52]line Место: АЗС № 161 "Партнер Нефть" [04:57:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [04:57:52]line СНО: Общий режим [04:57:52]line Чек 18 23.10.2024 04:57 [04:57:52]line Смена: 537 ФФД: 1.0 [04:57:52]line ЗНМ: 0300000104 [04:57:52]line РНМ: 0000000000091764 [04:57:52]line Версия ККМ: 001 [04:57:52]line ФМ: 0000000000871759 [04:57:52]line ФД: 166603 [04:57:52]line ФПД: 29535649055946 [04:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045754&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166603&fm=29535649055946&tin=02508201610067®Number=0000000000091764&sum=500000 [04:57:53]written 0, free lines is 4095 [04:57:53]OFD Sender: Processing packet 166603 [packets to send 48, broken 47] [04:57:53]ProducePacketName [04:57:53]name=ofd_packets/00166603 [04:57:53]OFD Sender: To server: pG, [04:57:53]CommunicateWithHost lk.salyk.kg:30040 [04:57:53]ConnectInit lk.salyk.kg [04:57:53]Connected sock=10 [04:57:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0E 3D 04 01 3E F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 52 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8A 02 00 35 04 06 00 1A DC CD DE C4 CA 89 6B F6 93 63 3D 55 28 [04:57:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 A4 47 00 93 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8A 02 00 F4 03 04 00 BB 28 18 67 B6 04 01 00 00 A2 A9 45 63 B4 3B B9 A5 [04:57:53]CommunicateWithHost err = 0 [04:57:53]CheckOFDResponse [04:57:53]1017 (14) - 77093643461234 [04:57:53]1041 (16) - 0000000000871759 [04:57:53]1040 (4) - 166603 [04:57:53]1012 (4) - 22.10.2024 22:35 [04:57:53]1206 (1) - 0 [04:57:53]OFD Sender: Remove packet 166603 [04:57:53]ProducePacketName [04:57:53]name=ofd_packets/00166603 [04:57:53]NVStorageDeleteData [04:57:53]Write to MH i2c: 01 00 00 9E 23 C1 [04:57:53]Write i2c OK [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: 01 [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: 01 07 00 [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: 01 07 00 9E 23 00 00 00 00 00 B3 0C 87 [04:57:53]RasterBufferAndPrint [04:57:53]line [04:57:53]line [04:57:53]line [04:57:53]line [04:57:53]line [04:57:53]written 0, free lines is 3258 [04:57:53]MH_Cut [04:57:53]Write to MH i2c: D1 01 00 A5 23 01 9A [04:57:53]Write i2c OK [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: D1 [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: D1 01 00 [04:57:53]MH_I2C_Read... [04:57:53]Read from MH i2c: D1 01 00 A5 23 00 99 [04:57:53]Write to MH i2c: 01 00 00 A6 23 C9 [04:57:53]Write i2c OK [04:57:53]MH_I2C_Read... [04:57:54]OFD Sender: No OFD packet to send [04:57:54]*** Cut start [04:57:54]*** Partial cut [04:57:54]*** CUTSNS_PIN = 1 [04:57:54]*** CUTSNS_PIN = 0 [04:57:54]*** Brake cut motor [04:57:55]Read from MH i2c: 01 [04:57:55]MH_I2C_Read... [04:57:55]*** Stop cut motor [04:57:55]*** Cut end [04:57:55]Read from MH i2c: 01 07 00 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: 01 07 00 A6 23 00 00 00 00 00 FF 0F DE [04:57:55]process_action close_receipt done [04:57:55]requested_data is exist [04:57:55]produce_requested_data [04:57:55]requested_item fm.sn is exist - process it [04:57:55]wFMCommunicate request_size=4 [04:57:55]MH_SAM_APDU [04:57:55]CAPDU: 80 11 00 00 [04:57:55]Write to MH i2c: E2 08 00 A7 23 80 11 00 00 00 00 00 00 44 [04:57:55]Write i2c OK [04:57:55]MH_I2C_Read... [04:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:55]Read from MH i2c: E2 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 17 00 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 17 00 A7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [04:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:57:55]wFMCommunicate OK [04:57:55]requested_item fd.num is exist - process it [04:57:55]SAM_PROTO_GetFieldsCounters [04:57:55]wFMCommunicate request_size=4 [04:57:55]MH_SAM_APDU [04:57:55]CAPDU: 80 13 00 00 [04:57:55]Write to MH i2c: E2 08 00 A8 23 80 13 00 00 00 00 00 00 47 [04:57:55]Write i2c OK [04:57:55]MH_I2C_Read... [04:57:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:57:55]Read from MH i2c: E2 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 62 00 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 62 00 A8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [04:57:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:57:55]wFMCommunicate OK [04:57:55]SAM_PROTO_GetFieldsCounters done [04:57:55]requested_item shift.num is exist - process it [04:57:55]requested_item shift.opened is exist - process it [04:57:55]req_shift_opened [04:57:55]FM_GetShiftState [04:57:55]SAM_PROTO_GetShiftState [04:57:55]wFMCommunicate request_size=4 [04:57:55]MH_SAM_APDU [04:57:55]CAPDU: 80 13 01 00 [04:57:55]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [04:57:55]Write i2c OK [04:57:55]MH_I2C_Read... [04:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:55]Read from MH i2c: E2 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 0E 00 [04:57:55]MH_I2C_Read... [04:57:55]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 14 [04:57:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [04:57:55]wFMCommunicate OK [04:57:55]SAM_PROTO_GetShiftState done [04:57:55]FM_GetShiftState done [04:57:55]req_shift_opened done [04:57:55]requested_item shift.open_date is exist - process it [04:57:55]req_shift_open_date [04:57:55]req_shift_open_date done [04:57:55]produce_requested_data done [04:57:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166603,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [04:57:55]process_action_free close_receipt [04:57:55]json_value_free [04:57:55]json_value_free done [04:57:55]process_json_proto returns [04:57:55]Send response to host [04:57:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166603,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [04:57:55]free response buf [04:57:55]execute_script done [04:57:55]execute_script returns [04:57:55]free content buf [04:57:55]Sock 7.Close socket [04:57:55]Sock 7.Thread stoped [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:08]accept exits with 9 [04:59:08]New connection [04:59:08]New thread 3067489636 created [04:59:08]Thread 3067632996 joined [04:59:08]Waiting for new connection... [04:59:08] Sock 9.Parse request [04:59:08]Sock 9.Check first char [04:59:08]Sock 9.First char is OK [04:59:08]request: POST /json_proto HTTP/1.0 [04:59:08]Method: POST [04:59:08]URL: /json_proto [04:59:08]Method is POST - this is cgi request [04:59:08]url: /json_proto [04:59:08]query_string will be loaded in cgi processing [04:59:08]execute_cgi json_proto POST (null) [04:59:08]execute_cgi path=json_proto method=POST [04:59:08]POST find Content-Length [04:59:08]Host: 172.17.53.195:8080 [04:59:08]Content-Length: 677 [04:59:08]Content-Type: application/json [04:59:08] [04:59:08]POST finish read [04:59:08]Found Content-Length = 677 [04:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:08]execute_script... [04:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:08]POST & json_proto [04:59:08]process_json_proto [04:59:08]json parsed OK: [04:59:08]protocol is kg_v1.0 [04:59:08]action value=close_receipt [04:59:08]process_action close_receipt [04:59:08]cmd_close_receipt [04:59:08]MH_GetDate [04:59:08]Write to MH i2c: F0 00 00 AA 23 BC [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: F0 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: F0 09 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: F0 09 00 AA 23 00 A0 82 18 67 21 48 4A 65 7E [04:59:08]GetLastDocTimeStamp 1729659474 [04:59:08]current date 1729659552 [04:59:08]FM_GetShiftState [04:59:08]SAM_PROTO_GetShiftState [04:59:08]wFMCommunicate request_size=4 [04:59:08]MH_SAM_APDU [04:59:08]CAPDU: 80 13 01 00 [04:59:08]Write to MH i2c: E2 08 00 AB 23 80 13 01 00 00 00 00 00 4B [04:59:08]Write i2c OK [04:59:08]MH_I2C_Read... [04:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:08]Read from MH i2c: E2 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 0E 00 [04:59:08]MH_I2C_Read... [04:59:08]Read from MH i2c: E2 0E 00 AB 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 16 [04:59:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [04:59:08]wFMCommunicate OK [04:59:08]SAM_PROTO_GetShiftState done [04:59:08]FM_GetShiftState done [04:59:08]opened in 1729643772 [04:59:08]opened+sec_in_day 1729730172 [04:59:08]quantity*price = 30038 [04:59:08]sum+1 = 30039 [04:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 19 23.10.2024 04:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166604 ФПД: 247882655689434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166604&fm=247882655689434&tin=02508201610067®Number=0000000000091764&sum=30000 [04:59:10]StoreToDocumentArchive [04:59:10]shift 537 fd 166604 [04:59:10]save to /storage/0537/doc_00166604 [04:59:10]save last doc name /storage/0537/doc_00166604 to /storage/kkm_last_doc_name [04:59:10]save OK [04:59:10]Clear old archive folders... [04:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:59:10]tlvbuf is 012A6260 [04:59:10]SAM_PROTO_ClearQueue [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 09 00 00 [04:59:10]Write to MH i2c: E2 08 00 B8 23 80 09 00 00 00 00 00 00 4D [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [04:59:10]RAPDU: 90 00 [04:59:10]wFMCommunicate OK [04:59:10]SAM_PROTO_ClearQueue done [04:59:10]KKMCreateOFDPacket [04:59:10]OFDProtocolAddRootSTLVToBuf [04:59:10]FM_MakeSignedData [04:59:10]FM_MakeSignedData [04:59:10]SAM_PROTO_SignData [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 0D 01 02 [04:59:10]Write to MH i2c: E2 08 00 B9 23 80 0D 01 02 00 00 00 00 55 [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [04:59:10]RAPDU: 90 00 [04:59:10]wFMCommunicate OK [04:59:10]wFMCommunicate request_size=255 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A0 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8A 02 00 35 04 06 00 E1 [04:59:10]Write to MH i2c: E2 02 01 BA 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A0 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8A 02 00 35 04 06 00 E1 00 00 E7 [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [04:59:10]RAPDU: 90 00 [04:59:10]wFMCommunicate OK [04:59:10]wFMCommunicate request_size=10 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 0D 02 02 05 72 AD A3 6A DA [04:59:10]Write to MH i2c: E2 0D 00 BB 23 80 0D 02 02 05 00 72 AD A3 6A DA 00 00 68 [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [04:59:10]RAPDU: 90 00 [04:59:10]wFMCommunicate OK [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 0D 03 02 [04:59:10]Write to MH i2c: E2 08 00 BC 23 80 0D 03 02 00 00 00 00 5A [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 0B 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 0B 00 BC 23 00 A6 67 84 36 0A E8 C1 F0 90 00 C5 [04:59:10]RAPDU: A6 67 84 36 0A E8 C1 F0 90 00 [04:59:10]wFMCommunicate OK [04:59:10]SAM_PROTO_SignData done [04:59:10]FM_MakeSignedData done [04:59:10]CreateOFDProtocolMessage [04:59:10]wFMCommunicate request_size=4 [04:59:10]MH_SAM_APDU [04:59:10]CAPDU: 80 11 00 00 [04:59:10]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:10]Read from MH i2c: E2 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 17 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [04:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:59:10]wFMCommunicate OK [04:59:10]CreateOFDProtocolMessage done [04:59:10]OFDSenderStorePacket 166604 [04:59:10]StoreOFDPacket docnum=166604 [04:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 BA 07 01 ED E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A0 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8A 02 00 35 04 06 00 E1 72 AD A3 6A DA A6 67 84 36 0A E8 C1 F0 [04:59:10]CheckFolder [04:59:10]dirname=/storage/ofd_packets [04:59:10]CheckFolder done [04:59:10]ProducePacketName [04:59:10]name=ofd_packets/00166604 [04:59:10]NVStorageSaveData ofd_packets/00166604 [04:59:10]File name is /storage/ofd_packets/00166604 [04:59:10]Write 301 bytes [04:59:10]NVStorageSaveData done [04:59:10]OFDSenderStorePacket done [04:59:10]KKMCreateOFDPacket done [04:59:10]NVStorageSaveData kkm_last_timestamp [04:59:10]File name is /storage/kkm_last_timestamp [04:59:10]Write 4 bytes [04:59:10]NVStorageSaveData done [04:59:10]ExternCall_PrintAddStr [04:59:10]wPrintStart [04:59:10]Write to MH i2c: 01 00 00 BE 23 E1 [04:59:10]Write i2c OK [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: 01 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: 01 07 00 [04:59:10]MH_I2C_Read... [04:59:10]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 FF 0F F6 [04:59:10]RasterBufferAndPrint [04:59:10]line Счет N : (1)221182 [04:59:10]line ИНН: 02508201610067 [04:59:10]line Контрольно-Кассовый Чек [04:59:10]line ПРОДАЖА [04:59:10]line ТРК (МРК, ГНК) : 23 [04:59:10]line Товар: 2710124130 [04:59:10]line Аи-92-К-5 [04:59:10]line 4.490 * 66.90 [04:59:10]line = 300.38 [04:59:10]line НДС 12% НСП 1% [04:59:10]line > о реализуемом товаре [04:59:10]line ОКРУГЛЕНИЕ: -0.38 [04:59:10]line ИТОГО: 300.00 [04:59:10]line Внесено: 300.00 [04:59:10]line СДАЧА: 0.00 [04:59:10]line НСП 1% : 2.66 [04:59:10]line НДС 12% : 31.90 [04:59:10]line Наличными: 300.00 [04:59:10]line Безнал.: 0.00 [04:59:10]line Место: АЗС № 161 "Партнер Нефть" [04:59:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [04:59:10]line СНО: Общий режим [04:59:10]line Чек 19 23.10.2024 04:59 [04:59:10]line Смена: 537 ФФД: 1.0 [04:59:10]line ЗНМ: 0300000104 [04:59:10]line РНМ: 0000000000091764 [04:59:10]line Версия ККМ: 001 [04:59:10]line ФМ: 0000000000871759 [04:59:10]line ФД: 166604 [04:59:10]line ФПД: 247882655689434 [04:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166604&fm=247882655689434&tin=02508201610067®Number=0000000000091764&sum=30000 [04:59:11]OFD Sender: Processing packet 166604 [packets to send 48, broken 47] [04:59:11]ProducePacketName [04:59:11]name=ofd_packets/00166604 [04:59:11]OFD Sender: To server: pG, [04:59:11]CommunicateWithHost lk.salyk.kg:30040 [04:59:11]ConnectInit lk.salyk.kg [04:59:11]written 0, free lines is 4095 [04:59:11]Connected sock=10 [04:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 BA 07 01 ED E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A0 82 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8A 02 00 35 04 06 00 E1 72 AD A3 6A DA A6 67 84 36 0A E8 C1 F0 [04:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6B 5E 47 00 7B B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8A 02 00 F4 03 04 00 08 29 18 67 B6 04 01 00 00 F8 EA 09 A9 98 50 83 A2 [04:59:11]CommunicateWithHost err = 0 [04:59:11]CheckOFDResponse [04:59:11]1017 (14) - 77093643461234 [04:59:11]1041 (16) - 0000000000871759 [04:59:11]1040 (4) - 166604 [04:59:11]1012 (4) - 22.10.2024 22:36 [04:59:11]1206 (1) - 0 [04:59:11]OFD Sender: Remove packet 166604 [04:59:11]ProducePacketName [04:59:11]name=ofd_packets/00166604 [04:59:11]NVStorageDeleteData [04:59:11]Write to MH i2c: 01 00 00 E9 23 0C [04:59:11]Write i2c OK [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: 01 [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: 01 07 00 [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: 01 07 00 E9 23 00 00 00 00 00 B9 0C D8 [04:59:11]RasterBufferAndPrint [04:59:11]line [04:59:11]line [04:59:11]line [04:59:11]line [04:59:11]line [04:59:11]written 0, free lines is 3264 [04:59:11]MH_Cut [04:59:11]Write to MH i2c: D1 01 00 F0 23 01 E5 [04:59:11]Write i2c OK [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: D1 [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: D1 01 00 [04:59:11]MH_I2C_Read... [04:59:11]Read from MH i2c: D1 01 00 F0 23 00 E4 [04:59:11]Write to MH i2c: 01 00 00 F1 23 14 [04:59:11]Write i2c OK [04:59:11]MH_I2C_Read... [04:59:11]OFD Sender: No OFD packet to send [04:59:12]*** Cut start [04:59:12]*** Partial cut [04:59:12]*** CUTSNS_PIN = 1 [04:59:12]*** CUTSNS_PIN = 0 [04:59:12]*** Brake cut motor [04:59:12]Read from MH i2c: 01 [04:59:12]MH_I2C_Read... [04:59:12]*** Stop cut motor [04:59:12]*** Cut end [04:59:12]Read from MH i2c: 01 07 00 [04:59:12]MH_I2C_Read... [04:59:12]Read from MH i2c: 01 07 00 F1 23 00 00 00 00 00 FF 0F 29 [04:59:12]process_action close_receipt done [04:59:12]requested_data is exist [04:59:12]produce_requested_data [04:59:12]requested_item fm.sn is exist - process it [04:59:12]wFMCommunicate request_size=4 [04:59:12]MH_SAM_APDU [04:59:12]CAPDU: 80 11 00 00 [04:59:12]Write to MH i2c: E2 08 00 F2 23 80 11 00 00 00 00 00 00 8F [04:59:12]Write i2c OK [04:59:12]MH_I2C_Read... [04:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:13]Read from MH i2c: E2 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 17 00 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 17 00 F2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [04:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:59:13]wFMCommunicate OK [04:59:13]requested_item fd.num is exist - process it [04:59:13]SAM_PROTO_GetFieldsCounters [04:59:13]wFMCommunicate request_size=4 [04:59:13]MH_SAM_APDU [04:59:13]CAPDU: 80 13 00 00 [04:59:13]Write to MH i2c: E2 08 00 F3 23 80 13 00 00 00 00 00 00 92 [04:59:13]Write i2c OK [04:59:13]MH_I2C_Read... [04:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:13]Read from MH i2c: E2 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 62 00 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 62 00 F3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [04:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:13]wFMCommunicate OK [04:59:13]SAM_PROTO_GetFieldsCounters done [04:59:13]requested_item shift.num is exist - process it [04:59:13]requested_item shift.opened is exist - process it [04:59:13]req_shift_opened [04:59:13]FM_GetShiftState [04:59:13]SAM_PROTO_GetShiftState [04:59:13]wFMCommunicate request_size=4 [04:59:13]MH_SAM_APDU [04:59:13]CAPDU: 80 13 01 00 [04:59:13]Write to MH i2c: E2 08 00 F4 23 80 13 01 00 00 00 00 00 94 [04:59:13]Write i2c OK [04:59:13]MH_I2C_Read... [04:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:13]Read from MH i2c: E2 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 0E 00 [04:59:13]MH_I2C_Read... [04:59:13]Read from MH i2c: E2 0E 00 F4 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5F [04:59:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [04:59:13]wFMCommunicate OK [04:59:13]SAM_PROTO_GetShiftState done [04:59:13]FM_GetShiftState done [04:59:13]req_shift_opened done [04:59:13]requested_item shift.open_date is exist - process it [04:59:13]req_shift_open_date [04:59:13]req_shift_open_date done [04:59:13]produce_requested_data done [04:59:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166604,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [04:59:13]process_action_free close_receipt [04:59:13]json_value_free [04:59:13]json_value_free done [04:59:13]process_json_proto returns [04:59:13]Send response to host [04:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166604,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [04:59:13]free response buf [04:59:13]execute_script done [04:59:13]execute_script returns [04:59:13]free content buf [04:59:13]Sock 9.Close socket [04:59:13]Sock 9.Thread stoped [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:50]accept exits with 7 [05:34:50]New connection [05:34:50]New thread 3067632996 created [05:34:50]Thread 3067489636 joined [05:34:50]Waiting for new connection... [05:34:50] Sock 7.Parse request [05:34:50]Sock 7.Check first char [05:34:50]Sock 7.First char is OK [05:34:50]request: POST /json_proto HTTP/1.0 [05:34:50]Method: POST [05:34:50]URL: /json_proto [05:34:50]Method is POST - this is cgi request [05:34:50]url: /json_proto [05:34:50]query_string will be loaded in cgi processing [05:34:50]execute_cgi json_proto POST (null) [05:34:50]execute_cgi path=json_proto method=POST [05:34:50]POST find Content-Length [05:34:50]Host: 172.17.53.195:8080 [05:34:50]Content-Length: 682 [05:34:50]Content-Type: application/json [05:34:50] [05:34:50]POST finish read [05:34:50]Found Content-Length = 682 [05:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:34:50]execute_script... [05:34: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)221186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:34:50]POST & json_proto [05:34:50]process_json_proto [05:34:50]json parsed OK: [05:34:50]protocol is kg_v1.0 [05:34:50]action value=close_receipt [05:34:50]process_action close_receipt [05:34:50]cmd_close_receipt [05:34:50]MH_GetDate [05:34:50]Write to MH i2c: F0 00 00 F5 23 07 [05:34:50]Write i2c OK [05:34:50]MH_I2C_Read... [05:34:50]Read from MH i2c: F0 [05:34:50]MH_I2C_Read... [05:34:50]Read from MH i2c: F0 09 00 [05:34:50]MH_I2C_Read... [05:34:50]Read from MH i2c: F0 09 00 F5 23 00 FD 8A 18 67 21 48 4A 65 2E [05:34:50]GetLastDocTimeStamp 1729659552 [05:34:50]current date 1729661693 [05:34:50]FM_GetShiftState [05:34:50]SAM_PROTO_GetShiftState [05:34:50]wFMCommunicate request_size=4 [05:34:50]MH_SAM_APDU [05:34:50]CAPDU: 80 13 01 00 [05:34:50]Write to MH i2c: E2 08 00 F6 23 80 13 01 00 00 00 00 00 96 [05:34:50]Write i2c OK [05:34:50]MH_I2C_Read... [05:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:50]Read from MH i2c: E2 [05:34:50]MH_I2C_Read... [05:34:50]Read from MH i2c: E2 0E 00 [05:34:50]MH_I2C_Read... [05:34:50]Read from MH i2c: E2 0E 00 F6 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 61 [05:34:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [05:34:50]wFMCommunicate OK [05:34:50]SAM_PROTO_GetShiftState done [05:34:50]FM_GetShiftState done [05:34:50]opened in 1729643772 [05:34:50]opened+sec_in_day 1729730172 [05:34:50]quantity*price = 100015 [05:34:50]sum+1 = 100017 [05:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 20 23.10.2024 05:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166605 ФПД: 192862949241883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166605&fm=192862949241883&tin=02508201610067®Number=0000000000091764&sum=100000 [05:34:51]StoreToDocumentArchive [05:34:51]shift 537 fd 166605 [05:34:51]save to /storage/0537/doc_00166605 [05:34:51]save last doc name /storage/0537/doc_00166605 to /storage/kkm_last_doc_name [05:34:51]save OK [05:34:51]Clear old archive folders... [05:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:34:51]tlvbuf is 0122A6F0 [05:34:51]SAM_PROTO_ClearQueue [05:34:51]wFMCommunicate request_size=4 [05:34:51]MH_SAM_APDU [05:34:51]CAPDU: 80 09 00 00 [05:34:51]Write to MH i2c: E2 08 00 03 24 80 09 00 00 00 00 00 00 99 [05:34:51]Write i2c OK [05:34:51]MH_I2C_Read... [05:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:34:51]Read from MH i2c: E2 [05:34:51]MH_I2C_Read... [05:34:51]Read from MH i2c: E2 03 00 [05:34:51]MH_I2C_Read... [05:34:51]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [05:34:51]RAPDU: 90 00 [05:34:51]wFMCommunicate OK [05:34:51]SAM_PROTO_ClearQueue done [05:34:51]KKMCreateOFDPacket [05:34:51]OFDProtocolAddRootSTLVToBuf [05:34:51]FM_MakeSignedData [05:34:51]FM_MakeSignedData [05:34:51]SAM_PROTO_SignData [05:34:51]wFMCommunicate request_size=4 [05:34:51]MH_SAM_APDU [05:34:51]CAPDU: 80 0D 01 02 [05:34:51]Write to MH i2c: E2 08 00 04 24 80 0D 01 02 00 00 00 00 A1 [05:34:51]Write i2c OK [05:34:51]MH_I2C_Read... [05:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:34:51]Read from MH i2c: E2 [05:34:51]MH_I2C_Read... [05:34:51]Read from MH i2c: E2 03 00 [05:34:51]MH_I2C_Read... [05:34:51]Read from MH i2c: E2 03 00 04 24 00 90 00 9C [05:34:51]RAPDU: 90 00 [05:34:51]wFMCommunicate OK [05:34:51]wFMCommunicate request_size=255 [05:34:51]MH_SAM_APDU [05:34:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FD 8A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8A 02 00 35 04 06 00 AF [05:34:51]Write to MH i2c: E2 02 01 05 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 8A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8A 02 00 35 04 06 00 AF 00 00 6E [05:34:51]Write i2c OK [05:34:51]MH_I2C_Read... [05:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:52]Read from MH i2c: E2 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 03 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [05:34:52]RAPDU: 90 00 [05:34:52]wFMCommunicate OK [05:34:52]wFMCommunicate request_size=10 [05:34:52]MH_SAM_APDU [05:34:52]CAPDU: 80 0D 02 02 05 68 67 94 74 1B [05:34:52]Write to MH i2c: E2 0D 00 06 24 80 0D 02 02 05 00 68 67 94 74 1B 00 00 A0 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:52]Read from MH i2c: E2 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 03 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [05:34:52]RAPDU: 90 00 [05:34:52]wFMCommunicate OK [05:34:52]wFMCommunicate request_size=4 [05:34:52]MH_SAM_APDU [05:34:52]CAPDU: 80 0D 03 02 [05:34:52]Write to MH i2c: E2 08 00 07 24 80 0D 03 02 00 00 00 00 A6 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:34:52]Read from MH i2c: E2 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 0B 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 0B 00 07 24 00 47 E8 22 9F 43 C1 FA 1B 90 00 B0 [05:34:52]RAPDU: 47 E8 22 9F 43 C1 FA 1B 90 00 [05:34:52]wFMCommunicate OK [05:34:52]SAM_PROTO_SignData done [05:34:52]FM_MakeSignedData done [05:34:52]CreateOFDProtocolMessage [05:34:52]wFMCommunicate request_size=4 [05:34:52]MH_SAM_APDU [05:34:52]CAPDU: 80 11 00 00 [05:34:52]Write to MH i2c: E2 08 00 08 24 80 11 00 00 00 00 00 00 A6 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:52]Read from MH i2c: E2 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 17 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: E2 17 00 08 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [05:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:34:52]wFMCommunicate OK [05:34:52]CreateOFDProtocolMessage done [05:34:52]OFDSenderStorePacket 166605 [05:34:52]StoreOFDPacket docnum=166605 [05:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 9A 07 01 8F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 8A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8A 02 00 35 04 06 00 AF 68 67 94 74 1B 47 E8 22 9F 43 C1 FA 1B [05:34:52]CheckFolder [05:34:52]dirname=/storage/ofd_packets [05:34:52]CheckFolder done [05:34:52]ProducePacketName [05:34:52]name=ofd_packets/00166605 [05:34:52]NVStorageSaveData ofd_packets/00166605 [05:34:52]File name is /storage/ofd_packets/00166605 [05:34:52]Write 301 bytes [05:34:52]NVStorageSaveData done [05:34:52]OFDSenderStorePacket done [05:34:52]KKMCreateOFDPacket done [05:34:52]NVStorageSaveData kkm_last_timestamp [05:34:52]File name is /storage/kkm_last_timestamp [05:34:52]Write 4 bytes [05:34:52]NVStorageSaveData done [05:34:52]ExternCall_PrintAddStr [05:34:52]wPrintStart [05:34:52]Write to MH i2c: 01 00 00 09 24 2D [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 07 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 07 00 09 24 00 00 00 00 00 FF 0F 42 [05:34:52]RasterBufferAndPrint [05:34:52]line Счет N : (1)221186 [05:34:52]line ИНН: 02508201610067 [05:34:52]line Контрольно-Кассовый Чек [05:34:52]line ПРОДАЖА [05:34:52]line ТРК (МРК, ГНК) : 23 [05:34:52]line Товар: 2710124130 [05:34:52]line Аи-92-К-5 [05:34:52]line 14.950 * 66.90 [05:34:52]line = 1000.16 [05:34:52]line НДС 12% НСП 1% [05:34:52]line > о реализуемом товаре [05:34:52]line ОКРУГЛЕНИЕ: -0.16 [05:34:52]line ИТОГО: 1000.00 [05:34:52]line Внесено: 1000.00 [05:34:52]line СДАЧА: 0.00 [05:34:52]line НСП 1% : 8.85 [05:34:52]line НДС 12% : 106.21 [05:34:52]line Наличными: 1000.00 [05:34:52]line Безнал.: 0.00 [05:34:52]line Место: АЗС № 161 "Партнер Нефть" [05:34:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:34:52]line СНО: Общий режим [05:34:52]line Чек 20 23.10.2024 05:34 [05:34:52]line Смена: 537 ФФД: 1.0 [05:34:52]line ЗНМ: 0300000104 [05:34:52]line РНМ: 0000000000091764 [05:34:52]line Версия ККМ: 001 [05:34:52]line ФМ: 0000000000871759 [05:34:52]line ФД: 166605 [05:34:52]line ФПД: 192862949241883 [05:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166605&fm=192862949241883&tin=02508201610067®Number=0000000000091764&sum=100000 [05:34:52]OFD Sender: Processing packet 166605 [packets to send 48, broken 47] [05:34:52]ProducePacketName [05:34:52]name=ofd_packets/00166605 [05:34:52]OFD Sender: To server: pG, [05:34:52]CommunicateWithHost lk.salyk.kg:30040 [05:34:52]ConnectInit lk.salyk.kg [05:34:52]written 0, free lines is 4095 [05:34:52]Connected sock=10 [05:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 9A 07 01 8F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 8A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8A 02 00 35 04 06 00 AF 68 67 94 74 1B 47 E8 22 9F 43 C1 FA 1B [05:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E7 B7 47 00 1F 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8A 02 00 F4 03 04 00 66 31 18 67 B6 04 01 00 00 B7 7A 81 6E AF 97 78 C7 [05:34:52]CommunicateWithHost err = 0 [05:34:52]CheckOFDResponse [05:34:52]1017 (14) - 77093643461234 [05:34:52]1041 (16) - 0000000000871759 [05:34:52]1040 (4) - 166605 [05:34:52]1012 (4) - 22.10.2024 23:12 [05:34:52]1206 (1) - 0 [05:34:52]OFD Sender: Remove packet 166605 [05:34:52]ProducePacketName [05:34:52]name=ofd_packets/00166605 [05:34:52]NVStorageDeleteData [05:34:52]Write to MH i2c: 01 00 00 34 24 58 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 07 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 A4 0C 0F [05:34:52]RasterBufferAndPrint [05:34:52]line [05:34:52]line [05:34:52]line [05:34:52]line [05:34:52]line [05:34:52]written 0, free lines is 3242 [05:34:52]MH_Cut [05:34:52]Write to MH i2c: D1 01 00 3B 24 01 31 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: D1 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: D1 01 00 [05:34:52]MH_I2C_Read... [05:34:52]Read from MH i2c: D1 01 00 3B 24 00 30 [05:34:52]Write to MH i2c: 01 00 00 3C 24 60 [05:34:52]Write i2c OK [05:34:52]MH_I2C_Read... [05:34:53]OFD Sender: No OFD packet to send [05:34:53]*** Cut start [05:34:53]*** Partial cut [05:34:53]*** CUTSNS_PIN = 1 [05:34:53]*** CUTSNS_PIN = 0 [05:34:54]*** Brake cut motor [05:34:54]Read from MH i2c: 01 [05:34:54]MH_I2C_Read... [05:34:54]*** Stop cut motor [05:34:54]*** Cut end [05:34:54]Read from MH i2c: 01 07 00 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: 01 07 00 3C 24 00 00 00 00 00 FF 0F 75 [05:34:54]process_action close_receipt done [05:34:54]requested_data is exist [05:34:54]produce_requested_data [05:34:54]requested_item fm.sn is exist - process it [05:34:54]wFMCommunicate request_size=4 [05:34:54]MH_SAM_APDU [05:34:54]CAPDU: 80 11 00 00 [05:34:54]Write to MH i2c: E2 08 00 3D 24 80 11 00 00 00 00 00 00 DB [05:34:54]Write i2c OK [05:34:54]MH_I2C_Read... [05:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:54]Read from MH i2c: E2 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 17 00 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 17 00 3D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [05:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:34:54]wFMCommunicate OK [05:34:54]requested_item fd.num is exist - process it [05:34:54]SAM_PROTO_GetFieldsCounters [05:34:54]wFMCommunicate request_size=4 [05:34:54]MH_SAM_APDU [05:34:54]CAPDU: 80 13 00 00 [05:34:54]Write to MH i2c: E2 08 00 3E 24 80 13 00 00 00 00 00 00 DE [05:34:54]Write i2c OK [05:34:54]MH_I2C_Read... [05:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:34:54]Read from MH i2c: E2 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 62 00 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 62 00 3E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [05:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:34:54]wFMCommunicate OK [05:34:54]SAM_PROTO_GetFieldsCounters done [05:34:54]requested_item shift.num is exist - process it [05:34:54]requested_item shift.opened is exist - process it [05:34:54]req_shift_opened [05:34:54]FM_GetShiftState [05:34:54]SAM_PROTO_GetShiftState [05:34:54]wFMCommunicate request_size=4 [05:34:54]MH_SAM_APDU [05:34:54]CAPDU: 80 13 01 00 [05:34:54]Write to MH i2c: E2 08 00 3F 24 80 13 01 00 00 00 00 00 E0 [05:34:54]Write i2c OK [05:34:54]MH_I2C_Read... [05:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:54]Read from MH i2c: E2 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 0E 00 [05:34:54]MH_I2C_Read... [05:34:54]Read from MH i2c: E2 0E 00 3F 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AB [05:34:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [05:34:54]wFMCommunicate OK [05:34:54]SAM_PROTO_GetShiftState done [05:34:54]FM_GetShiftState done [05:34:54]req_shift_opened done [05:34:54]requested_item shift.open_date is exist - process it [05:34:54]req_shift_open_date [05:34:54]req_shift_open_date done [05:34:54]produce_requested_data done [05:34:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166605,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [05:34:54]process_action_free close_receipt [05:34:54]json_value_free [05:34:54]json_value_free done [05:34:54]process_json_proto returns [05:34:54]Send response to host [05:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166605,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [05:34:54]free response buf [05:34:54]execute_script done [05:34:54]execute_script returns [05:34:54]free content buf [05:34:54]Sock 7.Close socket [05:34:54]Sock 7.Thread stoped [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:40]accept exits with 9 [05:50:40]New connection [05:50:40]New thread 3067489636 created [05:50:40]Thread 3067632996 joined [05:50:40]Waiting for new connection... [05:50:40] Sock 9.Parse request [05:50:40]Sock 9.Check first char [05:50:40]Sock 9.First char is OK [05:50:40]request: POST /json_proto HTTP/1.0 [05:50:40]Method: POST [05:50:40]URL: /json_proto [05:50:40]Method is POST - this is cgi request [05:50:40]url: /json_proto [05:50:40]query_string will be loaded in cgi processing [05:50:40]execute_cgi json_proto POST (null) [05:50:40]execute_cgi path=json_proto method=POST [05:50:40]POST find Content-Length [05:50:40]Host: 172.17.53.195:8080 [05:50:40]Content-Length: 682 [05:50:40]Content-Type: application/json [05:50:40] [05:50:40]POST finish read [05:50:40]Found Content-Length = 682 [05:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:40]execute_script... [05:50:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:40]POST & json_proto [05:50:40]process_json_proto [05:50:40]json parsed OK: [05:50:40]protocol is kg_v1.0 [05:50:40]action value=close_receipt [05:50:40]process_action close_receipt [05:50:40]cmd_close_receipt [05:50:40]MH_GetDate [05:50:40]Write to MH i2c: F0 00 00 40 24 53 [05:50:40]Write i2c OK [05:50:40]MH_I2C_Read... [05:50:40]Read from MH i2c: F0 [05:50:40]MH_I2C_Read... [05:50:40]Read from MH i2c: F0 09 00 [05:50:40]MH_I2C_Read... [05:50:40]Read from MH i2c: F0 09 00 40 24 00 B4 8E 18 67 21 48 4A 65 35 [05:50:40]GetLastDocTimeStamp 1729661693 [05:50:40]current date 1729662644 [05:50:40]FM_GetShiftState [05:50:40]SAM_PROTO_GetShiftState [05:50:40]wFMCommunicate request_size=4 [05:50:40]MH_SAM_APDU [05:50:40]CAPDU: 80 13 01 00 [05:50:40]Write to MH i2c: E2 08 00 41 24 80 13 01 00 00 00 00 00 E2 [05:50:40]Write i2c OK [05:50:40]MH_I2C_Read... [05:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:40]Read from MH i2c: E2 [05:50:40]MH_I2C_Read... [05:50:40]Read from MH i2c: E2 0E 00 [05:50:40]MH_I2C_Read... [05:50:40]Read from MH i2c: E2 0E 00 41 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AD [05:50:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [05:50:40]wFMCommunicate OK [05:50:40]SAM_PROTO_GetShiftState done [05:50:40]FM_GetShiftState done [05:50:40]opened in 1729643772 [05:50:40]opened+sec_in_day 1729730172 [05:50:40]quantity*price = 199969 [05:50:40]sum+1 = 199970 [05:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 21 23.10.2024 05:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166606 ФПД: 64159137981972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T055044&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166606&fm=64159137981972&tin=02508201610067®Number=0000000000091764&sum=199900 [05:50:41]StoreToDocumentArchive [05:50:41]shift 537 fd 166606 [05:50:41]save to /storage/0537/doc_00166606 [05:50:41]save last doc name /storage/0537/doc_00166606 to /storage/kkm_last_doc_name [05:50:41]save OK [05:50:41]Clear old archive folders... [05:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:50:41]tlvbuf is 0122A700 [05:50:41]SAM_PROTO_ClearQueue [05:50:41]wFMCommunicate request_size=4 [05:50:41]MH_SAM_APDU [05:50:41]CAPDU: 80 09 00 00 [05:50:41]Write to MH i2c: E2 08 00 4E 24 80 09 00 00 00 00 00 00 E4 [05:50:41]Write i2c OK [05:50:41]MH_I2C_Read... [05:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:41]Read from MH i2c: E2 [05:50:41]MH_I2C_Read... [05:50:41]Read from MH i2c: E2 03 00 [05:50:41]MH_I2C_Read... [05:50:41]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [05:50:41]RAPDU: 90 00 [05:50:41]wFMCommunicate OK [05:50:41]SAM_PROTO_ClearQueue done [05:50:41]KKMCreateOFDPacket [05:50:41]OFDProtocolAddRootSTLVToBuf [05:50:41]FM_MakeSignedData [05:50:41]FM_MakeSignedData [05:50:41]SAM_PROTO_SignData [05:50:41]wFMCommunicate request_size=4 [05:50:41]MH_SAM_APDU [05:50:41]CAPDU: 80 0D 01 02 [05:50:41]Write to MH i2c: E2 08 00 4F 24 80 0D 01 02 00 00 00 00 EC [05:50:41]Write i2c OK [05:50:41]MH_I2C_Read... [05:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:41]Read from MH i2c: E2 [05:50:41]MH_I2C_Read... [05:50:41]Read from MH i2c: E2 03 00 [05:50:41]MH_I2C_Read... [05:50:41]Read from MH i2c: E2 03 00 4F 24 00 90 00 E7 [05:50:41]RAPDU: 90 00 [05:50:41]wFMCommunicate OK [05:50:41]wFMCommunicate request_size=255 [05:50:41]MH_SAM_APDU [05:50:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B4 8E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8A 02 00 35 04 06 00 3A [05:50:41]Write to MH i2c: E2 02 01 50 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B4 8E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8A 02 00 35 04 06 00 3A 00 00 8A [05:50:41]Write i2c OK [05:50:41]MH_I2C_Read... [05:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:42]Read from MH i2c: E2 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 03 00 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 03 00 50 24 00 90 00 E8 [05:50:42]RAPDU: 90 00 [05:50:42]wFMCommunicate OK [05:50:42]wFMCommunicate request_size=10 [05:50:42]MH_SAM_APDU [05:50:42]CAPDU: 80 0D 02 02 05 5A 36 A0 E6 14 [05:50:42]Write to MH i2c: E2 0D 00 51 24 80 0D 02 02 05 00 5A 36 A0 E6 14 00 00 23 [05:50:42]Write i2c OK [05:50:42]MH_I2C_Read... [05:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:42]Read from MH i2c: E2 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 03 00 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [05:50:42]RAPDU: 90 00 [05:50:42]wFMCommunicate OK [05:50:42]wFMCommunicate request_size=4 [05:50:42]MH_SAM_APDU [05:50:42]CAPDU: 80 0D 03 02 [05:50:42]Write to MH i2c: E2 08 00 52 24 80 0D 03 02 00 00 00 00 F1 [05:50:42]Write i2c OK [05:50:42]MH_I2C_Read... [05:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:42]Read from MH i2c: E2 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 0B 00 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 0B 00 52 24 00 A6 2E 3D F6 68 E5 D5 0E 90 00 29 [05:50:42]RAPDU: A6 2E 3D F6 68 E5 D5 0E 90 00 [05:50:42]wFMCommunicate OK [05:50:42]SAM_PROTO_SignData done [05:50:42]FM_MakeSignedData done [05:50:42]CreateOFDProtocolMessage [05:50:42]wFMCommunicate request_size=4 [05:50:42]MH_SAM_APDU [05:50:42]CAPDU: 80 11 00 00 [05:50:42]Write to MH i2c: E2 08 00 53 24 80 11 00 00 00 00 00 00 F1 [05:50:42]Write i2c OK [05:50:42]MH_I2C_Read... [05:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:42]Read from MH i2c: E2 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 17 00 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: E2 17 00 53 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [05:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:50:42]wFMCommunicate OK [05:50:42]CreateOFDProtocolMessage done [05:50:42]OFDSenderStorePacket 166606 [05:50:42]StoreOFDPacket docnum=166606 [05:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E A1 07 01 5A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B4 8E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8A 02 00 35 04 06 00 3A 5A 36 A0 E6 14 A6 2E 3D F6 68 E5 D5 0E [05:50:42]CheckFolder [05:50:42]dirname=/storage/ofd_packets [05:50:42]CheckFolder done [05:50:42]ProducePacketName [05:50:42]name=ofd_packets/00166606 [05:50:42]NVStorageSaveData ofd_packets/00166606 [05:50:42]File name is /storage/ofd_packets/00166606 [05:50:42]Write 301 bytes [05:50:42]NVStorageSaveData done [05:50:42]OFDSenderStorePacket done [05:50:42]KKMCreateOFDPacket done [05:50:42]NVStorageSaveData kkm_last_timestamp [05:50:42]File name is /storage/kkm_last_timestamp [05:50:42]Write 4 bytes [05:50:42]NVStorageSaveData done [05:50:42]ExternCall_PrintAddStr [05:50:42]wPrintStart [05:50:42]Write to MH i2c: 01 00 00 54 24 78 [05:50:42]Write i2c OK [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: 01 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: 01 07 00 [05:50:42]MH_I2C_Read... [05:50:42]Read from MH i2c: 01 07 00 54 24 00 00 00 00 00 FF 0F 8D [05:50:42]RasterBufferAndPrint [05:50:42]line Счет N : (1)221187 [05:50:42]line ИНН: 02508201610067 [05:50:42]line Контрольно-Кассовый Чек [05:50:42]line ПРОДАЖА [05:50:42]line ТРК (МРК, ГНК) : 14 [05:50:42]line Товар: 2710124500 [05:50:42]line Аи-95-К-5 [05:50:42]line 26.950 * 74.20 [05:50:42]line = 1999.69 [05:50:42]line НДС 12% НСП 1% [05:50:42]line > о реализуемом товаре [05:50:42]line ОКРУГЛЕНИЕ: -0.69 [05:50:42]line ИТОГО: 1999.00 [05:50:42]line Внесено: 2000.00 [05:50:42]line СДАЧА: 1.00 [05:50:42]line НСП 1% : 17.70 [05:50:42]line НДС 12% : 212.36 [05:50:42]line Наличными: 1999.00 [05:50:42]line Безнал.: 0.00 [05:50:42]line Место: АЗС № 161 "Партнер Нефть" [05:50:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:50:42]line СНО: Общий режим [05:50:42]line Чек 21 23.10.2024 05:50 [05:50:42]line Смена: 537 ФФД: 1.0 [05:50:42]line ЗНМ: 0300000104 [05:50:42]line РНМ: 0000000000091764 [05:50:42]line Версия ККМ: 001 [05:50:42]line ФМ: 0000000000871759 [05:50:42]line ФД: 166606 [05:50:42]line ФПД: 64159137981972 [05:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T055044&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166606&fm=64159137981972&tin=02508201610067®Number=0000000000091764&sum=199900 [05:50:42]OFD Sender: Processing packet 166606 [packets to send 48, broken 47] [05:50:42]ProducePacketName [05:50:42]name=ofd_packets/00166606 [05:50:42]OFD Sender: To server: pG, [05:50:42]CommunicateWithHost lk.salyk.kg:30040 [05:50:42]ConnectInit lk.salyk.kg [05:50:42]written 0, free lines is 4095 [05:50:42]Connected sock=10 [05:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E A1 07 01 5A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B4 8E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8A 02 00 35 04 06 00 3A 5A 36 A0 E6 14 A6 2E 3D F6 68 E5 D5 0E [05:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 43 47 00 99 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8A 02 00 F4 03 04 00 1C 35 18 67 B6 04 01 00 00 95 70 9B 27 1E A2 D3 9F [05:50:43]CommunicateWithHost err = 0 [05:50:43]CheckOFDResponse [05:50:43]1017 (14) - 77093643461234 [05:50:43]1041 (16) - 0000000000871759 [05:50:43]1040 (4) - 166606 [05:50:43]1012 (4) - 22.10.2024 23:28 [05:50:43]1206 (1) - 0 [05:50:43]OFD Sender: Remove packet 166606 [05:50:43]ProducePacketName [05:50:43]name=ofd_packets/00166606 [05:50:43]NVStorageDeleteData [05:50:43]Write to MH i2c: 01 00 00 7F 24 A3 [05:50:43]Write i2c OK [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: 01 [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: 01 07 00 [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: 01 07 00 7F 24 00 00 00 00 00 B5 0C 6B [05:50:43]RasterBufferAndPrint [05:50:43]line [05:50:43]line [05:50:43]line [05:50:43]line [05:50:43]line [05:50:43]written 0, free lines is 3259 [05:50:43]MH_Cut [05:50:43]Write to MH i2c: D1 01 00 86 24 01 7C [05:50:43]Write i2c OK [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: D1 [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: D1 01 00 [05:50:43]MH_I2C_Read... [05:50:43]Read from MH i2c: D1 01 00 86 24 00 7B [05:50:43]Write to MH i2c: 01 00 00 87 24 AB [05:50:43]Write i2c OK [05:50:43]MH_I2C_Read... [05:50:43]OFD Sender: No OFD packet to send [05:50:43]*** Cut start [05:50:43]*** Partial cut [05:50:43]*** CUTSNS_PIN = 1 [05:50:44]*** CUTSNS_PIN = 0 [05:50:44]*** Brake cut motor [05:50:44]Read from MH i2c: 01 [05:50:44]MH_I2C_Read... [05:50:44]*** Stop cut motor [05:50:44]*** Cut end [05:50:44]Read from MH i2c: 01 07 00 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: 01 07 00 87 24 00 00 00 00 00 FF 0F C0 [05:50:44]process_action close_receipt done [05:50:44]requested_data is exist [05:50:44]produce_requested_data [05:50:44]requested_item fm.sn is exist - process it [05:50:44]wFMCommunicate request_size=4 [05:50:44]MH_SAM_APDU [05:50:44]CAPDU: 80 11 00 00 [05:50:44]Write to MH i2c: E2 08 00 88 24 80 11 00 00 00 00 00 00 26 [05:50:44]Write i2c OK [05:50:44]MH_I2C_Read... [05:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:44]Read from MH i2c: E2 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 17 00 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 17 00 88 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [05:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:50:44]wFMCommunicate OK [05:50:44]requested_item fd.num is exist - process it [05:50:44]SAM_PROTO_GetFieldsCounters [05:50:44]wFMCommunicate request_size=4 [05:50:44]MH_SAM_APDU [05:50:44]CAPDU: 80 13 00 00 [05:50:44]Write to MH i2c: E2 08 00 89 24 80 13 00 00 00 00 00 00 29 [05:50:44]Write i2c OK [05:50:44]MH_I2C_Read... [05:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:44]Read from MH i2c: E2 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 62 00 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 62 00 89 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [05:50:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:44]wFMCommunicate OK [05:50:44]SAM_PROTO_GetFieldsCounters done [05:50:44]requested_item shift.num is exist - process it [05:50:44]requested_item shift.opened is exist - process it [05:50:44]req_shift_opened [05:50:44]FM_GetShiftState [05:50:44]SAM_PROTO_GetShiftState [05:50:44]wFMCommunicate request_size=4 [05:50:44]MH_SAM_APDU [05:50:44]CAPDU: 80 13 01 00 [05:50:44]Write to MH i2c: E2 08 00 8A 24 80 13 01 00 00 00 00 00 2B [05:50:44]Write i2c OK [05:50:44]MH_I2C_Read... [05:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:44]Read from MH i2c: E2 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 0E 00 [05:50:44]MH_I2C_Read... [05:50:44]Read from MH i2c: E2 0E 00 8A 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F6 [05:50:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [05:50:44]wFMCommunicate OK [05:50:44]SAM_PROTO_GetShiftState done [05:50:44]FM_GetShiftState done [05:50:44]req_shift_opened done [05:50:44]requested_item shift.open_date is exist - process it [05:50:44]req_shift_open_date [05:50:44]req_shift_open_date done [05:50:44]produce_requested_data done [05:50:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166606,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [05:50:44]process_action_free close_receipt [05:50:44]json_value_free [05:50:44]json_value_free done [05:50:44]process_json_proto returns [05:50:44]Send response to host [05:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166606,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [05:50:44]free response buf [05:50:44]execute_script done [05:50:44]execute_script returns [05:50:44]free content buf [05:50:44]Sock 9.Close socket [05:50:44]Sock 9.Thread stoped [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]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:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:08]accept exits with 7 [06:01:08]New connection [06:01:08]New thread 3067632996 created [06:01:08]Thread 3067489636 joined [06:01:08]Waiting for new connection... [06:01:08] Sock 7.Parse request [06:01:08]Sock 7.Check first char [06:01:08]Sock 7.First char is OK [06:01:08]request: POST /json_proto HTTP/1.0 [06:01:08]Method: POST [06:01:08]URL: /json_proto [06:01:08]Method is POST - this is cgi request [06:01:08]url: /json_proto [06:01:08]query_string will be loaded in cgi processing [06:01:08]execute_cgi json_proto POST (null) [06:01:08]execute_cgi path=json_proto method=POST [06:01:08]POST find Content-Length [06:01:08]Host: 172.17.53.195:8080 [06:01:08]Content-Length: 674 [06:01:08]Content-Type: application/json [06:01:08] [06:01:08]POST finish read [06:01:08]Found Content-Length = 674 [06:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:08]execute_script... [06:01: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)221188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:08]POST & json_proto [06:01:08]process_json_proto [06:01:08]json parsed OK: [06:01:08]protocol is kg_v1.0 [06:01:08]action value=close_receipt [06:01:08]process_action close_receipt [06:01:08]cmd_close_receipt [06:01:08]MH_GetDate [06:01:08]Write to MH i2c: F0 00 00 8B 24 9E [06:01:08]Write i2c OK [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: F0 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: F0 09 00 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: F0 09 00 8B 24 00 27 91 18 67 21 48 4A 65 F6 [06:01:08]GetLastDocTimeStamp 1729662644 [06:01:08]current date 1729663271 [06:01:08]FM_GetShiftState [06:01:08]SAM_PROTO_GetShiftState [06:01:08]wFMCommunicate request_size=4 [06:01:08]MH_SAM_APDU [06:01:08]CAPDU: 80 13 01 00 [06:01:08]Write to MH i2c: E2 08 00 8C 24 80 13 01 00 00 00 00 00 2D [06:01:08]Write i2c OK [06:01:08]MH_I2C_Read... [06:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:08]Read from MH i2c: E2 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: E2 0E 00 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: E2 0E 00 8C 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F8 [06:01:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:01:08]wFMCommunicate OK [06:01:08]SAM_PROTO_GetShiftState done [06:01:08]FM_GetShiftState done [06:01:08]opened in 1729643772 [06:01:08]opened+sec_in_day 1729730172 [06:01:08]quantity*price = 70027 [06:01:08]sum+1 = 70029 [06:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 22 23.10.2024 06:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166607 ФПД: 89514567811555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T060111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166607&fm=89514567811555&tin=02508201610067®Number=0000000000091764&sum=70000 [06:01:09]StoreToDocumentArchive [06:01:09]shift 537 fd 166607 [06:01:09]save to /storage/0537/doc_00166607 [06:01:09]save last doc name /storage/0537/doc_00166607 to /storage/kkm_last_doc_name [06:01:09]save OK [06:01:09]Clear old archive folders... [06:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:01:09]tlvbuf is 0122A8A0 [06:01:09]SAM_PROTO_ClearQueue [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 09 00 00 [06:01:09]Write to MH i2c: E2 08 00 99 24 80 09 00 00 00 00 00 00 2F [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]SAM_PROTO_ClearQueue done [06:01:09]KKMCreateOFDPacket [06:01:09]OFDProtocolAddRootSTLVToBuf [06:01:09]FM_MakeSignedData [06:01:09]FM_MakeSignedData [06:01:09]SAM_PROTO_SignData [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 01 02 [06:01:09]Write to MH i2c: E2 08 00 9A 24 80 0D 01 02 00 00 00 00 37 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=255 [06:01:09]MH_SAM_APDU [06:01: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 27 91 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8A 02 00 35 04 06 00 51 69 BC 04 [06:01:09]Write to MH i2c: E2 02 01 9B 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 27 91 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8A 02 00 35 04 06 00 51 69 BC 04 00 00 FC [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=7 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 02 02 02 41 E3 [06:01:09]Write to MH i2c: E2 0A 00 9C 24 80 0D 02 02 02 00 41 E3 00 00 62 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 9C 24 00 90 00 34 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 03 02 [06:01:09]Write to MH i2c: E2 08 00 9D 24 80 0D 03 02 00 00 00 00 3C [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 0B 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 0B 00 9D 24 00 FF BA 74 FC F0 8D D7 62 90 00 1C [06:01:09]RAPDU: FF BA 74 FC F0 8D D7 62 90 00 [06:01:09]wFMCommunicate OK [06:01:09]SAM_PROTO_SignData done [06:01:09]FM_MakeSignedData done [06:01:09]CreateOFDProtocolMessage [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 11 00 00 [06:01:09]Write to MH i2c: E2 08 00 9E 24 80 11 00 00 00 00 00 00 3C [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 17 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 17 00 9E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [06:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:01:09]wFMCommunicate OK [06:01:09]CreateOFDProtocolMessage done [06:01:09]OFDSenderStorePacket 166607 [06:01:09]StoreOFDPacket docnum=166607 [06:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 0C 04 01 61 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 27 91 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8A 02 00 35 04 06 00 51 69 BC 04 41 E3 FF BA 74 FC F0 8D D7 62 [06:01:09]CheckFolder [06:01:09]dirname=/storage/ofd_packets [06:01:09]CheckFolder done [06:01:09]ProducePacketName [06:01:09]name=ofd_packets/00166607 [06:01:09]NVStorageSaveData ofd_packets/00166607 [06:01:09]File name is /storage/ofd_packets/00166607 [06:01:09]Write 298 bytes [06:01:09]NVStorageSaveData done [06:01:09]OFDSenderStorePacket done [06:01:09]KKMCreateOFDPacket done [06:01:09]NVStorageSaveData kkm_last_timestamp [06:01:09]File name is /storage/kkm_last_timestamp [06:01:09]Write 4 bytes [06:01:09]NVStorageSaveData done [06:01:09]ExternCall_PrintAddStr [06:01:09]wPrintStart [06:01:09]Write to MH i2c: 01 00 00 9F 24 C3 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 07 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 07 00 9F 24 00 00 00 00 00 FF 0F D8 [06:01:09]RasterBufferAndPrint [06:01:09]line Счет N : (1)221188 [06:01:09]line ИНН: 02508201610067 [06:01:09]line Контрольно-Кассовый Чек [06:01:09]line ПРОДАЖА [06:01:09]line ТРК (МРК, ГНК) : 21 [06:01:09]line Товар: 2710194210 [06:01:09]line ДТ-К-5 [06:01:09]line 9.190 * 76.20 [06:01:09]line = 700.28 [06:01:09]line НДС 12% НСП 1% [06:01:09]line > о реализуемом товаре [06:01:09]line ОКРУГЛЕНИЕ: -0.28 [06:01:09]line ИТОГО: 700.00 [06:01:09]line Внесено: 700.00 [06:01:09]line СДАЧА: 0.00 [06:01:09]line НСП 1% : 6.20 [06:01:09]line НДС 12% : 74.37 [06:01:09]line Наличными: 700.00 [06:01:09]line Безнал.: 0.00 [06:01:09]line Место: АЗС № 161 "Партнер Нефть" [06:01:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:01:09]line СНО: Общий режим [06:01:09]line Чек 22 23.10.2024 06:01 [06:01:09]line Смена: 537 ФФД: 1.0 [06:01:09]line ЗНМ: 0300000104 [06:01:09]line РНМ: 0000000000091764 [06:01:09]line Версия ККМ: 001 [06:01:09]line ФМ: 0000000000871759 [06:01:09]line ФД: 166607 [06:01:09]line ФПД: 89514567811555 [06:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T060111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166607&fm=89514567811555&tin=02508201610067®Number=0000000000091764&sum=70000 [06:01:10]OFD Sender: Processing packet 166607 [packets to send 48, broken 47] [06:01:10]ProducePacketName [06:01:10]name=ofd_packets/00166607 [06:01:10]OFD Sender: To server: pG, [06:01:10]CommunicateWithHost lk.salyk.kg:30040 [06:01:10]ConnectInit lk.salyk.kg [06:01:10]written 0, free lines is 4095 [06:01:10]Connected sock=10 [06:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 0C 04 01 61 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 27 91 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8A 02 00 35 04 06 00 51 69 BC 04 41 E3 FF BA 74 FC F0 8D D7 62 [06:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C 83 47 00 63 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8A 02 00 F4 03 04 00 90 37 18 67 B6 04 01 00 00 51 5A 56 6D 32 F4 44 79 [06:01:10]CommunicateWithHost err = 0 [06:01:10]CheckOFDResponse [06:01:10]1017 (14) - 77093643461234 [06:01:10]1041 (16) - 0000000000871759 [06:01:10]1040 (4) - 166607 [06:01:10]1012 (4) - 22.10.2024 23:38 [06:01:10]1206 (1) - 0 [06:01:10]OFD Sender: Remove packet 166607 [06:01:10]ProducePacketName [06:01:10]name=ofd_packets/00166607 [06:01:10]NVStorageDeleteData [06:01:10]Write to MH i2c: 01 00 00 CA 24 EE [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 07 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 07 00 CA 24 00 00 00 00 00 AA 0C AB [06:01:10]RasterBufferAndPrint [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]written 0, free lines is 3248 [06:01:10]MH_Cut [06:01:10]Write to MH i2c: D1 01 00 D1 24 01 C7 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 01 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 01 00 D1 24 00 C6 [06:01:10]Write to MH i2c: 01 00 00 D2 24 F6 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]OFD Sender: No OFD packet to send [06:01:11]*** Cut start [06:01:11]*** Partial cut [06:01:11]*** CUTSNS_PIN = 1 [06:01:11]*** CUTSNS_PIN = 0 [06:01:11]*** Brake cut motor [06:01:11]Read from MH i2c: 01 [06:01:11]MH_I2C_Read... [06:01:12]*** Stop cut motor [06:01:12]*** Cut end [06:01:12]Read from MH i2c: 01 07 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: 01 07 00 D2 24 00 00 00 00 00 FF 0F 0B [06:01:12]process_action close_receipt done [06:01:12]requested_data is exist [06:01:12]produce_requested_data [06:01:12]requested_item fm.sn is exist - process it [06:01:12]wFMCommunicate request_size=4 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 11 00 00 [06:01:12]Write to MH i2c: E2 08 00 D3 24 80 11 00 00 00 00 00 00 71 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 17 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 17 00 D3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [06:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:01:12]wFMCommunicate OK [06:01:12]requested_item fd.num is exist - process it [06:01:12]SAM_PROTO_GetFieldsCounters [06:01:12]wFMCommunicate request_size=4 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 13 00 00 [06:01:12]Write to MH i2c: E2 08 00 D4 24 80 13 00 00 00 00 00 00 74 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 62 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 62 00 D4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [06:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:12]wFMCommunicate OK [06:01:12]SAM_PROTO_GetFieldsCounters done [06:01:12]requested_item shift.num is exist - process it [06:01:12]requested_item shift.opened is exist - process it [06:01:12]req_shift_opened [06:01:12]FM_GetShiftState [06:01:12]SAM_PROTO_GetShiftState [06:01:12]wFMCommunicate request_size=4 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 13 01 00 [06:01:12]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 0E 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 41 [06:01:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:01:12]wFMCommunicate OK [06:01:12]SAM_PROTO_GetShiftState done [06:01:12]FM_GetShiftState done [06:01:12]req_shift_opened done [06:01:12]requested_item shift.open_date is exist - process it [06:01:12]req_shift_open_date [06:01:12]req_shift_open_date done [06:01:12]produce_requested_data done [06:01:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166607,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [06:01:12]process_action_free close_receipt [06:01:12]json_value_free [06:01:12]json_value_free done [06:01:12]process_json_proto returns [06:01:12]Send response to host [06:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166607,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [06:01:12]free response buf [06:01:12]execute_script done [06:01:12]execute_script returns [06:01:12]free content buf [06:01:12]Sock 7.Close socket [06:01:12]Sock 7.Thread stoped [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:49]accept exits with 9 [06:27:49]New connection [06:27:49]New thread 3067489636 created [06:27:49]Thread 3067632996 joined [06:27:49]Waiting for new connection... [06:27:49] Sock 9.Parse request [06:27:49]Sock 9.Check first char [06:27:49]Sock 9.First char is OK [06:27:49]request: POST /json_proto HTTP/1.0 [06:27:49]Method: POST [06:27:49]URL: /json_proto [06:27:49]Method is POST - this is cgi request [06:27:49]url: /json_proto [06:27:49]query_string will be loaded in cgi processing [06:27:49]execute_cgi json_proto POST (null) [06:27:49]execute_cgi path=json_proto method=POST [06:27:49]POST find Content-Length [06:27:49]Host: 172.17.53.195:8080 [06:27:49]Content-Length: 677 [06:27:49]Content-Type: application/json [06:27:49] [06:27:49]POST finish read [06:27:49]Found Content-Length = 677 [06:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:49]execute_script... [06:27: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)221189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:49]POST & json_proto [06:27:49]process_json_proto [06:27:49]json parsed OK: [06:27:49]protocol is kg_v1.0 [06:27:49]action value=close_receipt [06:27:49]process_action close_receipt [06:27:49]cmd_close_receipt [06:27:49]MH_GetDate [06:27:49]Write to MH i2c: F0 00 00 D6 24 E9 [06:27:49]Write i2c OK [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 09 00 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: F0 09 00 D6 24 00 68 97 18 67 21 48 4A 65 88 [06:27:49]GetLastDocTimeStamp 1729663271 [06:27:49]current date 1729664872 [06:27:49]FM_GetShiftState [06:27:49]SAM_PROTO_GetShiftState [06:27:49]wFMCommunicate request_size=4 [06:27:49]MH_SAM_APDU [06:27:49]CAPDU: 80 13 01 00 [06:27:49]Write to MH i2c: E2 08 00 D7 24 80 13 01 00 00 00 00 00 78 [06:27:49]Write i2c OK [06:27:49]MH_I2C_Read... [06:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:49]Read from MH i2c: E2 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: E2 0E 00 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: E2 0E 00 D7 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 43 [06:27:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:27:49]wFMCommunicate OK [06:27:49]SAM_PROTO_GetShiftState done [06:27:49]FM_GetShiftState done [06:27:49]opened in 1729643772 [06:27:49]opened+sec_in_day 1729730172 [06:27:49]quantity*price = 70044 [06:27:49]sum+1 = 70046 [06:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 23 23.10.2024 06:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166608 ФПД: 18864639695494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062752&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166608&fm=18864639695494&tin=02508201610067®Number=0000000000091764&sum=70000 [06:27:50]StoreToDocumentArchive [06:27:50]shift 537 fd 166608 [06:27:50]save to /storage/0537/doc_00166608 [06:27:50]save last doc name /storage/0537/doc_00166608 to /storage/kkm_last_doc_name [06:27:50]save OK [06:27:50]Clear old archive folders... [06:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:50]tlvbuf is 011EA9C0 [06:27:50]SAM_PROTO_ClearQueue [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 09 00 00 [06:27:50]Write to MH i2c: E2 08 00 E4 24 80 09 00 00 00 00 00 00 7A [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [06:27:50]RAPDU: 90 00 [06:27:50]wFMCommunicate OK [06:27:50]SAM_PROTO_ClearQueue done [06:27:50]KKMCreateOFDPacket [06:27:50]OFDProtocolAddRootSTLVToBuf [06:27:50]FM_MakeSignedData [06:27:50]FM_MakeSignedData [06:27:50]SAM_PROTO_SignData [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 0D 01 02 [06:27:50]Write to MH i2c: E2 08 00 E5 24 80 0D 01 02 00 00 00 00 82 [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [06:27:50]RAPDU: 90 00 [06:27:50]wFMCommunicate OK [06:27:50]wFMCommunicate request_size=255 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 68 97 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8A 02 00 35 04 06 00 11 [06:27:50]Write to MH i2c: E2 02 01 E6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 68 97 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8A 02 00 35 04 06 00 11 00 00 1C [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 E6 24 00 90 00 7E [06:27:50]RAPDU: 90 00 [06:27:50]wFMCommunicate OK [06:27:50]wFMCommunicate request_size=10 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 0D 02 02 05 28 44 25 DA 86 [06:27:50]Write to MH i2c: E2 0D 00 E7 24 80 0D 02 02 05 00 28 44 25 DA 86 00 00 80 [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 03 00 E7 24 00 90 00 7F [06:27:50]RAPDU: 90 00 [06:27:50]wFMCommunicate OK [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 0D 03 02 [06:27:50]Write to MH i2c: E2 08 00 E8 24 80 0D 03 02 00 00 00 00 87 [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 0B 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 0B 00 E8 24 00 40 02 46 96 9D 87 07 CF 90 00 A0 [06:27:50]RAPDU: 40 02 46 96 9D 87 07 CF 90 00 [06:27:50]wFMCommunicate OK [06:27:50]SAM_PROTO_SignData done [06:27:50]FM_MakeSignedData done [06:27:50]CreateOFDProtocolMessage [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 11 00 00 [06:27:50]Write to MH i2c: E2 08 00 E9 24 80 11 00 00 00 00 00 00 87 [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 17 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 17 00 E9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [06:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:27:50]wFMCommunicate OK [06:27:50]CreateOFDProtocolMessage done [06:27:50]OFDSenderStorePacket 166608 [06:27:50]StoreOFDPacket docnum=166608 [06:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 F4 07 01 F6 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 68 97 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8A 02 00 35 04 06 00 11 28 44 25 DA 86 40 02 46 96 9D 87 07 CF [06:27:50]CheckFolder [06:27:50]dirname=/storage/ofd_packets [06:27:50]CheckFolder done [06:27:50]ProducePacketName [06:27:50]name=ofd_packets/00166608 [06:27:50]NVStorageSaveData ofd_packets/00166608 [06:27:50]File name is /storage/ofd_packets/00166608 [06:27:50]Write 301 bytes [06:27:50]NVStorageSaveData done [06:27:50]OFDSenderStorePacket done [06:27:50]KKMCreateOFDPacket done [06:27:50]NVStorageSaveData kkm_last_timestamp [06:27:50]File name is /storage/kkm_last_timestamp [06:27:50]Write 4 bytes [06:27:50]NVStorageSaveData done [06:27:51]ExternCall_PrintAddStr [06:27:51]wPrintStart [06:27:51]Write to MH i2c: 01 00 00 EA 24 0E [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 EA 24 00 00 00 00 00 FF 0F 23 [06:27:51]RasterBufferAndPrint [06:27:51]line Счет N : (1)221189 [06:27:51]line ИНН: 02508201610067 [06:27:51]line Контрольно-Кассовый Чек [06:27:51]line ПРОДАЖА [06:27:51]line ТРК (МРК, ГНК) : 24 [06:27:51]line Товар: 2710124500 [06:27:51]line Аи-95-К-5 [06:27:51]line 9.440 * 74.20 [06:27:51]line = 700.45 [06:27:51]line НДС 12% НСП 1% [06:27:51]line > о реализуемом товаре [06:27:51]line ОКРУГЛЕНИЕ: -0.45 [06:27:51]line ИТОГО: 700.00 [06:27:51]line Внесено: 700.00 [06:27:51]line СДАЧА: 0.00 [06:27:51]line НСП 1% : 6.20 [06:27:51]line НДС 12% : 74.38 [06:27:51]line Наличными: 700.00 [06:27:51]line Безнал.: 0.00 [06:27:51]line Место: АЗС № 161 "Партнер Нефть" [06:27:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:27:51]line СНО: Общий режим [06:27:51]line Чек 23 23.10.2024 06:27 [06:27:51]line Смена: 537 ФФД: 1.0 [06:27:51]line ЗНМ: 0300000104 [06:27:51]line РНМ: 0000000000091764 [06:27:51]line Версия ККМ: 001 [06:27:51]line ФМ: 0000000000871759 [06:27:51]line ФД: 166608 [06:27:51]line ФПД: 18864639695494 [06:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062752&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166608&fm=18864639695494&tin=02508201610067®Number=0000000000091764&sum=70000 [06:27:51]OFD Sender: Processing packet 166608 [packets to send 48, broken 47] [06:27:51]ProducePacketName [06:27:51]name=ofd_packets/00166608 [06:27:51]OFD Sender: To server: pG, [06:27:51]CommunicateWithHost lk.salyk.kg:30040 [06:27:51]ConnectInit lk.salyk.kg [06:27:51]written 0, free lines is 4095 [06:27:51]Connected sock=10 [06:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 F4 07 01 F6 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 68 97 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8A 02 00 35 04 06 00 11 28 44 25 DA 86 40 02 46 96 9D 87 07 CF [06:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 6B 47 00 ED 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8A 02 00 F4 03 04 00 D1 3D 18 67 B6 04 01 00 00 82 E9 8C A7 C5 5F 94 7A [06:27:51]CommunicateWithHost err = 0 [06:27:51]CheckOFDResponse [06:27:51]1017 (14) - 77093643461234 [06:27:51]1041 (16) - 0000000000871759 [06:27:51]1040 (4) - 166608 [06:27:51]1012 (4) - 23.10.2024 00:05 [06:27:51]1206 (1) - 0 [06:27:51]OFD Sender: Remove packet 166608 [06:27:51]ProducePacketName [06:27:51]name=ofd_packets/00166608 [06:27:51]NVStorageDeleteData [06:27:51]Write to MH i2c: 01 00 00 15 25 3A [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: 01 07 00 15 25 00 00 00 00 00 B3 0C 00 [06:27:51]RasterBufferAndPrint [06:27:51]line [06:27:51]line [06:27:51]line [06:27:51]line [06:27:51]line [06:27:51]written 0, free lines is 3258 [06:27:51]MH_Cut [06:27:51]Write to MH i2c: D1 01 00 1C 25 01 13 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: D1 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: D1 01 00 [06:27:51]MH_I2C_Read... [06:27:51]Read from MH i2c: D1 01 00 1C 25 00 12 [06:27:51]Write to MH i2c: 01 00 00 1D 25 42 [06:27:51]Write i2c OK [06:27:51]MH_I2C_Read... [06:27:52]OFD Sender: No OFD packet to send [06:27:52]*** Cut start [06:27:52]*** Partial cut [06:27:52]*** CUTSNS_PIN = 1 [06:27:52]*** CUTSNS_PIN = 0 [06:27:52]*** Brake cut motor [06:27:53]Read from MH i2c: 01 [06:27:53]MH_I2C_Read... [06:27:53]*** Stop cut motor [06:27:53]*** Cut end [06:27:53]Read from MH i2c: 01 07 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: 01 07 00 1D 25 00 00 00 00 00 FF 0F 57 [06:27:53]process_action close_receipt done [06:27:53]requested_data is exist [06:27:53]produce_requested_data [06:27:53]requested_item fm.sn is exist - process it [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 11 00 00 [06:27:53]Write to MH i2c: E2 08 00 1E 25 80 11 00 00 00 00 00 00 BD [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 17 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 17 00 1E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [06:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:27:53]wFMCommunicate OK [06:27:53]requested_item fd.num is exist - process it [06:27:53]SAM_PROTO_GetFieldsCounters [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 13 00 00 [06:27:53]Write to MH i2c: E2 08 00 1F 25 80 13 00 00 00 00 00 00 C0 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 62 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 62 00 1F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [06:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:53]wFMCommunicate OK [06:27:53]SAM_PROTO_GetFieldsCounters done [06:27:53]requested_item shift.num is exist - process it [06:27:53]requested_item shift.opened is exist - process it [06:27:53]req_shift_opened [06:27:53]FM_GetShiftState [06:27:53]SAM_PROTO_GetShiftState [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 13 01 00 [06:27:53]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 0E 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8D [06:27:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:27:53]wFMCommunicate OK [06:27:53]SAM_PROTO_GetShiftState done [06:27:53]FM_GetShiftState done [06:27:53]req_shift_opened done [06:27:53]requested_item shift.open_date is exist - process it [06:27:53]req_shift_open_date [06:27:53]req_shift_open_date done [06:27:53]produce_requested_data done [06:27:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166608,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [06:27:53]process_action_free close_receipt [06:27:53]json_value_free [06:27:53]json_value_free done [06:27:53]process_json_proto returns [06:27:53]Send response to host [06:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166608,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [06:27:53]free response buf [06:27:53]execute_script done [06:27:53]execute_script returns [06:27:53]free content buf [06:27:53]Sock 9.Close socket [06:27:53]Sock 9.Thread stoped [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:44]accept exits with 7 [06:31:44]New connection [06:31:44]New thread 3067632996 created [06:31:44]Thread 3067489636 joined [06:31:44]Waiting for new connection... [06:31:44] Sock 7.Parse request [06:31:44]Sock 7.Check first char [06:31:44]Sock 7.First char is OK [06:31:44]request: POST /json_proto HTTP/1.0 [06:31:44]Method: POST [06:31:44]URL: /json_proto [06:31:44]Method is POST - this is cgi request [06:31:44]url: /json_proto [06:31:44]query_string will be loaded in cgi processing [06:31:44]execute_cgi json_proto POST (null) [06:31:44]execute_cgi path=json_proto method=POST [06:31:44]POST find Content-Length [06:31:44]Host: 172.17.53.195:8080 [06:31:44]Content-Length: 682 [06:31:44]Content-Type: application/json [06:31:44] [06:31:44]POST finish read [06:31:44]Found Content-Length = 682 [06:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]execute_script... [06:31: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)221190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]POST & json_proto [06:31:44]process_json_proto [06:31:44]json parsed OK: [06:31:44]protocol is kg_v1.0 [06:31:44]action value=close_receipt [06:31:44]process_action close_receipt [06:31:44]cmd_close_receipt [06:31:44]MH_GetDate [06:31:44]Write to MH i2c: F0 00 00 21 25 35 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 21 25 00 54 98 18 67 21 48 4A 65 C1 [06:31:44]GetLastDocTimeStamp 1729664872 [06:31:44]current date 1729665108 [06:31:44]FM_GetShiftState [06:31:44]SAM_PROTO_GetShiftState [06:31:44]wFMCommunicate request_size=4 [06:31:44]MH_SAM_APDU [06:31:44]CAPDU: 80 13 01 00 [06:31:44]Write to MH i2c: E2 08 00 22 25 80 13 01 00 00 00 00 00 C4 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:44]Read from MH i2c: E2 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 22 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8F [06:31:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:31:44]wFMCommunicate OK [06:31:44]SAM_PROTO_GetShiftState done [06:31:44]FM_GetShiftState done [06:31:44]opened in 1729643772 [06:31:44]opened+sec_in_day 1729730172 [06:31:44]quantity*price = 200043 [06:31:44]sum+1 = 200044 [06:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 24 23.10.2024 06:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166609 ФПД: 231599894486380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166609&fm=231599894486380&tin=02508201610067®Number=0000000000091764&sum=200000 [06:31:45]StoreToDocumentArchive [06:31:45]shift 537 fd 166609 [06:31:45]save to /storage/0537/doc_00166609 [06:31:45]save last doc name /storage/0537/doc_00166609 to /storage/kkm_last_doc_name [06:31:45]save OK [06:31:45]Clear old archive folders... [06:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:45]tlvbuf is B6FFE7B0 [06:31:45]SAM_PROTO_ClearQueue [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 09 00 00 [06:31:45]Write to MH i2c: E2 08 00 2F 25 80 09 00 00 00 00 00 00 C6 [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [06:31:45]RAPDU: 90 00 [06:31:45]wFMCommunicate OK [06:31:45]SAM_PROTO_ClearQueue done [06:31:45]KKMCreateOFDPacket [06:31:45]OFDProtocolAddRootSTLVToBuf [06:31:45]FM_MakeSignedData [06:31:45]FM_MakeSignedData [06:31:45]SAM_PROTO_SignData [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 0D 01 02 [06:31:45]Write to MH i2c: E2 08 00 30 25 80 0D 01 02 00 00 00 00 CE [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [06:31:45]RAPDU: 90 00 [06:31:45]wFMCommunicate OK [06:31:45]wFMCommunicate request_size=255 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 98 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8A 02 00 35 04 06 00 D2 [06:31:45]Write to MH i2c: E2 02 01 31 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 98 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8A 02 00 35 04 06 00 D2 00 00 D9 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 31 25 00 90 00 CA [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=10 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 02 02 05 A3 8D 70 DD 6C [06:31:46]Write to MH i2c: E2 0D 00 32 25 80 0D 02 02 05 00 A3 8D 70 DD 6C 00 00 C4 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 03 02 [06:31:46]Write to MH i2c: E2 08 00 33 25 80 0D 03 02 00 00 00 00 D3 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 33 25 00 3A A8 EC 2C 37 3A 8F A7 90 00 75 [06:31:46]RAPDU: 3A A8 EC 2C 37 3A 8F A7 90 00 [06:31:46]wFMCommunicate OK [06:31:46]SAM_PROTO_SignData done [06:31:46]FM_MakeSignedData done [06:31:46]CreateOFDProtocolMessage [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 11 00 00 [06:31:46]Write to MH i2c: E2 08 00 34 25 80 11 00 00 00 00 00 00 D3 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 17 00 [06:31:46]MH_I2C_Read... [06:31:46]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 31 37 35 39 90 00 2B [06:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:31:46]wFMCommunicate OK [06:31:46]CreateOFDProtocolMessage done [06:31:46]OFDSenderStorePacket 166609 [06:31:46]StoreOFDPacket docnum=166609 [06:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B E8 07 01 44 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 98 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8A 02 00 35 04 06 00 D2 A3 8D 70 DD 6C 3A A8 EC 2C 37 3A 8F A7 [06:31:46]CheckFolder [06:31:46]dirname=/storage/ofd_packets [06:31:46]CheckFolder done [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00166609 [06:31:46]NVStorageSaveData ofd_packets/00166609 [06:31:46]File name is /storage/ofd_packets/00166609 [06:31:46]Write 301 bytes [06:31:46]NVStorageSaveData done [06:31:46]OFDSenderStorePacket done [06:31:46]KKMCreateOFDPacket done [06:31:46]NVStorageSaveData kkm_last_timestamp [06:31:46]File name is /storage/kkm_last_timestamp [06:31:46]Write 4 bytes [06:31:46]NVStorageSaveData done [06:31:46]ExternCall_PrintAddStr [06:31:46]wPrintStart [06:31:46]Write to MH i2c: 01 00 00 35 25 5A [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 35 25 00 00 00 00 00 FF 0F 6F [06:31:46]RasterBufferAndPrint [06:31:46]line Счет N : (1)221190 [06:31:46]line ИНН: 02508201610067 [06:31:46]line Контрольно-Кассовый Чек [06:31:46]line ПРОДАЖА [06:31:46]line ТРК (МРК, ГНК) : 24 [06:31:46]line Товар: 2710124500 [06:31:46]line Аи-95-К-5 [06:31:46]line 26.960 * 74.20 [06:31:46]line = 2000.43 [06:31:46]line НДС 12% НСП 1% [06:31:46]line > о реализуемом товаре [06:31:46]line ОКРУГЛЕНИЕ: -0.43 [06:31:46]line ИТОГО: 2000.00 [06:31:46]line Внесено: 2000.00 [06:31:46]line СДАЧА: 0.00 [06:31:46]line НСП 1% : 17.70 [06:31:46]line НДС 12% : 212.43 [06:31:46]line Наличными: 2000.00 [06:31:46]line Безнал.: 0.00 [06:31:46]line Место: АЗС № 161 "Партнер Нефть" [06:31:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:31:46]line СНО: Общий режим [06:31:46]line Чек 24 23.10.2024 06:31 [06:31:46]line Смена: 537 ФФД: 1.0 [06:31:46]line ЗНМ: 0300000104 [06:31:46]line РНМ: 0000000000091764 [06:31:46]line Версия ККМ: 001 [06:31:46]line ФМ: 0000000000871759 [06:31:46]line ФД: 166609 [06:31:46]line ФПД: 231599894486380 [06:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166609&fm=231599894486380&tin=02508201610067®Number=0000000000091764&sum=200000 [06:31:46]OFD Sender: Processing packet 166609 [packets to send 48, broken 47] [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00166609 [06:31:46]OFD Sender: To server: pG, [06:31:46]CommunicateWithHost lk.salyk.kg:30040 [06:31:46]ConnectInit lk.salyk.kg [06:31:46]written 0, free lines is 4095 [06:31:46]Connected sock=10 [06:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B E8 07 01 44 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 54 98 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8A 02 00 35 04 06 00 D2 A3 8D 70 DD 6C 3A A8 EC 2C 37 3A 8F A7 [06:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC 51 47 00 8E C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8A 02 00 F4 03 04 00 BC 3E 18 67 B6 04 01 00 00 5A 45 4D C9 2F 7D CF E8 [06:31:47]CommunicateWithHost err = 0 [06:31:47]CheckOFDResponse [06:31:47]1017 (14) - 77093643461234 [06:31:47]1041 (16) - 0000000000871759 [06:31:47]1040 (4) - 166609 [06:31:47]1012 (4) - 23.10.2024 00:09 [06:31:47]1206 (1) - 0 [06:31:47]OFD Sender: Remove packet 166609 [06:31:47]ProducePacketName [06:31:47]name=ofd_packets/00166609 [06:31:47]NVStorageDeleteData [06:31:47]Write to MH i2c: 01 00 00 60 25 85 [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 BF 0C 57 [06:31:47]RasterBufferAndPrint [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]written 0, free lines is 3269 [06:31:47]MH_Cut [06:31:47]Write to MH i2c: D1 01 00 67 25 01 5E [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 67 25 00 5D [06:31:47]Write to MH i2c: 01 00 00 68 25 8D [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]OFD Sender: No OFD packet to send [06:31:48]*** Cut start [06:31:48]*** Partial cut [06:31:48]*** CUTSNS_PIN = 1 [06:31:48]*** CUTSNS_PIN = 0 [06:31:48]*** Brake cut motor [06:31:48]Read from MH i2c: 01 [06:31:48]MH_I2C_Read... [06:31:48]*** Stop cut motor [06:31:48]*** Cut end [06:31:48]Read from MH i2c: 01 07 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [06:31:48]process_action close_receipt done [06:31:48]requested_data is exist [06:31:48]produce_requested_data [06:31:48]requested_item fm.sn is exist - process it [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 11 00 00 [06:31:48]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 17 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [06:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:31:48]wFMCommunicate OK [06:31:48]requested_item fd.num is exist - process it [06:31:48]SAM_PROTO_GetFieldsCounters [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 13 00 00 [06:31:48]Write to MH i2c: E2 08 00 6A 25 80 13 00 00 00 00 00 00 0B [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 62 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 62 00 6A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [06:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:48]wFMCommunicate OK [06:31:48]SAM_PROTO_GetFieldsCounters done [06:31:48]requested_item shift.num is exist - process it [06:31:48]requested_item shift.opened is exist - process it [06:31:48]req_shift_opened [06:31:48]FM_GetShiftState [06:31:48]SAM_PROTO_GetShiftState [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 13 01 00 [06:31:48]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 0E 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D8 [06:31:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:31:48]wFMCommunicate OK [06:31:48]SAM_PROTO_GetShiftState done [06:31:48]FM_GetShiftState done [06:31:48]req_shift_opened done [06:31:48]requested_item shift.open_date is exist - process it [06:31:48]req_shift_open_date [06:31:48]req_shift_open_date done [06:31:48]produce_requested_data done [06:31:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166609,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [06:31:48]process_action_free close_receipt [06:31:48]json_value_free [06:31:48]json_value_free done [06:31:48]process_json_proto returns [06:31:48]Send response to host [06:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166609,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [06:31:48]free response buf [06:31:48]execute_script done [06:31:48]execute_script returns [06:31:48]free content buf [06:31:48]Sock 7.Close socket [06:31:48]Sock 7.Thread stoped [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]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:03]accept exits with 9 [06:36:03]New connection [06:36:03]New thread 3067489636 created [06:36:03]Thread 3067632996 joined [06:36:03]Waiting for new connection... [06:36:03] Sock 9.Parse request [06:36:03]Sock 9.Check first char [06:36:03]Sock 9.First char is OK [06:36:03]request: POST /json_proto HTTP/1.0 [06:36:03]Method: POST [06:36:03]URL: /json_proto [06:36:03]Method is POST - this is cgi request [06:36:03]url: /json_proto [06:36:03]query_string will be loaded in cgi processing [06:36:03]execute_cgi json_proto POST (null) [06:36:03]execute_cgi path=json_proto method=POST [06:36:03]POST find Content-Length [06:36:03]Host: 172.17.53.195:8080 [06:36:03]Content-Length: 678 [06:36:03]Content-Type: application/json [06:36:03] [06:36:03]POST finish read [06:36:03]Found Content-Length = 678 [06:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:03]execute_script... [06:36: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)221191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:03]POST & json_proto [06:36:03]process_json_proto [06:36:03]json parsed OK: [06:36:03]protocol is kg_v1.0 [06:36:03]action value=close_receipt [06:36:03]process_action close_receipt [06:36:03]cmd_close_receipt [06:36:03]MH_GetDate [06:36:03]Write to MH i2c: F0 00 00 6C 25 80 [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: F0 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: F0 09 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: F0 09 00 6C 25 00 56 99 18 67 21 48 4A 65 0F [06:36:03]GetLastDocTimeStamp 1729665108 [06:36:03]current date 1729665366 [06:36:03]FM_GetShiftState [06:36:03]SAM_PROTO_GetShiftState [06:36:03]wFMCommunicate request_size=4 [06:36:03]MH_SAM_APDU [06:36:03]CAPDU: 80 13 01 00 [06:36:03]Write to MH i2c: E2 08 00 6D 25 80 13 01 00 00 00 00 00 0F [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:03]Read from MH i2c: E2 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 0E 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 0E 00 6D 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DA [06:36:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:36:03]wFMCommunicate OK [06:36:03]SAM_PROTO_GetShiftState done [06:36:03]FM_GetShiftState done [06:36:03]opened in 1729643772 [06:36:03]opened+sec_in_day 1729730172 [06:36:03]quantity*price = 80012 [06:36:03]sum+1 = 80013 [06:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 25 23.10.2024 06:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166610 ФПД: 241892795051749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166610&fm=241892795051749&tin=02508201610067®Number=0000000000091764&sum=80000 [06:36:04]StoreToDocumentArchive [06:36:04]shift 537 fd 166610 [06:36:04]save to /storage/0537/doc_00166610 [06:36:04]save last doc name /storage/0537/doc_00166610 to /storage/kkm_last_doc_name [06:36:04]save OK [06:36:04]Clear old archive folders... [06:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:36:04]tlvbuf is B6E4EBA0 [06:36:04]SAM_PROTO_ClearQueue [06:36:04]wFMCommunicate request_size=4 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 09 00 00 [06:36:04]Write to MH i2c: E2 08 00 7A 25 80 09 00 00 00 00 00 00 11 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]SAM_PROTO_ClearQueue done [06:36:04]KKMCreateOFDPacket [06:36:04]OFDProtocolAddRootSTLVToBuf [06:36:04]FM_MakeSignedData [06:36:04]FM_MakeSignedData [06:36:04]SAM_PROTO_SignData [06:36:04]wFMCommunicate request_size=4 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 01 02 [06:36:04]Write to MH i2c: E2 08 00 7B 25 80 0D 01 02 00 00 00 00 19 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]wFMCommunicate request_size=255 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 57 99 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8A 02 00 35 04 06 00 DC [06:36:04]Write to MH i2c: E2 02 01 7C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 57 99 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8A 02 00 35 04 06 00 DC 00 00 78 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7C 25 00 90 00 15 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]wFMCommunicate request_size=10 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 02 02 05 00 0E 1F 6E E5 [06:36:04]Write to MH i2c: E2 0D 00 7D 25 80 0D 02 02 05 00 00 0E 1F 6E E5 00 00 A6 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:05]Read from MH i2c: E2 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 03 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [06:36:05]RAPDU: 90 00 [06:36:05]wFMCommunicate OK [06:36:05]wFMCommunicate request_size=4 [06:36:05]MH_SAM_APDU [06:36:05]CAPDU: 80 0D 03 02 [06:36:05]Write to MH i2c: E2 08 00 7E 25 80 0D 03 02 00 00 00 00 1E [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:05]Read from MH i2c: E2 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 0B 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 0B 00 7E 25 00 13 BE 70 69 26 CB 88 F6 90 00 38 [06:36:05]RAPDU: 13 BE 70 69 26 CB 88 F6 90 00 [06:36:05]wFMCommunicate OK [06:36:05]SAM_PROTO_SignData done [06:36:05]FM_MakeSignedData done [06:36:05]CreateOFDProtocolMessage [06:36:05]wFMCommunicate request_size=4 [06:36:05]MH_SAM_APDU [06:36:05]CAPDU: 80 11 00 00 [06:36:05]Write to MH i2c: E2 08 00 7F 25 80 11 00 00 00 00 00 00 1E [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 [06:36:05]MH_I2C_Read... [06:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:05]Read from MH i2c: E2 17 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: E2 17 00 7F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [06:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:36:05]wFMCommunicate OK [06:36:05]CreateOFDProtocolMessage done [06:36:05]OFDSenderStorePacket 166610 [06:36:05]StoreOFDPacket docnum=166610 [06:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC DF 07 01 89 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 57 99 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8A 02 00 35 04 06 00 DC 00 0E 1F 6E E5 13 BE 70 69 26 CB 88 F6 [06:36:05]CheckFolder [06:36:05]dirname=/storage/ofd_packets [06:36:05]CheckFolder done [06:36:05]ProducePacketName [06:36:05]name=ofd_packets/00166610 [06:36:05]NVStorageSaveData ofd_packets/00166610 [06:36:05]File name is /storage/ofd_packets/00166610 [06:36:05]Write 301 bytes [06:36:05]NVStorageSaveData done [06:36:05]OFDSenderStorePacket done [06:36:05]KKMCreateOFDPacket done [06:36:05]NVStorageSaveData kkm_last_timestamp [06:36:05]File name is /storage/kkm_last_timestamp [06:36:05]Write 4 bytes [06:36:05]NVStorageSaveData done [06:36:05]ExternCall_PrintAddStr [06:36:05]wPrintStart [06:36:05]Write to MH i2c: 01 00 00 80 25 A5 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 80 25 00 00 00 00 00 FF 0F BA [06:36:05]RasterBufferAndPrint [06:36:05]line Счет N : (1)221191 [06:36:05]line ИНН: 02508201610067 [06:36:05]line Контрольно-Кассовый Чек [06:36:05]line ПРОДАЖА [06:36:05]line ТРК (МРК, ГНК) : 23 [06:36:05]line Товар: 2710124130 [06:36:05]line Аи-92-К-5 [06:36:05]line 11.960 * 66.90 [06:36:05]line = 800.12 [06:36:05]line НДС 12% НСП 1% [06:36:05]line > о реализуемом товаре [06:36:05]line ОКРУГЛЕНИЕ: -0.12 [06:36:05]line ИТОГО: 800.00 [06:36:05]line Внесено: 800.00 [06:36:05]line СДАЧА: 0.00 [06:36:05]line НСП 1% : 7.08 [06:36:05]line НДС 12% : 84.97 [06:36:05]line Наличными: 800.00 [06:36:05]line Безнал.: 0.00 [06:36:05]line Место: АЗС № 161 "Партнер Нефть" [06:36:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:36:05]line СНО: Общий режим [06:36:05]line Чек 25 23.10.2024 06:36 [06:36:05]line Смена: 537 ФФД: 1.0 [06:36:05]line ЗНМ: 0300000104 [06:36:05]line РНМ: 0000000000091764 [06:36:05]line Версия ККМ: 001 [06:36:05]line ФМ: 0000000000871759 [06:36:05]line ФД: 166610 [06:36:05]line ФПД: 241892795051749 [06:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166610&fm=241892795051749&tin=02508201610067®Number=0000000000091764&sum=80000 [06:36:05]written 0, free lines is 4095 [06:36:05]OFD Sender: Processing packet 166610 [packets to send 48, broken 47] [06:36:05]ProducePacketName [06:36:05]name=ofd_packets/00166610 [06:36:05]OFD Sender: To server: pG, [06:36:05]CommunicateWithHost lk.salyk.kg:30040 [06:36:05]ConnectInit lk.salyk.kg [06:36:05]Connected sock=10 [06:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC DF 07 01 89 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 57 99 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8A 02 00 35 04 06 00 DC 00 0E 1F 6E E5 13 BE 70 69 26 CB 88 F6 [06:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F 56 47 00 E6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8A 02 00 F4 03 04 00 BF 3F 18 67 B6 04 01 00 00 35 F2 4B 72 C9 59 A1 E4 [06:36:05]CommunicateWithHost err = 0 [06:36:05]CheckOFDResponse [06:36:05]1017 (14) - 77093643461234 [06:36:05]1041 (16) - 0000000000871759 [06:36:05]1040 (4) - 166610 [06:36:05]1012 (4) - 23.10.2024 00:13 [06:36:05]1206 (1) - 0 [06:36:05]OFD Sender: Remove packet 166610 [06:36:05]ProducePacketName [06:36:05]name=ofd_packets/00166610 [06:36:05]NVStorageDeleteData [06:36:05]Write to MH i2c: 01 00 00 AB 25 D0 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 AB 25 00 00 00 00 00 C4 0C A7 [06:36:05]RasterBufferAndPrint [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]written 0, free lines is 3274 [06:36:05]MH_Cut [06:36:05]Write to MH i2c: D1 01 00 B2 25 01 A9 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 01 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 01 00 B2 25 00 A8 [06:36:05]Write to MH i2c: 01 00 00 B3 25 D8 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]OFD Sender: No OFD packet to send [06:36:06]*** Cut start [06:36:06]*** Partial cut [06:36:06]*** CUTSNS_PIN = 1 [06:36:06]*** CUTSNS_PIN = 0 [06:36:06]*** Brake cut motor [06:36:07]Read from MH i2c: 01 [06:36:07]MH_I2C_Read... [06:36:07]*** Stop cut motor [06:36:07]*** Cut end [06:36:07]Read from MH i2c: 01 07 00 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: 01 07 00 B3 25 00 00 00 00 00 FF 0F ED [06:36:07]process_action close_receipt done [06:36:07]requested_data is exist [06:36:07]produce_requested_data [06:36:07]requested_item fm.sn is exist - process it [06:36:07]wFMCommunicate request_size=4 [06:36:07]MH_SAM_APDU [06:36:07]CAPDU: 80 11 00 00 [06:36:07]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [06:36:07]Write i2c OK [06:36:07]MH_I2C_Read... [06:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:07]Read from MH i2c: E2 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 17 00 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [06:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:36:07]wFMCommunicate OK [06:36:07]requested_item fd.num is exist - process it [06:36:07]SAM_PROTO_GetFieldsCounters [06:36:07]wFMCommunicate request_size=4 [06:36:07]MH_SAM_APDU [06:36:07]CAPDU: 80 13 00 00 [06:36:07]Write to MH i2c: E2 08 00 B5 25 80 13 00 00 00 00 00 00 56 [06:36:07]Write i2c OK [06:36:07]MH_I2C_Read... [06:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:07]Read from MH i2c: E2 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 62 00 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 62 00 B5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [06:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:07]wFMCommunicate OK [06:36:07]SAM_PROTO_GetFieldsCounters done [06:36:07]requested_item shift.num is exist - process it [06:36:07]requested_item shift.opened is exist - process it [06:36:07]req_shift_opened [06:36:07]FM_GetShiftState [06:36:07]SAM_PROTO_GetShiftState [06:36:07]wFMCommunicate request_size=4 [06:36:07]MH_SAM_APDU [06:36:07]CAPDU: 80 13 01 00 [06:36:07]Write to MH i2c: E2 08 00 B6 25 80 13 01 00 00 00 00 00 58 [06:36:07]Write i2c OK [06:36:07]MH_I2C_Read... [06:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:07]Read from MH i2c: E2 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 0E 00 [06:36:07]MH_I2C_Read... [06:36:07]Read from MH i2c: E2 0E 00 B6 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 23 [06:36:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [06:36:07]wFMCommunicate OK [06:36:07]SAM_PROTO_GetShiftState done [06:36:07]FM_GetShiftState done [06:36:07]req_shift_opened done [06:36:07]requested_item shift.open_date is exist - process it [06:36:07]req_shift_open_date [06:36:07]req_shift_open_date done [06:36:07]produce_requested_data done [06:36:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166610,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [06:36:07]process_action_free close_receipt [06:36:07]json_value_free [06:36:07]json_value_free done [06:36:07]process_json_proto returns [06:36:07]Send response to host [06:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166610,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [06:36:07]free response buf [06:36:07]execute_script done [06:36:07]execute_script returns [06:36:07]free content buf [06:36:07]Sock 9.Close socket [06:36:07]Sock 9.Thread stoped [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:04]accept exits with 7 [07:08:04]New connection [07:08:04]New thread 3067632996 created [07:08:04]Thread 3067489636 joined [07:08:04]Waiting for new connection... [07:08:04] Sock 7.Parse request [07:08:04]Sock 7.Check first char [07:08:04]Sock 7.First char is OK [07:08:04]request: POST /json_proto HTTP/1.0 [07:08:04]Method: POST [07:08:04]URL: /json_proto [07:08:04]Method is POST - this is cgi request [07:08:04]url: /json_proto [07:08:04]query_string will be loaded in cgi processing [07:08:04]execute_cgi json_proto POST (null) [07:08:04]execute_cgi path=json_proto method=POST [07:08:04]POST find Content-Length [07:08:04]Host: 172.17.53.195:8080 [07:08:04]Content-Length: 678 [07:08:04]Content-Type: application/json [07:08:04] [07:08:04]POST finish read [07:08:04]Found Content-Length = 678 [07:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:04]execute_script... [07:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:04]POST & json_proto [07:08:04]process_json_proto [07:08:04]json parsed OK: [07:08:04]protocol is kg_v1.0 [07:08:04]action value=close_receipt [07:08:04]process_action close_receipt [07:08:04]cmd_close_receipt [07:08:04]MH_GetDate [07:08:04]Write to MH i2c: F0 00 00 B7 25 CB [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 09 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 09 00 B7 25 00 D8 A0 18 67 21 48 4A 65 E3 [07:08:04]GetLastDocTimeStamp 1729665367 [07:08:04]current date 1729667288 [07:08:04]FM_GetShiftState [07:08:04]SAM_PROTO_GetShiftState [07:08:04]wFMCommunicate request_size=4 [07:08:04]MH_SAM_APDU [07:08:04]CAPDU: 80 13 01 00 [07:08:04]Write to MH i2c: E2 08 00 B8 25 80 13 01 00 00 00 00 00 5A [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:04]Read from MH i2c: E2 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 0E 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 0E 00 B8 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 25 [07:08:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [07:08:04]wFMCommunicate OK [07:08:04]SAM_PROTO_GetShiftState done [07:08:04]FM_GetShiftState done [07:08:04]opened in 1729643772 [07:08:04]opened+sec_in_day 1729730172 [07:08:04]quantity*price = 80012 [07:08:04]sum+1 = 80013 [07:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 26 23.10.2024 07:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166611 ФПД: 63009046647780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070808&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166611&fm=63009046647780&tin=02508201610067®Number=0000000000091764&sum=80000 [07:08:05]StoreToDocumentArchive [07:08:05]shift 537 fd 166611 [07:08:05]save to /storage/0537/doc_00166611 [07:08:05]save last doc name /storage/0537/doc_00166611 to /storage/kkm_last_doc_name [07:08:05]save OK [07:08:05]Clear old archive folders... [07:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:05]tlvbuf is 0124E2F0 [07:08:05]SAM_PROTO_ClearQueue [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 09 00 00 [07:08:05]Write to MH i2c: E2 08 00 C5 25 80 09 00 00 00 00 00 00 5C [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 03 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 03 00 C5 25 00 90 00 5E [07:08:05]RAPDU: 90 00 [07:08:05]wFMCommunicate OK [07:08:05]SAM_PROTO_ClearQueue done [07:08:05]KKMCreateOFDPacket [07:08:05]OFDProtocolAddRootSTLVToBuf [07:08:05]FM_MakeSignedData [07:08:05]FM_MakeSignedData [07:08:05]SAM_PROTO_SignData [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 0D 01 02 [07:08:05]Write to MH i2c: E2 08 00 C6 25 80 0D 01 02 00 00 00 00 64 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 03 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 03 00 C6 25 00 90 00 5F [07:08:05]RAPDU: 90 00 [07:08:05]wFMCommunicate OK [07:08:05]wFMCommunicate request_size=255 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D8 A0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8A 02 00 35 04 06 00 39 [07:08:05]Write to MH i2c: E2 02 01 C7 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D8 A0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8A 02 00 35 04 06 00 39 00 00 AA [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 C7 25 00 90 00 60 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]wFMCommunicate request_size=10 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 02 02 05 4E 6F D7 D3 E4 [07:08:06]Write to MH i2c: E2 0D 00 C8 25 80 0D 02 02 05 00 4E 6F D7 D3 E4 00 00 BC [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 C8 25 00 90 00 61 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 03 02 [07:08:06]Write to MH i2c: E2 08 00 C9 25 80 0D 03 02 00 00 00 00 69 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0B 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0B 00 C9 25 00 37 94 AC CC 5C 3F B2 C0 90 00 BA [07:08:06]RAPDU: 37 94 AC CC 5C 3F B2 C0 90 00 [07:08:06]wFMCommunicate OK [07:08:06]SAM_PROTO_SignData done [07:08:06]FM_MakeSignedData done [07:08:06]CreateOFDProtocolMessage [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 11 00 00 [07:08:06]Write to MH i2c: E2 08 00 CA 25 80 11 00 00 00 00 00 00 69 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 17 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 17 00 CA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [07:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:08:06]wFMCommunicate OK [07:08:06]CreateOFDProtocolMessage done [07:08:06]OFDSenderStorePacket 166611 [07:08:06]StoreOFDPacket docnum=166611 [07:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 AF 07 01 96 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D8 A0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8A 02 00 35 04 06 00 39 4E 6F D7 D3 E4 37 94 AC CC 5C 3F B2 C0 [07:08:06]CheckFolder [07:08:06]dirname=/storage/ofd_packets [07:08:06]CheckFolder done [07:08:06]ProducePacketName [07:08:06]name=ofd_packets/00166611 [07:08:06]NVStorageSaveData ofd_packets/00166611 [07:08:06]File name is /storage/ofd_packets/00166611 [07:08:06]Write 301 bytes [07:08:06]NVStorageSaveData done [07:08:06]OFDSenderStorePacket done [07:08:06]KKMCreateOFDPacket done [07:08:06]NVStorageSaveData kkm_last_timestamp [07:08:06]File name is /storage/kkm_last_timestamp [07:08:06]Write 4 bytes [07:08:06]OFD Sender: Processing packet 166611 [packets to send 48, broken 47] [07:08:06]ProducePacketName [07:08:06]name=ofd_packets/00166611 [07:08:06]OFD Sender: To server: pG, [07:08:06]CommunicateWithHost lk.salyk.kg:30040 [07:08:06]ConnectInit lk.salyk.kg [07:08:06]NVStorageSaveData done [07:08:06]ExternCall_PrintAddStr [07:08:06]wPrintStart [07:08:06]Write to MH i2c: 01 00 00 CB 25 F0 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 07 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 FF 0F 05 [07:08:06]RasterBufferAndPrint [07:08:06]line Счет N : (1)221192 [07:08:06]line ИНН: 02508201610067 [07:08:06]line Контрольно-Кассовый Чек [07:08:06]line ПРОДАЖА [07:08:06]line ТРК (МРК, ГНК) : 23 [07:08:06]line Товар: 2710124130 [07:08:06]line Аи-92-К-5 [07:08:06]line 11.960 * 66.90 [07:08:06]line = 800.12 [07:08:06]line НДС 12% НСП 1% [07:08:06]line > о реализуемом товаре [07:08:06]line ОКРУГЛЕНИЕ: -0.12 [07:08:06]line ИТОГО: 800.00 [07:08:06]line Внесено: 800.00 [07:08:06]line СДАЧА: 0.00 [07:08:06]line НСП 1% : 7.08 [07:08:06]line НДС 12% : 84.97 [07:08:06]line Наличными: 800.00 [07:08:06]line Безнал.: 0.00 [07:08:06]line Место: АЗС № 161 "Партнер Нефть" [07:08:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:08:06]line СНО: Общий режим [07:08:06]line Чек 26 23.10.2024 07:08 [07:08:06]line Смена: 537 ФФД: 1.0 [07:08:06]line ЗНМ: 0300000104 [07:08:06]line РНМ: 0000000000091764 [07:08:06]line Версия ККМ: 001 [07:08:06]line ФМ: 0000000000871759 [07:08:06]line ФД: 166611 [07:08:06]line ФПД: 63009046647780 [07:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070808&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166611&fm=63009046647780&tin=02508201610067®Number=0000000000091764&sum=80000 [07:08:06]Connected sock=11 [07:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 AF 07 01 96 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D8 A0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8A 02 00 35 04 06 00 39 4E 6F D7 D3 E4 37 94 AC CC 5C 3F B2 C0 [07:08:06]written 0, free lines is 4095 [07:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 66 47 00 A3 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8A 02 00 F4 03 04 00 40 47 18 67 B6 04 01 00 00 42 3C EA 6B 47 A0 81 18 [07:08:06]CommunicateWithHost err = 0 [07:08:06]CheckOFDResponse [07:08:06]1017 (14) - 77093643461234 [07:08:06]1041 (16) - 0000000000871759 [07:08:06]1040 (4) - 166611 [07:08:06]1012 (4) - 23.10.2024 00:45 [07:08:06]1206 (1) - 0 [07:08:06]OFD Sender: Remove packet 166611 [07:08:06]ProducePacketName [07:08:06]name=ofd_packets/00166611 [07:08:06]NVStorageDeleteData [07:08:07]Write to MH i2c: 01 00 00 F6 25 1B [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 07 00 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 07 00 F6 25 00 00 00 00 00 B7 0C E5 [07:08:07]RasterBufferAndPrint [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]written 0, free lines is 3263 [07:08:07]MH_Cut [07:08:07]Write to MH i2c: D1 01 00 FD 25 01 F4 [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 01 00 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 01 00 FD 25 00 F3 [07:08:07]Write to MH i2c: 01 00 00 FE 25 23 [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]OFD Sender: No OFD packet to send [07:08:08]*** Cut start [07:08:08]*** Partial cut [07:08:08]*** CUTSNS_PIN = 1 [07:08:08]*** CUTSNS_PIN = 0 [07:08:08]*** Brake cut motor [07:08:08]Read from MH i2c: 01 [07:08:08]MH_I2C_Read... [07:08:08]*** Stop cut motor [07:08:08]*** Cut end [07:08:08]Read from MH i2c: 01 07 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: 01 07 00 FE 25 00 00 00 00 00 FF 0F 38 [07:08:08]process_action close_receipt done [07:08:08]requested_data is exist [07:08:08]produce_requested_data [07:08:08]requested_item fm.sn is exist - process it [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 11 00 00 [07:08:08]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [07:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:08:08]wFMCommunicate OK [07:08:08]requested_item fd.num is exist - process it [07:08:08]SAM_PROTO_GetFieldsCounters [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 00 00 [07:08:08]Write to MH i2c: E2 08 00 00 26 80 13 00 00 00 00 00 00 A2 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 00 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [07:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetFieldsCounters done [07:08:08]requested_item shift.num is exist - process it [07:08:08]requested_item shift.opened is exist - process it [07:08:08]req_shift_opened [07:08:08]FM_GetShiftState [07:08:08]SAM_PROTO_GetShiftState [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 01 00 [07:08:08]Write to MH i2c: E2 08 00 01 26 80 13 01 00 00 00 00 00 A4 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 01 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6F [07:08:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [07:08:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetShiftState done [07:08:08]FM_GetShiftState done [07:08:08]req_shift_opened done [07:08:08]requested_item shift.open_date is exist - process it [07:08:08]req_shift_open_date [07:08:08]req_shift_open_date done [07:08:08]produce_requested_data done [07:08:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166611,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [07:08:08]process_action_free close_receipt [07:08:08]json_value_free [07:08:08]json_value_free done [07:08:08]process_json_proto returns [07:08:08]Send response to host [07:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166611,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [07:08:08]free response buf [07:08:08]execute_script done [07:08:08]execute_script returns [07:08:08]free content buf [07:08:08]Sock 7.Close socket [07:08:08]Sock 7.Thread stoped [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16: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:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]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:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:50]accept exits with 9 [07:34:50]New connection [07:34:50]New thread 3067489636 created [07:34:50]Thread 3067632996 joined [07:34:50]Waiting for new connection... [07:34:50] Sock 9.Parse request [07:34:50]Sock 9.Check first char [07:34:50]Sock 9.First char is OK [07:34:50]request: POST /json_proto HTTP/1.0 [07:34:50]Method: POST [07:34:50]URL: /json_proto [07:34:50]Method is POST - this is cgi request [07:34:50]url: /json_proto [07:34:50]query_string will be loaded in cgi processing [07:34:50]execute_cgi json_proto POST (null) [07:34:50]execute_cgi path=json_proto method=POST [07:34:50]POST find Content-Length [07:34:50]Host: 172.17.53.195:8080 [07:34:50]Content-Length: 677 [07:34:50]Content-Type: application/json [07:34:50] [07:34:50]POST finish read [07:34:50]Found Content-Length = 677 [07:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:50]execute_script... [07:34: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)221193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:50]POST & json_proto [07:34:50]process_json_proto [07:34:50]json parsed OK: [07:34:50]protocol is kg_v1.0 [07:34:50]action value=close_receipt [07:34:50]process_action close_receipt [07:34:50]cmd_close_receipt [07:34:50]MH_GetDate [07:34:50]Write to MH i2c: F0 00 00 02 26 17 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: F0 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: F0 09 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: F0 09 00 02 26 00 1E A7 18 67 21 48 4A 65 7C [07:34:50]GetLastDocTimeStamp 1729667288 [07:34:50]current date 1729668894 [07:34:50]FM_GetShiftState [07:34:50]SAM_PROTO_GetShiftState [07:34:50]wFMCommunicate request_size=4 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 13 01 00 [07:34:50]Write to MH i2c: E2 08 00 03 26 80 13 01 00 00 00 00 00 A6 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 0E 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 0E 00 03 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 71 [07:34:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [07:34:50]wFMCommunicate OK [07:34:50]SAM_PROTO_GetShiftState done [07:34:50]FM_GetShiftState done [07:34:50]opened in 1729643772 [07:34:50]opened+sec_in_day 1729730172 [07:34:50]quantity*price = 50041 [07:34:50]sum+1 = 50042 [07:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 27 23.10.2024 07:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166612 ФПД: 108834814962037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166612&fm=108834814962037&tin=02508201610067®Number=0000000000091764&sum=50000 [07:34:51]StoreToDocumentArchive [07:34:51]shift 537 fd 166612 [07:34:51]save to /storage/0537/doc_00166612 [07:34:51]save last doc name /storage/0537/doc_00166612 to /storage/kkm_last_doc_name [07:34:51]save OK [07:34:51]Clear old archive folders... [07:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:51]tlvbuf is 0125C300 [07:34:51]SAM_PROTO_ClearQueue [07:34:51]wFMCommunicate request_size=4 [07:34:51]MH_SAM_APDU [07:34:51]CAPDU: 80 09 00 00 [07:34:51]Write to MH i2c: E2 08 00 10 26 80 09 00 00 00 00 00 00 A8 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:51]Read from MH i2c: E2 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: E2 03 00 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [07:34:51]RAPDU: 90 00 [07:34:51]wFMCommunicate OK [07:34:51]SAM_PROTO_ClearQueue done [07:34:51]KKMCreateOFDPacket [07:34:51]OFDProtocolAddRootSTLVToBuf [07:34:51]FM_MakeSignedData [07:34:51]FM_MakeSignedData [07:34:51]SAM_PROTO_SignData [07:34:51]wFMCommunicate request_size=4 [07:34:51]MH_SAM_APDU [07:34:51]CAPDU: 80 0D 01 02 [07:34:51]Write to MH i2c: E2 08 00 11 26 80 0D 01 02 00 00 00 00 B0 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:51]Read from MH i2c: E2 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: E2 03 00 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: E2 03 00 11 26 00 90 00 AB [07:34:51]RAPDU: 90 00 [07:34:51]wFMCommunicate OK [07:34:51]wFMCommunicate request_size=255 [07:34:51]MH_SAM_APDU [07:34:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 1E A7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8A 02 00 35 04 06 00 62 [07:34:51]Write to MH i2c: E2 02 01 12 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1E A7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8A 02 00 35 04 06 00 62 00 00 82 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 03 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 03 00 12 26 00 90 00 AC [07:34:52]RAPDU: 90 00 [07:34:52]wFMCommunicate OK [07:34:52]wFMCommunicate request_size=10 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 0D 02 02 05 FC 14 7C 29 75 [07:34:52]Write to MH i2c: E2 0D 00 13 26 80 0D 02 02 05 00 FC 14 7C 29 75 00 00 E7 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 03 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [07:34:52]RAPDU: 90 00 [07:34:52]wFMCommunicate OK [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 0D 03 02 [07:34:52]Write to MH i2c: E2 08 00 14 26 80 0D 03 02 00 00 00 00 B5 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 0B 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 0B 00 14 26 00 02 79 3D 41 46 88 8A 0C 90 00 13 [07:34:52]RAPDU: 02 79 3D 41 46 88 8A 0C 90 00 [07:34:52]wFMCommunicate OK [07:34:52]SAM_PROTO_SignData done [07:34:52]FM_MakeSignedData done [07:34:52]CreateOFDProtocolMessage [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 11 00 00 [07:34:52]Write to MH i2c: E2 08 00 15 26 80 11 00 00 00 00 00 00 B5 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 15 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [07:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:34:52]wFMCommunicate OK [07:34:52]CreateOFDProtocolMessage done [07:34:52]OFDSenderStorePacket 166612 [07:34:52]StoreOFDPacket docnum=166612 [07:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 BC 07 01 89 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1E A7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8A 02 00 35 04 06 00 62 FC 14 7C 29 75 02 79 3D 41 46 88 8A 0C [07:34:52]CheckFolder [07:34:52]dirname=/storage/ofd_packets [07:34:52]CheckFolder done [07:34:52]ProducePacketName [07:34:52]name=ofd_packets/00166612 [07:34:52]NVStorageSaveData ofd_packets/00166612 [07:34:52]File name is /storage/ofd_packets/00166612 [07:34:52]Write 301 bytes [07:34:52]NVStorageSaveData done [07:34:52]OFDSenderStorePacket done [07:34:52]KKMCreateOFDPacket done [07:34:52]NVStorageSaveData kkm_last_timestamp [07:34:52]File name is /storage/kkm_last_timestamp [07:34:52]Write 4 bytes [07:34:52]NVStorageSaveData done [07:34:52]ExternCall_PrintAddStr [07:34:52]wPrintStart [07:34:52]Write to MH i2c: 01 00 00 16 26 3C [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 16 26 00 00 00 00 00 FF 0F 51 [07:34:52]RasterBufferAndPrint [07:34:52]line Счет N : (1)221193 [07:34:52]line ИНН: 02508201610067 [07:34:52]line Контрольно-Кассовый Чек [07:34:52]line ПРОДАЖА [07:34:52]line ТРК (МРК, ГНК) : 33 [07:34:52]line Товар: 2710124130 [07:34:52]line Аи-92-К-5 [07:34:52]line 7.480 * 66.90 [07:34:52]line = 500.41 [07:34:52]line НДС 12% НСП 1% [07:34:52]line > о реализуемом товаре [07:34:52]line ОКРУГЛЕНИЕ: -0.41 [07:34:52]line ИТОГО: 500.00 [07:34:52]line Внесено: 500.00 [07:34:52]line СДАЧА: 0.00 [07:34:52]line НСП 1% : 4.43 [07:34:52]line НДС 12% : 53.14 [07:34:52]line Наличными: 500.00 [07:34:52]line Безнал.: 0.00 [07:34:52]line Место: АЗС № 161 "Партнер Нефть" [07:34:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:34:52]line СНО: Общий режим [07:34:52]line Чек 27 23.10.2024 07:34 [07:34:52]line Смена: 537 ФФД: 1.0 [07:34:52]line ЗНМ: 0300000104 [07:34:52]line РНМ: 0000000000091764 [07:34:52]line Версия ККМ: 001 [07:34:52]line ФМ: 0000000000871759 [07:34:52]line ФД: 166612 [07:34:52]line ФПД: 108834814962037 [07:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166612&fm=108834814962037&tin=02508201610067®Number=0000000000091764&sum=50000 [07:34:52]written 0, free lines is 4095 [07:34:52]OFD Sender: Processing packet 166612 [packets to send 48, broken 47] [07:34:52]ProducePacketName [07:34:52]name=ofd_packets/00166612 [07:34:52]OFD Sender: To server: pG, [07:34:52]CommunicateWithHost lk.salyk.kg:30040 [07:34:52]ConnectInit lk.salyk.kg [07:34:52]Connected sock=10 [07:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 BC 07 01 89 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1E A7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8A 02 00 35 04 06 00 62 FC 14 7C 29 75 02 79 3D 41 46 88 8A 0C [07:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A7 04 47 00 F5 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8A 02 00 F4 03 04 00 86 4D 18 67 B6 04 01 00 00 C2 20 A0 37 AE EF 3C AE [07:34:52]CommunicateWithHost err = 0 [07:34:52]CheckOFDResponse [07:34:52]1017 (14) - 77093643461234 [07:34:52]1041 (16) - 0000000000871759 [07:34:52]1040 (4) - 166612 [07:34:52]1012 (4) - 23.10.2024 01:12 [07:34:52]1206 (1) - 0 [07:34:52]OFD Sender: Remove packet 166612 [07:34:52]ProducePacketName [07:34:52]name=ofd_packets/00166612 [07:34:52]NVStorageDeleteData [07:34:52]Write to MH i2c: 01 00 00 41 26 67 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 41 26 00 00 00 00 00 B8 0C 32 [07:34:52]RasterBufferAndPrint [07:34:52]line [07:34:52]line [07:34:52]line [07:34:52]line [07:34:52]line [07:34:52]written 0, free lines is 3263 [07:34:52]MH_Cut [07:34:52]Write to MH i2c: D1 01 00 48 26 01 40 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: D1 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: D1 01 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: D1 01 00 48 26 00 3F [07:34:52]Write to MH i2c: 01 00 00 49 26 6F [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:53]OFD Sender: No OFD packet to send [07:34:53]*** Cut start [07:34:53]*** Partial cut [07:34:53]*** CUTSNS_PIN = 1 [07:34:53]*** CUTSNS_PIN = 0 [07:34:53]*** Brake cut motor [07:34:54]Read from MH i2c: 01 [07:34:54]MH_I2C_Read... [07:34:54]*** Stop cut motor [07:34:54]*** Cut end [07:34:54]Read from MH i2c: 01 07 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: 01 07 00 49 26 00 00 00 00 00 FF 0F 84 [07:34:54]process_action close_receipt done [07:34:54]requested_data is exist [07:34:54]produce_requested_data [07:34:54]requested_item fm.sn is exist - process it [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 11 00 00 [07:34:54]Write to MH i2c: E2 08 00 4A 26 80 11 00 00 00 00 00 00 EA [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:54]Read from MH i2c: E2 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 17 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 17 00 4A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [07:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:34:54]wFMCommunicate OK [07:34:54]requested_item fd.num is exist - process it [07:34:54]SAM_PROTO_GetFieldsCounters [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 13 00 00 [07:34:54]Write to MH i2c: E2 08 00 4B 26 80 13 00 00 00 00 00 00 ED [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:54]Read from MH i2c: E2 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 62 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 62 00 4B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [07:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:54]wFMCommunicate OK [07:34:54]SAM_PROTO_GetFieldsCounters done [07:34:54]requested_item shift.num is exist - process it [07:34:54]requested_item shift.opened is exist - process it [07:34:54]req_shift_opened [07:34:54]FM_GetShiftState [07:34:54]SAM_PROTO_GetShiftState [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 13 01 00 [07:34:54]Write to MH i2c: E2 08 00 4C 26 80 13 01 00 00 00 00 00 EF [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:54]Read from MH i2c: E2 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 4C 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BA [07:34:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [07:34:54]wFMCommunicate OK [07:34:54]SAM_PROTO_GetShiftState done [07:34:54]FM_GetShiftState done [07:34:54]req_shift_opened done [07:34:54]requested_item shift.open_date is exist - process it [07:34:54]req_shift_open_date [07:34:54]req_shift_open_date done [07:34:54]produce_requested_data done [07:34:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166612,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [07:34:54]process_action_free close_receipt [07:34:54]json_value_free [07:34:54]json_value_free done [07:34:54]process_json_proto returns [07:34:54]Send response to host [07:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166612,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [07:34:54]free response buf [07:34:54]execute_script done [07:34:54]execute_script returns [07:34:54]free content buf [07:34:54]Sock 9.Close socket [07:34:54]Sock 9.Thread stoped [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40: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:13]OFD Sender: No OFD packet to send [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:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59: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]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:19]accept exits with 7 [08:04:19]New connection [08:04:19]New thread 3067632996 created [08:04:19]Thread 3067489636 joined [08:04:19]Waiting for new connection... [08:04:19] Sock 7.Parse request [08:04:19]Sock 7.Check first char [08:04:19]Sock 7.First char is OK [08:04:19]request: POST /json_proto HTTP/1.0 [08:04:19]Method: POST [08:04:19]URL: /json_proto [08:04:19]Method is POST - this is cgi request [08:04:19]url: /json_proto [08:04:19]query_string will be loaded in cgi processing [08:04:19]execute_cgi json_proto POST (null) [08:04:19]execute_cgi path=json_proto method=POST [08:04:19]POST find Content-Length [08:04:19]Host: 172.17.53.195:8080 [08:04:19]Content-Length: 678 [08:04:19]Content-Type: application/json [08:04:19] [08:04:19]POST finish read [08:04:19]Found Content-Length = 678 [08:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:19]execute_script... [08:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:19]POST & json_proto [08:04:19]process_json_proto [08:04:19]json parsed OK: [08:04:19]protocol is kg_v1.0 [08:04:19]action value=close_receipt [08:04:19]process_action close_receipt [08:04:19]cmd_close_receipt [08:04:19]MH_GetDate [08:04:19]Write to MH i2c: F0 00 00 4D 26 62 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 09 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 09 00 4D 26 00 07 AE 18 67 21 48 4A 65 B7 [08:04:19]GetLastDocTimeStamp 1729668894 [08:04:19]current date 1729670663 [08:04:19]FM_GetShiftState [08:04:19]SAM_PROTO_GetShiftState [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 13 01 00 [08:04:19]Write to MH i2c: E2 08 00 4E 26 80 13 01 00 00 00 00 00 F1 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 4E 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [08:04:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:04:19]wFMCommunicate OK [08:04:19]SAM_PROTO_GetShiftState done [08:04:19]FM_GetShiftState done [08:04:19]opened in 1729643772 [08:04:19]opened+sec_in_day 1729730172 [08:04:19]quantity*price = 70044 [08:04:19]sum+1 = 70045 [08:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 28 23.10.2024 08:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166613 ФПД: 276902153186897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080423&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166613&fm=276902153186897&tin=02508201610067®Number=0000000000091764&sum=70000 [08:04:21]StoreToDocumentArchive [08:04:21]shift 537 fd 166613 [08:04:21]save to /storage/0537/doc_00166613 [08:04:21]save last doc name /storage/0537/doc_00166613 to /storage/kkm_last_doc_name [08:04:21]save OK [08:04:21]Clear old archive folders... [08:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:21]tlvbuf is B6F80670 [08:04:21]SAM_PROTO_ClearQueue [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 09 00 00 [08:04:21]Write to MH i2c: E2 08 00 5B 26 80 09 00 00 00 00 00 00 F3 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 5B 26 00 90 00 F5 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]SAM_PROTO_ClearQueue done [08:04:21]KKMCreateOFDPacket [08:04:21]OFDProtocolAddRootSTLVToBuf [08:04:21]FM_MakeSignedData [08:04:21]FM_MakeSignedData [08:04:21]SAM_PROTO_SignData [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 01 02 [08:04:21]Write to MH i2c: E2 08 00 5C 26 80 0D 01 02 00 00 00 00 FB [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=255 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 07 AE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8A 02 00 35 04 06 00 FB [08:04:21]Write to MH i2c: E2 02 01 5D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 07 AE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8A 02 00 35 04 06 00 FB 00 00 68 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=10 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 02 02 05 D7 4E 7A 6E 51 [08:04:21]Write to MH i2c: E2 0D 00 5E 26 80 0D 02 02 05 00 D7 4E 7A 6E 51 00 00 66 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 03 02 [08:04:21]Write to MH i2c: E2 08 00 5F 26 80 0D 03 02 00 00 00 00 00 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 0B 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 0B 00 5F 26 00 4F 08 27 46 F2 B6 20 8B 90 00 18 [08:04:21]RAPDU: 4F 08 27 46 F2 B6 20 8B 90 00 [08:04:21]wFMCommunicate OK [08:04:21]SAM_PROTO_SignData done [08:04:21]FM_MakeSignedData done [08:04:21]CreateOFDProtocolMessage [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 11 00 00 [08:04:21]Write to MH i2c: E2 08 00 60 26 80 11 00 00 00 00 00 00 00 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 17 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 17 00 60 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [08:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:21]wFMCommunicate OK [08:04:21]CreateOFDProtocolMessage done [08:04:21]OFDSenderStorePacket 166613 [08:04:21]StoreOFDPacket docnum=166613 [08:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 09 07 01 74 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 07 AE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8A 02 00 35 04 06 00 FB D7 4E 7A 6E 51 4F 08 27 46 F2 B6 20 8B [08:04:21]CheckFolder [08:04:21]dirname=/storage/ofd_packets [08:04:21]CheckFolder done [08:04:21]ProducePacketName [08:04:21]name=ofd_packets/00166613 [08:04:21]NVStorageSaveData ofd_packets/00166613 [08:04:21]File name is /storage/ofd_packets/00166613 [08:04:21]Write 301 bytes [08:04:21]NVStorageSaveData done [08:04:21]OFDSenderStorePacket done [08:04:21]KKMCreateOFDPacket done [08:04:21]NVStorageSaveData kkm_last_timestamp [08:04:21]File name is /storage/kkm_last_timestamp [08:04:21]Write 4 bytes [08:04:21]NVStorageSaveData done [08:04:21]ExternCall_PrintAddStr [08:04:21]wPrintStart [08:04:21]Write to MH i2c: 01 00 00 61 26 87 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 61 26 00 00 00 00 00 FF 0F 9C [08:04:21]RasterBufferAndPrint [08:04:21]line Счет N : (1)221194 [08:04:21]line ИНН: 02508201610067 [08:04:21]line Контрольно-Кассовый Чек [08:04:21]line ПРОДАЖА [08:04:21]line ТРК (МРК, ГНК) : 13 [08:04:21]line Товар: 2710124130 [08:04:21]line Аи-92-К-5 [08:04:21]line 10.470 * 66.90 [08:04:21]line = 700.44 [08:04:21]line НДС 12% НСП 1% [08:04:21]line > о реализуемом товаре [08:04:21]line ОКРУГЛЕНИЕ: -0.44 [08:04:21]line ИТОГО: 700.00 [08:04:21]line Внесено: 700.00 [08:04:21]line СДАЧА: 0.00 [08:04:21]line НСП 1% : 6.20 [08:04:21]line НДС 12% : 74.38 [08:04:21]line Наличными: 700.00 [08:04:21]line Безнал.: 0.00 [08:04:21]line Место: АЗС № 161 "Партнер Нефть" [08:04:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:04:21]line СНО: Общий режим [08:04:21]line Чек 28 23.10.2024 08:04 [08:04:21]line Смена: 537 ФФД: 1.0 [08:04:21]line ЗНМ: 0300000104 [08:04:21]line РНМ: 0000000000091764 [08:04:21]line Версия ККМ: 001 [08:04:21]line ФМ: 0000000000871759 [08:04:21]line ФД: 166613 [08:04:21]line ФПД: 276902153186897 [08:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080423&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166613&fm=276902153186897&tin=02508201610067®Number=0000000000091764&sum=70000 [08:04:21]OFD Sender: Processing packet 166613 [packets to send 48, broken 47] [08:04:21]ProducePacketName [08:04:21]name=ofd_packets/00166613 [08:04:21]OFD Sender: To server: pG, [08:04:21]CommunicateWithHost lk.salyk.kg:30040 [08:04:21]ConnectInit lk.salyk.kg [08:04:21]written 0, free lines is 4095 [08:04:21]Connected sock=10 [08:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 09 07 01 74 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 07 AE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8A 02 00 35 04 06 00 FB D7 4E 7A 6E 51 4F 08 27 46 F2 B6 20 8B [08:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D 25 47 00 0C 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8A 02 00 F4 03 04 00 70 54 18 67 B6 04 01 00 00 83 06 89 EB 14 E8 7E F9 [08:04:22]CommunicateWithHost err = 0 [08:04:22]CheckOFDResponse [08:04:22]1017 (14) - 77093643461234 [08:04:22]1041 (16) - 0000000000871759 [08:04:22]1040 (4) - 166613 [08:04:22]1012 (4) - 23.10.2024 01:42 [08:04:22]1206 (1) - 0 [08:04:22]OFD Sender: Remove packet 166613 [08:04:22]ProducePacketName [08:04:22]name=ofd_packets/00166613 [08:04:22]NVStorageDeleteData [08:04:22]Write to MH i2c: 01 00 00 8C 26 B2 [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 07 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 07 00 8C 26 00 00 00 00 00 A2 0C 67 [08:04:22]RasterBufferAndPrint [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]written 0, free lines is 3240 [08:04:22]MH_Cut [08:04:22]Write to MH i2c: D1 01 00 93 26 01 8B [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 01 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 01 00 93 26 00 8A [08:04:22]Write to MH i2c: 01 00 00 94 26 BA [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]OFD Sender: No OFD packet to send [08:04:23]*** Cut start [08:04:23]*** Partial cut [08:04:23]*** CUTSNS_PIN = 1 [08:04:23]*** CUTSNS_PIN = 0 [08:04:23]*** Brake cut motor [08:04:23]Read from MH i2c: 01 [08:04:23]MH_I2C_Read... [08:04:23]*** Stop cut motor [08:04:23]*** Cut end [08:04:23]Read from MH i2c: 01 07 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [08:04:23]process_action close_receipt done [08:04:23]requested_data is exist [08:04:23]produce_requested_data [08:04:23]requested_item fm.sn is exist - process it [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 11 00 00 [08:04:23]Write to MH i2c: E2 08 00 95 26 80 11 00 00 00 00 00 00 35 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 17 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 17 00 95 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [08:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:23]wFMCommunicate OK [08:04:23]requested_item fd.num is exist - process it [08:04:23]SAM_PROTO_GetFieldsCounters [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 13 00 00 [08:04:23]Write to MH i2c: E2 08 00 96 26 80 13 00 00 00 00 00 00 38 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:24]Read from MH i2c: E2 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 62 00 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 62 00 96 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [08:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:24]wFMCommunicate OK [08:04:24]SAM_PROTO_GetFieldsCounters done [08:04:24]requested_item shift.num is exist - process it [08:04:24]requested_item shift.opened is exist - process it [08:04:24]req_shift_opened [08:04:24]FM_GetShiftState [08:04:24]SAM_PROTO_GetShiftState [08:04:24]wFMCommunicate request_size=4 [08:04:24]MH_SAM_APDU [08:04:24]CAPDU: 80 13 01 00 [08:04:24]Write to MH i2c: E2 08 00 97 26 80 13 01 00 00 00 00 00 3A [08:04:24]Write i2c OK [08:04:24]MH_I2C_Read... [08:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:24]Read from MH i2c: E2 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 0E 00 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 0E 00 97 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [08:04:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:04:24]wFMCommunicate OK [08:04:24]SAM_PROTO_GetShiftState done [08:04:24]FM_GetShiftState done [08:04:24]req_shift_opened done [08:04:24]requested_item shift.open_date is exist - process it [08:04:24]req_shift_open_date [08:04:24]req_shift_open_date done [08:04:24]produce_requested_data done [08:04:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166613,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:04:24]process_action_free close_receipt [08:04:24]json_value_free [08:04:24]json_value_free done [08:04:24]process_json_proto returns [08:04:24]Send response to host [08:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166613,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:04:24]free response buf [08:04:24]execute_script done [08:04:24]execute_script returns [08:04:24]free content buf [08:04:24]Sock 7.Close socket [08:04:24]Sock 7.Thread stoped [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]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:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:53]accept exits with 9 [08:16:53]New connection [08:16:53]New thread 3067489636 created [08:16:53]Thread 3067632996 joined [08:16:53]Waiting for new connection... [08:16:53] Sock 9.Parse request [08:16:53]Sock 9.Check first char [08:16:53]Sock 9.First char is OK [08:16:53]request: POST /json_proto HTTP/1.0 [08:16:53]Method: POST [08:16:53]URL: /json_proto [08:16:53]Method is POST - this is cgi request [08:16:53]url: /json_proto [08:16:53]query_string will be loaded in cgi processing [08:16:53]execute_cgi json_proto POST (null) [08:16:53]execute_cgi path=json_proto method=POST [08:16:53]POST find Content-Length [08:16:53]Host: 172.17.53.195:8080 [08:16:53]Content-Length: 677 [08:16:53]Content-Type: application/json [08:16:53] [08:16:53]POST finish read [08:16:53]Found Content-Length = 677 [08:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:53]execute_script... [08:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:53]POST & json_proto [08:16:53]process_json_proto [08:16:53]json parsed OK: [08:16:53]protocol is kg_v1.0 [08:16:53]action value=close_receipt [08:16:53]process_action close_receipt [08:16:53]cmd_close_receipt [08:16:53]MH_GetDate [08:16:53]Write to MH i2c: F0 00 00 98 26 AD [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: F0 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: F0 09 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: F0 09 00 98 26 00 F9 B0 18 67 21 48 4A 65 F6 [08:16:53]GetLastDocTimeStamp 1729670663 [08:16:53]current date 1729671417 [08:16:53]FM_GetShiftState [08:16:53]SAM_PROTO_GetShiftState [08:16:53]wFMCommunicate request_size=4 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 13 01 00 [08:16:53]Write to MH i2c: E2 08 00 99 26 80 13 01 00 00 00 00 00 3C [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 99 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 07 [08:16:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_GetShiftState done [08:16:53]FM_GetShiftState done [08:16:53]opened in 1729643772 [08:16:53]opened+sec_in_day 1729730172 [08:16:53]quantity*price = 50041 [08:16:53]sum+1 = 50042 [08:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 29 23.10.2024 08:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166614 ФПД: 215020232089236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081657&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166614&fm=215020232089236&tin=02508201610067®Number=0000000000091764&sum=50000 [08:16:54]StoreToDocumentArchive [08:16:54]shift 537 fd 166614 [08:16:54]save to /storage/0537/doc_00166614 [08:16:54]save last doc name /storage/0537/doc_00166614 to /storage/kkm_last_doc_name [08:16:54]save OK [08:16:54]Clear old archive folders... [08:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:54]tlvbuf is 0129AFD0 [08:16:54]SAM_PROTO_ClearQueue [08:16:54]wFMCommunicate request_size=4 [08:16:54]MH_SAM_APDU [08:16:54]CAPDU: 80 09 00 00 [08:16:54]Write to MH i2c: E2 08 00 A6 26 80 09 00 00 00 00 00 00 3E [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:54]Read from MH i2c: E2 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: E2 03 00 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [08:16:54]RAPDU: 90 00 [08:16:54]wFMCommunicate OK [08:16:54]SAM_PROTO_ClearQueue done [08:16:54]KKMCreateOFDPacket [08:16:54]OFDProtocolAddRootSTLVToBuf [08:16:54]FM_MakeSignedData [08:16:54]FM_MakeSignedData [08:16:54]SAM_PROTO_SignData [08:16:54]wFMCommunicate request_size=4 [08:16:54]MH_SAM_APDU [08:16:54]CAPDU: 80 0D 01 02 [08:16:54]Write to MH i2c: E2 08 00 A7 26 80 0D 01 02 00 00 00 00 46 [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:54]Read from MH i2c: E2 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: E2 03 00 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [08:16:54]RAPDU: 90 00 [08:16:54]wFMCommunicate OK [08:16:54]wFMCommunicate request_size=255 [08:16:54]MH_SAM_APDU [08:16:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8A 02 00 35 04 06 00 C3 [08:16:54]Write to MH i2c: E2 02 01 A8 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8A 02 00 35 04 06 00 C3 00 00 61 [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:55]Read from MH i2c: E2 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 03 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [08:16:55]RAPDU: 90 00 [08:16:55]wFMCommunicate OK [08:16:55]wFMCommunicate request_size=10 [08:16:55]MH_SAM_APDU [08:16:55]CAPDU: 80 0D 02 02 05 8F 4C 8D 9E 94 [08:16:55]Write to MH i2c: E2 0D 00 A9 26 80 0D 02 02 05 00 8F 4C 8D 9E 94 00 00 ED [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:55]Read from MH i2c: E2 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 03 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [08:16:55]RAPDU: 90 00 [08:16:55]wFMCommunicate OK [08:16:55]wFMCommunicate request_size=4 [08:16:55]MH_SAM_APDU [08:16:55]CAPDU: 80 0D 03 02 [08:16:55]Write to MH i2c: E2 08 00 AA 26 80 0D 03 02 00 00 00 00 4B [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:55]Read from MH i2c: E2 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 0B 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 0B 00 AA 26 00 B3 30 E7 DD B6 67 17 E5 90 00 0C [08:16:55]RAPDU: B3 30 E7 DD B6 67 17 E5 90 00 [08:16:55]wFMCommunicate OK [08:16:55]SAM_PROTO_SignData done [08:16:55]FM_MakeSignedData done [08:16:55]CreateOFDProtocolMessage [08:16:55]wFMCommunicate request_size=4 [08:16:55]MH_SAM_APDU [08:16:55]CAPDU: 80 11 00 00 [08:16:55]Write to MH i2c: E2 08 00 AB 26 80 11 00 00 00 00 00 00 4B [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:55]Read from MH i2c: E2 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 17 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: E2 17 00 AB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [08:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:16:55]wFMCommunicate OK [08:16:55]CreateOFDProtocolMessage done [08:16:55]OFDSenderStorePacket 166614 [08:16:55]StoreOFDPacket docnum=166614 [08:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8A 02 00 35 04 06 00 C3 8F 4C 8D 9E 94 B3 30 E7 DD B6 67 17 E5 [08:16:55]CheckFolder [08:16:55]dirname=/storage/ofd_packets [08:16:55]CheckFolder done [08:16:55]ProducePacketName [08:16:55]name=ofd_packets/00166614 [08:16:55]NVStorageSaveData ofd_packets/00166614 [08:16:55]File name is /storage/ofd_packets/00166614 [08:16:55]Write 301 bytes [08:16:55]NVStorageSaveData done [08:16:55]OFDSenderStorePacket done [08:16:55]KKMCreateOFDPacket done [08:16:55]NVStorageSaveData kkm_last_timestamp [08:16:55]File name is /storage/kkm_last_timestamp [08:16:55]Write 4 bytes [08:16:55]NVStorageSaveData done [08:16:55]ExternCall_PrintAddStr [08:16:55]wPrintStart [08:16:55]Write to MH i2c: 01 00 00 AC 26 D2 [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 07 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 07 00 AC 26 00 00 00 00 00 FF 0F E7 [08:16:55]RasterBufferAndPrint [08:16:55]line Счет N : (1)221195 [08:16:55]line ИНН: 02508201610067 [08:16:55]line Контрольно-Кассовый Чек [08:16:55]line ПРОДАЖА [08:16:55]line ТРК (МРК, ГНК) : 33 [08:16:55]line Товар: 2710124130 [08:16:55]line Аи-92-К-5 [08:16:55]line 7.480 * 66.90 [08:16:55]line = 500.41 [08:16:55]line НДС 12% НСП 1% [08:16:55]line > о реализуемом товаре [08:16:55]line ОКРУГЛЕНИЕ: -0.41 [08:16:55]line ИТОГО: 500.00 [08:16:55]line Внесено: 500.00 [08:16:55]line СДАЧА: 0.00 [08:16:55]line НСП 1% : 4.43 [08:16:55]line НДС 12% : 53.14 [08:16:55]line Наличными: 500.00 [08:16:55]line Безнал.: 0.00 [08:16:55]line Место: АЗС № 161 "Партнер Нефть" [08:16:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:16:55]line СНО: Общий режим [08:16:55]line Чек 29 23.10.2024 08:16 [08:16:55]line Смена: 537 ФФД: 1.0 [08:16:55]line ЗНМ: 0300000104 [08:16:55]line РНМ: 0000000000091764 [08:16:55]line Версия ККМ: 001 [08:16:55]line ФМ: 0000000000871759 [08:16:55]line ФД: 166614 [08:16:55]line ФПД: 215020232089236 [08:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081657&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166614&fm=215020232089236&tin=02508201610067®Number=0000000000091764&sum=50000 [08:16:55]OFD Sender: Processing packet 166614 [packets to send 48, broken 47] [08:16:55]ProducePacketName [08:16:55]name=ofd_packets/00166614 [08:16:55]OFD Sender: To server: pG, [08:16:55]CommunicateWithHost lk.salyk.kg:30040 [08:16:55]ConnectInit lk.salyk.kg [08:16:55]written 0, free lines is 4095 [08:16:55]Connected sock=11 [08:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 B0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8A 02 00 35 04 06 00 C3 8F 4C 8D 9E 94 B3 30 E7 DD B6 67 17 E5 [08:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B A1 47 00 2B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8A 02 00 F4 03 04 00 61 57 18 67 B6 04 01 00 00 AA 54 22 66 86 15 C0 AA [08:16:55]CommunicateWithHost err = 0 [08:16:55]CheckOFDResponse [08:16:55]1017 (14) - 77093643461234 [08:16:55]1041 (16) - 0000000000871759 [08:16:55]1040 (4) - 166614 [08:16:55]1012 (4) - 23.10.2024 01:54 [08:16:55]1206 (1) - 0 [08:16:55]OFD Sender: Remove packet 166614 [08:16:55]ProducePacketName [08:16:55]name=ofd_packets/00166614 [08:16:55]NVStorageDeleteData [08:16:55]Write to MH i2c: 01 00 00 D7 26 FD [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 07 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: 01 07 00 D7 26 00 00 00 00 00 B4 0C C4 [08:16:55]RasterBufferAndPrint [08:16:55]line [08:16:55]line [08:16:55]line [08:16:55]line [08:16:55]line [08:16:55]written 0, free lines is 3258 [08:16:55]MH_Cut [08:16:55]Write to MH i2c: D1 01 00 DE 26 01 D6 [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: D1 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: D1 01 00 [08:16:55]MH_I2C_Read... [08:16:55]Read from MH i2c: D1 01 00 DE 26 00 D5 [08:16:55]Write to MH i2c: 01 00 00 DF 26 05 [08:16:55]Write i2c OK [08:16:55]MH_I2C_Read... [08:16:56]OFD Sender: No OFD packet to send [08:16:56]*** Cut start [08:16:56]*** Partial cut [08:16:56]*** CUTSNS_PIN = 1 [08:16:56]*** CUTSNS_PIN = 0 [08:16:57]*** Brake cut motor [08:16:57]Read from MH i2c: 01 [08:16:57]MH_I2C_Read... [08:16:57]*** Stop cut motor [08:16:57]*** Cut end [08:16:57]Read from MH i2c: 01 07 00 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [08:16:57]process_action close_receipt done [08:16:57]requested_data is exist [08:16:57]produce_requested_data [08:16:57]requested_item fm.sn is exist - process it [08:16:57]wFMCommunicate request_size=4 [08:16:57]MH_SAM_APDU [08:16:57]CAPDU: 80 11 00 00 [08:16:57]Write to MH i2c: E2 08 00 E0 26 80 11 00 00 00 00 00 00 80 [08:16:57]Write i2c OK [08:16:57]MH_I2C_Read... [08:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:57]Read from MH i2c: E2 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 17 00 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 17 00 E0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [08:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:16:57]wFMCommunicate OK [08:16:57]requested_item fd.num is exist - process it [08:16:57]SAM_PROTO_GetFieldsCounters [08:16:57]wFMCommunicate request_size=4 [08:16:57]MH_SAM_APDU [08:16:57]CAPDU: 80 13 00 00 [08:16:57]Write to MH i2c: E2 08 00 E1 26 80 13 00 00 00 00 00 00 83 [08:16:57]Write i2c OK [08:16:57]MH_I2C_Read... [08:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:57]Read from MH i2c: E2 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 62 00 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 62 00 E1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [08:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:57]wFMCommunicate OK [08:16:57]SAM_PROTO_GetFieldsCounters done [08:16:57]requested_item shift.num is exist - process it [08:16:57]requested_item shift.opened is exist - process it [08:16:57]req_shift_opened [08:16:57]FM_GetShiftState [08:16:57]SAM_PROTO_GetShiftState [08:16:57]wFMCommunicate request_size=4 [08:16:57]MH_SAM_APDU [08:16:57]CAPDU: 80 13 01 00 [08:16:57]Write to MH i2c: E2 08 00 E2 26 80 13 01 00 00 00 00 00 85 [08:16:57]Write i2c OK [08:16:57]MH_I2C_Read... [08:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:57]Read from MH i2c: E2 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 0E 00 [08:16:57]MH_I2C_Read... [08:16:57]Read from MH i2c: E2 0E 00 E2 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 50 [08:16:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:16:57]wFMCommunicate OK [08:16:57]SAM_PROTO_GetShiftState done [08:16:57]FM_GetShiftState done [08:16:57]req_shift_opened done [08:16:57]requested_item shift.open_date is exist - process it [08:16:57]req_shift_open_date [08:16:57]req_shift_open_date done [08:16:57]produce_requested_data done [08:16:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166614,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:16:57]process_action_free close_receipt [08:16:57]json_value_free [08:16:57]json_value_free done [08:16:57]process_json_proto returns [08:16:57]Send response to host [08:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166614,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:16:57]free response buf [08:16:57]execute_script done [08:16:57]execute_script returns [08:16:57]free content buf [08:16:57]Sock 9.Close socket [08:16:57]Sock 9.Thread stoped [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:17:58]accept exits with 7 [08:17:58]New connection [08:17:58]New thread 3067632996 created [08:17:58]Thread 3067489636 joined [08:17:58]Waiting for new connection... [08:17:58] Sock 7.Parse request [08:17:58]Sock 7.Check first char [08:17:58]Sock 7.First char is OK [08:17:58]request: POST /json_proto HTTP/1.0 [08:17:58]Method: POST [08:17:58]URL: /json_proto [08:17:58]Method is POST - this is cgi request [08:17:58]url: /json_proto [08:17:58]query_string will be loaded in cgi processing [08:17:58]execute_cgi json_proto POST (null) [08:17:58]execute_cgi path=json_proto method=POST [08:17:58]POST find Content-Length [08:17:58]Host: 172.17.53.195:8080 [08:17:58]Content-Length: 682 [08:17:58]Content-Type: application/json [08:17:58] [08:17:58]POST finish read [08:17:58]Found Content-Length = 682 [08:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:58]execute_script... [08:17: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)221196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:58]POST & json_proto [08:17:58]process_json_proto [08:17:58]json parsed OK: [08:17:58]protocol is kg_v1.0 [08:17:58]action value=close_receipt [08:17:58]process_action close_receipt [08:17:58]cmd_close_receipt [08:17:58]MH_GetDate [08:17:58]Write to MH i2c: F0 00 00 E3 26 F8 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: F0 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: F0 09 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: F0 09 00 E3 26 00 3A B1 18 67 21 48 4A 65 83 [08:17:58]GetLastDocTimeStamp 1729671417 [08:17:58]current date 1729671482 [08:17:58]FM_GetShiftState [08:17:58]SAM_PROTO_GetShiftState [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 13 01 00 [08:17:58]Write to MH i2c: E2 08 00 E4 26 80 13 01 00 00 00 00 00 87 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0E 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0E 00 E4 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 52 [08:17:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:17:58]wFMCommunicate OK [08:17:58]SAM_PROTO_GetShiftState done [08:17:58]FM_GetShiftState done [08:17:58]opened in 1729643772 [08:17:58]opened+sec_in_day 1729730172 [08:17:58]quantity*price = 100015 [08:17:58]sum+1 = 100017 [08:17: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 30 23.10.2024 08:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166615 ФПД: 84293380374662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081802&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166615&fm=84293380374662&tin=02508201610067®Number=0000000000091764&sum=100000 [08:17:59]StoreToDocumentArchive [08:17:59]shift 537 fd 166615 [08:17:59]save to /storage/0537/doc_00166615 [08:17:59]save last doc name /storage/0537/doc_00166615 to /storage/kkm_last_doc_name [08:17:59]save OK [08:17:59]Clear old archive folders... [08:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:59]tlvbuf is 011F2FC0 [08:17:59]SAM_PROTO_ClearQueue [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 09 00 00 [08:17:59]Write to MH i2c: E2 08 00 F1 26 80 09 00 00 00 00 00 00 89 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [08:17:59]RAPDU: 90 00 [08:17:59]wFMCommunicate OK [08:17:59]SAM_PROTO_ClearQueue done [08:17:59]KKMCreateOFDPacket [08:17:59]OFDProtocolAddRootSTLVToBuf [08:17:59]FM_MakeSignedData [08:17:59]FM_MakeSignedData [08:17:59]SAM_PROTO_SignData [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 0D 01 02 [08:17:59]Write to MH i2c: E2 08 00 F2 26 80 0D 01 02 00 00 00 00 91 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [08:17:59]RAPDU: 90 00 [08:17:59]wFMCommunicate OK [08:17:59]wFMCommunicate request_size=255 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3A B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8A 02 00 35 04 06 00 4C [08:17:59]Write to MH i2c: E2 02 01 F3 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3A B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8A 02 00 35 04 06 00 4C 00 00 73 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [08:17:59]RAPDU: 90 00 [08:17:59]wFMCommunicate OK [08:17:59]wFMCommunicate request_size=10 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 0D 02 02 05 AA 14 FE 80 86 [08:17:59]Write to MH i2c: E2 0D 00 F4 26 80 0D 02 02 05 00 AA 14 FE 80 86 00 00 60 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [08:17:59]RAPDU: 90 00 [08:17:59]wFMCommunicate OK [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 0D 03 02 [08:17:59]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 0B 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 0B 00 F5 26 00 57 3C AE 57 E4 CA 06 26 90 00 09 [08:17:59]RAPDU: 57 3C AE 57 E4 CA 06 26 90 00 [08:17:59]wFMCommunicate OK [08:17:59]SAM_PROTO_SignData done [08:17:59]FM_MakeSignedData done [08:17:59]CreateOFDProtocolMessage [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 11 00 00 [08:17:59]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 17 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [08:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:17:59]wFMCommunicate OK [08:17:59]CreateOFDProtocolMessage done [08:17:59]OFDSenderStorePacket 166615 [08:17:59]StoreOFDPacket docnum=166615 [08:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 65 07 01 06 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3A B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8A 02 00 35 04 06 00 4C AA 14 FE 80 86 57 3C AE 57 E4 CA 06 26 [08:17:59]CheckFolder [08:17:59]dirname=/storage/ofd_packets [08:17:59]CheckFolder done [08:17:59]ProducePacketName [08:17:59]name=ofd_packets/00166615 [08:17:59]NVStorageSaveData ofd_packets/00166615 [08:17:59]File name is /storage/ofd_packets/00166615 [08:17:59]Write 301 bytes [08:17:59]NVStorageSaveData done [08:17:59]OFDSenderStorePacket done [08:17:59]KKMCreateOFDPacket done [08:17:59]NVStorageSaveData kkm_last_timestamp [08:17:59]File name is /storage/kkm_last_timestamp [08:17:59]Write 4 bytes [08:17:59]NVStorageSaveData done [08:17:59]ExternCall_PrintAddStr [08:17:59]wPrintStart [08:17:59]Write to MH i2c: 01 00 00 F7 26 1D [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 07 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [08:17:59]RasterBufferAndPrint [08:17:59]line Счет N : (1)221196 [08:17:59]line ИНН: 02508201610067 [08:17:59]line Контрольно-Кассовый Чек [08:17:59]line ПРОДАЖА [08:17:59]line ТРК (МРК, ГНК) : 23 [08:17:59]line Товар: 2710124130 [08:17:59]line Аи-92-К-5 [08:17:59]line 14.950 * 66.90 [08:17:59]line = 1000.16 [08:17:59]line НДС 12% НСП 1% [08:17:59]line > о реализуемом товаре [08:17:59]line ОКРУГЛЕНИЕ: -0.16 [08:17:59]line ИТОГО: 1000.00 [08:17:59]line Внесено: 1000.00 [08:17:59]line СДАЧА: 0.00 [08:17:59]line НСП 1% : 8.85 [08:17:59]line НДС 12% : 106.21 [08:17:59]line Наличными: 1000.00 [08:17:59]line Безнал.: 0.00 [08:17:59]line Место: АЗС № 161 "Партнер Нефть" [08:17:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:17:59]line СНО: Общий режим [08:17:59]line Чек 30 23.10.2024 08:18 [08:17:59]line Смена: 537 ФФД: 1.0 [08:17:59]line ЗНМ: 0300000104 [08:17:59]line РНМ: 0000000000091764 [08:17:59]line Версия ККМ: 001 [08:17:59]line ФМ: 0000000000871759 [08:17:59]line ФД: 166615 [08:17:59]line ФПД: 84293380374662 [08:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081802&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166615&fm=84293380374662&tin=02508201610067®Number=0000000000091764&sum=100000 [08:18:00]OFD Sender: Processing packet 166615 [packets to send 48, broken 47] [08:18:00]ProducePacketName [08:18:00]name=ofd_packets/00166615 [08:18:00]OFD Sender: To server: pG, [08:18:00]CommunicateWithHost lk.salyk.kg:30040 [08:18:00]ConnectInit lk.salyk.kg [08:18:00]written 0, free lines is 4095 [08:18:00]Connected sock=10 [08:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 65 07 01 06 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3A B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8A 02 00 35 04 06 00 4C AA 14 FE 80 86 57 3C AE 57 E4 CA 06 26 [08:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 87 47 00 22 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8A 02 00 F4 03 04 00 A2 57 18 67 B6 04 01 00 00 B5 C0 6A F3 F8 38 B4 4B [08:18:00]CommunicateWithHost err = 0 [08:18:00]CheckOFDResponse [08:18:00]1017 (14) - 77093643461234 [08:18:00]1041 (16) - 0000000000871759 [08:18:00]1040 (4) - 166615 [08:18:00]1012 (4) - 23.10.2024 01:55 [08:18:00]1206 (1) - 0 [08:18:00]OFD Sender: Remove packet 166615 [08:18:00]ProducePacketName [08:18:00]name=ofd_packets/00166615 [08:18:00]NVStorageDeleteData [08:18:00]Write to MH i2c: 01 00 00 22 27 49 [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: 01 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: 01 07 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: 01 07 00 22 27 00 00 00 00 00 B6 0C 12 [08:18:00]RasterBufferAndPrint [08:18:00]line [08:18:00]line [08:18:00]line [08:18:00]line [08:18:00]line [08:18:00]written 0, free lines is 3259 [08:18:00]MH_Cut [08:18:00]Write to MH i2c: D1 01 00 29 27 01 22 [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: D1 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: D1 01 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: D1 01 00 29 27 00 21 [08:18:00]Write to MH i2c: 01 00 00 2A 27 51 [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]OFD Sender: No OFD packet to send [08:18:01]*** Cut start [08:18:01]*** Partial cut [08:18:01]*** CUTSNS_PIN = 1 [08:18:01]*** CUTSNS_PIN = 0 [08:18:01]*** Brake cut motor [08:18:02]Read from MH i2c: 01 [08:18:02]MH_I2C_Read... [08:18:02]*** Stop cut motor [08:18:02]*** Cut end [08:18:02]Read from MH i2c: 01 07 00 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 FF 0F 66 [08:18:02]process_action close_receipt done [08:18:02]requested_data is exist [08:18:02]produce_requested_data [08:18:02]requested_item fm.sn is exist - process it [08:18:02]wFMCommunicate request_size=4 [08:18:02]MH_SAM_APDU [08:18:02]CAPDU: 80 11 00 00 [08:18:02]Write to MH i2c: E2 08 00 2B 27 80 11 00 00 00 00 00 00 CC [08:18:02]Write i2c OK [08:18:02]MH_I2C_Read... [08:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:02]Read from MH i2c: E2 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 17 00 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 17 00 2B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [08:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:18:02]wFMCommunicate OK [08:18:02]requested_item fd.num is exist - process it [08:18:02]SAM_PROTO_GetFieldsCounters [08:18:02]wFMCommunicate request_size=4 [08:18:02]MH_SAM_APDU [08:18:02]CAPDU: 80 13 00 00 [08:18:02]Write to MH i2c: E2 08 00 2C 27 80 13 00 00 00 00 00 00 CF [08:18:02]Write i2c OK [08:18:02]MH_I2C_Read... [08:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:02]Read from MH i2c: E2 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 62 00 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 62 00 2C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [08:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:02]wFMCommunicate OK [08:18:02]SAM_PROTO_GetFieldsCounters done [08:18:02]requested_item shift.num is exist - process it [08:18:02]requested_item shift.opened is exist - process it [08:18:02]req_shift_opened [08:18:02]FM_GetShiftState [08:18:02]SAM_PROTO_GetShiftState [08:18:02]wFMCommunicate request_size=4 [08:18:02]MH_SAM_APDU [08:18:02]CAPDU: 80 13 01 00 [08:18:02]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [08:18:02]Write i2c OK [08:18:02]MH_I2C_Read... [08:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:02]Read from MH i2c: E2 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 0E 00 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9C [08:18:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:18:02]wFMCommunicate OK [08:18:02]SAM_PROTO_GetShiftState done [08:18:02]FM_GetShiftState done [08:18:02]req_shift_opened done [08:18:02]requested_item shift.open_date is exist - process it [08:18:02]req_shift_open_date [08:18:02]req_shift_open_date done [08:18:02]produce_requested_data done [08:18:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166615,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:18:02]process_action_free close_receipt [08:18:02]json_value_free [08:18:02]json_value_free done [08:18:02]process_json_proto returns [08:18:02]Send response to host [08:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166615,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:18:02]free response buf [08:18:02]execute_script done [08:18:02]execute_script returns [08:18:02]free content buf [08:18:02]Sock 7.Close socket [08:18:02]Sock 7.Thread stoped [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19: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:07]accept exits with 9 [08:20:07]New connection [08:20:07]New thread 3067489636 created [08:20:07]Thread 3067632996 joined [08:20:07]Waiting for new connection... [08:20:07] Sock 9.Parse request [08:20:07]Sock 9.Check first char [08:20:07]Sock 9.First char is OK [08:20:07]request: POST /json_proto HTTP/1.0 [08:20:07]Method: POST [08:20:07]URL: /json_proto [08:20:07]Method is POST - this is cgi request [08:20:07]url: /json_proto [08:20:07]query_string will be loaded in cgi processing [08:20:07]execute_cgi json_proto POST (null) [08:20:07]execute_cgi path=json_proto method=POST [08:20:07]POST find Content-Length [08:20:07]Host: 172.17.53.195:8080 [08:20:07]Content-Length: 682 [08:20:07]Content-Type: application/json [08:20:07] [08:20:07]POST finish read [08:20:07]Found Content-Length = 682 [08:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:07]execute_script... [08:20: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)221197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:07]POST & json_proto [08:20:07]process_json_proto [08:20:07]json parsed OK: [08:20:07]protocol is kg_v1.0 [08:20:07]action value=close_receipt [08:20:07]process_action close_receipt [08:20:07]cmd_close_receipt [08:20:07]MH_GetDate [08:20:07]Write to MH i2c: F0 00 00 2E 27 44 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 2E 27 00 BB B1 18 67 21 48 4A 65 50 [08:20:07]GetLastDocTimeStamp 1729671482 [08:20:07]current date 1729671611 [08:20:07]FM_GetShiftState [08:20:07]SAM_PROTO_GetShiftState [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 13 01 00 [08:20:07]Write to MH i2c: E2 08 00 2F 27 80 13 01 00 00 00 00 00 D3 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 2F 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9E [08:20:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:20:07]wFMCommunicate OK [08:20:07]SAM_PROTO_GetShiftState done [08:20:07]FM_GetShiftState done [08:20:07]opened in 1729643772 [08:20:07]opened+sec_in_day 1729730172 [08:20:07]quantity*price = 150032 [08:20:07]sum+1 = 150033 [08:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 31 23.10.2024 08:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166616 ФПД: 148711976481392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166616&fm=148711976481392&tin=02508201610067®Number=0000000000091764&sum=150000 [08:20:08]StoreToDocumentArchive [08:20:08]shift 537 fd 166616 [08:20:08]save to /storage/0537/doc_00166616 [08:20:08]save last doc name /storage/0537/doc_00166616 to /storage/kkm_last_doc_name [08:20:08]save OK [08:20:08]Clear old archive folders... [08:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:08]tlvbuf is 0120B160 [08:20:08]SAM_PROTO_ClearQueue [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 09 00 00 [08:20:08]Write to MH i2c: E2 08 00 3C 27 80 09 00 00 00 00 00 00 D5 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_ClearQueue done [08:20:08]KKMCreateOFDPacket [08:20:08]OFDProtocolAddRootSTLVToBuf [08:20:08]FM_MakeSignedData [08:20:08]FM_MakeSignedData [08:20:08]SAM_PROTO_SignData [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 01 02 [08:20:08]Write to MH i2c: E2 08 00 3D 27 80 0D 01 02 00 00 00 00 DD [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=255 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BB B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8A 02 00 35 04 06 00 87 [08:20:08]Write to MH i2c: E2 02 01 3E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BB B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8A 02 00 35 04 06 00 87 00 00 E6 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=10 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 05 40 B4 88 32 70 [08:20:08]Write to MH i2c: E2 0D 00 3F 27 80 0D 02 02 05 00 40 B4 88 32 70 00 00 08 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 03 02 [08:20:08]Write to MH i2c: E2 08 00 40 27 80 0D 03 02 00 00 00 00 E2 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 40 27 00 D3 61 7D D3 A3 8D 56 FA 90 00 E7 [08:20:08]RAPDU: D3 61 7D D3 A3 8D 56 FA 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_SignData done [08:20:08]FM_MakeSignedData done [08:20:08]CreateOFDProtocolMessage [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 11 00 00 [08:20:08]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [08:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:20:08]wFMCommunicate OK [08:20:08]CreateOFDProtocolMessage done [08:20:08]OFDSenderStorePacket 166616 [08:20:08]StoreOFDPacket docnum=166616 [08:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 BE 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BB B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8A 02 00 35 04 06 00 87 40 B4 88 32 70 D3 61 7D D3 A3 8D 56 FA [08:20:08]CheckFolder [08:20:08]dirname=/storage/ofd_packets [08:20:08]CheckFolder done [08:20:08]ProducePacketName [08:20:08]name=ofd_packets/00166616 [08:20:08]NVStorageSaveData ofd_packets/00166616 [08:20:08]File name is /storage/ofd_packets/00166616 [08:20:08]Write 301 bytes [08:20:08]NVStorageSaveData done [08:20:08]OFDSenderStorePacket done [08:20:08]KKMCreateOFDPacket done [08:20:08]NVStorageSaveData kkm_last_timestamp [08:20:08]File name is /storage/kkm_last_timestamp [08:20:08]Write 4 bytes [08:20:08]NVStorageSaveData done [08:20:08]ExternCall_PrintAddStr [08:20:08]wPrintStart [08:20:08]Write to MH i2c: 01 00 00 42 27 69 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 42 27 00 00 00 00 00 FF 0F 7E [08:20:08]RasterBufferAndPrint [08:20:08]line Счет N : (1)221197 [08:20:08]line ИНН: 02508201610067 [08:20:08]line Контрольно-Кассовый Чек [08:20:08]line ПРОДАЖА [08:20:08]line ТРК (МРК, ГНК) : 14 [08:20:08]line Товар: 2710124500 [08:20:08]line Аи-95-К-5 [08:20:08]line 20.220 * 74.20 [08:20:08]line = 1500.32 [08:20:08]line НДС 12% НСП 1% [08:20:08]line > о реализуемом товаре [08:20:08]line ОКРУГЛЕНИЕ: -0.32 [08:20:08]line ИТОГО: 1500.00 [08:20:08]line Внесено: 1500.00 [08:20:08]line СДАЧА: 0.00 [08:20:08]line НСП 1% : 13.28 [08:20:08]line НДС 12% : 159.33 [08:20:08]line Наличными: 1500.00 [08:20:08]line Безнал.: 0.00 [08:20:08]line Место: АЗС № 161 "Партнер Нефть" [08:20:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:20:08]line СНО: Общий режим [08:20:08]line Чек 31 23.10.2024 08:20 [08:20:08]line Смена: 537 ФФД: 1.0 [08:20:08]line ЗНМ: 0300000104 [08:20:08]line РНМ: 0000000000091764 [08:20:08]line Версия ККМ: 001 [08:20:08]line ФМ: 0000000000871759 [08:20:08]line ФД: 166616 [08:20:08]line ФПД: 148711976481392 [08:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166616&fm=148711976481392&tin=02508201610067®Number=0000000000091764&sum=150000 [08:20:09]OFD Sender: Processing packet 166616 [packets to send 48, broken 47] [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00166616 [08:20:09]OFD Sender: To server: pG, [08:20:09]CommunicateWithHost lk.salyk.kg:30040 [08:20:09]ConnectInit lk.salyk.kg [08:20:09]written 0, free lines is 4095 [08:20:09]Connected sock=10 [08:20:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 BE 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BB B1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8A 02 00 35 04 06 00 87 40 B4 88 32 70 D3 61 7D D3 A3 8D 56 FA [08:20:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CA 21 47 00 EE AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8A 02 00 F4 03 04 00 23 58 18 67 B6 04 01 00 00 B8 C6 E6 EA AF 36 C8 B0 [08:20:09]CommunicateWithHost err = 0 [08:20:09]CheckOFDResponse [08:20:09]1017 (14) - 77093643461234 [08:20:09]1041 (16) - 0000000000871759 [08:20:09]1040 (4) - 166616 [08:20:09]1012 (4) - 23.10.2024 01:57 [08:20:09]1206 (1) - 0 [08:20:09]OFD Sender: Remove packet 166616 [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00166616 [08:20:09]NVStorageDeleteData [08:20:09]Write to MH i2c: 01 00 00 6D 27 94 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 BE 0C 65 [08:20:09]RasterBufferAndPrint [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]written 0, free lines is 3269 [08:20:09]MH_Cut [08:20:09]Write to MH i2c: D1 01 00 74 27 01 6D [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 74 27 00 6C [08:20:09]Write to MH i2c: 01 00 00 75 27 9C [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:10]OFD Sender: No OFD packet to send [08:20:10]*** Cut start [08:20:10]*** Partial cut [08:20:10]*** CUTSNS_PIN = 1 [08:20:10]*** CUTSNS_PIN = 0 [08:20:10]*** Brake cut motor [08:20:11]Read from MH i2c: 01 [08:20:11]MH_I2C_Read... [08:20:11]*** Stop cut motor [08:20:11]*** Cut end [08:20:11]Read from MH i2c: 01 07 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [08:20:11]process_action close_receipt done [08:20:11]requested_data is exist [08:20:11]produce_requested_data [08:20:11]requested_item fm.sn is exist - process it [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 11 00 00 [08:20:11]Write to MH i2c: E2 08 00 76 27 80 11 00 00 00 00 00 00 17 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 76 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [08:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:20:11]wFMCommunicate OK [08:20:11]requested_item fd.num is exist - process it [08:20:11]SAM_PROTO_GetFieldsCounters [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 13 00 00 [08:20:11]Write to MH i2c: E2 08 00 77 27 80 13 00 00 00 00 00 00 1A [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 62 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 62 00 77 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [08:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetFieldsCounters done [08:20:11]requested_item shift.num is exist - process it [08:20:11]requested_item shift.opened is exist - process it [08:20:11]req_shift_opened [08:20:11]FM_GetShiftState [08:20:11]SAM_PROTO_GetShiftState [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 13 01 00 [08:20:11]Write to MH i2c: E2 08 00 78 27 80 13 01 00 00 00 00 00 1C [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 78 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E7 [08:20:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetShiftState done [08:20:11]FM_GetShiftState done [08:20:11]req_shift_opened done [08:20:11]requested_item shift.open_date is exist - process it [08:20:11]req_shift_open_date [08:20:11]req_shift_open_date done [08:20:11]produce_requested_data done [08:20:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166616,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:20:11]process_action_free close_receipt [08:20:11]json_value_free [08:20:11]json_value_free done [08:20:11]process_json_proto returns [08:20:11]Send response to host [08:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166616,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:20:11]free response buf [08:20:11]execute_script done [08:20:11]execute_script returns [08:20:11]free content buf [08:20:11]Sock 9.Close socket [08:20:11]Sock 9.Thread stoped [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:33]accept exits with 7 [08:30:33]New connection [08:30:33]New thread 3067632996 created [08:30:33]Thread 3067489636 joined [08:30:33]Waiting for new connection... [08:30:33] Sock 7.Parse request [08:30:33]Sock 7.Check first char [08:30:33]Sock 7.First char is OK [08:30:33]request: POST /json_proto HTTP/1.0 [08:30:33]Method: POST [08:30:33]URL: /json_proto [08:30:33]Method is POST - this is cgi request [08:30:33]url: /json_proto [08:30:33]query_string will be loaded in cgi processing [08:30:33]execute_cgi json_proto POST (null) [08:30:33]execute_cgi path=json_proto method=POST [08:30:33]POST find Content-Length [08:30:33]Host: 172.17.53.195:8080 [08:30:33]Content-Length: 682 [08:30:33]Content-Type: application/json [08:30:33] [08:30:33]POST finish read [08:30:33]Found Content-Length = 682 [08:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:33]execute_script... [08:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:33]POST & json_proto [08:30:33]process_json_proto [08:30:33]json parsed OK: [08:30:33]protocol is kg_v1.0 [08:30:33]action value=close_receipt [08:30:33]process_action close_receipt [08:30:33]cmd_close_receipt [08:30:33]MH_GetDate [08:30:33]Write to MH i2c: F0 00 00 79 27 8F [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 09 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 09 00 79 27 00 2D B4 18 67 21 48 4A 65 10 [08:30:33]GetLastDocTimeStamp 1729671611 [08:30:33]current date 1729672237 [08:30:33]FM_GetShiftState [08:30:33]SAM_PROTO_GetShiftState [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 13 01 00 [08:30:33]Write to MH i2c: E2 08 00 7A 27 80 13 01 00 00 00 00 00 1E [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0E 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0E 00 7A 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E9 [08:30:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:30:33]wFMCommunicate OK [08:30:33]SAM_PROTO_GetShiftState done [08:30:33]FM_GetShiftState done [08:30:33]opened in 1729643772 [08:30:33]opened+sec_in_day 1729730172 [08:30:33]quantity*price = 100021 [08:30:33]sum+1 = 100023 [08:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 32 23.10.2024 08:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166617 ФПД: 24163704707060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083037&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166617&fm=24163704707060&tin=02508201610067®Number=0000000000091764&sum=100000 [08:30:34]StoreToDocumentArchive [08:30:34]shift 537 fd 166617 [08:30:34]save to /storage/0537/doc_00166617 [08:30:34]save last doc name /storage/0537/doc_00166617 to /storage/kkm_last_doc_name [08:30:34]save OK [08:30:34]Clear old archive folders... [08:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:34]tlvbuf is 01262080 [08:30:34]SAM_PROTO_ClearQueue [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 09 00 00 [08:30:34]Write to MH i2c: E2 08 00 87 27 80 09 00 00 00 00 00 00 20 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_ClearQueue done [08:30:35]KKMCreateOFDPacket [08:30:35]OFDProtocolAddRootSTLVToBuf [08:30:35]FM_MakeSignedData [08:30:35]FM_MakeSignedData [08:30:35]SAM_PROTO_SignData [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 01 02 [08:30:35]Write to MH i2c: E2 08 00 88 27 80 0D 01 02 00 00 00 00 28 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=255 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2D B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8A 02 00 35 04 06 00 15 [08:30:35]Write to MH i2c: E2 02 01 89 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2D B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8A 02 00 35 04 06 00 15 00 00 F0 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=10 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 02 02 05 FA 0D 09 17 F4 [08:30:35]Write to MH i2c: E2 0D 00 8A 27 80 0D 02 02 05 00 FA 0D 09 17 F4 00 00 50 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 03 02 [08:30:35]Write to MH i2c: E2 08 00 8B 27 80 0D 03 02 00 00 00 00 2D [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 8B 27 00 23 DF 8F FA 8F BF 2C 0C 90 00 3F [08:30:35]RAPDU: 23 DF 8F FA 8F BF 2C 0C 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_SignData done [08:30:35]FM_MakeSignedData done [08:30:35]CreateOFDProtocolMessage [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 11 00 00 [08:30:35]Write to MH i2c: E2 08 00 8C 27 80 11 00 00 00 00 00 00 2D [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 8C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [08:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:30:35]wFMCommunicate OK [08:30:35]CreateOFDProtocolMessage done [08:30:35]OFDSenderStorePacket 166617 [08:30:35]StoreOFDPacket docnum=166617 [08:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 F8 07 01 92 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2D B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8A 02 00 35 04 06 00 15 FA 0D 09 17 F4 23 DF 8F FA 8F BF 2C 0C [08:30:35]CheckFolder [08:30:35]dirname=/storage/ofd_packets [08:30:35]CheckFolder done [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00166617 [08:30:35]NVStorageSaveData ofd_packets/00166617 [08:30:35]File name is /storage/ofd_packets/00166617 [08:30:35]Write 301 bytes [08:30:35]NVStorageSaveData done [08:30:35]OFDSenderStorePacket done [08:30:35]KKMCreateOFDPacket done [08:30:35]NVStorageSaveData kkm_last_timestamp [08:30:35]File name is /storage/kkm_last_timestamp [08:30:35]Write 4 bytes [08:30:35]NVStorageSaveData done [08:30:35]ExternCall_PrintAddStr [08:30:35]wPrintStart [08:30:35]Write to MH i2c: 01 00 00 8D 27 B4 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 8D 27 00 00 00 00 00 FF 0F C9 [08:30:35]RasterBufferAndPrint [08:30:35]line Счет N : (1)221198 [08:30:35]line ИНН: 02508201610067 [08:30:35]line Контрольно-Кассовый Чек [08:30:35]line ПРОДАЖА [08:30:35]line ТРК (МРК, ГНК) : 24 [08:30:35]line Товар: 2710124500 [08:30:35]line Аи-95-К-5 [08:30:35]line 13.480 * 74.20 [08:30:35]line = 1000.22 [08:30:35]line НДС 12% НСП 1% [08:30:35]line > о реализуемом товаре [08:30:35]line ОКРУГЛЕНИЕ: -0.22 [08:30:35]line ИТОГО: 1000.00 [08:30:35]line Внесено: 1000.00 [08:30:35]line СДАЧА: 0.00 [08:30:35]line НСП 1% : 8.85 [08:30:35]line НДС 12% : 106.22 [08:30:35]line Наличными: 1000.00 [08:30:35]line Безнал.: 0.00 [08:30:35]line Место: АЗС № 161 "Партнер Нефть" [08:30:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:30:35]line СНО: Общий режим [08:30:35]line Чек 32 23.10.2024 08:30 [08:30:35]line Смена: 537 ФФД: 1.0 [08:30:35]line ЗНМ: 0300000104 [08:30:35]line РНМ: 0000000000091764 [08:30:35]line Версия ККМ: 001 [08:30:35]line ФМ: 0000000000871759 [08:30:35]line ФД: 166617 [08:30:35]line ФПД: 24163704707060 [08:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083037&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166617&fm=24163704707060&tin=02508201610067®Number=0000000000091764&sum=100000 [08:30:35]OFD Sender: Processing packet 166617 [packets to send 48, broken 47] [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00166617 [08:30:35]OFD Sender: To server: pG, [08:30:35]CommunicateWithHost lk.salyk.kg:30040 [08:30:35]ConnectInit lk.salyk.kg [08:30:35]written 0, free lines is 4095 [08:30:35]Connected sock=10 [08:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 F8 07 01 92 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2D B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8A 02 00 35 04 06 00 15 FA 0D 09 17 F4 23 DF 8F FA 8F BF 2C 0C [08:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CB 07 47 00 2D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8A 02 00 F4 03 04 00 96 5A 18 67 B6 04 01 00 00 91 9A 1E 20 A8 2B 42 3E [08:30:36]CommunicateWithHost err = 0 [08:30:36]CheckOFDResponse [08:30:36]1017 (14) - 77093643461234 [08:30:36]1041 (16) - 0000000000871759 [08:30:36]1040 (4) - 166617 [08:30:36]1012 (4) - 23.10.2024 02:08 [08:30:36]1206 (1) - 0 [08:30:36]OFD Sender: Remove packet 166617 [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00166617 [08:30:36]NVStorageDeleteData [08:30:36]Write to MH i2c: 01 00 00 B8 27 DF [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 B8 27 00 00 00 00 00 B5 0C A7 [08:30:36]RasterBufferAndPrint [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]written 0, free lines is 3259 [08:30:36]MH_Cut [08:30:36]Write to MH i2c: D1 01 00 BF 27 01 B8 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 BF 27 00 B7 [08:30:36]Write to MH i2c: 01 00 00 C0 27 E7 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]OFD Sender: No OFD packet to send [08:30:37]*** Cut start [08:30:37]*** Partial cut [08:30:37]*** CUTSNS_PIN = 1 [08:30:37]*** CUTSNS_PIN = 0 [08:30:37]*** Brake cut motor [08:30:37]Read from MH i2c: 01 [08:30:37]MH_I2C_Read... [08:30:37]*** Stop cut motor [08:30:37]*** Cut end [08:30:37]Read from MH i2c: 01 07 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: 01 07 00 C0 27 00 00 00 00 00 FF 0F FC [08:30:37]process_action close_receipt done [08:30:37]requested_data is exist [08:30:37]produce_requested_data [08:30:37]requested_item fm.sn is exist - process it [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 11 00 00 [08:30:37]Write to MH i2c: E2 08 00 C1 27 80 11 00 00 00 00 00 00 62 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:37]Read from MH i2c: E2 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 17 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 17 00 C1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [08:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:30:37]wFMCommunicate OK [08:30:37]requested_item fd.num is exist - process it [08:30:37]SAM_PROTO_GetFieldsCounters [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 13 00 00 [08:30:37]Write to MH i2c: E2 08 00 C2 27 80 13 00 00 00 00 00 00 65 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 C2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetFieldsCounters done [08:30:38]requested_item shift.num is exist - process it [08:30:38]requested_item shift.opened is exist - process it [08:30:38]req_shift_opened [08:30:38]FM_GetShiftState [08:30:38]SAM_PROTO_GetShiftState [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 13 01 00 [08:30:38]Write to MH i2c: E2 08 00 C3 27 80 13 01 00 00 00 00 00 67 [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 C3 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 32 [08:30:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetShiftState done [08:30:38]FM_GetShiftState done [08:30:38]req_shift_opened done [08:30:38]requested_item shift.open_date is exist - process it [08:30:38]req_shift_open_date [08:30:38]req_shift_open_date done [08:30:38]produce_requested_data done [08:30:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166617,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:30:38]process_action_free close_receipt [08:30:38]json_value_free [08:30:38]json_value_free done [08:30:38]process_json_proto returns [08:30:38]Send response to host [08:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166617,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:30:38]free response buf [08:30:38]execute_script done [08:30:38]execute_script returns [08:30:38]free content buf [08:30:38]Sock 7.Close socket [08:30:38]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:29]accept exits with 9 [08:33:29]New connection [08:33:29]New thread 3067489636 created [08:33:29]Thread 3067632996 joined [08:33:29]Waiting for new connection... [08:33:29] Sock 9.Parse request [08:33:29]Sock 9.Check first char [08:33:29]Sock 9.First char is OK [08:33:29]request: POST /json_proto HTTP/1.0 [08:33:29]Method: POST [08:33:29]URL: /json_proto [08:33:29]Method is POST - this is cgi request [08:33:29]url: /json_proto [08:33:29]query_string will be loaded in cgi processing [08:33:29]execute_cgi json_proto POST (null) [08:33:29]execute_cgi path=json_proto method=POST [08:33:29]POST find Content-Length [08:33:29]Host: 172.17.53.195:8080 [08:33:29]Content-Length: 677 [08:33:29]Content-Type: application/json [08:33:29] [08:33:29]POST finish read [08:33:29]Found Content-Length = 677 [08:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:29]execute_script... [08:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:29]POST & json_proto [08:33:29]process_json_proto [08:33:29]json parsed OK: [08:33:29]protocol is kg_v1.0 [08:33:29]action value=close_receipt [08:33:29]process_action close_receipt [08:33:29]cmd_close_receipt [08:33:29]MH_GetDate [08:33:29]Write to MH i2c: F0 00 00 C4 27 DA [08:33:29]Write i2c OK [08:33:29]MH_I2C_Read... [08:33:29]Read from MH i2c: F0 [08:33:29]MH_I2C_Read... [08:33:29]Read from MH i2c: F0 09 00 [08:33:29]MH_I2C_Read... [08:33:29]Read from MH i2c: F0 09 00 C4 27 00 DD B4 18 67 21 48 4A 65 0B [08:33:29]GetLastDocTimeStamp 1729672237 [08:33:29]current date 1729672413 [08:33:29]FM_GetShiftState [08:33:29]SAM_PROTO_GetShiftState [08:33:29]wFMCommunicate request_size=4 [08:33:29]MH_SAM_APDU [08:33:29]CAPDU: 80 13 01 00 [08:33:29]Write to MH i2c: E2 08 00 C5 27 80 13 01 00 00 00 00 00 69 [08:33:29]Write i2c OK [08:33:29]MH_I2C_Read... [08:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:29]Read from MH i2c: E2 [08:33:29]MH_I2C_Read... [08:33:29]Read from MH i2c: E2 0E 00 [08:33:29]MH_I2C_Read... [08:33:29]Read from MH i2c: E2 0E 00 C5 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 34 [08:33:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:33:29]wFMCommunicate OK [08:33:29]SAM_PROTO_GetShiftState done [08:33:29]FM_GetShiftState done [08:33:29]opened in 1729643772 [08:33:29]opened+sec_in_day 1729730172 [08:33:29]quantity*price = 50041 [08:33:29]sum+1 = 50042 [08:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 33 23.10.2024 08:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166618 ФПД: 40421209332475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166618&fm=40421209332475&tin=02508201610067®Number=0000000000091764&sum=50000 [08:33:30]StoreToDocumentArchive [08:33:30]shift 537 fd 166618 [08:33:30]save to /storage/0537/doc_00166618 [08:33:30]save last doc name /storage/0537/doc_00166618 to /storage/kkm_last_doc_name [08:33:30]save OK [08:33:30]Clear old archive folders... [08:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:30]tlvbuf is 011FF1A0 [08:33:30]SAM_PROTO_ClearQueue [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 09 00 00 [08:33:30]Write to MH i2c: E2 08 00 D2 27 80 09 00 00 00 00 00 00 6B [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [08:33:30]RAPDU: 90 00 [08:33:30]wFMCommunicate OK [08:33:30]SAM_PROTO_ClearQueue done [08:33:30]KKMCreateOFDPacket [08:33:30]OFDProtocolAddRootSTLVToBuf [08:33:30]FM_MakeSignedData [08:33:30]FM_MakeSignedData [08:33:30]SAM_PROTO_SignData [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 0D 01 02 [08:33:30]Write to MH i2c: E2 08 00 D3 27 80 0D 01 02 00 00 00 00 73 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:31]Read from MH i2c: E2 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [08:33:31]RAPDU: 90 00 [08:33:31]wFMCommunicate OK [08:33:31]wFMCommunicate request_size=255 [08:33:31]MH_SAM_APDU [08:33:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8A 02 00 35 04 06 00 24 [08:33:31]Write to MH i2c: E2 02 01 D4 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8A 02 00 35 04 06 00 24 00 00 DF [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:31]Read from MH i2c: E2 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [08:33:31]RAPDU: 90 00 [08:33:31]wFMCommunicate OK [08:33:31]wFMCommunicate request_size=10 [08:33:31]MH_SAM_APDU [08:33:31]CAPDU: 80 0D 02 02 05 C3 4B D2 DA FB [08:33:31]Write to MH i2c: E2 0D 00 D5 27 80 0D 02 02 05 00 C3 4B D2 DA FB 00 00 35 [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:31]Read from MH i2c: E2 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [08:33:31]RAPDU: 90 00 [08:33:31]wFMCommunicate OK [08:33:31]wFMCommunicate request_size=4 [08:33:31]MH_SAM_APDU [08:33:31]CAPDU: 80 0D 03 02 [08:33:31]Write to MH i2c: E2 08 00 D6 27 80 0D 03 02 00 00 00 00 78 [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:31]Read from MH i2c: E2 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 0B 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 0B 00 D6 27 00 03 CE 04 D7 32 65 13 DA 90 00 A9 [08:33:31]RAPDU: 03 CE 04 D7 32 65 13 DA 90 00 [08:33:31]wFMCommunicate OK [08:33:31]SAM_PROTO_SignData done [08:33:31]FM_MakeSignedData done [08:33:31]CreateOFDProtocolMessage [08:33:31]wFMCommunicate request_size=4 [08:33:31]MH_SAM_APDU [08:33:31]CAPDU: 80 11 00 00 [08:33:31]Write to MH i2c: E2 08 00 D7 27 80 11 00 00 00 00 00 00 78 [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:31]Read from MH i2c: E2 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 17 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: E2 17 00 D7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [08:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:33:31]wFMCommunicate OK [08:33:31]CreateOFDProtocolMessage done [08:33:31]OFDSenderStorePacket 166618 [08:33:31]StoreOFDPacket docnum=166618 [08:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 5F 07 01 43 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8A 02 00 35 04 06 00 24 C3 4B D2 DA FB 03 CE 04 D7 32 65 13 DA [08:33:31]CheckFolder [08:33:31]dirname=/storage/ofd_packets [08:33:31]CheckFolder done [08:33:31]ProducePacketName [08:33:31]name=ofd_packets/00166618 [08:33:31]NVStorageSaveData ofd_packets/00166618 [08:33:31]File name is /storage/ofd_packets/00166618 [08:33:31]Write 301 bytes [08:33:31]NVStorageSaveData done [08:33:31]OFDSenderStorePacket done [08:33:31]KKMCreateOFDPacket done [08:33:31]NVStorageSaveData kkm_last_timestamp [08:33:31]File name is /storage/kkm_last_timestamp [08:33:31]Write 4 bytes [08:33:31]NVStorageSaveData done [08:33:31]ExternCall_PrintAddStr [08:33:31]wPrintStart [08:33:31]Write to MH i2c: 01 00 00 D8 27 FF [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 07 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 FF 0F 14 [08:33:31]RasterBufferAndPrint [08:33:31]line Счет N : (1)221199 [08:33:31]line ИНН: 02508201610067 [08:33:31]line Контрольно-Кассовый Чек [08:33:31]line ПРОДАЖА [08:33:31]line ТРК (МРК, ГНК) : 23 [08:33:31]line Товар: 2710124130 [08:33:31]line Аи-92-К-5 [08:33:31]line 7.480 * 66.90 [08:33:31]line = 500.41 [08:33:31]line НДС 12% НСП 1% [08:33:31]line > о реализуемом товаре [08:33:31]line ОКРУГЛЕНИЕ: -0.41 [08:33:31]line ИТОГО: 500.00 [08:33:31]line Внесено: 500.00 [08:33:31]line СДАЧА: 0.00 [08:33:31]line НСП 1% : 4.43 [08:33:31]line НДС 12% : 53.14 [08:33:31]line Наличными: 500.00 [08:33:31]line Безнал.: 0.00 [08:33:31]line Место: АЗС № 161 "Партнер Нефть" [08:33:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:33:31]line СНО: Общий режим [08:33:31]line Чек 33 23.10.2024 08:33 [08:33:31]line Смена: 537 ФФД: 1.0 [08:33:31]line ЗНМ: 0300000104 [08:33:31]line РНМ: 0000000000091764 [08:33:31]line Версия ККМ: 001 [08:33:31]line ФМ: 0000000000871759 [08:33:31]line ФД: 166618 [08:33:31]line ФПД: 40421209332475 [08:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166618&fm=40421209332475&tin=02508201610067®Number=0000000000091764&sum=50000 [08:33:31]OFD Sender: Processing packet 166618 [packets to send 48, broken 47] [08:33:31]ProducePacketName [08:33:31]name=ofd_packets/00166618 [08:33:31]OFD Sender: To server: pG, [08:33:31]CommunicateWithHost lk.salyk.kg:30040 [08:33:31]ConnectInit lk.salyk.kg [08:33:31]written 0, free lines is 4095 [08:33:31]Connected sock=10 [08:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 5F 07 01 43 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 DD B4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8A 02 00 35 04 06 00 24 C3 4B D2 DA FB 03 CE 04 D7 32 65 13 DA [08:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9F 3C 47 00 8D E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8A 02 00 F4 03 04 00 46 5B 18 67 B6 04 01 00 00 D2 83 72 56 CD BB 9C 26 [08:33:32]CommunicateWithHost err = 0 [08:33:32]CheckOFDResponse [08:33:32]1017 (14) - 77093643461234 [08:33:32]1041 (16) - 0000000000871759 [08:33:32]1040 (4) - 166618 [08:33:32]1012 (4) - 23.10.2024 02:11 [08:33:32]1206 (1) - 0 [08:33:32]OFD Sender: Remove packet 166618 [08:33:32]ProducePacketName [08:33:32]name=ofd_packets/00166618 [08:33:32]NVStorageDeleteData [08:33:32]Write to MH i2c: 01 00 00 03 28 2B [08:33:32]Write i2c OK [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: 01 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: 01 07 00 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: 01 07 00 03 28 00 00 00 00 00 AD 0C EB [08:33:32]RasterBufferAndPrint [08:33:32]line [08:33:32]line [08:33:32]line [08:33:32]line [08:33:32]line [08:33:32]written 0, free lines is 3251 [08:33:32]MH_Cut [08:33:32]Write to MH i2c: D1 01 00 0A 28 01 04 [08:33:32]Write i2c OK [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: D1 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: D1 01 00 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: D1 01 00 0A 28 00 03 [08:33:32]Write to MH i2c: 01 00 00 0B 28 33 [08:33:32]Write i2c OK [08:33:32]MH_I2C_Read... [08:33:32]OFD Sender: No OFD packet to send [08:33:33]*** Cut start [08:33:33]*** Partial cut [08:33:33]*** CUTSNS_PIN = 1 [08:33:33]*** CUTSNS_PIN = 0 [08:33:33]*** Brake cut motor [08:33:33]Read from MH i2c: 01 [08:33:33]MH_I2C_Read... [08:33:33]*** Stop cut motor [08:33:33]*** Cut end [08:33:33]Read from MH i2c: 01 07 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: 01 07 00 0B 28 00 00 00 00 00 FF 0F 48 [08:33:33]process_action close_receipt done [08:33:33]requested_data is exist [08:33:33]produce_requested_data [08:33:33]requested_item fm.sn is exist - process it [08:33:33]wFMCommunicate request_size=4 [08:33:33]MH_SAM_APDU [08:33:33]CAPDU: 80 11 00 00 [08:33:33]Write to MH i2c: E2 08 00 0C 28 80 11 00 00 00 00 00 00 AE [08:33:33]Write i2c OK [08:33:33]MH_I2C_Read... [08:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:33]Read from MH i2c: E2 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 17 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 17 00 0C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [08:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:33:33]wFMCommunicate OK [08:33:33]requested_item fd.num is exist - process it [08:33:33]SAM_PROTO_GetFieldsCounters [08:33:33]wFMCommunicate request_size=4 [08:33:33]MH_SAM_APDU [08:33:33]CAPDU: 80 13 00 00 [08:33:33]Write to MH i2c: E2 08 00 0D 28 80 13 00 00 00 00 00 00 B1 [08:33:33]Write i2c OK [08:33:33]MH_I2C_Read... [08:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:33]Read from MH i2c: E2 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 62 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 62 00 0D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:33]wFMCommunicate OK [08:33:33]SAM_PROTO_GetFieldsCounters done [08:33:33]requested_item shift.num is exist - process it [08:33:33]requested_item shift.opened is exist - process it [08:33:33]req_shift_opened [08:33:33]FM_GetShiftState [08:33:33]SAM_PROTO_GetShiftState [08:33:33]wFMCommunicate request_size=4 [08:33:33]MH_SAM_APDU [08:33:33]CAPDU: 80 13 01 00 [08:33:33]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [08:33:33]Write i2c OK [08:33:33]MH_I2C_Read... [08:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:33]Read from MH i2c: E2 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 0E 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [08:33:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:33:33]wFMCommunicate OK [08:33:33]SAM_PROTO_GetShiftState done [08:33:33]FM_GetShiftState done [08:33:33]req_shift_opened done [08:33:33]requested_item shift.open_date is exist - process it [08:33:33]req_shift_open_date [08:33:33]req_shift_open_date done [08:33:33]produce_requested_data done [08:33:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166618,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:33:33]process_action_free close_receipt [08:33:33]json_value_free [08:33:33]json_value_free done [08:33:33]process_json_proto returns [08:33:33]Send response to host [08:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166618,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:33:33]free response buf [08:33:33]execute_script done [08:33:33]execute_script returns [08:33:33]free content buf [08:33:33]Sock 9.Close socket [08:33:33]Sock 9.Thread stoped [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:45]accept exits with 7 [08:41:45]New connection [08:41:45]New thread 3067632996 created [08:41:45]Thread 3067489636 joined [08:41:45]Waiting for new connection... [08:41:45] Sock 7.Parse request [08:41:45]Sock 7.Check first char [08:41:45]Sock 7.First char is OK [08:41:45]request: POST /json_proto HTTP/1.0 [08:41:45]Method: POST [08:41:45]URL: /json_proto [08:41:45]Method is POST - this is cgi request [08:41:45]url: /json_proto [08:41:45]query_string will be loaded in cgi processing [08:41:45]execute_cgi json_proto POST (null) [08:41:45]execute_cgi path=json_proto method=POST [08:41:45]POST find Content-Length [08:41:45]Host: 172.17.53.195:8080 [08:41:45]Content-Length: 677 [08:41:45]Content-Type: application/json [08:41:45] [08:41:45]POST finish read [08:41:45]Found Content-Length = 677 [08:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:45]execute_script... [08:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:45]POST & json_proto [08:41:45]process_json_proto [08:41:45]json parsed OK: [08:41:45]protocol is kg_v1.0 [08:41:45]action value=close_receipt [08:41:45]process_action close_receipt [08:41:45]cmd_close_receipt [08:41:45]MH_GetDate [08:41:45]Write to MH i2c: F0 00 00 0F 28 26 [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 0F 28 00 CD B6 18 67 21 48 4A 65 49 [08:41:45]GetLastDocTimeStamp 1729672413 [08:41:45]current date 1729672909 [08:41:45]FM_GetShiftState [08:41:45]SAM_PROTO_GetShiftState [08:41:45]wFMCommunicate request_size=4 [08:41:45]MH_SAM_APDU [08:41:45]CAPDU: 80 13 01 00 [08:41:45]Write to MH i2c: E2 08 00 10 28 80 13 01 00 00 00 00 00 B5 [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:45]Read from MH i2c: E2 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 10 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 80 [08:41:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:41:45]wFMCommunicate OK [08:41:45]SAM_PROTO_GetShiftState done [08:41:45]FM_GetShiftState done [08:41:45]opened in 1729643772 [08:41:45]opened+sec_in_day 1729730172 [08:41:45]quantity*price = 22010 [08:41:45]sum+1 = 22011 [08:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 34 23.10.2024 08:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166619 ФПД: 277718466501675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166619&fm=277718466501675&tin=02508201610067®Number=0000000000091764&sum=22000 [08:41:46]StoreToDocumentArchive [08:41:46]shift 537 fd 166619 [08:41:46]save to /storage/0537/doc_00166619 [08:41:46]save last doc name /storage/0537/doc_00166619 to /storage/kkm_last_doc_name [08:41:46]save OK [08:41:46]Clear old archive folders... [08:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:46]tlvbuf is 01262250 [08:41:46]SAM_PROTO_ClearQueue [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 09 00 00 [08:41:46]Write to MH i2c: E2 08 00 1D 28 80 09 00 00 00 00 00 00 B7 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]SAM_PROTO_ClearQueue done [08:41:46]KKMCreateOFDPacket [08:41:46]OFDProtocolAddRootSTLVToBuf [08:41:46]FM_MakeSignedData [08:41:46]FM_MakeSignedData [08:41:46]SAM_PROTO_SignData [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 01 02 [08:41:46]Write to MH i2c: E2 08 00 1E 28 80 0D 01 02 00 00 00 00 BF [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]wFMCommunicate request_size=255 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD B6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8A 02 00 35 04 06 00 FC [08:41:46]Write to MH i2c: E2 02 01 1F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD B6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8A 02 00 35 04 06 00 FC 00 00 5A [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]wFMCommunicate request_size=10 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 02 02 05 95 5E 8B 1C 2B [08:41:46]Write to MH i2c: E2 0D 00 20 28 80 0D 02 02 05 00 95 5E 8B 1C 2B 00 00 91 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 03 02 [08:41:46]Write to MH i2c: E2 08 00 21 28 80 0D 03 02 00 00 00 00 C4 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 0B 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 0B 00 21 28 00 F0 65 30 79 72 3D 49 F0 90 00 AB [08:41:46]RAPDU: F0 65 30 79 72 3D 49 F0 90 00 [08:41:46]wFMCommunicate OK [08:41:46]SAM_PROTO_SignData done [08:41:46]FM_MakeSignedData done [08:41:46]CreateOFDProtocolMessage [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 11 00 00 [08:41:46]Write to MH i2c: E2 08 00 22 28 80 11 00 00 00 00 00 00 C4 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 17 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 17 00 22 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [08:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:41:46]wFMCommunicate OK [08:41:46]CreateOFDProtocolMessage done [08:41:46]OFDSenderStorePacket 166619 [08:41:46]StoreOFDPacket docnum=166619 [08:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC F9 07 01 2C 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD B6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8A 02 00 35 04 06 00 FC 95 5E 8B 1C 2B F0 65 30 79 72 3D 49 F0 [08:41:46]CheckFolder [08:41:46]dirname=/storage/ofd_packets [08:41:46]CheckFolder done [08:41:46]ProducePacketName [08:41:46]name=ofd_packets/00166619 [08:41:46]NVStorageSaveData ofd_packets/00166619 [08:41:46]File name is /storage/ofd_packets/00166619 [08:41:46]Write 301 bytes [08:41:46]NVStorageSaveData done [08:41:46]OFDSenderStorePacket done [08:41:46]KKMCreateOFDPacket done [08:41:46]NVStorageSaveData kkm_last_timestamp [08:41:46]File name is /storage/kkm_last_timestamp [08:41:46]Write 4 bytes [08:41:46]NVStorageSaveData done [08:41:46]ExternCall_PrintAddStr [08:41:46]wPrintStart [08:41:46]Write to MH i2c: 01 00 00 23 28 4B [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: 01 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: 01 07 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: 01 07 00 23 28 00 00 00 00 00 FF 0F 60 [08:41:46]RasterBufferAndPrint [08:41:46]line Счет N : (1)221200 [08:41:46]line ИНН: 02508201610067 [08:41:46]line Контрольно-Кассовый Чек [08:41:46]line ПРОДАЖА [08:41:46]line ТРК (МРК, ГНК) : 33 [08:41:46]line Товар: 2710124130 [08:41:46]line Аи-92-К-5 [08:41:46]line 3.290 * 66.90 [08:41:46]line = 220.10 [08:41:46]line НДС 12% НСП 1% [08:41:46]line > о реализуемом товаре [08:41:46]line ОКРУГЛЕНИЕ: -0.10 [08:41:46]line ИТОГО: 220.00 [08:41:46]line Внесено: 220.00 [08:41:46]line СДАЧА: 0.00 [08:41:46]line НСП 1% : 1.95 [08:41:46]line НДС 12% : 23.37 [08:41:46]line Наличными: 220.00 [08:41:46]line Безнал.: 0.00 [08:41:46]line Место: АЗС № 161 "Партнер Нефть" [08:41:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:41:46]line СНО: Общий режим [08:41:46]line Чек 34 23.10.2024 08:41 [08:41:46]line Смена: 537 ФФД: 1.0 [08:41:46]line ЗНМ: 0300000104 [08:41:46]line РНМ: 0000000000091764 [08:41:46]line Версия ККМ: 001 [08:41:46]line ФМ: 0000000000871759 [08:41:46]line ФД: 166619 [08:41:46]line ФПД: 277718466501675 [08:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166619&fm=277718466501675&tin=02508201610067®Number=0000000000091764&sum=22000 [08:41:47]OFD Sender: Processing packet 166619 [packets to send 48, broken 47] [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00166619 [08:41:47]OFD Sender: To server: pG, [08:41:47]CommunicateWithHost lk.salyk.kg:30040 [08:41:47]ConnectInit lk.salyk.kg [08:41:47]written 0, free lines is 4095 [08:41:47]Connected sock=10 [08:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC F9 07 01 2C 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD B6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8A 02 00 35 04 06 00 FC 95 5E 8B 1C 2B F0 65 30 79 72 3D 49 F0 [08:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF 24 47 00 3D FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8A 02 00 F4 03 04 00 35 5D 18 67 B6 04 01 00 00 50 8F 3F A9 80 8B 84 0F [08:41:47]CommunicateWithHost err = 0 [08:41:47]CheckOFDResponse [08:41:47]1017 (14) - 77093643461234 [08:41:47]1041 (16) - 0000000000871759 [08:41:47]1040 (4) - 166619 [08:41:47]1012 (4) - 23.10.2024 02:19 [08:41:47]1206 (1) - 0 [08:41:47]OFD Sender: Remove packet 166619 [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00166619 [08:41:47]NVStorageDeleteData [08:41:47]Write to MH i2c: 01 00 00 4E 28 76 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 4E 28 00 00 00 00 00 A6 0C 2F [08:41:47]RasterBufferAndPrint [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]written 0, free lines is 3243 [08:41:47]MH_Cut [08:41:47]Write to MH i2c: D1 01 00 55 28 01 4F [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 01 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 01 00 55 28 00 4E [08:41:47]Write to MH i2c: 01 00 00 56 28 7E [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]OFD Sender: No OFD packet to send [08:41:48]*** Cut start [08:41:48]*** Partial cut [08:41:48]*** CUTSNS_PIN = 1 [08:41:48]*** CUTSNS_PIN = 0 [08:41:48]*** Brake cut motor [08:41:49]Read from MH i2c: 01 [08:41:49]MH_I2C_Read... [08:41:49]*** Stop cut motor [08:41:49]*** Cut end [08:41:49]Read from MH i2c: 01 07 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 56 28 00 00 00 00 00 FF 0F 93 [08:41:49]process_action close_receipt done [08:41:49]requested_data is exist [08:41:49]produce_requested_data [08:41:49]requested_item fm.sn is exist - process it [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 11 00 00 [08:41:49]Write to MH i2c: E2 08 00 57 28 80 11 00 00 00 00 00 00 F9 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 57 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [08:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:41:49]wFMCommunicate OK [08:41:49]requested_item fd.num is exist - process it [08:41:49]SAM_PROTO_GetFieldsCounters [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 00 00 [08:41:49]Write to MH i2c: E2 08 00 58 28 80 13 00 00 00 00 00 00 FC [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 58 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [08:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetFieldsCounters done [08:41:49]requested_item shift.num is exist - process it [08:41:49]requested_item shift.opened is exist - process it [08:41:49]req_shift_opened [08:41:49]FM_GetShiftState [08:41:49]SAM_PROTO_GetShiftState [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 01 00 [08:41:49]Write to MH i2c: E2 08 00 59 28 80 13 01 00 00 00 00 00 FE [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 59 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C9 [08:41:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetShiftState done [08:41:49]FM_GetShiftState done [08:41:49]req_shift_opened done [08:41:49]requested_item shift.open_date is exist - process it [08:41:49]req_shift_open_date [08:41:49]req_shift_open_date done [08:41:49]produce_requested_data done [08:41:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166619,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:41:49]process_action_free close_receipt [08:41:49]json_value_free [08:41:49]json_value_free done [08:41:49]process_json_proto returns [08:41:49]Send response to host [08:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166619,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:41:49]free response buf [08:41:49]execute_script done [08:41:49]execute_script returns [08:41:49]free content buf [08:41:49]Sock 7.Close socket [08:41:49]Sock 7.Thread stoped [08:41:52]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:11]ConnectInit Can't connect to host [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:20]accept exits with 9 [08:45:20]New connection [08:45:20]New thread 3067489636 created [08:45:20]Thread 3067632996 joined [08:45:20]Waiting for new connection... [08:45:20] Sock 9.Parse request [08:45:20]Sock 9.Check first char [08:45:20]Sock 9.First char is OK [08:45:20]request: POST /json_proto HTTP/1.0 [08:45:20]Method: POST [08:45:20]URL: /json_proto [08:45:20]Method is POST - this is cgi request [08:45:20]url: /json_proto [08:45:20]query_string will be loaded in cgi processing [08:45:20]execute_cgi json_proto POST (null) [08:45:20]execute_cgi path=json_proto method=POST [08:45:20]POST find Content-Length [08:45:20]Host: 172.17.53.195:8080 [08:45:20]Content-Length: 215 [08:45:20]Content-Type: application/json [08:45:20] [08:45:20]POST finish read [08:45:20]Found Content-Length = 215 [08:45:20]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" ] } } [08:45:20]execute_script... [08:45:20]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" ] } } [08:45:20]POST & json_proto [08:45:20]process_json_proto [08:45:20]json parsed OK: [08:45:20]protocol is kg_v1.0 [08:45:20]action value=get_value [08:45:20]process_action get_value [08:45:20]cmd_get_value [08:45:20]process_action get_value done [08:45:20]requested_data is exist [08:45:20]produce_requested_data [08:45:20]requested_item kkm.sn is exist - process it [08:45:20]requested_item kkm.ver is exist - process it [08:45:20]requested_item fm.sn is exist - process it [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 5A 28 80 11 00 00 00 00 00 00 FC [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 5A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [08:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:45:20]wFMCommunicate OK [08:45:20]requested_item fd.num is exist - process it [08:45:20]SAM_PROTO_GetFieldsCounters [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 13 00 00 [08:45:20]Write to MH i2c: E2 08 00 5B 28 80 13 00 00 00 00 00 00 FF [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 62 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 62 00 5B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [08:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:20]wFMCommunicate OK [08:45:20]SAM_PROTO_GetFieldsCounters done [08:45:20]requested_item shift.num is exist - process it [08:45:20]requested_item shift.opened is exist - process it [08:45:20]req_shift_opened [08:45:20]FM_GetShiftState [08:45:20]SAM_PROTO_GetShiftState [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 13 01 00 [08:45:20]Write to MH i2c: E2 08 00 5C 28 80 13 01 00 00 00 00 00 01 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 0E 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 0E 00 5C 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [08:45:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:45:20]wFMCommunicate OK [08:45:20]SAM_PROTO_GetShiftState done [08:45:20]FM_GetShiftState done [08:45:20]req_shift_opened done [08:45:20]requested_item shift.open_date is exist - process it [08:45:20]req_shift_open_date [08:45:20]req_shift_open_date done [08:45:20]produce_requested_data done [08:45:20]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166619,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:45:20]process_action_free get_value [08:45:20]json_value_free [08:45:20]json_value_free done [08:45:20]process_json_proto returns [08:45:20]Send response to host [08:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166619,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:45:20]free response buf [08:45:20]execute_script done [08:45:20]execute_script returns [08:45:20]free content buf [08:45:20]Sock 9.Close socket [08:45:20]Sock 9.Thread stoped [08:45:20]accept exits with 7 [08:45:20]New connection [08:45:20]New thread 3067632996 created [08:45:20]Thread 3067489636 joined [08:45:20]Waiting for new connection... [08:45:20] Sock 7.Parse request [08:45:20]Sock 7.Check first char [08:45:20]Sock 7.First char is OK [08:45:20]request: POST /json_proto HTTP/1.0 [08:45:20]Method: POST [08:45:20]URL: /json_proto [08:45:20]Method is POST - this is cgi request [08:45:20]url: /json_proto [08:45:20]query_string will be loaded in cgi processing [08:45:20]execute_cgi json_proto POST (null) [08:45:20]execute_cgi path=json_proto method=POST [08:45:20]POST find Content-Length [08:45:20]Host: 172.17.53.195:8080 [08:45:20]Content-Length: 331 [08:45:20]Content-Type: application/json [08:45:20] [08:45:20]POST finish read [08:45:20]Found Content-Length = 331 [08:45:20]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" ] } } [08:45:20]execute_script... [08:45:20]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" ] } } [08:45:20]POST & json_proto [08:45:20]process_json_proto [08:45:20]json parsed OK: [08:45:20]protocol is kg_v1.0 [08:45:20]action value=get_value [08:45:20]process_action get_value [08:45:20]cmd_get_value [08:45:20]process_action get_value done [08:45:20]requested_data is exist [08:45:20]produce_requested_data [08:45:20]requested_item fm.sale.total is exist - process it [08:45:20]SAM_PROTO_GetFMData [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 13 03 00 [08:45:20]Write to MH i2c: E2 08 00 5D 28 80 13 03 00 00 00 00 00 04 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:45:21]Read from MH i2c: E2 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 5D 28 00 C5 04 85 04 C1 04 6E 04 04 00 A9 86 02 00 69 04 A3 00 6F 04 04 00 AA 85 02 00 B1 04 05 00 E1 00 92 B4 03 70 04 05 00 10 0E 8C 2A 03 72 04 04 00 D1 F2 05 8A 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 91 95 C6 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 29 C9 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 06 [08:45:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A9 86 02 00 69 04 A3 00 6F 04 04 00 AA 85 02 00 B1 04 05 00 E1 00 92 B4 03 70 04 05 00 10 0E 8C 2A 03 72 04 04 00 D1 F2 05 8A 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 91 95 C6 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 29 C9 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [08:45:21]wFMCommunicate OK [08:45:21]wFMCommunicate request_size=4 [08:45:21]MH_SAM_APDU [08:45:21]CAPDU: 80 17 00 00 [08:45:21]Write to MH i2c: E2 08 00 5E 28 80 17 00 00 00 00 00 00 06 [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:21]Read from MH i2c: E2 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 5E 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D2 [08:45:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:45:21]wFMCommunicate OK [08:45:21]wFMCommunicate request_size=4 [08:45:21]MH_SAM_APDU [08:45:21]CAPDU: 80 17 00 00 [08:45:21]Write to MH i2c: E2 08 00 5F 28 80 17 00 00 00 00 00 00 07 [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:21]Read from MH i2c: E2 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: E2 FD 00 5F 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 19 [08:45:21]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:45:21]wFMCommunicate OK [08:45:21]wFMCommunicate request_size=4 [08:45:21]MH_SAM_APDU [08:45:21]CAPDU: 80 17 00 00 [08:45:21]Write to MH i2c: E2 08 00 60 28 80 17 00 00 00 00 00 00 08 [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 [08:45:22]MH_I2C_Read... [08:45:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:22]Read from MH i2c: E2 FD 00 [08:45:22]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 FD 00 60 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 94 [08:45:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:45:22]wFMCommunicate OK [08:45:22]wFMCommunicate request_size=4 [08:45:22]MH_SAM_APDU [08:45:22]CAPDU: 80 17 00 00 [08:45:22]Write to MH i2c: E2 08 00 61 28 80 17 00 00 00 00 00 00 09 [08:45:22]Write i2c OK [08:45:22]MH_I2C_Read... [08:45:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:45:22]Read from MH i2c: E2 [08:45:22]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 E2 00 [08:45:22]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 E2 00 61 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [08:45:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:45:22]wFMCommunicate OK [08:45:22]SAM_PROTO_GetFMData done [08:45:22]requested_item fm.sale_refund.total is exist - process it [08:45:22]requested_item fm.buy.total is exist - process it [08:45:22]requested_item shift.sale.total is exist - process it [08:45:22]SAM_PROTO_GetShiftData [08:45:22]wFMCommunicate request_size=4 [08:45:22]MH_SAM_APDU [08:45:22]CAPDU: 80 13 02 00 [08:45:22]Write to MH i2c: E2 08 00 62 28 80 13 02 00 00 00 00 00 08 [08:45:22]Write i2c OK [08:45:22]MH_I2C_Read... [08:45:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:45:22]Read from MH i2c: E2 [08:45:22]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 FD 00 [08:45:22]MH_I2C_Read... [08:45:22]Read from MH i2c: E2 FD 00 62 28 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 53 C6 35 70 04 03 00 74 F5 31 72 04 03 00 DF 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 59 B6 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 DD 79 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 11 [08:45:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 53 C6 35 70 04 03 00 74 F5 31 72 04 03 00 DF 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 59 B6 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 DD 79 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:45:22]wFMCommunicate OK [08:45:22]wFMCommunicate request_size=4 [08:45:22]MH_SAM_APDU [08:45:22]CAPDU: 80 17 00 00 [08:45:22]Write to MH i2c: E2 08 00 63 28 80 17 00 00 00 00 00 00 0B [08:45:22]Write i2c OK [08:45:22]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 63 28 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 2D [08:45:23]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 [08:45:23]wFMCommunicate OK [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 17 00 00 [08:45:23]Write to MH i2c: E2 08 00 64 28 80 17 00 00 00 00 00 00 0C [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]OFD Sender: No OFD packet to send [08:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 64 28 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [08:45:23]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 [08:45:23]wFMCommunicate OK [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 17 00 00 [08:45:23]Write to MH i2c: E2 08 00 65 28 80 17 00 00 00 00 00 00 0D [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 FD 00 65 28 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 7F [08:45:23]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 [08:45:23]wFMCommunicate OK [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 17 00 00 [08:45:23]Write to MH i2c: E2 08 00 66 28 80 17 00 00 00 00 00 00 0E [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 CB 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 CB 00 66 28 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 F7 [08:45:23]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 [08:45:24]wFMCommunicate OK [08:45:24]SAM_PROTO_GetShiftData done [08:45:24]requested_item shift.sale.total_cash is exist - process it [08:45:24]requested_item shift.sale_refund.total is exist - process it [08:45:24]requested_item shift.sale_refund.total_cash is exist - process it [08:45:24]requested_item shift.buy.total is exist - process it [08:45:24]requested_item shift.buy.total_cash is exist - process it [08:45:24]produce_requested_data done [08:45:24]produce_requested_data return {"fm.sale.total":159143692.49,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":35241.79,"shift.sale.total_cash":32741.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} [08:45:24]process_action_free get_value [08:45:24]json_value_free [08:45:24]json_value_free done [08:45:24]process_json_proto returns [08:45:24]Send response to host [08:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159143692.49,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":35241.79,"shift.sale.total_cash":32741.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}}} [08:45:24]free response buf [08:45:24]execute_script done [08:45:24]execute_script returns [08:45:24]free content buf [08:45:24]Sock 7.Close socket [08:45:24]Sock 7.Thread stoped [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:32]accept exits with 9 [08:47:32]New connection [08:47:32]New thread 3067489636 created [08:47:32]Thread 3067632996 joined [08:47:32]Waiting for new connection... [08:47:32] Sock 9.Parse request [08:47:32]Sock 9.Check first char [08:47:32]Sock 9.First char is OK [08:47:32]request: POST /json_proto HTTP/1.0 [08:47:32]Method: POST [08:47:32]URL: /json_proto [08:47:32]Method is POST - this is cgi request [08:47:32]url: /json_proto [08:47:32]query_string will be loaded in cgi processing [08:47:32]execute_cgi json_proto POST (null) [08:47:32]execute_cgi path=json_proto method=POST [08:47:32]POST find Content-Length [08:47:32]Host: 172.17.53.195:8080 [08:47:32]Content-Length: 679 [08:47:32]Content-Type: application/json [08:47:32] [08:47:32]POST finish read [08:47:32]Found Content-Length = 679 [08:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:32]execute_script... [08:47: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)221201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:32]POST & json_proto [08:47:32]process_json_proto [08:47:32]json parsed OK: [08:47:32]protocol is kg_v1.0 [08:47:32]action value=close_receipt [08:47:32]process_action close_receipt [08:47:32]cmd_close_receipt [08:47:32]MH_GetDate [08:47:32]Write to MH i2c: F0 00 00 67 28 7E [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 09 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 09 00 67 28 00 28 B8 18 67 21 48 4A 65 FE [08:47:32]GetLastDocTimeStamp 1729672909 [08:47:32]current date 1729673256 [08:47:32]FM_GetShiftState [08:47:32]SAM_PROTO_GetShiftState [08:47:32]wFMCommunicate request_size=4 [08:47:32]MH_SAM_APDU [08:47:32]CAPDU: 80 13 01 00 [08:47:32]Write to MH i2c: E2 08 00 68 28 80 13 01 00 00 00 00 00 0D [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:32]Read from MH i2c: E2 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 68 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D8 [08:47:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:47:32]wFMCommunicate OK [08:47:32]SAM_PROTO_GetShiftState done [08:47:32]FM_GetShiftState done [08:47:32]opened in 1729643772 [08:47:32]opened+sec_in_day 1729730172 [08:47:32]quantity*price = 200025 [08:47:32]sum+1 = 200026 [08:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 35 23.10.2024 08:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166620 ФПД: 65549271528577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084736&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166620&fm=65549271528577&tin=02508201610067®Number=0000000000091764&sum=200000 [08:47:33]StoreToDocumentArchive [08:47:33]shift 537 fd 166620 [08:47:33]save to /storage/0537/doc_00166620 [08:47:33]save last doc name /storage/0537/doc_00166620 to /storage/kkm_last_doc_name [08:47:33]save OK [08:47:33]Clear old archive folders... [08:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:47:33]tlvbuf is 0122A970 [08:47:33]SAM_PROTO_ClearQueue [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 09 00 00 [08:47:33]Write to MH i2c: E2 08 00 75 28 80 09 00 00 00 00 00 00 0F [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 75 28 00 90 00 11 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_ClearQueue done [08:47:33]KKMCreateOFDPacket [08:47:33]OFDProtocolAddRootSTLVToBuf [08:47:33]FM_MakeSignedData [08:47:33]FM_MakeSignedData [08:47:33]SAM_PROTO_SignData [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 0D 01 02 [08:47:33]Write to MH i2c: E2 08 00 76 28 80 0D 01 02 00 00 00 00 17 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]OFD Sender: No OFD packet to send [08:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 76 28 00 90 00 12 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]wFMCommunicate request_size=255 [08:47:33]MH_SAM_APDU [08:47: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8A 02 00 35 04 06 00 3B 9D E1 0B [08:47:33]Write to MH i2c: E2 02 01 77 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8A 02 00 35 04 06 00 3B 9D E1 0B 00 00 5A [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 77 28 00 90 00 13 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]wFMCommunicate request_size=7 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 0D 02 02 02 74 81 [08:47:33]Write to MH i2c: E2 0A 00 78 28 80 0D 02 02 02 00 74 81 00 00 13 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 78 28 00 90 00 14 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 0D 03 02 [08:47:33]Write to MH i2c: E2 08 00 79 28 80 0D 03 02 00 00 00 00 1C [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0B 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0B 00 79 28 00 C2 F9 70 9E 8E CB 02 16 90 00 57 [08:47:33]RAPDU: C2 F9 70 9E 8E CB 02 16 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_SignData done [08:47:33]FM_MakeSignedData done [08:47:33]CreateOFDProtocolMessage [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 11 00 00 [08:47:33]Write to MH i2c: E2 08 00 7A 28 80 11 00 00 00 00 00 00 1C [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 17 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 17 00 7A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [08:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:47:33]wFMCommunicate OK [08:47:33]CreateOFDProtocolMessage done [08:47:33]OFDSenderStorePacket 166620 [08:47:33]StoreOFDPacket docnum=166620 [08:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 A4 04 01 0A A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8A 02 00 35 04 06 00 3B 9D E1 0B 74 81 C2 F9 70 9E 8E CB 02 16 [08:47:33]CheckFolder [08:47:33]dirname=/storage/ofd_packets [08:47:33]CheckFolder done [08:47:33]ProducePacketName [08:47:33]name=ofd_packets/00166620 [08:47:33]NVStorageSaveData ofd_packets/00166620 [08:47:33]File name is /storage/ofd_packets/00166620 [08:47:33]Write 298 bytes [08:47:33]NVStorageSaveData done [08:47:33]OFDSenderStorePacket done [08:47:33]KKMCreateOFDPacket done [08:47:33]NVStorageSaveData kkm_last_timestamp [08:47:33]File name is /storage/kkm_last_timestamp [08:47:33]Write 4 bytes [08:47:33]NVStorageSaveData done [08:47:33]ExternCall_PrintAddStr [08:47:33]wPrintStart [08:47:33]Write to MH i2c: 01 00 00 7B 28 A3 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: 01 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: 01 07 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: 01 07 00 7B 28 00 00 00 00 00 FF 0F B8 [08:47:33]RasterBufferAndPrint [08:47:33]line Счет N : (1)221201 [08:47:33]line ИНН: 02508201610067 [08:47:33]line Контрольно-Кассовый Чек [08:47:33]line ПРОДАЖА [08:47:33]line ТРК (МРК, ГНК) : 11 [08:47:33]line Товар: 2710194210 [08:47:33]line ДТ-К-5 [08:47:33]line 26.250 * 76.20 [08:47:33]line = 2000.25 [08:47:33]line НДС 12% НСП 1% [08:47:33]line > о реализуемом товаре [08:47:33]line ОКРУГЛЕНИЕ: -0.25 [08:47:33]line ИТОГО: 2000.00 [08:47:33]line Внесено: 2000.00 [08:47:33]line СДАЧА: 0.00 [08:47:33]line НСП 1% : 17.70 [08:47:33]line НДС 12% : 212.42 [08:47:33]line Наличными: 2000.00 [08:47:33]line Безнал.: 0.00 [08:47:33]line Место: АЗС № 161 "Партнер Нефть" [08:47:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:47:33]line СНО: Общий режим [08:47:33]line Чек 35 23.10.2024 08:47 [08:47:33]line Смена: 537 ФФД: 1.0 [08:47:33]line ЗНМ: 0300000104 [08:47:33]line РНМ: 0000000000091764 [08:47:33]line Версия ККМ: 001 [08:47:33]line ФМ: 0000000000871759 [08:47:33]line ФД: 166620 [08:47:33]line ФПД: 65549271528577 [08:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084736&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166620&fm=65549271528577&tin=02508201610067®Number=0000000000091764&sum=200000 [08:47:34]OFD Sender: Processing packet 166620 [packets to send 48, broken 47] [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00166620 [08:47:34]OFD Sender: To server: pG, [08:47:34]CommunicateWithHost lk.salyk.kg:30040 [08:47:34]ConnectInit lk.salyk.kg [08:47:34]written 0, free lines is 4095 [08:47:34]Connected sock=10 [08:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 A4 04 01 0A A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8A 02 00 35 04 06 00 3B 9D E1 0B 74 81 C2 F9 70 9E 8E CB 02 16 [08:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F 37 47 00 1C 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8A 02 00 F4 03 04 00 90 5E 18 67 B6 04 01 00 00 9B 45 81 1D 2C 6C F1 BE [08:47:34]CommunicateWithHost err = 0 [08:47:34]CheckOFDResponse [08:47:34]1017 (14) - 77093643461234 [08:47:34]1041 (16) - 0000000000871759 [08:47:34]1040 (4) - 166620 [08:47:34]1012 (4) - 23.10.2024 02:25 [08:47:34]1206 (1) - 0 [08:47:34]OFD Sender: Remove packet 166620 [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00166620 [08:47:34]NVStorageDeleteData [08:47:34]Write to MH i2c: 01 00 00 A6 28 CE [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 A6 28 00 00 00 00 00 AB 0C 8C [08:47:34]RasterBufferAndPrint [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]written 0, free lines is 3250 [08:47:34]MH_Cut [08:47:34]Write to MH i2c: D1 01 00 AD 28 01 A7 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 01 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 01 00 AD 28 00 A6 [08:47:34]Write to MH i2c: 01 00 00 AE 28 D6 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]OFD Sender: No OFD packet to send [08:47:35]*** Cut start [08:47:35]*** Partial cut [08:47:35]*** CUTSNS_PIN = 1 [08:47:35]*** CUTSNS_PIN = 0 [08:47:35]*** Brake cut motor [08:47:36]Read from MH i2c: 01 [08:47:36]MH_I2C_Read... [08:47:36]*** Stop cut motor [08:47:36]*** Cut end [08:47:36]Read from MH i2c: 01 07 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: 01 07 00 AE 28 00 00 00 00 00 FF 0F EB [08:47:36]process_action close_receipt done [08:47:36]requested_data is exist [08:47:36]produce_requested_data [08:47:36]requested_item fm.sn is exist - process it [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 11 00 00 [08:47:36]Write to MH i2c: E2 08 00 AF 28 80 11 00 00 00 00 00 00 51 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 AF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [08:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:47:36]wFMCommunicate OK [08:47:36]requested_item fd.num is exist - process it [08:47:36]SAM_PROTO_GetFieldsCounters [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 13 00 00 [08:47:36]Write to MH i2c: E2 08 00 B0 28 80 13 00 00 00 00 00 00 54 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 62 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 62 00 B0 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [08:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:36]wFMCommunicate OK [08:47:36]SAM_PROTO_GetFieldsCounters done [08:47:36]requested_item shift.num is exist - process it [08:47:36]requested_item shift.opened is exist - process it [08:47:36]req_shift_opened [08:47:36]FM_GetShiftState [08:47:36]SAM_PROTO_GetShiftState [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 13 01 00 [08:47:36]Write to MH i2c: E2 08 00 B1 28 80 13 01 00 00 00 00 00 56 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 0E 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 0E 00 B1 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 21 [08:47:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:47:36]wFMCommunicate OK [08:47:36]SAM_PROTO_GetShiftState done [08:47:36]FM_GetShiftState done [08:47:36]req_shift_opened done [08:47:36]requested_item shift.open_date is exist - process it [08:47:36]req_shift_open_date [08:47:36]req_shift_open_date done [08:47:36]produce_requested_data done [08:47:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166620,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:47:36]process_action_free close_receipt [08:47:36]json_value_free [08:47:36]json_value_free done [08:47:36]process_json_proto returns [08:47:36]Send response to host [08:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166620,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:47:36]free response buf [08:47:36]execute_script done [08:47:36]execute_script returns [08:47:36]free content buf [08:47:36]Sock 9.Close socket [08:47:36]Sock 9.Thread stoped [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:14]accept exits with 7 [08:49:14]New connection [08:49:14]New thread 3067632996 created [08:49:14]Thread 3067489636 joined [08:49:14]Waiting for new connection... [08:49:14] Sock 7.Parse request [08:49:14]Sock 7.Check first char [08:49:14]Sock 7.First char is OK [08:49:14]request: POST /json_proto HTTP/1.0 [08:49:14]Method: POST [08:49:14]URL: /json_proto [08:49:14]Method is POST - this is cgi request [08:49:14]url: /json_proto [08:49:14]query_string will be loaded in cgi processing [08:49:14]execute_cgi json_proto POST (null) [08:49:14]execute_cgi path=json_proto method=POST [08:49:14]POST find Content-Length [08:49:14]Host: 172.17.53.195:8080 [08:49:14]Content-Length: 677 [08:49:14]Content-Type: application/json [08:49:14] [08:49:14]POST finish read [08:49:14]Found Content-Length = 677 [08:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:14]execute_script... [08:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:14]POST & json_proto [08:49:14]process_json_proto [08:49:14]json parsed OK: [08:49:14]protocol is kg_v1.0 [08:49:14]action value=close_receipt [08:49:14]process_action close_receipt [08:49:14]cmd_close_receipt [08:49:14]MH_GetDate [08:49:14]Write to MH i2c: F0 00 00 B2 28 C9 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 09 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 09 00 B2 28 00 8E B8 18 67 21 48 4A 65 AF [08:49:14]GetLastDocTimeStamp 1729673256 [08:49:14]current date 1729673358 [08:49:14]FM_GetShiftState [08:49:14]SAM_PROTO_GetShiftState [08:49:14]wFMCommunicate request_size=4 [08:49:14]MH_SAM_APDU [08:49:14]CAPDU: 80 13 01 00 [08:49:14]Write to MH i2c: E2 08 00 B3 28 80 13 01 00 00 00 00 00 58 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:14]Read from MH i2c: E2 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 0E 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 0E 00 B3 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 23 [08:49:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:49:14]wFMCommunicate OK [08:49:14]SAM_PROTO_GetShiftState done [08:49:14]FM_GetShiftState done [08:49:14]opened in 1729643772 [08:49:14]opened+sec_in_day 1729730172 [08:49:14]quantity*price = 70044 [08:49:14]sum+1 = 70046 [08:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 36 23.10.2024 08:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166621 ФПД: 260047918007055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166621&fm=260047918007055&tin=02508201610067®Number=0000000000091764&sum=70000 [08:49:15]StoreToDocumentArchive [08:49:15]shift 537 fd 166621 [08:49:15]save to /storage/0537/doc_00166621 [08:49:15]save last doc name /storage/0537/doc_00166621 to /storage/kkm_last_doc_name [08:49:15]save OK [08:49:15]Clear old archive folders... [08:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:15]tlvbuf is B6FFE9A0 [08:49:15]SAM_PROTO_ClearQueue [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 09 00 00 [08:49:15]Write to MH i2c: E2 08 00 C0 28 80 09 00 00 00 00 00 00 5A [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 C0 28 00 90 00 5C [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_ClearQueue done [08:49:15]KKMCreateOFDPacket [08:49:15]OFDProtocolAddRootSTLVToBuf [08:49:15]FM_MakeSignedData [08:49:15]FM_MakeSignedData [08:49:15]SAM_PROTO_SignData [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 01 02 [08:49:15]Write to MH i2c: E2 08 00 C1 28 80 0D 01 02 00 00 00 00 62 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 C1 28 00 90 00 5D [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=255 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8A 02 00 35 04 06 00 EC [08:49:15]Write to MH i2c: E2 02 01 C2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8A 02 00 35 04 06 00 EC 00 00 38 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 C2 28 00 90 00 5E [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=10 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 02 02 05 83 1F C7 03 0F [08:49:15]Write to MH i2c: E2 0D 00 C3 28 80 0D 02 02 05 00 83 1F C7 03 0F 00 00 EA [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 C3 28 00 90 00 5F [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 03 02 [08:49:15]Write to MH i2c: E2 08 00 C4 28 80 0D 03 02 00 00 00 00 67 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0B 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0B 00 C4 28 00 52 2E 58 2A 35 0F CA A6 90 00 1E [08:49:15]RAPDU: 52 2E 58 2A 35 0F CA A6 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_SignData done [08:49:15]FM_MakeSignedData done [08:49:15]CreateOFDProtocolMessage [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 11 00 00 [08:49:15]Write to MH i2c: E2 08 00 C5 28 80 11 00 00 00 00 00 00 67 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 17 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 17 00 C5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [08:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:49:15]wFMCommunicate OK [08:49:15]CreateOFDProtocolMessage done [08:49:15]OFDSenderStorePacket 166621 [08:49:15]StoreOFDPacket docnum=166621 [08:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 47 07 01 2A 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8A 02 00 35 04 06 00 EC 83 1F C7 03 0F 52 2E 58 2A 35 0F CA A6 [08:49:15]CheckFolder [08:49:15]dirname=/storage/ofd_packets [08:49:15]CheckFolder done [08:49:15]ProducePacketName [08:49:15]name=ofd_packets/00166621 [08:49:15]NVStorageSaveData ofd_packets/00166621 [08:49:15]File name is /storage/ofd_packets/00166621 [08:49:15]Write 301 bytes [08:49:15]NVStorageSaveData done [08:49:15]OFDSenderStorePacket done [08:49:15]KKMCreateOFDPacket done [08:49:15]NVStorageSaveData kkm_last_timestamp [08:49:15]File name is /storage/kkm_last_timestamp [08:49:15]Write 4 bytes [08:49:15]NVStorageSaveData done [08:49:15]ExternCall_PrintAddStr [08:49:15]wPrintStart [08:49:15]Write to MH i2c: 01 00 00 C6 28 EE [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 07 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 07 00 C6 28 00 00 00 00 00 FF 0F 03 [08:49:15]RasterBufferAndPrint [08:49:15]line Счет N : (1)221202 [08:49:15]line ИНН: 02508201610067 [08:49:15]line Контрольно-Кассовый Чек [08:49:15]line ПРОДАЖА [08:49:15]line ТРК (МРК, ГНК) : 34 [08:49:15]line Товар: 2710124500 [08:49:15]line Аи-95-К-5 [08:49:15]line 9.440 * 74.20 [08:49:15]line = 700.45 [08:49:15]line НДС 12% НСП 1% [08:49:15]line > о реализуемом товаре [08:49:15]line ОКРУГЛЕНИЕ: -0.45 [08:49:15]line ИТОГО: 700.00 [08:49:15]line Внесено: 700.00 [08:49:15]line СДАЧА: 0.00 [08:49:15]line НСП 1% : 6.20 [08:49:15]line НДС 12% : 74.38 [08:49:15]line Наличными: 700.00 [08:49:15]line Безнал.: 0.00 [08:49:15]line Место: АЗС № 161 "Партнер Нефть" [08:49:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:49:15]line СНО: Общий режим [08:49:15]line Чек 36 23.10.2024 08:49 [08:49:15]line Смена: 537 ФФД: 1.0 [08:49:15]line ЗНМ: 0300000104 [08:49:15]line РНМ: 0000000000091764 [08:49:15]line Версия ККМ: 001 [08:49:15]line ФМ: 0000000000871759 [08:49:15]line ФД: 166621 [08:49:15]line ФПД: 260047918007055 [08:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166621&fm=260047918007055&tin=02508201610067®Number=0000000000091764&sum=70000 [08:49:16]OFD Sender: Processing packet 166621 [packets to send 48, broken 47] [08:49:16]ProducePacketName [08:49:16]name=ofd_packets/00166621 [08:49:16]OFD Sender: To server: pG, [08:49:16]CommunicateWithHost lk.salyk.kg:30040 [08:49:16]ConnectInit lk.salyk.kg [08:49:16]written 0, free lines is 4095 [08:49:16]Connected sock=10 [08:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 47 07 01 2A 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E B8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8A 02 00 35 04 06 00 EC 83 1F C7 03 0F 52 2E 58 2A 35 0F CA A6 [08:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 73 47 00 05 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8A 02 00 F4 03 04 00 F6 5E 18 67 B6 04 01 00 00 3B 09 98 17 19 B8 0A 70 [08:49:16]CommunicateWithHost err = 0 [08:49:16]CheckOFDResponse [08:49:16]1017 (14) - 77093643461234 [08:49:16]1041 (16) - 0000000000871759 [08:49:16]1040 (4) - 166621 [08:49:16]1012 (4) - 23.10.2024 02:27 [08:49:16]1206 (1) - 0 [08:49:16]OFD Sender: Remove packet 166621 [08:49:16]ProducePacketName [08:49:16]name=ofd_packets/00166621 [08:49:16]NVStorageDeleteData [08:49:16]Write to MH i2c: 01 00 00 F1 28 19 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 07 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 07 00 F1 28 00 00 00 00 00 AF 0C DB [08:49:16]RasterBufferAndPrint [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]written 0, free lines is 3254 [08:49:16]MH_Cut [08:49:16]Write to MH i2c: D1 01 00 F8 28 01 F2 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 01 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 01 00 F8 28 00 F1 [08:49:16]Write to MH i2c: 01 00 00 F9 28 21 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:17]OFD Sender: No OFD packet to send [08:49:17]*** Cut start [08:49:17]*** Partial cut [08:49:17]*** CUTSNS_PIN = 1 [08:49:17]*** CUTSNS_PIN = 0 [08:49:17]*** Brake cut motor [08:49:18]Read from MH i2c: 01 [08:49:18]MH_I2C_Read... [08:49:18]*** Stop cut motor [08:49:18]*** Cut end [08:49:18]Read from MH i2c: 01 07 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 F9 28 00 00 00 00 00 FF 0F 36 [08:49:18]process_action close_receipt done [08:49:18]requested_data is exist [08:49:18]produce_requested_data [08:49:18]requested_item fm.sn is exist - process it [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 11 00 00 [08:49:18]Write to MH i2c: E2 08 00 FA 28 80 11 00 00 00 00 00 00 9C [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 FA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [08:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:49:18]wFMCommunicate OK [08:49:18]requested_item fd.num is exist - process it [08:49:18]SAM_PROTO_GetFieldsCounters [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 13 00 00 [08:49:18]Write to MH i2c: E2 08 00 FB 28 80 13 00 00 00 00 00 00 9F [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 62 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 62 00 FB 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [08:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_GetFieldsCounters done [08:49:18]requested_item shift.num is exist - process it [08:49:18]requested_item shift.opened is exist - process it [08:49:18]req_shift_opened [08:49:18]FM_GetShiftState [08:49:18]SAM_PROTO_GetShiftState [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 13 01 00 [08:49:18]Write to MH i2c: E2 08 00 FC 28 80 13 01 00 00 00 00 00 A1 [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 FC 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6C [08:49:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_GetShiftState done [08:49:18]FM_GetShiftState done [08:49:18]req_shift_opened done [08:49:18]requested_item shift.open_date is exist - process it [08:49:18]req_shift_open_date [08:49:18]req_shift_open_date done [08:49:18]produce_requested_data done [08:49:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166621,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:49:18]process_action_free close_receipt [08:49:18]json_value_free [08:49:18]json_value_free done [08:49:18]process_json_proto returns [08:49:18]Send response to host [08:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166621,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:49:18]free response buf [08:49:18]execute_script done [08:49:18]execute_script returns [08:49:18]free content buf [08:49:18]Sock 7.Close socket [08:49:18]Sock 7.Thread stoped [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:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:54]accept exits with 9 [08:51:54]New connection [08:51:54]New thread 3067489636 created [08:51:54]Thread 3067632996 joined [08:51:54]Waiting for new connection... [08:51:54] Sock 9.Parse request [08:51:54]Sock 9.Check first char [08:51:54]Sock 9.First char is OK [08:51:54]request: POST /json_proto HTTP/1.0 [08:51:54]Method: POST [08:51:54]URL: /json_proto [08:51:54]Method is POST - this is cgi request [08:51:54]url: /json_proto [08:51:54]query_string will be loaded in cgi processing [08:51:54]execute_cgi json_proto POST (null) [08:51:54]execute_cgi path=json_proto method=POST [08:51:54]POST find Content-Length [08:51:54]Host: 172.17.53.195:8080 [08:51:54]Content-Length: 677 [08:51:54]Content-Type: application/json [08:51:54] [08:51:54]POST finish read [08:51:54]Found Content-Length = 677 [08:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:54]execute_script... [08:51:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:54]POST & json_proto [08:51:54]process_json_proto [08:51:54]json parsed OK: [08:51:54]protocol is kg_v1.0 [08:51:54]action value=close_receipt [08:51:54]process_action close_receipt [08:51:54]cmd_close_receipt [08:51:54]MH_GetDate [08:51:54]Write to MH i2c: F0 00 00 FD 28 14 [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 09 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 09 00 FD 28 00 2E B9 18 67 21 48 4A 65 9B [08:51:54]GetLastDocTimeStamp 1729673358 [08:51:54]current date 1729673518 [08:51:54]FM_GetShiftState [08:51:54]SAM_PROTO_GetShiftState [08:51:54]wFMCommunicate request_size=4 [08:51:54]MH_SAM_APDU [08:51:54]CAPDU: 80 13 01 00 [08:51:54]Write to MH i2c: E2 08 00 FE 28 80 13 01 00 00 00 00 00 A3 [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:54]Read from MH i2c: E2 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: E2 0E 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: E2 0E 00 FE 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6E [08:51:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:51:54]wFMCommunicate OK [08:51:54]SAM_PROTO_GetShiftState done [08:51:54]FM_GetShiftState done [08:51:54]opened in 1729643772 [08:51:54]opened+sec_in_day 1729730172 [08:51:54]quantity*price = 20003 [08:51:54]sum+1 = 20004 [08:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 37 23.10.2024 08:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166622 ФПД: 37973144364268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085159&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166622&fm=37973144364268&tin=02508201610067®Number=0000000000091764&sum=20000 [08:51:55]StoreToDocumentArchive [08:51:55]shift 537 fd 166622 [08:51:55]save to /storage/0537/doc_00166622 [08:51:55]save last doc name /storage/0537/doc_00166622 to /storage/kkm_last_doc_name [08:51:55]save OK [08:51:55]Clear old archive folders... [08:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:55]tlvbuf is 01298720 [08:51:55]SAM_PROTO_ClearQueue [08:51:55]wFMCommunicate request_size=4 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 09 00 00 [08:51:55]Write to MH i2c: E2 08 00 0B 29 80 09 00 00 00 00 00 00 A6 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 0B 29 00 90 00 A8 [08:51:56]RAPDU: 90 00 [08:51:56]wFMCommunicate OK [08:51:56]SAM_PROTO_ClearQueue done [08:51:56]KKMCreateOFDPacket [08:51:56]OFDProtocolAddRootSTLVToBuf [08:51:56]FM_MakeSignedData [08:51:56]FM_MakeSignedData [08:51:56]SAM_PROTO_SignData [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 0D 01 02 [08:51:56]Write to MH i2c: E2 08 00 0C 29 80 0D 01 02 00 00 00 00 AE [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 0C 29 00 90 00 A9 [08:51:56]RAPDU: 90 00 [08:51:56]wFMCommunicate OK [08:51:56]wFMCommunicate request_size=255 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2F B9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8A 02 00 35 04 06 00 22 [08:51:56]Write to MH i2c: E2 02 01 0D 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2F B9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8A 02 00 35 04 06 00 22 00 00 39 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 0D 29 00 90 00 AA [08:51:56]RAPDU: 90 00 [08:51:56]wFMCommunicate OK [08:51:56]wFMCommunicate request_size=10 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 0D 02 02 05 89 4F C7 E4 EC [08:51:56]Write to MH i2c: E2 0D 00 0E 29 80 0D 02 02 05 00 89 4F C7 E4 EC 00 00 2A [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 03 00 0E 29 00 90 00 AB [08:51:56]RAPDU: 90 00 [08:51:56]wFMCommunicate OK [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 0D 03 02 [08:51:56]Write to MH i2c: E2 08 00 0F 29 80 0D 03 02 00 00 00 00 B3 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0B 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0B 00 0F 29 00 89 25 88 C2 BE 9C 0D 8E 90 00 A1 [08:51:56]RAPDU: 89 25 88 C2 BE 9C 0D 8E 90 00 [08:51:56]wFMCommunicate OK [08:51:56]SAM_PROTO_SignData done [08:51:56]FM_MakeSignedData done [08:51:56]CreateOFDProtocolMessage [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 11 00 00 [08:51:56]Write to MH i2c: E2 08 00 10 29 80 11 00 00 00 00 00 00 B3 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 17 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 17 00 10 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [08:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:51:56]wFMCommunicate OK [08:51:56]CreateOFDProtocolMessage done [08:51:56]OFDSenderStorePacket 166622 [08:51:56]StoreOFDPacket docnum=166622 [08:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF F6 07 01 72 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2F B9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8A 02 00 35 04 06 00 22 89 4F C7 E4 EC 89 25 88 C2 BE 9C 0D 8E [08:51:56]CheckFolder [08:51:56]dirname=/storage/ofd_packets [08:51:56]CheckFolder done [08:51:56]ProducePacketName [08:51:56]name=ofd_packets/00166622 [08:51:56]NVStorageSaveData ofd_packets/00166622 [08:51:56]File name is /storage/ofd_packets/00166622 [08:51:56]Write 301 bytes [08:51:56]NVStorageSaveData done [08:51:56]OFDSenderStorePacket done [08:51:56]KKMCreateOFDPacket done [08:51:56]NVStorageSaveData kkm_last_timestamp [08:51:56]File name is /storage/kkm_last_timestamp [08:51:56]Write 4 bytes [08:51:56]NVStorageSaveData done [08:51:56]ExternCall_PrintAddStr [08:51:56]wPrintStart [08:51:56]Write to MH i2c: 01 00 00 11 29 3A [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 07 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 07 00 11 29 00 00 00 00 00 FF 0F 4F [08:51:56]RasterBufferAndPrint [08:51:56]line Счет N : (1)221203 [08:51:56]line ИНН: 02508201610067 [08:51:56]line Контрольно-Кассовый Чек [08:51:56]line ПРОДАЖА [08:51:56]line ТРК (МРК, ГНК) : 23 [08:51:56]line Товар: 2710124130 [08:51:56]line Аи-92-К-5 [08:51:56]line 2.990 * 66.90 [08:51:56]line = 200.03 [08:51:56]line НДС 12% НСП 1% [08:51:56]line > о реализуемом товаре [08:51:56]line ОКРУГЛЕНИЕ: -0.03 [08:51:56]line ИТОГО: 200.00 [08:51:56]line Внесено: 200.00 [08:51:56]line СДАЧА: 0.00 [08:51:56]line НСП 1% : 1.77 [08:51:56]line НДС 12% : 21.24 [08:51:56]line Наличными: 200.00 [08:51:56]line Безнал.: 0.00 [08:51:56]line Место: АЗС № 161 "Партнер Нефть" [08:51:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:51:56]line СНО: Общий режим [08:51:56]line Чек 37 23.10.2024 08:51 [08:51:56]line Смена: 537 ФФД: 1.0 [08:51:56]line ЗНМ: 0300000104 [08:51:56]line РНМ: 0000000000091764 [08:51:56]line Версия ККМ: 001 [08:51:56]line ФМ: 0000000000871759 [08:51:56]line ФД: 166622 [08:51:56]line ФПД: 37973144364268 [08:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085159&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166622&fm=37973144364268&tin=02508201610067®Number=0000000000091764&sum=20000 [08:51:56]OFD Sender: Processing packet 166622 [packets to send 48, broken 47] [08:51:56]ProducePacketName [08:51:56]name=ofd_packets/00166622 [08:51:56]OFD Sender: To server: pG, [08:51:56]CommunicateWithHost lk.salyk.kg:30040 [08:51:56]ConnectInit lk.salyk.kg [08:51:56]written 0, free lines is 4095 [08:51:56]Connected sock=10 [08:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF F6 07 01 72 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2F B9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8A 02 00 35 04 06 00 22 89 4F C7 E4 EC 89 25 88 C2 BE 9C 0D 8E [08:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E7 66 47 00 D8 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8A 02 00 F4 03 04 00 97 5F 18 67 B6 04 01 00 00 6E 42 B7 89 31 60 4D 27 [08:51:57]CommunicateWithHost err = 0 [08:51:57]CheckOFDResponse [08:51:57]1017 (14) - 77093643461234 [08:51:57]1041 (16) - 0000000000871759 [08:51:57]1040 (4) - 166622 [08:51:57]1012 (4) - 23.10.2024 02:29 [08:51:57]1206 (1) - 0 [08:51:57]OFD Sender: Remove packet 166622 [08:51:57]ProducePacketName [08:51:57]name=ofd_packets/00166622 [08:51:57]NVStorageDeleteData [08:51:57]Write to MH i2c: 01 00 00 3C 29 65 [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: 01 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: 01 07 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 A3 0C 1B [08:51:57]RasterBufferAndPrint [08:51:57]line [08:51:57]line [08:51:57]line [08:51:57]line [08:51:57]line [08:51:57]written 0, free lines is 3241 [08:51:57]MH_Cut [08:51:57]Write to MH i2c: D1 01 00 43 29 01 3E [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: D1 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: D1 01 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: D1 01 00 43 29 00 3D [08:51:57]Write to MH i2c: 01 00 00 44 29 6D [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]OFD Sender: No OFD packet to send [08:51:58]*** Cut start [08:51:58]*** Partial cut [08:51:58]*** CUTSNS_PIN = 1 [08:51:58]*** CUTSNS_PIN = 0 [08:51:58]*** Brake cut motor [08:51:58]Read from MH i2c: 01 [08:51:58]MH_I2C_Read... [08:51:58]*** Stop cut motor [08:51:58]*** Cut end [08:51:58]Read from MH i2c: 01 07 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 44 29 00 00 00 00 00 FF 0F 82 [08:51:58]process_action close_receipt done [08:51:58]requested_data is exist [08:51:58]produce_requested_data [08:51:58]requested_item fm.sn is exist - process it [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 11 00 00 [08:51:58]Write to MH i2c: E2 08 00 45 29 80 11 00 00 00 00 00 00 E8 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 45 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [08:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:51:58]wFMCommunicate OK [08:51:58]requested_item fd.num is exist - process it [08:51:58]SAM_PROTO_GetFieldsCounters [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 13 00 00 [08:51:58]Write to MH i2c: E2 08 00 46 29 80 13 00 00 00 00 00 00 EB [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 62 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 62 00 46 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [08:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:59]wFMCommunicate OK [08:51:59]SAM_PROTO_GetFieldsCounters done [08:51:59]requested_item shift.num is exist - process it [08:51:59]requested_item shift.opened is exist - process it [08:51:59]req_shift_opened [08:51:59]FM_GetShiftState [08:51:59]SAM_PROTO_GetShiftState [08:51:59]wFMCommunicate request_size=4 [08:51:59]MH_SAM_APDU [08:51:59]CAPDU: 80 13 01 00 [08:51:59]Write to MH i2c: E2 08 00 47 29 80 13 01 00 00 00 00 00 ED [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 [08:51:59]MH_I2C_Read... [08:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:59]Read from MH i2c: E2 0E 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 0E 00 47 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B8 [08:51:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:51:59]wFMCommunicate OK [08:51:59]SAM_PROTO_GetShiftState done [08:51:59]FM_GetShiftState done [08:51:59]req_shift_opened done [08:51:59]requested_item shift.open_date is exist - process it [08:51:59]req_shift_open_date [08:51:59]req_shift_open_date done [08:51:59]produce_requested_data done [08:51:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166622,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:51:59]process_action_free close_receipt [08:51:59]json_value_free [08:51:59]json_value_free done [08:51:59]process_json_proto returns [08:51:59]Send response to host [08:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166622,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:51:59]free response buf [08:51:59]execute_script done [08:51:59]execute_script returns [08:51:59]free content buf [08:51:59]Sock 9.Close socket [08:51:59]Sock 9.Thread stoped [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:55:59]accept exits with 7 [08:55:59]New connection [08:55:59]New thread 3067632996 created [08:55:59]Thread 3067489636 joined [08:55:59]Waiting for new connection... [08:55:59] Sock 7.Parse request [08:55:59]Sock 7.Check first char [08:55:59]Sock 7.First char is OK [08:55:59]request: POST /json_proto HTTP/1.0 [08:55:59]Method: POST [08:55:59]URL: /json_proto [08:55:59]Method is POST - this is cgi request [08:55:59]url: /json_proto [08:55:59]query_string will be loaded in cgi processing [08:55:59]execute_cgi json_proto POST (null) [08:55:59]execute_cgi path=json_proto method=POST [08:55:59]POST find Content-Length [08:55:59]Host: 172.17.53.195:8080 [08:55:59]Content-Length: 682 [08:55:59]Content-Type: application/json [08:55:59] [08:55:59]POST finish read [08:55:59]Found Content-Length = 682 [08:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:59]execute_script... [08:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:59]POST & json_proto [08:55:59]process_json_proto [08:55:59]json parsed OK: [08:55:59]protocol is kg_v1.0 [08:55:59]action value=close_receipt [08:55:59]process_action close_receipt [08:55:59]cmd_close_receipt [08:55:59]MH_GetDate [08:55:59]Write to MH i2c: F0 00 00 48 29 60 [08:55:59]Write i2c OK [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: F0 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: F0 09 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: F0 09 00 48 29 00 23 BA 18 67 21 48 4A 65 DD [08:55:59]GetLastDocTimeStamp 1729673519 [08:55:59]current date 1729673763 [08:55:59]FM_GetShiftState [08:55:59]SAM_PROTO_GetShiftState [08:55:59]wFMCommunicate request_size=4 [08:55:59]MH_SAM_APDU [08:55:59]CAPDU: 80 13 01 00 [08:55:59]Write to MH i2c: E2 08 00 49 29 80 13 01 00 00 00 00 00 EF [08:55:59]Write i2c OK [08:55:59]MH_I2C_Read... [08:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:59]Read from MH i2c: E2 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 0E 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 0E 00 49 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BA [08:55:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:55:59]wFMCommunicate OK [08:55:59]SAM_PROTO_GetShiftState done [08:55:59]FM_GetShiftState done [08:55:59]opened in 1729643772 [08:55:59]opened+sec_in_day 1729730172 [08:55:59]quantity*price = 100015 [08:55:59]sum+1 = 100017 [08:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 38 23.10.2024 08:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166623 ФПД: 24190874162213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166623&fm=24190874162213&tin=02508201610067®Number=0000000000091764&sum=100000 [08:56:00]StoreToDocumentArchive [08:56:00]shift 537 fd 166623 [08:56:00]save to /storage/0537/doc_00166623 [08:56:00]save last doc name /storage/0537/doc_00166623 to /storage/kkm_last_doc_name [08:56:00]save OK [08:56:00]Clear old archive folders... [08:56:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:00]tlvbuf is 012A6410 [08:56:00]SAM_PROTO_ClearQueue [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 09 00 00 [08:56:00]Write to MH i2c: E2 08 00 56 29 80 09 00 00 00 00 00 00 F1 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 56 29 00 90 00 F3 [08:56:00]RAPDU: 90 00 [08:56:00]wFMCommunicate OK [08:56:00]SAM_PROTO_ClearQueue done [08:56:00]KKMCreateOFDPacket [08:56:00]OFDProtocolAddRootSTLVToBuf [08:56:00]FM_MakeSignedData [08:56:00]FM_MakeSignedData [08:56:00]SAM_PROTO_SignData [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 0D 01 02 [08:56:00]Write to MH i2c: E2 08 00 57 29 80 0D 01 02 00 00 00 00 F9 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 57 29 00 90 00 F4 [08:56:00]RAPDU: 90 00 [08:56:00]wFMCommunicate OK [08:56:00]wFMCommunicate request_size=255 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 23 BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8A 02 00 35 04 06 00 16 [08:56:00]Write to MH i2c: E2 02 01 58 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 23 BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8A 02 00 35 04 06 00 16 00 00 A7 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 58 29 00 90 00 F5 [08:56:00]RAPDU: 90 00 [08:56:00]wFMCommunicate OK [08:56:00]wFMCommunicate request_size=10 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 0D 02 02 05 00 60 76 14 25 [08:56:00]Write to MH i2c: E2 0D 00 59 29 80 0D 02 02 05 00 00 60 76 14 25 00 00 15 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 03 00 59 29 00 90 00 F6 [08:56:00]RAPDU: 90 00 [08:56:00]wFMCommunicate OK [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 0D 03 02 [08:56:00]Write to MH i2c: E2 08 00 5A 29 80 0D 03 02 00 00 00 00 FE [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 0B 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 0B 00 5A 29 00 DF 35 DC 9F AD 98 70 F2 90 00 35 [08:56:00]RAPDU: DF 35 DC 9F AD 98 70 F2 90 00 [08:56:00]wFMCommunicate OK [08:56:00]SAM_PROTO_SignData done [08:56:00]FM_MakeSignedData done [08:56:00]CreateOFDProtocolMessage [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 11 00 00 [08:56:00]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 17 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [08:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:56:00]wFMCommunicate OK [08:56:00]CreateOFDProtocolMessage done [08:56:00]OFDSenderStorePacket 166623 [08:56:00]StoreOFDPacket docnum=166623 [08:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B CD 07 01 FF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 23 BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8A 02 00 35 04 06 00 16 00 60 76 14 25 DF 35 DC 9F AD 98 70 F2 [08:56:00]CheckFolder [08:56:00]dirname=/storage/ofd_packets [08:56:00]CheckFolder done [08:56:00]ProducePacketName [08:56:00]name=ofd_packets/00166623 [08:56:00]NVStorageSaveData ofd_packets/00166623 [08:56:00]File name is /storage/ofd_packets/00166623 [08:56:00]Write 301 bytes [08:56:00]NVStorageSaveData done [08:56:00]OFDSenderStorePacket done [08:56:00]KKMCreateOFDPacket done [08:56:00]NVStorageSaveData kkm_last_timestamp [08:56:00]File name is /storage/kkm_last_timestamp [08:56:00]Write 4 bytes [08:56:00]NVStorageSaveData done [08:56:00]ExternCall_PrintAddStr [08:56:00]wPrintStart [08:56:00]Write to MH i2c: 01 00 00 5C 29 85 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: 01 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: 01 07 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: 01 07 00 5C 29 00 00 00 00 00 FF 0F 9A [08:56:00]RasterBufferAndPrint [08:56:00]line Счет N : (1)221204 [08:56:00]line ИНН: 02508201610067 [08:56:00]line Контрольно-Кассовый Чек [08:56:00]line ПРОДАЖА [08:56:00]line ТРК (МРК, ГНК) : 13 [08:56:00]line Товар: 2710124130 [08:56:00]line Аи-92-К-5 [08:56:00]line 14.950 * 66.90 [08:56:00]line = 1000.16 [08:56:00]line НДС 12% НСП 1% [08:56:00]line > о реализуемом товаре [08:56:00]line ОКРУГЛЕНИЕ: -0.16 [08:56:00]line ИТОГО: 1000.00 [08:56:00]line Внесено: 1000.00 [08:56:00]line СДАЧА: 0.00 [08:56:00]line НСП 1% : 8.85 [08:56:00]line НДС 12% : 106.21 [08:56:00]line Наличными: 1000.00 [08:56:00]line Безнал.: 0.00 [08:56:00]line Место: АЗС № 161 "Партнер Нефть" [08:56:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:56:00]line СНО: Общий режим [08:56:00]line Чек 38 23.10.2024 08:56 [08:56:00]line Смена: 537 ФФД: 1.0 [08:56:00]line ЗНМ: 0300000104 [08:56:00]line РНМ: 0000000000091764 [08:56:00]line Версия ККМ: 001 [08:56:00]line ФМ: 0000000000871759 [08:56:00]line ФД: 166623 [08:56:00]line ФПД: 24190874162213 [08:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166623&fm=24190874162213&tin=02508201610067®Number=0000000000091764&sum=100000 [08:56:01]OFD Sender: Processing packet 166623 [packets to send 48, broken 47] [08:56:01]ProducePacketName [08:56:01]name=ofd_packets/00166623 [08:56:01]OFD Sender: To server: pG, [08:56:01]CommunicateWithHost lk.salyk.kg:30040 [08:56:01]ConnectInit lk.salyk.kg [08:56:01]written 0, free lines is 4095 [08:56:01]Connected sock=10 [08:56:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B CD 07 01 FF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 23 BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8A 02 00 35 04 06 00 16 00 60 76 14 25 DF 35 DC 9F AD 98 70 F2 [08:56:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF E9 47 00 6C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8A 02 00 F4 03 04 00 8B 60 18 67 B6 04 01 00 00 A4 B2 E3 95 5D A3 B6 36 [08:56:01]CommunicateWithHost err = 0 [08:56:01]CheckOFDResponse [08:56:01]1017 (14) - 77093643461234 [08:56:01]1041 (16) - 0000000000871759 [08:56:01]1040 (4) - 166623 [08:56:01]1012 (4) - 23.10.2024 02:33 [08:56:01]1206 (1) - 0 [08:56:01]OFD Sender: Remove packet 166623 [08:56:01]ProducePacketName [08:56:01]name=ofd_packets/00166623 [08:56:01]NVStorageDeleteData [08:56:01]Write to MH i2c: 01 00 00 87 29 B0 [08:56:01]Write i2c OK [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: 01 [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: 01 07 00 [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 B7 0C 7A [08:56:01]RasterBufferAndPrint [08:56:01]line [08:56:01]line [08:56:01]line [08:56:01]line [08:56:01]line [08:56:01]written 0, free lines is 3262 [08:56:01]MH_Cut [08:56:01]Write to MH i2c: D1 01 00 8E 29 01 89 [08:56:01]Write i2c OK [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: D1 [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: D1 01 00 [08:56:01]MH_I2C_Read... [08:56:01]Read from MH i2c: D1 01 00 8E 29 00 88 [08:56:01]Write to MH i2c: 01 00 00 8F 29 B8 [08:56:01]Write i2c OK [08:56:01]MH_I2C_Read... [08:56:01]OFD Sender: No OFD packet to send [08:56:02]*** Cut start [08:56:02]*** Partial cut [08:56:02]*** CUTSNS_PIN = 1 [08:56:02]*** CUTSNS_PIN = 0 [08:56:02]*** Brake cut motor [08:56:03]Read from MH i2c: 01 [08:56:03]MH_I2C_Read... [08:56:03]*** Stop cut motor [08:56:03]*** Cut end [08:56:03]Read from MH i2c: 01 07 00 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: 01 07 00 8F 29 00 00 00 00 00 FF 0F CD [08:56:03]process_action close_receipt done [08:56:03]requested_data is exist [08:56:03]produce_requested_data [08:56:03]requested_item fm.sn is exist - process it [08:56:03]wFMCommunicate request_size=4 [08:56:03]MH_SAM_APDU [08:56:03]CAPDU: 80 11 00 00 [08:56:03]Write to MH i2c: E2 08 00 90 29 80 11 00 00 00 00 00 00 33 [08:56:03]Write i2c OK [08:56:03]MH_I2C_Read... [08:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:03]Read from MH i2c: E2 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 17 00 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 17 00 90 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [08:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:56:03]wFMCommunicate OK [08:56:03]requested_item fd.num is exist - process it [08:56:03]SAM_PROTO_GetFieldsCounters [08:56:03]wFMCommunicate request_size=4 [08:56:03]MH_SAM_APDU [08:56:03]CAPDU: 80 13 00 00 [08:56:03]Write to MH i2c: E2 08 00 91 29 80 13 00 00 00 00 00 00 36 [08:56:03]Write i2c OK [08:56:03]MH_I2C_Read... [08:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:03]Read from MH i2c: E2 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 62 00 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 62 00 91 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [08:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:03]wFMCommunicate OK [08:56:03]SAM_PROTO_GetFieldsCounters done [08:56:03]requested_item shift.num is exist - process it [08:56:03]requested_item shift.opened is exist - process it [08:56:03]req_shift_opened [08:56:03]FM_GetShiftState [08:56:03]SAM_PROTO_GetShiftState [08:56:03]wFMCommunicate request_size=4 [08:56:03]MH_SAM_APDU [08:56:03]CAPDU: 80 13 01 00 [08:56:03]Write to MH i2c: E2 08 00 92 29 80 13 01 00 00 00 00 00 38 [08:56:03]Write i2c OK [08:56:03]MH_I2C_Read... [08:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:03]Read from MH i2c: E2 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 0E 00 [08:56:03]MH_I2C_Read... [08:56:03]Read from MH i2c: E2 0E 00 92 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 03 [08:56:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:56:03]wFMCommunicate OK [08:56:03]SAM_PROTO_GetShiftState done [08:56:03]FM_GetShiftState done [08:56:03]req_shift_opened done [08:56:03]requested_item shift.open_date is exist - process it [08:56:03]req_shift_open_date [08:56:03]req_shift_open_date done [08:56:03]produce_requested_data done [08:56:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166623,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:56:03]process_action_free close_receipt [08:56:03]json_value_free [08:56:03]json_value_free done [08:56:03]process_json_proto returns [08:56:03]Send response to host [08:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166623,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:56:03]free response buf [08:56:03]execute_script done [08:56:03]execute_script returns [08:56:03]free content buf [08:56:03]Sock 7.Close socket [08:56:03]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:35]accept exits with 9 [08:58:35]New connection [08:58:35]New thread 3067489636 created [08:58:35]Thread 3067632996 joined [08:58:35]Waiting for new connection... [08:58:35] Sock 9.Parse request [08:58:35]Sock 9.Check first char [08:58:35]Sock 9.First char is OK [08:58:35]request: POST /json_proto HTTP/1.0 [08:58:35]Method: POST [08:58:35]URL: /json_proto [08:58:35]Method is POST - this is cgi request [08:58:35]url: /json_proto [08:58:35]query_string will be loaded in cgi processing [08:58:35]execute_cgi json_proto POST (null) [08:58:35]execute_cgi path=json_proto method=POST [08:58:35]POST find Content-Length [08:58:35]Host: 172.17.53.195:8080 [08:58:35]Content-Length: 682 [08:58:35]Content-Type: application/json [08:58:35] [08:58:35]POST finish read [08:58:35]Found Content-Length = 682 [08:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:35]execute_script... [08:58: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)221205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:35]POST & json_proto [08:58:35]process_json_proto [08:58:35]json parsed OK: [08:58:35]protocol is kg_v1.0 [08:58:35]action value=close_receipt [08:58:35]process_action close_receipt [08:58:35]cmd_close_receipt [08:58:35]MH_GetDate [08:58:35]Write to MH i2c: F0 00 00 93 29 AB [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: F0 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: F0 09 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: F0 09 00 93 29 00 BF BA 18 67 21 48 4A 65 C4 [08:58:35]GetLastDocTimeStamp 1729673763 [08:58:35]current date 1729673919 [08:58:35]FM_GetShiftState [08:58:35]SAM_PROTO_GetShiftState [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 13 01 00 [08:58:35]Write to MH i2c: E2 08 00 94 29 80 13 01 00 00 00 00 00 3A [08:58:35]Write i2c OK [08:58:35]MH_I2C_Read... [08:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:35]Read from MH i2c: E2 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 0E 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: E2 0E 00 94 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [08:58:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:58:35]wFMCommunicate OK [08:58:35]SAM_PROTO_GetShiftState done [08:58:35]FM_GetShiftState done [08:58:35]opened in 1729643772 [08:58:35]opened+sec_in_day 1729730172 [08:58:35]quantity*price = 150056 [08:58:35]sum+1 = 150058 [08:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 39 23.10.2024 08:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166624 ФПД: 9944037167199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166624&fm=9944037167199&tin=02508201610067®Number=0000000000091764&sum=150000 [08:58:36]StoreToDocumentArchive [08:58:36]shift 537 fd 166624 [08:58:36]save to /storage/0537/doc_00166624 [08:58:36]save last doc name /storage/0537/doc_00166624 to /storage/kkm_last_doc_name [08:58:36]save OK [08:58:36]Clear old archive folders... [08:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:36]tlvbuf is 01262170 [08:58:36]SAM_PROTO_ClearQueue [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 09 00 00 [08:58:36]Write to MH i2c: E2 08 00 A1 29 80 09 00 00 00 00 00 00 3C [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 03 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 03 00 A1 29 00 90 00 3E [08:58:36]RAPDU: 90 00 [08:58:36]wFMCommunicate OK [08:58:36]SAM_PROTO_ClearQueue done [08:58:36]KKMCreateOFDPacket [08:58:36]OFDProtocolAddRootSTLVToBuf [08:58:36]FM_MakeSignedData [08:58:36]FM_MakeSignedData [08:58:36]SAM_PROTO_SignData [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 0D 01 02 [08:58:36]Write to MH i2c: E2 08 00 A2 29 80 0D 01 02 00 00 00 00 44 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 03 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 03 00 A2 29 00 90 00 3F [08:58:36]RAPDU: 90 00 [08:58:36]wFMCommunicate OK [08:58:36]wFMCommunicate request_size=255 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BF BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8A 02 00 35 04 06 00 09 [08:58:36]Write to MH i2c: E2 02 01 A3 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BF BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8A 02 00 35 04 06 00 09 00 00 D2 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:37]OFD Sender: No OFD packet to send [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 A3 29 00 90 00 40 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=10 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 02 02 05 0B 46 CD 90 5F [08:58:37]Write to MH i2c: E2 0D 00 A4 29 80 0D 02 02 05 00 0B 46 CD 90 5F 00 00 5E [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 A4 29 00 90 00 41 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 03 02 [08:58:37]Write to MH i2c: E2 08 00 A5 29 80 0D 03 02 00 00 00 00 49 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 A5 29 00 10 E6 E3 73 C7 26 0D E6 90 00 76 [08:58:37]RAPDU: 10 E6 E3 73 C7 26 0D E6 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_SignData done [08:58:37]FM_MakeSignedData done [08:58:37]CreateOFDProtocolMessage [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 11 00 00 [08:58:37]Write to MH i2c: E2 08 00 A6 29 80 11 00 00 00 00 00 00 49 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 A6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [08:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:37]wFMCommunicate OK [08:58:37]CreateOFDProtocolMessage done [08:58:37]OFDSenderStorePacket 166624 [08:58:37]StoreOFDPacket docnum=166624 [08:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 D3 07 01 CC CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BF BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8A 02 00 35 04 06 00 09 0B 46 CD 90 5F 10 E6 E3 73 C7 26 0D E6 [08:58:37]CheckFolder [08:58:37]dirname=/storage/ofd_packets [08:58:37]CheckFolder done [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00166624 [08:58:37]NVStorageSaveData ofd_packets/00166624 [08:58:37]File name is /storage/ofd_packets/00166624 [08:58:37]Write 301 bytes [08:58:37]NVStorageSaveData done [08:58:37]OFDSenderStorePacket done [08:58:37]KKMCreateOFDPacket done [08:58:37]NVStorageSaveData kkm_last_timestamp [08:58:37]File name is /storage/kkm_last_timestamp [08:58:37]Write 4 bytes [08:58:37]NVStorageSaveData done [08:58:37]ExternCall_PrintAddStr [08:58:37]wPrintStart [08:58:37]Write to MH i2c: 01 00 00 A7 29 D0 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 A7 29 00 00 00 00 00 FF 0F E5 [08:58:37]RasterBufferAndPrint [08:58:37]line Счет N : (1)221205 [08:58:37]line ИНН: 02508201610067 [08:58:37]line Контрольно-Кассовый Чек [08:58:37]line ПРОДАЖА [08:58:37]line ТРК (МРК, ГНК) : 23 [08:58:37]line Товар: 2710124130 [08:58:37]line Аи-92-К-5 [08:58:37]line 22.430 * 66.90 [08:58:37]line = 1500.57 [08:58:37]line НДС 12% НСП 1% [08:58:37]line > о реализуемом товаре [08:58:37]line ОКРУГЛЕНИЕ: -0.57 [08:58:37]line ИТОГО: 1500.00 [08:58:37]line Внесено: 1500.00 [08:58:37]line СДАЧА: 0.00 [08:58:37]line НСП 1% : 13.28 [08:58:37]line НДС 12% : 159.35 [08:58:37]line Наличными: 1500.00 [08:58:37]line Безнал.: 0.00 [08:58:37]line Место: АЗС № 161 "Партнер Нефть" [08:58:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:58:37]line СНО: Общий режим [08:58:37]line Чек 39 23.10.2024 08:58 [08:58:37]line Смена: 537 ФФД: 1.0 [08:58:37]line ЗНМ: 0300000104 [08:58:37]line РНМ: 0000000000091764 [08:58:37]line Версия ККМ: 001 [08:58:37]line ФМ: 0000000000871759 [08:58:37]line ФД: 166624 [08:58:37]line ФПД: 9944037167199 [08:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166624&fm=9944037167199&tin=02508201610067®Number=0000000000091764&sum=150000 [08:58:37]OFD Sender: Processing packet 166624 [packets to send 48, broken 47] [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00166624 [08:58:37]OFD Sender: To server: pG, [08:58:37]CommunicateWithHost lk.salyk.kg:30040 [08:58:37]ConnectInit lk.salyk.kg [08:58:37]written 0, free lines is 4095 [08:58:37]Connected sock=11 [08:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 D3 07 01 CC CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BF BA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8A 02 00 35 04 06 00 09 0B 46 CD 90 5F 10 E6 E3 73 C7 26 0D E6 [08:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA 6E 47 00 38 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8A 02 00 F4 03 04 00 27 61 18 67 B6 04 01 00 00 67 55 7B 8D D9 0F B9 6A [08:58:37]CommunicateWithHost err = 0 [08:58:37]CheckOFDResponse [08:58:37]1017 (14) - 77093643461234 [08:58:37]1041 (16) - 0000000000871759 [08:58:37]1040 (4) - 166624 [08:58:37]1012 (4) - 23.10.2024 02:36 [08:58:37]1206 (1) - 0 [08:58:37]OFD Sender: Remove packet 166624 [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00166624 [08:58:37]NVStorageDeleteData [08:58:38]Write to MH i2c: 01 00 00 D2 29 FB [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 A5 0C B3 [08:58:38]RasterBufferAndPrint [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]written 0, free lines is 3242 [08:58:38]MH_Cut [08:58:38]Write to MH i2c: D1 01 00 D9 29 01 D4 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 D9 29 00 D3 [08:58:38]Write to MH i2c: 01 00 00 DA 29 03 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]OFD Sender: No OFD packet to send [08:58:39]*** Cut start [08:58:39]*** Partial cut [08:58:39]*** CUTSNS_PIN = 1 [08:58:39]*** CUTSNS_PIN = 0 [08:58:39]*** Brake cut motor [08:58:39]Read from MH i2c: 01 [08:58:39]MH_I2C_Read... [08:58:39]*** Stop cut motor [08:58:39]*** Cut end [08:58:39]Read from MH i2c: 01 07 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: 01 07 00 DA 29 00 00 00 00 00 FF 0F 18 [08:58:39]process_action close_receipt done [08:58:39]requested_data is exist [08:58:39]produce_requested_data [08:58:39]requested_item fm.sn is exist - process it [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 11 00 00 [08:58:39]Write to MH i2c: E2 08 00 DB 29 80 11 00 00 00 00 00 00 7E [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 17 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 17 00 DB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [08:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:39]wFMCommunicate OK [08:58:39]requested_item fd.num is exist - process it [08:58:39]SAM_PROTO_GetFieldsCounters [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 13 00 00 [08:58:39]Write to MH i2c: E2 08 00 DC 29 80 13 00 00 00 00 00 00 81 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 62 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 62 00 DC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [08:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:39]wFMCommunicate OK [08:58:39]SAM_PROTO_GetFieldsCounters done [08:58:39]requested_item shift.num is exist - process it [08:58:39]requested_item shift.opened is exist - process it [08:58:39]req_shift_opened [08:58:39]FM_GetShiftState [08:58:39]SAM_PROTO_GetShiftState [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 13 01 00 [08:58:39]Write to MH i2c: E2 08 00 DD 29 80 13 01 00 00 00 00 00 83 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 0E 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 0E 00 DD 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4E [08:58:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [08:58:39]wFMCommunicate OK [08:58:39]SAM_PROTO_GetShiftState done [08:58:39]FM_GetShiftState done [08:58:39]req_shift_opened done [08:58:39]requested_item shift.open_date is exist - process it [08:58:39]req_shift_open_date [08:58:39]req_shift_open_date done [08:58:39]produce_requested_data done [08:58:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166624,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [08:58:39]process_action_free close_receipt [08:58:39]json_value_free [08:58:39]json_value_free done [08:58:39]process_json_proto returns [08:58:39]Send response to host [08:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166624,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [08:58:39]free response buf [08:58:39]execute_script done [08:58:39]execute_script returns [08:58:39]free content buf [08:58:39]Sock 9.Close socket [08:58:39]Sock 9.Thread stoped [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:25]accept exits with 7 [09:03:25]New connection [09:03:25]New thread 3067632996 created [09:03:25]Thread 3067489636 joined [09:03:25]Waiting for new connection... [09:03:25] Sock 7.Parse request [09:03:25]Sock 7.Check first char [09:03:25]Sock 7.First char is OK [09:03:25]request: POST /json_proto HTTP/1.0 [09:03:25]Method: POST [09:03:25]URL: /json_proto [09:03:25]Method is POST - this is cgi request [09:03:25]url: /json_proto [09:03:25]query_string will be loaded in cgi processing [09:03:25]execute_cgi json_proto POST (null) [09:03:25]execute_cgi path=json_proto method=POST [09:03:25]POST find Content-Length [09:03:25]Host: 172.17.53.195:8080 [09:03:25]Content-Length: 677 [09:03:25]Content-Type: application/json [09:03:25] [09:03:25]POST finish read [09:03:25]Found Content-Length = 677 [09:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:25]execute_script... [09:03: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)221206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:25]POST & json_proto [09:03:25]process_json_proto [09:03:25]json parsed OK: [09:03:25]protocol is kg_v1.0 [09:03:25]action value=close_receipt [09:03:25]process_action close_receipt [09:03:25]cmd_close_receipt [09:03:25]MH_GetDate [09:03:25]Write to MH i2c: F0 00 00 DE 29 F6 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 09 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 09 00 DE 29 00 E1 BB 18 67 21 48 4A 65 32 [09:03:25]GetLastDocTimeStamp 1729673919 [09:03:25]current date 1729674209 [09:03:25]FM_GetShiftState [09:03:25]SAM_PROTO_GetShiftState [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 01 00 [09:03:25]Write to MH i2c: E2 08 00 DF 29 80 13 01 00 00 00 00 00 85 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 DF 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 50 [09:03:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetShiftState done [09:03:25]FM_GetShiftState done [09:03:25]opened in 1729643772 [09:03:25]opened+sec_in_day 1729730172 [09:03:25]quantity*price = 40006 [09:03:25]sum+1 = 40007 [09:03: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 40 23.10.2024 09:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166625 ФПД: 230739738209617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090329&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166625&fm=230739738209617&tin=02508201610067®Number=0000000000091764&sum=40000 [09:03:26]StoreToDocumentArchive [09:03:26]shift 537 fd 166625 [09:03:26]save to /storage/0537/doc_00166625 [09:03:26]save last doc name /storage/0537/doc_00166625 to /storage/kkm_last_doc_name [09:03:26]save OK [09:03:26]Clear old archive folders... [09:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:26]tlvbuf is 0122AA40 [09:03:26]SAM_PROTO_ClearQueue [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 09 00 00 [09:03:26]Write to MH i2c: E2 08 00 EC 29 80 09 00 00 00 00 00 00 87 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 EC 29 00 90 00 89 [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]SAM_PROTO_ClearQueue done [09:03:26]KKMCreateOFDPacket [09:03:26]OFDProtocolAddRootSTLVToBuf [09:03:26]FM_MakeSignedData [09:03:26]FM_MakeSignedData [09:03:26]SAM_PROTO_SignData [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 0D 01 02 [09:03:26]Write to MH i2c: E2 08 00 ED 29 80 0D 01 02 00 00 00 00 8F [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 ED 29 00 90 00 8A [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]wFMCommunicate request_size=255 [09:03:26]MH_SAM_APDU [09:03: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E1 BB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8A 02 00 35 04 06 00 D1 [09:03:26]Write to MH i2c: E2 02 01 EE 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E1 BB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8A 02 00 35 04 06 00 D1 00 00 90 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:27]Read from MH i2c: E2 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 03 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 03 00 EE 29 00 90 00 8B [09:03:27]RAPDU: 90 00 [09:03:27]wFMCommunicate OK [09:03:27]wFMCommunicate request_size=10 [09:03:27]MH_SAM_APDU [09:03:27]CAPDU: 80 0D 02 02 05 DB 48 21 AD 51 [09:03:27]Write to MH i2c: E2 0D 00 EF 29 80 0D 02 02 05 00 DB 48 21 AD 51 00 00 DE [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:27]Read from MH i2c: E2 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 03 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 03 00 EF 29 00 90 00 8C [09:03:27]RAPDU: 90 00 [09:03:27]wFMCommunicate OK [09:03:27]wFMCommunicate request_size=4 [09:03:27]MH_SAM_APDU [09:03:27]CAPDU: 80 0D 03 02 [09:03:27]Write to MH i2c: E2 08 00 F0 29 80 0D 03 02 00 00 00 00 94 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:27]Read from MH i2c: E2 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 0B 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 0B 00 F0 29 00 1D 3F D7 CB 2C 3E 55 79 90 00 CB [09:03:27]RAPDU: 1D 3F D7 CB 2C 3E 55 79 90 00 [09:03:27]wFMCommunicate OK [09:03:27]SAM_PROTO_SignData done [09:03:27]FM_MakeSignedData done [09:03:27]CreateOFDProtocolMessage [09:03:27]wFMCommunicate request_size=4 [09:03:27]MH_SAM_APDU [09:03:27]CAPDU: 80 11 00 00 [09:03:27]Write to MH i2c: E2 08 00 F1 29 80 11 00 00 00 00 00 00 94 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:27]Read from MH i2c: E2 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 17 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 17 00 F1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [09:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:03:27]wFMCommunicate OK [09:03:27]CreateOFDProtocolMessage done [09:03:27]OFDSenderStorePacket 166625 [09:03:27]StoreOFDPacket docnum=166625 [09:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 50 07 01 56 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E1 BB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8A 02 00 35 04 06 00 D1 DB 48 21 AD 51 1D 3F D7 CB 2C 3E 55 79 [09:03:27]CheckFolder [09:03:27]dirname=/storage/ofd_packets [09:03:27]CheckFolder done [09:03:27]ProducePacketName [09:03:27]name=ofd_packets/00166625 [09:03:27]NVStorageSaveData ofd_packets/00166625 [09:03:27]File name is /storage/ofd_packets/00166625 [09:03:27]Write 301 bytes [09:03:27]NVStorageSaveData done [09:03:27]OFDSenderStorePacket done [09:03:27]KKMCreateOFDPacket done [09:03:27]NVStorageSaveData kkm_last_timestamp [09:03:27]File name is /storage/kkm_last_timestamp [09:03:27]Write 4 bytes [09:03:27]NVStorageSaveData done [09:03:27]ExternCall_PrintAddStr [09:03:27]wPrintStart [09:03:27]Write to MH i2c: 01 00 00 F2 29 1B [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 F2 29 00 00 00 00 00 FF 0F 30 [09:03:27]RasterBufferAndPrint [09:03:27]line Счет N : (1)221206 [09:03:27]line ИНН: 02508201610067 [09:03:27]line Контрольно-Кассовый Чек [09:03:27]line ПРОДАЖА [09:03:27]line ТРК (МРК, ГНК) : 13 [09:03:27]line Товар: 2710124130 [09:03:27]line Аи-92-К-5 [09:03:27]line 5.980 * 66.90 [09:03:27]line = 400.06 [09:03:27]line НДС 12% НСП 1% [09:03:27]line > о реализуемом товаре [09:03:27]line ОКРУГЛЕНИЕ: -0.06 [09:03:27]line ИТОГО: 400.00 [09:03:27]line Внесено: 400.00 [09:03:27]line СДАЧА: 0.00 [09:03:27]line НСП 1% : 3.54 [09:03:27]line НДС 12% : 42.48 [09:03:27]line Наличными: 400.00 [09:03:27]line Безнал.: 0.00 [09:03:27]line Место: АЗС № 161 "Партнер Нефть" [09:03:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:03:27]line СНО: Общий режим [09:03:27]line Чек 40 23.10.2024 09:03 [09:03:27]line Смена: 537 ФФД: 1.0 [09:03:27]line ЗНМ: 0300000104 [09:03:27]line РНМ: 0000000000091764 [09:03:27]line Версия ККМ: 001 [09:03:27]line ФМ: 0000000000871759 [09:03:27]line ФД: 166625 [09:03:27]line ФПД: 230739738209617 [09:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090329&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166625&fm=230739738209617&tin=02508201610067®Number=0000000000091764&sum=40000 [09:03:27]OFD Sender: Processing packet 166625 [packets to send 48, broken 47] [09:03:27]ProducePacketName [09:03:27]name=ofd_packets/00166625 [09:03:27]OFD Sender: To server: pG, [09:03:27]CommunicateWithHost lk.salyk.kg:30040 [09:03:27]ConnectInit lk.salyk.kg [09:03:27]written 0, free lines is 4095 [09:03:27]Connected sock=10 [09:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 50 07 01 56 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E1 BB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8A 02 00 35 04 06 00 D1 DB 48 21 AD 51 1D 3F D7 CB 2C 3E 55 79 [09:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 0D 47 00 E2 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8A 02 00 F4 03 04 00 49 62 18 67 B6 04 01 00 00 7E B0 7A 4C 0D A1 D8 76 [09:03:27]CommunicateWithHost err = 0 [09:03:27]CheckOFDResponse [09:03:27]1017 (14) - 77093643461234 [09:03:27]1041 (16) - 0000000000871759 [09:03:27]1040 (4) - 166625 [09:03:27]1012 (4) - 23.10.2024 02:41 [09:03:27]1206 (1) - 0 [09:03:27]OFD Sender: Remove packet 166625 [09:03:27]ProducePacketName [09:03:27]name=ofd_packets/00166625 [09:03:27]NVStorageDeleteData [09:03:27]Write to MH i2c: 01 00 00 1D 2A 47 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 1D 2A 00 00 00 00 00 BF 0C 19 [09:03:27]RasterBufferAndPrint [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]written 0, free lines is 3269 [09:03:28]MH_Cut [09:03:28]Write to MH i2c: D1 01 00 24 2A 01 20 [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: D1 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: D1 01 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: D1 01 00 24 2A 00 1F [09:03:28]Write to MH i2c: 01 00 00 25 2A 4F [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]OFD Sender: No OFD packet to send [09:03:28]*** Cut start [09:03:28]*** Partial cut [09:03:28]*** CUTSNS_PIN = 1 [09:03:28]*** CUTSNS_PIN = 0 [09:03:29]*** Brake cut motor [09:03:29]Read from MH i2c: 01 [09:03:29]MH_I2C_Read... [09:03:29]*** Stop cut motor [09:03:29]*** Cut end [09:03:29]Read from MH i2c: 01 07 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: 01 07 00 25 2A 00 00 00 00 00 FF 0F 64 [09:03:29]process_action close_receipt done [09:03:29]requested_data is exist [09:03:29]produce_requested_data [09:03:29]requested_item fm.sn is exist - process it [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 11 00 00 [09:03:29]Write to MH i2c: E2 08 00 26 2A 80 11 00 00 00 00 00 00 CA [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 17 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 17 00 26 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [09:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:03:29]wFMCommunicate OK [09:03:29]requested_item fd.num is exist - process it [09:03:29]SAM_PROTO_GetFieldsCounters [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 00 00 [09:03:29]Write to MH i2c: E2 08 00 27 2A 80 13 00 00 00 00 00 00 CD [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 62 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 62 00 27 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [09:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetFieldsCounters done [09:03:29]requested_item shift.num is exist - process it [09:03:29]requested_item shift.opened is exist - process it [09:03:29]req_shift_opened [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 28 2A 80 13 01 00 00 00 00 00 CF [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 28 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9A [09:03:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetShiftState done [09:03:29]FM_GetShiftState done [09:03:29]req_shift_opened done [09:03:29]requested_item shift.open_date is exist - process it [09:03:29]req_shift_open_date [09:03:29]req_shift_open_date done [09:03:29]produce_requested_data done [09:03:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166625,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:03:29]process_action_free close_receipt [09:03:29]json_value_free [09:03:29]json_value_free done [09:03:29]process_json_proto returns [09:03:29]Send response to host [09:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166625,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:03:29]free response buf [09:03:29]execute_script done [09:03:29]execute_script returns [09:03:29]free content buf [09:03:29]Sock 7.Close socket [09:03:29]Sock 7.Thread stoped [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:34]accept exits with 9 [09:05:34]New connection [09:05:34]New thread 3067489636 created [09:05:34]Thread 3067632996 joined [09:05:34]Waiting for new connection... [09:05:34] Sock 9.Parse request [09:05:34]Sock 9.Check first char [09:05:34]Sock 9.First char is OK [09:05:34]request: POST /json_proto HTTP/1.0 [09:05:34]Method: POST [09:05:34]URL: /json_proto [09:05:34]Method is POST - this is cgi request [09:05:34]url: /json_proto [09:05:34]query_string will be loaded in cgi processing [09:05:34]execute_cgi json_proto POST (null) [09:05:34]execute_cgi path=json_proto method=POST [09:05:34]POST find Content-Length [09:05:34]Host: 172.17.53.195:8080 [09:05:34]Content-Length: 677 [09:05:34]Content-Type: application/json [09:05:34] [09:05:34]POST finish read [09:05:34]Found Content-Length = 677 [09:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:34]execute_script... [09: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)221207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:34]POST & json_proto [09:05:34]process_json_proto [09:05:34]json parsed OK: [09:05:34]protocol is kg_v1.0 [09:05:34]action value=close_receipt [09:05:34]process_action close_receipt [09:05:34]cmd_close_receipt [09:05:34]MH_GetDate [09:05:34]Write to MH i2c: F0 00 00 29 2A 42 [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: F0 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: F0 09 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: F0 09 00 29 2A 00 62 BC 18 67 21 48 4A 65 00 [09:05:34]GetLastDocTimeStamp 1729674209 [09:05:34]current date 1729674338 [09:05:34]FM_GetShiftState [09:05:34]SAM_PROTO_GetShiftState [09:05:34]wFMCommunicate request_size=4 [09:05:34]MH_SAM_APDU [09:05:34]CAPDU: 80 13 01 00 [09:05:34]Write to MH i2c: E2 08 00 2A 2A 80 13 01 00 00 00 00 00 D1 [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:34]Read from MH i2c: E2 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: E2 0E 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: E2 0E 00 2A 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9C [09:05:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:05:34]wFMCommunicate OK [09:05:34]SAM_PROTO_GetShiftState done [09:05:34]FM_GetShiftState done [09:05:34]opened in 1729643772 [09:05:34]opened+sec_in_day 1729730172 [09:05:34]quantity*price = 40006 [09:05:34]sum+1 = 40007 [09:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 41 23.10.2024 09:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166626 ФПД: 198197716563133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166626&fm=198197716563133&tin=02508201610067®Number=0000000000091764&sum=40000 [09:05:35]StoreToDocumentArchive [09:05:35]shift 537 fd 166626 [09:05:35]save to /storage/0537/doc_00166626 [09:05:35]save last doc name /storage/0537/doc_00166626 to /storage/kkm_last_doc_name [09:05:35]save OK [09:05:35]Clear old archive folders... [09:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:35]tlvbuf is 0126C890 [09:05:35]SAM_PROTO_ClearQueue [09:05:35]wFMCommunicate request_size=4 [09:05:35]MH_SAM_APDU [09:05:35]CAPDU: 80 09 00 00 [09:05:35]Write to MH i2c: E2 08 00 37 2A 80 09 00 00 00 00 00 00 D3 [09:05:35]Write i2c OK [09:05:35]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 37 2A 00 90 00 D5 [09:05:36]RAPDU: 90 00 [09:05:36]wFMCommunicate OK [09:05:36]SAM_PROTO_ClearQueue done [09:05:36]KKMCreateOFDPacket [09:05:36]OFDProtocolAddRootSTLVToBuf [09:05:36]FM_MakeSignedData [09:05:36]FM_MakeSignedData [09:05:36]SAM_PROTO_SignData [09:05:36]wFMCommunicate request_size=4 [09:05:36]MH_SAM_APDU [09:05:36]CAPDU: 80 0D 01 02 [09:05:36]Write to MH i2c: E2 08 00 38 2A 80 0D 01 02 00 00 00 00 DB [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 38 2A 00 90 00 D6 [09:05:36]RAPDU: 90 00 [09:05:36]wFMCommunicate OK [09:05:36]wFMCommunicate request_size=255 [09:05:36]MH_SAM_APDU [09: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 63 BC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8A 02 00 35 04 06 00 B4 [09:05:36]Write to MH i2c: E2 02 01 39 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 63 BC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8A 02 00 35 04 06 00 B4 00 00 44 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 39 2A 00 90 00 D7 [09:05:36]RAPDU: 90 00 [09:05:36]wFMCommunicate OK [09:05:36]wFMCommunicate request_size=10 [09:05:36]MH_SAM_APDU [09:05:36]CAPDU: 80 0D 02 02 05 42 80 7D B4 BD [09:05:36]Write to MH i2c: E2 0D 00 3A 2A 80 0D 02 02 05 00 42 80 7D B4 BD 00 00 98 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [09:05:36]RAPDU: 90 00 [09:05:36]wFMCommunicate OK [09:05:36]wFMCommunicate request_size=4 [09:05:36]MH_SAM_APDU [09:05:36]CAPDU: 80 0D 03 02 [09:05:36]Write to MH i2c: E2 08 00 3B 2A 80 0D 03 02 00 00 00 00 E0 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 0B 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 0B 00 3B 2A 00 94 5F 1C 48 34 72 2A F8 90 00 00 [09:05:36]RAPDU: 94 5F 1C 48 34 72 2A F8 90 00 [09:05:36]wFMCommunicate OK [09:05:36]SAM_PROTO_SignData done [09:05:36]FM_MakeSignedData done [09:05:36]CreateOFDProtocolMessage [09:05:36]wFMCommunicate request_size=4 [09:05:36]MH_SAM_APDU [09:05:36]CAPDU: 80 11 00 00 [09:05:36]Write to MH i2c: E2 08 00 3C 2A 80 11 00 00 00 00 00 00 E0 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 17 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 17 00 3C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [09:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:36]wFMCommunicate OK [09:05:36]CreateOFDProtocolMessage done [09:05:36]OFDSenderStorePacket 166626 [09:05:36]StoreOFDPacket docnum=166626 [09:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 68 07 01 8F 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 63 BC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8A 02 00 35 04 06 00 B4 42 80 7D B4 BD 94 5F 1C 48 34 72 2A F8 [09:05:36]CheckFolder [09:05:36]dirname=/storage/ofd_packets [09:05:36]CheckFolder done [09:05:36]ProducePacketName [09:05:36]name=ofd_packets/00166626 [09:05:36]NVStorageSaveData ofd_packets/00166626 [09:05:36]File name is /storage/ofd_packets/00166626 [09:05:36]Write 301 bytes [09:05:36]NVStorageSaveData done [09:05:36]OFDSenderStorePacket done [09:05:36]KKMCreateOFDPacket done [09:05:36]NVStorageSaveData kkm_last_timestamp [09:05:36]File name is /storage/kkm_last_timestamp [09:05:36]Write 4 bytes [09:05:36]NVStorageSaveData done [09:05:36]ExternCall_PrintAddStr [09:05:36]wPrintStart [09:05:36]Write to MH i2c: 01 00 00 3D 2A 67 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: 01 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: 01 07 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: 01 07 00 3D 2A 00 00 00 00 00 FF 0F 7C [09:05:36]RasterBufferAndPrint [09:05:36]line Счет N : (1)221207 [09:05:36]line ИНН: 02508201610067 [09:05:36]line Контрольно-Кассовый Чек [09:05:36]line ПРОДАЖА [09:05:36]line ТРК (МРК, ГНК) : 23 [09:05:36]line Товар: 2710124130 [09:05:36]line Аи-92-К-5 [09:05:36]line 5.980 * 66.90 [09:05:36]line = 400.06 [09:05:36]line НДС 12% НСП 1% [09:05:36]line > о реализуемом товаре [09:05:36]line ОКРУГЛЕНИЕ: -0.06 [09:05:36]line ИТОГО: 400.00 [09:05:36]line Внесено: 400.00 [09:05:36]line СДАЧА: 0.00 [09:05:36]line НСП 1% : 3.54 [09:05:36]line НДС 12% : 42.48 [09:05:36]line Наличными: 400.00 [09:05:36]line Безнал.: 0.00 [09:05:36]line Место: АЗС № 161 "Партнер Нефть" [09:05:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:05:36]line СНО: Общий режим [09:05:36]line Чек 41 23.10.2024 09:05 [09:05:36]line Смена: 537 ФФД: 1.0 [09:05:36]line ЗНМ: 0300000104 [09:05:36]line РНМ: 0000000000091764 [09:05:36]line Версия ККМ: 001 [09:05:36]line ФМ: 0000000000871759 [09:05:36]line ФД: 166626 [09:05:36]line ФПД: 198197716563133 [09:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166626&fm=198197716563133&tin=02508201610067®Number=0000000000091764&sum=40000 [09:05:36]OFD Sender: Processing packet 166626 [packets to send 48, broken 47] [09:05:36]ProducePacketName [09:05:36]name=ofd_packets/00166626 [09:05:36]OFD Sender: To server: pG, [09:05:36]CommunicateWithHost lk.salyk.kg:30040 [09:05:36]ConnectInit lk.salyk.kg [09:05:36]written 0, free lines is 4095 [09:05:36]Connected sock=10 [09:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 68 07 01 8F 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 63 BC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8A 02 00 35 04 06 00 B4 42 80 7D B4 BD 94 5F 1C 48 34 72 2A F8 [09:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF AE 47 00 64 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8A 02 00 F4 03 04 00 CB 62 18 67 B6 04 01 00 00 00 4C EC C8 E1 CB 35 E8 [09:05:37]CommunicateWithHost err = 0 [09:05:37]CheckOFDResponse [09:05:37]1017 (14) - 77093643461234 [09:05:37]1041 (16) - 0000000000871759 [09:05:37]1040 (4) - 166626 [09:05:37]1012 (4) - 23.10.2024 02:43 [09:05:37]1206 (1) - 0 [09:05:37]OFD Sender: Remove packet 166626 [09:05:37]ProducePacketName [09:05:37]name=ofd_packets/00166626 [09:05:37]NVStorageDeleteData [09:05:37]Write to MH i2c: 01 00 00 68 2A 92 [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: 01 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: 01 07 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: 01 07 00 68 2A 00 00 00 00 00 A3 0C 48 [09:05:37]RasterBufferAndPrint [09:05:37]line [09:05:37]line [09:05:37]line [09:05:37]line [09:05:37]line [09:05:37]written 0, free lines is 3241 [09:05:37]MH_Cut [09:05:37]Write to MH i2c: D1 01 00 6F 2A 01 6B [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: D1 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: D1 01 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: D1 01 00 6F 2A 00 6A [09:05:37]Write to MH i2c: 01 00 00 70 2A 9A [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]OFD Sender: No OFD packet to send [09:05:38]*** Cut start [09:05:38]*** Partial cut [09:05:38]*** CUTSNS_PIN = 1 [09:05:38]*** CUTSNS_PIN = 0 [09:05:38]*** Brake cut motor [09:05:38]Read from MH i2c: 01 [09:05:38]MH_I2C_Read... [09:05:38]*** Stop cut motor [09:05:38]*** Cut end [09:05:38]Read from MH i2c: 01 07 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 07 00 70 2A 00 00 00 00 00 FF 0F AF [09:05:38]process_action close_receipt done [09:05:38]requested_data is exist [09:05:38]produce_requested_data [09:05:38]requested_item fm.sn is exist - process it [09:05:38]wFMCommunicate request_size=4 [09:05:38]MH_SAM_APDU [09:05:38]CAPDU: 80 11 00 00 [09:05:38]Write to MH i2c: E2 08 00 71 2A 80 11 00 00 00 00 00 00 15 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:38]Read from MH i2c: E2 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 17 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 17 00 71 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [09:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:38]wFMCommunicate OK [09:05:38]requested_item fd.num is exist - process it [09:05:38]SAM_PROTO_GetFieldsCounters [09:05:38]wFMCommunicate request_size=4 [09:05:38]MH_SAM_APDU [09:05:38]CAPDU: 80 13 00 00 [09:05:38]Write to MH i2c: E2 08 00 72 2A 80 13 00 00 00 00 00 00 18 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:38]Read from MH i2c: E2 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 62 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 62 00 72 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [09: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:38]wFMCommunicate OK [09:05:38]SAM_PROTO_GetFieldsCounters done [09:05:38]requested_item shift.num is exist - process it [09:05:38]requested_item shift.opened is exist - process it [09:05:38]req_shift_opened [09:05:38]FM_GetShiftState [09:05:38]SAM_PROTO_GetShiftState [09:05:38]wFMCommunicate request_size=4 [09:05:38]MH_SAM_APDU [09:05:38]CAPDU: 80 13 01 00 [09:05:38]Write to MH i2c: E2 08 00 73 2A 80 13 01 00 00 00 00 00 1A [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:39]Read from MH i2c: E2 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: E2 0E 00 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: E2 0E 00 73 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E5 [09:05:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:05:39]wFMCommunicate OK [09:05:39]SAM_PROTO_GetShiftState done [09:05:39]FM_GetShiftState done [09:05:39]req_shift_opened done [09:05:39]requested_item shift.open_date is exist - process it [09:05:39]req_shift_open_date [09:05:39]req_shift_open_date done [09:05:39]produce_requested_data done [09:05:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166626,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:05:39]process_action_free close_receipt [09:05:39]json_value_free [09:05:39]json_value_free done [09:05:39]process_json_proto returns [09:05:39]Send response to host [09:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166626,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:05:39]free response buf [09:05:39]execute_script done [09:05:39]execute_script returns [09:05:39]free content buf [09:05:39]Sock 9.Close socket [09:05:39]Sock 9.Thread stoped [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:19]accept exits with 7 [09:17:19]New connection [09:17:19]New thread 3067632996 created [09:17:19]Thread 3067489636 joined [09:17:19]Waiting for new connection... [09:17:19] Sock 7.Parse request [09:17:19]Sock 7.Check first char [09:17:19]Sock 7.First char is OK [09:17:19]request: POST /json_proto HTTP/1.0 [09:17:19]Method: POST [09:17:19]URL: /json_proto [09:17:19]Method is POST - this is cgi request [09:17:19]url: /json_proto [09:17:19]query_string will be loaded in cgi processing [09:17:19]execute_cgi json_proto POST (null) [09:17:19]execute_cgi path=json_proto method=POST [09:17:19]POST find Content-Length [09:17:19]Host: 172.17.53.195:8080 [09:17:19]Content-Length: 677 [09:17:19]Content-Type: application/json [09:17:19] [09:17:19]POST finish read [09:17:19]Found Content-Length = 677 [09:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:19]execute_script... [09:17: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)221208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:19]POST & json_proto [09:17:19]process_json_proto [09:17:19]json parsed OK: [09:17:19]protocol is kg_v1.0 [09:17:19]action value=close_receipt [09:17:19]process_action close_receipt [09:17:19]cmd_close_receipt [09:17:19]MH_GetDate [09:17:19]Write to MH i2c: F0 00 00 74 2A 8D [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: F0 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: F0 09 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: F0 09 00 74 2A 00 23 BF 18 67 21 48 4A 65 0F [09:17:19]GetLastDocTimeStamp 1729674339 [09:17:19]current date 1729675043 [09:17:19]FM_GetShiftState [09:17:19]SAM_PROTO_GetShiftState [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 13 01 00 [09:17:19]Write to MH i2c: E2 08 00 75 2A 80 13 01 00 00 00 00 00 1C [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0E 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0E 00 75 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E7 [09:17:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:17:19]wFMCommunicate OK [09:17:19]SAM_PROTO_GetShiftState done [09:17:19]FM_GetShiftState done [09:17:19]opened in 1729643772 [09:17:19]opened+sec_in_day 1729730172 [09:17:19]quantity*price = 20003 [09:17:19]sum+1 = 20004 [09:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 42 23.10.2024 09:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166627 ФПД: 155925751448130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166627&fm=155925751448130&tin=02508201610067®Number=0000000000091764&sum=20000 [09:17:20]StoreToDocumentArchive [09:17:20]shift 537 fd 166627 [09:17:20]save to /storage/0537/doc_00166627 [09:17:20]save last doc name /storage/0537/doc_00166627 to /storage/kkm_last_doc_name [09:17:20]save OK [09:17:20]Clear old archive folders... [09:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:20]tlvbuf is 012DD9F0 [09:17:20]SAM_PROTO_ClearQueue [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 09 00 00 [09:17:20]Write to MH i2c: E2 08 00 82 2A 80 09 00 00 00 00 00 00 1E [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 82 2A 00 90 00 20 [09:17:20]RAPDU: 90 00 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_ClearQueue done [09:17:20]KKMCreateOFDPacket [09:17:20]OFDProtocolAddRootSTLVToBuf [09:17:20]FM_MakeSignedData [09:17:20]FM_MakeSignedData [09:17:20]SAM_PROTO_SignData [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 0D 01 02 [09:17:20]Write to MH i2c: E2 08 00 83 2A 80 0D 01 02 00 00 00 00 26 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 83 2A 00 90 00 21 [09:17:20]RAPDU: 90 00 [09:17:20]wFMCommunicate OK [09:17:20]wFMCommunicate request_size=255 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 BF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8A 02 00 35 04 06 00 8D [09:17:20]Write to MH i2c: E2 02 01 84 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 BF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8A 02 00 35 04 06 00 8D 00 00 20 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 84 2A 00 90 00 22 [09:17:20]RAPDU: 90 00 [09:17:20]wFMCommunicate OK [09:17:20]wFMCommunicate request_size=10 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 0D 02 02 05 D0 4B 06 C2 42 [09:17:20]Write to MH i2c: E2 0D 00 85 2A 80 0D 02 02 05 00 D0 4B 06 C2 42 00 00 58 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [09:17:20]RAPDU: 90 00 [09:17:20]wFMCommunicate OK [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 0D 03 02 [09:17:20]Write to MH i2c: E2 08 00 86 2A 80 0D 03 02 00 00 00 00 2B [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 0B 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 0B 00 86 2A 00 AE C0 09 7E 3D EC 28 E7 90 00 59 [09:17:20]RAPDU: AE C0 09 7E 3D EC 28 E7 90 00 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_SignData done [09:17:20]FM_MakeSignedData done [09:17:20]CreateOFDProtocolMessage [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 11 00 00 [09:17:20]Write to MH i2c: E2 08 00 87 2A 80 11 00 00 00 00 00 00 2B [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 87 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [09:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:17:20]wFMCommunicate OK [09:17:20]CreateOFDProtocolMessage done [09:17:20]OFDSenderStorePacket 166627 [09:17:20]StoreOFDPacket docnum=166627 [09:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 04 07 01 4A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 BF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8A 02 00 35 04 06 00 8D D0 4B 06 C2 42 AE C0 09 7E 3D EC 28 E7 [09:17:20]CheckFolder [09:17:20]dirname=/storage/ofd_packets [09:17:20]CheckFolder done [09:17:20]ProducePacketName [09:17:20]name=ofd_packets/00166627 [09:17:20]NVStorageSaveData ofd_packets/00166627 [09:17:20]File name is /storage/ofd_packets/00166627 [09:17:20]Write 301 bytes [09:17:20]NVStorageSaveData done [09:17:20]OFDSenderStorePacket done [09:17:20]KKMCreateOFDPacket done [09:17:20]NVStorageSaveData kkm_last_timestamp [09:17:20]File name is /storage/kkm_last_timestamp [09:17:20]Write 4 bytes [09:17:20]NVStorageSaveData done [09:17:20]ExternCall_PrintAddStr [09:17:20]wPrintStart [09:17:20]Write to MH i2c: 01 00 00 88 2A B2 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 88 2A 00 00 00 00 00 FF 0F C7 [09:17:20]RasterBufferAndPrint [09:17:20]line Счет N : (1)221208 [09:17:20]line ИНН: 02508201610067 [09:17:20]line Контрольно-Кассовый Чек [09:17:20]line ПРОДАЖА [09:17:20]line ТРК (МРК, ГНК) : 43 [09:17:20]line Товар: 2710124130 [09:17:20]line Аи-92-К-5 [09:17:20]line 2.990 * 66.90 [09:17:20]line = 200.03 [09:17:20]line НДС 12% НСП 1% [09:17:20]line > о реализуемом товаре [09:17:20]line ОКРУГЛЕНИЕ: -0.03 [09:17:20]line ИТОГО: 200.00 [09:17:20]line Внесено: 200.00 [09:17:20]line СДАЧА: 0.00 [09:17:20]line НСП 1% : 1.77 [09:17:20]line НДС 12% : 21.24 [09:17:20]line Наличными: 200.00 [09:17:20]line Безнал.: 0.00 [09:17:20]line Место: АЗС № 161 "Партнер Нефть" [09:17:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:17:20]line СНО: Общий режим [09:17:20]line Чек 42 23.10.2024 09:17 [09:17:20]line Смена: 537 ФФД: 1.0 [09:17:20]line ЗНМ: 0300000104 [09:17:20]line РНМ: 0000000000091764 [09:17:20]line Версия ККМ: 001 [09:17:20]line ФМ: 0000000000871759 [09:17:20]line ФД: 166627 [09:17:20]line ФПД: 155925751448130 [09:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166627&fm=155925751448130&tin=02508201610067®Number=0000000000091764&sum=20000 [09:17:21]OFD Sender: Processing packet 166627 [packets to send 48, broken 47] [09:17:21]ProducePacketName [09:17:21]name=ofd_packets/00166627 [09:17:21]OFD Sender: To server: pG, [09:17:21]CommunicateWithHost lk.salyk.kg:30040 [09:17:21]ConnectInit lk.salyk.kg [09:17:21]written 0, free lines is 4095 [09:17:21]Connected sock=10 [09:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 04 07 01 4A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 BF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8A 02 00 35 04 06 00 8D D0 4B 06 C2 42 AE C0 09 7E 3D EC 28 E7 [09:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4A DA 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 31 37 35 39 10 04 04 00 E3 8A 02 00 F4 03 04 00 8B 65 18 67 B6 04 01 00 00 5B 95 67 0D 32 82 4A 11 [09:17:21]CommunicateWithHost err = 0 [09:17:21]CheckOFDResponse [09:17:21]1017 (14) - 77093643461234 [09:17:21]1041 (16) - 0000000000871759 [09:17:21]1040 (4) - 166627 [09:17:21]1012 (4) - 23.10.2024 02:55 [09:17:21]1206 (1) - 0 [09:17:21]OFD Sender: Remove packet 166627 [09:17:21]ProducePacketName [09:17:21]name=ofd_packets/00166627 [09:17:21]NVStorageDeleteData [09:17:21]Write to MH i2c: 01 00 00 B3 2A DD [09:17:21]Write i2c OK [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: 01 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: 01 07 00 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 A5 0C 95 [09:17:21]RasterBufferAndPrint [09:17:21]line [09:17:21]line [09:17:21]line [09:17:21]line [09:17:21]line [09:17:21]written 0, free lines is 3242 [09:17:21]MH_Cut [09:17:21]Write to MH i2c: D1 01 00 BA 2A 01 B6 [09:17:21]Write i2c OK [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: D1 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: D1 01 00 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: D1 01 00 BA 2A 00 B5 [09:17:21]Write to MH i2c: 01 00 00 BB 2A E5 [09:17:21]Write i2c OK [09:17:21]MH_I2C_Read... [09:17:22]OFD Sender: No OFD packet to send [09:17:22]*** Cut start [09:17:22]*** Partial cut [09:17:22]*** CUTSNS_PIN = 1 [09:17:22]*** CUTSNS_PIN = 0 [09:17:22]*** Brake cut motor [09:17:23]Read from MH i2c: 01 [09:17:23]MH_I2C_Read... [09:17:23]*** Stop cut motor [09:17:23]*** Cut end [09:17:23]Read from MH i2c: 01 07 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 BB 2A 00 00 00 00 00 FF 0F FA [09:17:23]process_action close_receipt done [09:17:23]requested_data is exist [09:17:23]produce_requested_data [09:17:23]requested_item fm.sn is exist - process it [09:17:23]wFMCommunicate request_size=4 [09:17:23]MH_SAM_APDU [09:17:23]CAPDU: 80 11 00 00 [09:17:23]Write to MH i2c: E2 08 00 BC 2A 80 11 00 00 00 00 00 00 60 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:23]Read from MH i2c: E2 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 17 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 17 00 BC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [09:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:17:23]wFMCommunicate OK [09:17:23]requested_item fd.num is exist - process it [09:17:23]SAM_PROTO_GetFieldsCounters [09:17:23]wFMCommunicate request_size=4 [09:17:23]MH_SAM_APDU [09:17:23]CAPDU: 80 13 00 00 [09:17:23]Write to MH i2c: E2 08 00 BD 2A 80 13 00 00 00 00 00 00 63 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:23]Read from MH i2c: E2 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 62 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 62 00 BD 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:23]wFMCommunicate OK [09:17:23]SAM_PROTO_GetFieldsCounters done [09:17:23]requested_item shift.num is exist - process it [09:17:23]requested_item shift.opened is exist - process it [09:17:23]req_shift_opened [09:17:23]FM_GetShiftState [09:17:23]SAM_PROTO_GetShiftState [09:17:23]wFMCommunicate request_size=4 [09:17:23]MH_SAM_APDU [09:17:23]CAPDU: 80 13 01 00 [09:17:23]Write to MH i2c: E2 08 00 BE 2A 80 13 01 00 00 00 00 00 65 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:23]Read from MH i2c: E2 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 0E 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: E2 0E 00 BE 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 30 [09:17:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:17:23]wFMCommunicate OK [09:17:23]SAM_PROTO_GetShiftState done [09:17:23]FM_GetShiftState done [09:17:23]req_shift_opened done [09:17:23]requested_item shift.open_date is exist - process it [09:17:23]req_shift_open_date [09:17:23]req_shift_open_date done [09:17:23]produce_requested_data done [09:17:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166627,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:17:23]process_action_free close_receipt [09:17:23]json_value_free [09:17:23]json_value_free done [09:17:23]process_json_proto returns [09:17:23]Send response to host [09:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166627,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:17:23]free response buf [09:17:23]execute_script done [09:17:23]execute_script returns [09:17:23]free content buf [09:17:23]Sock 7.Close socket [09:17:23]Sock 7.Thread stoped [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:31]accept exits with 9 [09:30:31]New connection [09:30:31]New thread 3067489636 created [09:30:31]Thread 3067632996 joined [09:30:31]Waiting for new connection... [09:30:31] Sock 9.Parse request [09:30:31]Sock 9.Check first char [09:30:31]Sock 9.First char is OK [09:30:31]request: POST /json_proto HTTP/1.0 [09:30:31]Method: POST [09:30:31]URL: /json_proto [09:30:31]Method is POST - this is cgi request [09:30:31]url: /json_proto [09:30:31]query_string will be loaded in cgi processing [09:30:31]execute_cgi json_proto POST (null) [09:30:31]execute_cgi path=json_proto method=POST [09:30:31]POST find Content-Length [09:30:31]Host: 172.17.53.195:8080 [09:30:31]Content-Length: 677 [09:30:31]Content-Type: application/json [09:30:31] [09:30:31]POST finish read [09:30:31]Found Content-Length = 677 [09:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:31]execute_script... [09:30: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)221209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:31]POST & json_proto [09:30:31]process_json_proto [09:30:31]json parsed OK: [09:30:31]protocol is kg_v1.0 [09:30:31]action value=close_receipt [09:30:31]process_action close_receipt [09:30:31]cmd_close_receipt [09:30:31]MH_GetDate [09:30:31]Write to MH i2c: F0 00 00 BF 2A D8 [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: F0 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: F0 09 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: F0 09 00 BF 2A 00 3B C2 18 67 21 48 4A 65 75 [09:30:31]GetLastDocTimeStamp 1729675043 [09:30:31]current date 1729675835 [09:30:31]FM_GetShiftState [09:30:31]SAM_PROTO_GetShiftState [09:30:31]wFMCommunicate request_size=4 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 13 01 00 [09:30:31]Write to MH i2c: E2 08 00 C0 2A 80 13 01 00 00 00 00 00 67 [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 0E 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 0E 00 C0 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 32 [09:30:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:30:31]wFMCommunicate OK [09:30:31]SAM_PROTO_GetShiftState done [09:30:31]FM_GetShiftState done [09:30:31]opened in 1729643772 [09:30:31]opened+sec_in_day 1729730172 [09:30:31]quantity*price = 50041 [09:30:31]sum+1 = 50042 [09:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 43 23.10.2024 09:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166628 ФПД: 219132263226655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166628&fm=219132263226655&tin=02508201610067®Number=0000000000091764&sum=50000 [09:30:32]StoreToDocumentArchive [09:30:32]shift 537 fd 166628 [09:30:32]save to /storage/0537/doc_00166628 [09:30:32]save last doc name /storage/0537/doc_00166628 to /storage/kkm_last_doc_name [09:30:32]save OK [09:30:32]Clear old archive folders... [09:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:32]tlvbuf is B6F80760 [09:30:32]SAM_PROTO_ClearQueue [09:30:32]wFMCommunicate request_size=4 [09:30:32]MH_SAM_APDU [09:30:32]CAPDU: 80 09 00 00 [09:30:32]Write to MH i2c: E2 08 00 CD 2A 80 09 00 00 00 00 00 00 69 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:32]Read from MH i2c: E2 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 03 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 03 00 CD 2A 00 90 00 6B [09:30:32]RAPDU: 90 00 [09:30:32]wFMCommunicate OK [09:30:32]SAM_PROTO_ClearQueue done [09:30:32]KKMCreateOFDPacket [09:30:32]OFDProtocolAddRootSTLVToBuf [09:30:32]FM_MakeSignedData [09:30:32]FM_MakeSignedData [09:30:32]SAM_PROTO_SignData [09:30:32]wFMCommunicate request_size=4 [09:30:32]MH_SAM_APDU [09:30:32]CAPDU: 80 0D 01 02 [09:30:32]Write to MH i2c: E2 08 00 CE 2A 80 0D 01 02 00 00 00 00 71 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:32]Read from MH i2c: E2 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 03 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [09:30:32]RAPDU: 90 00 [09:30:32]wFMCommunicate OK [09:30:32]wFMCommunicate request_size=255 [09:30:32]MH_SAM_APDU [09:30:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8A 02 00 35 04 06 00 C7 [09:30:32]Write to MH i2c: E2 02 01 CF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8A 02 00 35 04 06 00 C7 00 00 00 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]OFD Sender: No OFD packet to send [09:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:33]Read from MH i2c: E2 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 03 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 03 00 CF 2A 00 90 00 6D [09:30:33]RAPDU: 90 00 [09:30:33]wFMCommunicate OK [09:30:33]wFMCommunicate request_size=10 [09:30:33]MH_SAM_APDU [09:30:33]CAPDU: 80 0D 02 02 05 4C B4 B5 5D 1F [09:30:33]Write to MH i2c: E2 0D 00 D0 2A 80 0D 02 02 05 00 4C B4 B5 5D 1F 00 00 AF [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:33]Read from MH i2c: E2 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 03 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 03 00 D0 2A 00 90 00 6E [09:30:33]RAPDU: 90 00 [09:30:33]wFMCommunicate OK [09:30:33]wFMCommunicate request_size=4 [09:30:33]MH_SAM_APDU [09:30:33]CAPDU: 80 0D 03 02 [09:30:33]Write to MH i2c: E2 08 00 D1 2A 80 0D 03 02 00 00 00 00 76 [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:33]Read from MH i2c: E2 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 0B 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 0B 00 D1 2A 00 BC FF 7C D4 9A 3F 80 4A 90 00 25 [09:30:33]RAPDU: BC FF 7C D4 9A 3F 80 4A 90 00 [09:30:33]wFMCommunicate OK [09:30:33]SAM_PROTO_SignData done [09:30:33]FM_MakeSignedData done [09:30:33]CreateOFDProtocolMessage [09:30:33]wFMCommunicate request_size=4 [09:30:33]MH_SAM_APDU [09:30:33]CAPDU: 80 11 00 00 [09:30:33]Write to MH i2c: E2 08 00 D2 2A 80 11 00 00 00 00 00 00 76 [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:33]Read from MH i2c: E2 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 17 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: E2 17 00 D2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [09:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:33]wFMCommunicate OK [09:30:33]CreateOFDProtocolMessage done [09:30:33]OFDSenderStorePacket 166628 [09:30:33]StoreOFDPacket docnum=166628 [09:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 7A 07 01 5C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8A 02 00 35 04 06 00 C7 4C B4 B5 5D 1F BC FF 7C D4 9A 3F 80 4A [09:30:33]CheckFolder [09:30:33]dirname=/storage/ofd_packets [09:30:33]CheckFolder done [09:30:33]ProducePacketName [09:30:33]name=ofd_packets/00166628 [09:30:33]NVStorageSaveData ofd_packets/00166628 [09:30:33]File name is /storage/ofd_packets/00166628 [09:30:33]Write 301 bytes [09:30:33]NVStorageSaveData done [09:30:33]OFDSenderStorePacket done [09:30:33]KKMCreateOFDPacket done [09:30:33]NVStorageSaveData kkm_last_timestamp [09:30:33]File name is /storage/kkm_last_timestamp [09:30:33]Write 4 bytes [09:30:33]NVStorageSaveData done [09:30:33]ExternCall_PrintAddStr [09:30:33]wPrintStart [09:30:33]Write to MH i2c: 01 00 00 D3 2A FD [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 07 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 07 00 D3 2A 00 00 00 00 00 FF 0F 12 [09:30:33]RasterBufferAndPrint [09:30:33]line Счет N : (1)221209 [09:30:33]line ИНН: 02508201610067 [09:30:33]line Контрольно-Кассовый Чек [09:30:33]line ПРОДАЖА [09:30:33]line ТРК (МРК, ГНК) : 23 [09:30:33]line Товар: 2710124130 [09:30:33]line Аи-92-К-5 [09:30:33]line 7.480 * 66.90 [09:30:33]line = 500.41 [09:30:33]line НДС 12% НСП 1% [09:30:33]line > о реализуемом товаре [09:30:33]line ОКРУГЛЕНИЕ: -0.41 [09:30:33]line ИТОГО: 500.00 [09:30:33]line Внесено: 500.00 [09:30:33]line СДАЧА: 0.00 [09:30:33]line НСП 1% : 4.43 [09:30:33]line НДС 12% : 53.14 [09:30:33]line Наличными: 500.00 [09:30:33]line Безнал.: 0.00 [09:30:33]line Место: АЗС № 161 "Партнер Нефть" [09:30:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:30:33]line СНО: Общий режим [09:30:33]line Чек 43 23.10.2024 09:30 [09:30:33]line Смена: 537 ФФД: 1.0 [09:30:33]line ЗНМ: 0300000104 [09:30:33]line РНМ: 0000000000091764 [09:30:33]line Версия ККМ: 001 [09:30:33]line ФМ: 0000000000871759 [09:30:33]line ФД: 166628 [09:30:33]line ФПД: 219132263226655 [09:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166628&fm=219132263226655&tin=02508201610067®Number=0000000000091764&sum=50000 [09:30:33]OFD Sender: Processing packet 166628 [packets to send 48, broken 47] [09:30:33]ProducePacketName [09:30:33]name=ofd_packets/00166628 [09:30:33]OFD Sender: To server: pG, [09:30:33]CommunicateWithHost lk.salyk.kg:30040 [09:30:33]ConnectInit lk.salyk.kg [09:30:33]written 0, free lines is 4095 [09:30:33]Connected sock=10 [09:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 7A 07 01 5C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8A 02 00 35 04 06 00 C7 4C B4 B5 5D 1F BC FF 7C D4 9A 3F 80 4A [09:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1F 61 47 00 1E 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8A 02 00 F4 03 04 00 A3 68 18 67 B6 04 01 00 00 F1 9D 0C B2 A5 B0 DC CC [09:30:33]CommunicateWithHost err = 0 [09:30:33]CheckOFDResponse [09:30:33]1017 (14) - 77093643461234 [09:30:33]1041 (16) - 0000000000871759 [09:30:33]1040 (4) - 166628 [09:30:33]1012 (4) - 23.10.2024 03:08 [09:30:33]1206 (1) - 0 [09:30:33]OFD Sender: Remove packet 166628 [09:30:33]ProducePacketName [09:30:33]name=ofd_packets/00166628 [09:30:33]NVStorageDeleteData [09:30:33]Write to MH i2c: 01 00 00 FE 2A 28 [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 07 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: 01 07 00 FE 2A 00 00 00 00 00 A5 0C E0 [09:30:33]RasterBufferAndPrint [09:30:33]line [09:30:33]line [09:30:33]line [09:30:33]line [09:30:33]line [09:30:33]written 0, free lines is 3242 [09:30:33]MH_Cut [09:30:33]Write to MH i2c: D1 01 00 05 2B 01 02 [09:30:33]Write i2c OK [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: D1 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: D1 01 00 [09:30:33]MH_I2C_Read... [09:30:33]Read from MH i2c: D1 01 00 05 2B 00 01 [09:30:33]Write to MH i2c: 01 00 00 06 2B 31 [09:30:34]Write i2c OK [09:30:34]MH_I2C_Read... [09:30:34]OFD Sender: No OFD packet to send [09:30:34]*** Cut start [09:30:34]*** Partial cut [09:30:34]*** CUTSNS_PIN = 1 [09:30:34]*** CUTSNS_PIN = 0 [09:30:35]*** Brake cut motor [09:30:35]Read from MH i2c: 01 [09:30:35]MH_I2C_Read... [09:30:35]*** Stop cut motor [09:30:35]*** Cut end [09:30:35]Read from MH i2c: 01 07 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: 01 07 00 06 2B 00 00 00 00 00 FF 0F 46 [09:30:35]process_action close_receipt done [09:30:35]requested_data is exist [09:30:35]produce_requested_data [09:30:35]requested_item fm.sn is exist - process it [09:30:35]wFMCommunicate request_size=4 [09:30:35]MH_SAM_APDU [09:30:35]CAPDU: 80 11 00 00 [09:30:35]Write to MH i2c: E2 08 00 07 2B 80 11 00 00 00 00 00 00 AC [09:30:35]Write i2c OK [09:30:35]MH_I2C_Read... [09:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:35]Read from MH i2c: E2 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 17 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 17 00 07 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [09:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:35]wFMCommunicate OK [09:30:35]requested_item fd.num is exist - process it [09:30:35]SAM_PROTO_GetFieldsCounters [09:30:35]wFMCommunicate request_size=4 [09:30:35]MH_SAM_APDU [09:30:35]CAPDU: 80 13 00 00 [09:30:35]Write to MH i2c: E2 08 00 08 2B 80 13 00 00 00 00 00 00 AF [09:30:35]Write i2c OK [09:30:35]MH_I2C_Read... [09:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:35]Read from MH i2c: E2 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 62 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 62 00 08 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [09:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:35]wFMCommunicate OK [09:30:35]SAM_PROTO_GetFieldsCounters done [09:30:35]requested_item shift.num is exist - process it [09:30:35]requested_item shift.opened is exist - process it [09:30:35]req_shift_opened [09:30:35]FM_GetShiftState [09:30:35]SAM_PROTO_GetShiftState [09:30:35]wFMCommunicate request_size=4 [09:30:35]MH_SAM_APDU [09:30:35]CAPDU: 80 13 01 00 [09:30:35]Write to MH i2c: E2 08 00 09 2B 80 13 01 00 00 00 00 00 B1 [09:30:35]Write i2c OK [09:30:35]MH_I2C_Read... [09:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:35]Read from MH i2c: E2 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 0E 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 0E 00 09 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7C [09:30:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:30:35]wFMCommunicate OK [09:30:35]SAM_PROTO_GetShiftState done [09:30:35]FM_GetShiftState done [09:30:35]req_shift_opened done [09:30:35]requested_item shift.open_date is exist - process it [09:30:35]req_shift_open_date [09:30:35]req_shift_open_date done [09:30:35]produce_requested_data done [09:30:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166628,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:30:35]process_action_free close_receipt [09:30:35]json_value_free [09:30:35]json_value_free done [09:30:35]process_json_proto returns [09:30:35]Send response to host [09:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166628,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:30:35]free response buf [09:30:35]execute_script done [09:30:35]execute_script returns [09:30:35]free content buf [09:30:35]Sock 9.Close socket [09:30:35]Sock 9.Thread stoped [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:30]accept exits with 7 [09:33:30]New connection [09:33:30]New thread 3067632996 created [09:33:30]Thread 3067489636 joined [09:33:30]Waiting for new connection... [09:33:30] Sock 7.Parse request [09:33:30]Sock 7.Check first char [09:33:30]Sock 7.First char is OK [09:33:30]request: POST /json_proto HTTP/1.0 [09:33:30]Method: POST [09:33:30]URL: /json_proto [09:33:30]Method is POST - this is cgi request [09:33:30]url: /json_proto [09:33:30]query_string will be loaded in cgi processing [09:33:30]execute_cgi json_proto POST (null) [09:33:30]execute_cgi path=json_proto method=POST [09:33:30]POST find Content-Length [09:33:30]Host: 172.17.53.195:8080 [09:33:30]Content-Length: 789 [09:33:30]Content-Type: application/json [09:33:30] [09:33:30]POST finish read [09:33:30]Found Content-Length = 789 [09:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:30]execute_script... [09:33:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:30]POST & json_proto [09:33:30]process_json_proto [09:33:30]json parsed OK: [09:33:30]protocol is kg_v1.0 [09:33:30]action value=close_receipt [09:33:30]process_action close_receipt [09:33:30]cmd_close_receipt [09:33:30]MH_GetDate [09:33:30]Write to MH i2c: F0 00 00 0A 2B 24 [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: F0 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: F0 09 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: F0 09 00 0A 2B 00 EE C2 18 67 21 48 4A 65 74 [09:33:30]GetLastDocTimeStamp 1729675835 [09:33:30]current date 1729676014 [09:33:30]FM_GetShiftState [09:33:30]SAM_PROTO_GetShiftState [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 13 01 00 [09:33:30]Write to MH i2c: E2 08 00 0B 2B 80 13 01 00 00 00 00 00 B3 [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 0E 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 0E 00 0B 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [09:33:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:33:30]wFMCommunicate OK [09:33:30]SAM_PROTO_GetShiftState done [09:33:30]FM_GetShiftState done [09:33:30]opened in 1729643772 [09:33:30]opened+sec_in_day 1729730172 [09:33:30]quantity*price = 0 [09:33:30]sum+1 = 1 [09:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 44 23.10.2024 09:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166629 ФПД: 138437607284761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166629&fm=138437607284761&tin=02508201610067®Number=0000000000091764&sum=0 [09:33:31]StoreToDocumentArchive [09:33:31]shift 537 fd 166629 [09:33:31]save to /storage/0537/doc_00166629 [09:33:31]save last doc name /storage/0537/doc_00166629 to /storage/kkm_last_doc_name [09:33:31]save OK [09:33:31]Clear old archive folders... [09:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:31]tlvbuf is B6FFB5D0 [09:33:31]SAM_PROTO_ClearQueue [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 09 00 00 [09:33:31]Write to MH i2c: E2 08 00 18 2B 80 09 00 00 00 00 00 00 B5 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 18 2B 00 90 00 B7 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]SAM_PROTO_ClearQueue done [09:33:31]KKMCreateOFDPacket [09:33:31]OFDProtocolAddRootSTLVToBuf [09:33:31]FM_MakeSignedData [09:33:31]FM_MakeSignedData [09:33:31]SAM_PROTO_SignData [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 01 02 [09:33:31]Write to MH i2c: E2 08 00 19 2B 80 0D 01 02 00 00 00 00 BD [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 19 2B 00 90 00 B8 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=255 [09:33:31]MH_SAM_APDU [09:33: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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 EE C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8A 02 00 35 04 06 00 7D E8 84 67 [09:33:31]Write to MH i2c: E2 02 01 1A 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 EE C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8A 02 00 35 04 06 00 7D E8 84 67 00 00 C5 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 03 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 03 00 1A 2B 00 90 00 B9 [09:33:32]RAPDU: 90 00 [09:33:32]wFMCommunicate OK [09:33:32]wFMCommunicate request_size=7 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 0D 02 02 02 E0 19 [09:33:32]Write to MH i2c: E2 0A 00 1B 2B 80 0D 02 02 02 00 E0 19 00 00 BD [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 03 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 03 00 1B 2B 00 90 00 BA [09:33:32]RAPDU: 90 00 [09:33:32]wFMCommunicate OK [09:33:32]wFMCommunicate request_size=4 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 0D 03 02 [09:33:32]Write to MH i2c: E2 08 00 1C 2B 80 0D 03 02 00 00 00 00 C2 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 0B 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 0B 00 1C 2B 00 DA EB 36 51 79 DD 6A 8D 90 00 5C [09:33:32]RAPDU: DA EB 36 51 79 DD 6A 8D 90 00 [09:33:32]wFMCommunicate OK [09:33:32]SAM_PROTO_SignData done [09:33:32]FM_MakeSignedData done [09:33:32]CreateOFDProtocolMessage [09:33:32]wFMCommunicate request_size=4 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 11 00 00 [09:33:32]Write to MH i2c: E2 08 00 1D 2B 80 11 00 00 00 00 00 00 C2 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 17 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 17 00 1D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [09:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:32]wFMCommunicate OK [09:33:32]CreateOFDProtocolMessage done [09:33:32]OFDSenderStorePacket 166629 [09:33:32]StoreOFDPacket docnum=166629 [09:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 47 DE 04 01 1D 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 EE C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8A 02 00 35 04 06 00 7D E8 84 67 E0 19 DA EB 36 51 79 DD 6A 8D [09:33:32]CheckFolder [09:33:32]dirname=/storage/ofd_packets [09:33:32]CheckFolder done [09:33:32]ProducePacketName [09:33:32]name=ofd_packets/00166629 [09:33:32]NVStorageSaveData ofd_packets/00166629 [09:33:32]File name is /storage/ofd_packets/00166629 [09:33:32]Write 298 bytes [09:33:32]NVStorageSaveData done [09:33:32]OFDSenderStorePacket done [09:33:32]KKMCreateOFDPacket done [09:33:32]NVStorageSaveData kkm_last_timestamp [09:33:32]File name is /storage/kkm_last_timestamp [09:33:32]Write 4 bytes [09:33:32]NVStorageSaveData done [09:33:32]ExternCall_PrintAddStr [09:33:32]wPrintStart [09:33:32]Write to MH i2c: 01 00 00 1E 2B 49 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 1E 2B 00 00 00 00 00 FF 0F 5E [09:33:32]RasterBufferAndPrint [09:33:32]line Счет N : (1)221210 [09:33:32]line ИНН: 02508201610067 [09:33:32]line Контрольно-Кассовый Чек [09:33:32]line ПРОДАЖА [09:33:32]line ТРК (МРК, ГНК) : 41 [09:33:32]line Товар: 2710194210 [09:33:32]line ДТ-К-5 [09:33:32]line 39.380 * 0.00 [09:33:32]line = 0.00 [09:33:32]line НДС 12% НСП 1% [09:33:32]line > о реализуемом товаре [09:33:32]line ИТОГО: 0.00 [09:33:32]line НСП 1% : 0.00 [09:33:32]line НДС 12% : 0.00 [09:33:32]line Наличными: 0.00 [09:33:32]line Безнал.: 0.00 [09:33:32]line Место: АЗС № 161 "Партнер Нефть" [09:33:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:33:32]line СНО: Общий режим [09:33:32]line Чек 44 23.10.2024 09:33 [09:33:32]line Смена: 537 ФФД: 1.0 [09:33:32]line ЗНМ: 0300000104 [09:33:32]line РНМ: 0000000000091764 [09:33:32]line Версия ККМ: 001 [09:33:32]line Талоны: Топливная Карта [09:33:32]line 38286 [09:33:32]line ФМ: 0000000000871759 [09:33:32]line ФД: 166629 [09:33:32]line ФПД: 138437607284761 [09:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166629&fm=138437607284761&tin=02508201610067®Number=0000000000091764&sum=0 [09:33:32]OFD Sender: Processing packet 166629 [packets to send 48, broken 47] [09:33:32]ProducePacketName [09:33:32]name=ofd_packets/00166629 [09:33:32]OFD Sender: To server: pG, [09:33:32]CommunicateWithHost lk.salyk.kg:30040 [09:33:32]ConnectInit lk.salyk.kg [09:33:32]written 0, free lines is 4095 [09:33:32]Connected sock=9 [09:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 47 DE 04 01 1D 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 EE C2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8A 02 00 35 04 06 00 7D E8 84 67 E0 19 DA EB 36 51 79 DD 6A 8D [09:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE E6 47 00 17 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8A 02 00 F4 03 04 00 57 69 18 67 B6 04 01 00 00 B7 6F 1F D0 6A 3D F6 C5 [09:33:33]CommunicateWithHost err = 0 [09:33:33]CheckOFDResponse [09:33:33]1017 (14) - 77093643461234 [09:33:33]1041 (16) - 0000000000871759 [09:33:33]1040 (4) - 166629 [09:33:33]1012 (4) - 23.10.2024 03:11 [09:33:33]1206 (1) - 0 [09:33:33]OFD Sender: Remove packet 166629 [09:33:33]ProducePacketName [09:33:33]name=ofd_packets/00166629 [09:33:33]NVStorageDeleteData [09:33:33]Write to MH i2c: 01 00 00 48 2B 73 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 48 2B 00 00 00 00 00 BA 0C 40 [09:33:33]RasterBufferAndPrint [09:33:33]line [09:33:33]line [09:33:33]line [09:33:33]line [09:33:33]line [09:33:33]written 0, free lines is 3264 [09:33:33]MH_Cut [09:33:33]Write to MH i2c: D1 01 00 4F 2B 01 4C [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: D1 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: D1 01 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: D1 01 00 4F 2B 00 4B [09:33:33]Write to MH i2c: 01 00 00 50 2B 7B [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]OFD Sender: No OFD packet to send [09:33:33]*** Cut start [09:33:33]*** Partial cut [09:33:33]*** CUTSNS_PIN = 1 [09:33:33]*** CUTSNS_PIN = 0 [09:33:34]*** Brake cut motor [09:33:34]Read from MH i2c: 01 [09:33:34]MH_I2C_Read... [09:33:34]*** Stop cut motor [09:33:34]*** Cut end [09:33:34]Read from MH i2c: 01 07 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: 01 07 00 50 2B 00 00 00 00 00 FF 0F 90 [09:33:34]process_action close_receipt done [09:33:34]requested_data is exist [09:33:34]produce_requested_data [09:33:34]requested_item fm.sn is exist - process it [09:33:34]wFMCommunicate request_size=4 [09:33:34]MH_SAM_APDU [09:33:34]CAPDU: 80 11 00 00 [09:33:34]Write to MH i2c: E2 08 00 51 2B 80 11 00 00 00 00 00 00 F6 [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:34]Read from MH i2c: E2 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 17 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 17 00 51 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [09:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:34]wFMCommunicate OK [09:33:34]requested_item fd.num is exist - process it [09:33:34]SAM_PROTO_GetFieldsCounters [09:33:34]wFMCommunicate request_size=4 [09:33:34]MH_SAM_APDU [09:33:34]CAPDU: 80 13 00 00 [09:33:34]Write to MH i2c: E2 08 00 52 2B 80 13 00 00 00 00 00 00 F9 [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:34]Read from MH i2c: E2 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 62 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 62 00 52 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [09:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:34]wFMCommunicate OK [09:33:34]SAM_PROTO_GetFieldsCounters done [09:33:34]requested_item shift.num is exist - process it [09:33:34]requested_item shift.opened is exist - process it [09:33:34]req_shift_opened [09:33:34]FM_GetShiftState [09:33:34]SAM_PROTO_GetShiftState [09:33:34]wFMCommunicate request_size=4 [09:33:34]MH_SAM_APDU [09:33:34]CAPDU: 80 13 01 00 [09:33:34]Write to MH i2c: E2 08 00 53 2B 80 13 01 00 00 00 00 00 FB [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:34]Read from MH i2c: E2 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 0E 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 0E 00 53 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C6 [09:33:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:33:34]wFMCommunicate OK [09:33:34]SAM_PROTO_GetShiftState done [09:33:34]FM_GetShiftState done [09:33:34]req_shift_opened done [09:33:34]requested_item shift.open_date is exist - process it [09:33:34]req_shift_open_date [09:33:34]req_shift_open_date done [09:33:34]produce_requested_data done [09:33:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166629,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:33:34]process_action_free close_receipt [09:33:34]json_value_free [09:33:34]json_value_free done [09:33:34]process_json_proto returns [09:33:34]Send response to host [09:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166629,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:33:34]free response buf [09:33:34]execute_script done [09:33:34]execute_script returns [09:33:34]free content buf [09:33:34]Sock 7.Close socket [09:33:34]Sock 7.Thread stoped [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:44]accept exits with 10 [09:35:44]New connection [09:35:44]New thread 3067489636 created [09:35:44]Thread 3067632996 joined [09:35:44]Waiting for new connection... [09:35:44] Sock 10.Parse request [09:35:44]Sock 10.Check first char [09:35:44]Sock 10.First char is OK [09:35:44]request: POST /json_proto HTTP/1.0 [09:35:44]Method: POST [09:35:44]URL: /json_proto [09:35:44]Method is POST - this is cgi request [09:35:44]url: /json_proto [09:35:44]query_string will be loaded in cgi processing [09:35:44]execute_cgi json_proto POST (null) [09:35:44]execute_cgi path=json_proto method=POST [09:35:44]POST find Content-Length [09:35:44]Host: 172.17.53.195:8080 [09:35:44]Content-Length: 679 [09:35:44]Content-Type: application/json [09:35:44] [09:35:44]POST finish read [09:35:44]Found Content-Length = 679 [09:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:44]execute_script... [09:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:44]POST & json_proto [09:35:44]process_json_proto [09:35:44]json parsed OK: [09:35:44]protocol is kg_v1.0 [09:35:44]action value=close_receipt [09:35:44]process_action close_receipt [09:35:44]cmd_close_receipt [09:35:44]MH_GetDate [09:35:44]Write to MH i2c: F0 00 00 54 2B 6E [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: F0 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: F0 09 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: F0 09 00 54 2B 00 75 C3 18 67 21 48 4A 65 46 [09:35:44]GetLastDocTimeStamp 1729676014 [09:35:44]current date 1729676149 [09:35:44]FM_GetShiftState [09:35:44]SAM_PROTO_GetShiftState [09:35:44]wFMCommunicate request_size=4 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 13 01 00 [09:35:44]Write to MH i2c: E2 08 00 55 2B 80 13 01 00 00 00 00 00 FD [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 0E 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 0E 00 55 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C8 [09:35:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:35:44]wFMCommunicate OK [09:35:44]SAM_PROTO_GetShiftState done [09:35:44]FM_GetShiftState done [09:35:44]opened in 1729643772 [09:35:44]opened+sec_in_day 1729730172 [09:35:44]quantity*price = 99948 [09:35:44]sum+1 = 99950 [09:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 45 23.10.2024 09:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166630 ФПД: 273310350291427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166630&fm=273310350291427&tin=02508201610067®Number=0000000000091764&sum=99900 [09:35:45]StoreToDocumentArchive [09:35:45]shift 537 fd 166630 [09:35:45]save to /storage/0537/doc_00166630 [09:35:45]save last doc name /storage/0537/doc_00166630 to /storage/kkm_last_doc_name [09:35:45]save OK [09:35:45]Clear old archive folders... [09:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:45]tlvbuf is B6FFB010 [09:35:45]SAM_PROTO_ClearQueue [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 09 00 00 [09:35:45]Write to MH i2c: E2 08 00 62 2B 80 09 00 00 00 00 00 00 FF [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 62 2B 00 90 00 01 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_ClearQueue done [09:35:46]KKMCreateOFDPacket [09:35:46]OFDProtocolAddRootSTLVToBuf [09:35:46]FM_MakeSignedData [09:35:46]FM_MakeSignedData [09:35:46]SAM_PROTO_SignData [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 0D 01 02 [09:35:46]Write to MH i2c: E2 08 00 63 2B 80 0D 01 02 00 00 00 00 07 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 63 2B 00 90 00 02 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]wFMCommunicate request_size=255 [09:35:46]MH_SAM_APDU [09:35: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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 75 C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8A 02 00 35 04 06 00 F8 [09:35:46]Write to MH i2c: E2 02 01 64 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 75 C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8A 02 00 35 04 06 00 F8 00 00 E3 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 64 2B 00 90 00 03 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]wFMCommunicate request_size=10 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 0D 02 02 05 93 06 57 B1 E3 [09:35:46]Write to MH i2c: E2 0D 00 65 2B 80 0D 02 02 05 00 93 06 57 B1 E3 00 00 98 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 65 2B 00 90 00 04 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 0D 03 02 [09:35:46]Write to MH i2c: E2 08 00 66 2B 80 0D 03 02 00 00 00 00 0C [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0B 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0B 00 66 2B 00 42 72 36 E4 EE 8C CE 1C 90 00 3F [09:35:46]RAPDU: 42 72 36 E4 EE 8C CE 1C 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_SignData done [09:35:46]FM_MakeSignedData done [09:35:46]CreateOFDProtocolMessage [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 11 00 00 [09:35:46]Write to MH i2c: E2 08 00 67 2B 80 11 00 00 00 00 00 00 0C [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 67 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [09:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:46]wFMCommunicate OK [09:35:46]CreateOFDProtocolMessage done [09:35:46]OFDSenderStorePacket 166630 [09:35:46]StoreOFDPacket docnum=166630 [09:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 23 07 01 BE 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 75 C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8A 02 00 35 04 06 00 F8 93 06 57 B1 E3 42 72 36 E4 EE 8C CE 1C [09:35:46]CheckFolder [09:35:46]dirname=/storage/ofd_packets [09:35:46]CheckFolder done [09:35:46]ProducePacketName [09:35:46]name=ofd_packets/00166630 [09:35:46]NVStorageSaveData ofd_packets/00166630 [09:35:46]File name is /storage/ofd_packets/00166630 [09:35:46]Write 301 bytes [09:35:46]NVStorageSaveData done [09:35:46]OFDSenderStorePacket done [09:35:46]KKMCreateOFDPacket done [09:35:46]NVStorageSaveData kkm_last_timestamp [09:35:46]File name is /storage/kkm_last_timestamp [09:35:46]Write 4 bytes [09:35:46]NVStorageSaveData done [09:35:46]ExternCall_PrintAddStr [09:35:46]wPrintStart [09:35:46]Write to MH i2c: 01 00 00 68 2B 93 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: 01 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: 01 07 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: 01 07 00 68 2B 00 00 00 00 00 FF 0F A8 [09:35:46]RasterBufferAndPrint [09:35:46]line Счет N : (1)221212 [09:35:46]line ИНН: 02508201610067 [09:35:46]line Контрольно-Кассовый Чек [09:35:46]line ПРОДАЖА [09:35:46]line ТРК (МРК, ГНК) : 13 [09:35:46]line Товар: 2710124130 [09:35:46]line Аи-92-К-5 [09:35:46]line 14.940 * 66.90 [09:35:46]line = 999.49 [09:35:46]line НДС 12% НСП 1% [09:35:46]line > о реализуемом товаре [09:35:46]line ОКРУГЛЕНИЕ: -0.49 [09:35:46]line ИТОГО: 999.00 [09:35:46]line Внесено: 1000.00 [09:35:46]line СДАЧА: 1.00 [09:35:46]line НСП 1% : 8.84 [09:35:46]line НДС 12% : 106.14 [09:35:46]line Наличными: 999.00 [09:35:46]line Безнал.: 0.00 [09:35:46]line Место: АЗС № 161 "Партнер Нефть" [09:35:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:35:46]line СНО: Общий режим [09:35:46]line Чек 45 23.10.2024 09:35 [09:35:46]line Смена: 537 ФФД: 1.0 [09:35:46]line ЗНМ: 0300000104 [09:35:46]line РНМ: 0000000000091764 [09:35:46]line Версия ККМ: 001 [09:35:46]line ФМ: 0000000000871759 [09:35:46]line ФД: 166630 [09:35:46]line ФПД: 273310350291427 [09:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166630&fm=273310350291427&tin=02508201610067®Number=0000000000091764&sum=99900 [09:35:46]OFD Sender: Processing packet 166630 [packets to send 48, broken 47] [09:35:46]ProducePacketName [09:35:46]name=ofd_packets/00166630 [09:35:46]OFD Sender: To server: pG, [09:35:46]CommunicateWithHost lk.salyk.kg:30040 [09:35:46]ConnectInit lk.salyk.kg [09:35:46]written 0, free lines is 4095 [09:35:46]Connected sock=9 [09:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 23 07 01 BE 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 75 C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8A 02 00 35 04 06 00 F8 93 06 57 B1 E3 42 72 36 E4 EE 8C CE 1C [09:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D E2 47 00 68 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8A 02 00 F4 03 04 00 DD 69 18 67 B6 04 01 00 00 FF 39 36 92 64 B6 EA CC [09:35:47]CommunicateWithHost err = 0 [09:35:47]CheckOFDResponse [09:35:47]1017 (14) - 77093643461234 [09:35:47]1041 (16) - 0000000000871759 [09:35:47]1040 (4) - 166630 [09:35:47]1012 (4) - 23.10.2024 03:13 [09:35:47]1206 (1) - 0 [09:35:47]OFD Sender: Remove packet 166630 [09:35:47]ProducePacketName [09:35:47]name=ofd_packets/00166630 [09:35:47]NVStorageDeleteData [09:35:47]Write to MH i2c: 01 00 00 93 2B BE [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 93 2B 00 00 00 00 00 AA 0C 7B [09:35:47]RasterBufferAndPrint [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]written 0, free lines is 3248 [09:35:47]MH_Cut [09:35:47]Write to MH i2c: D1 01 00 9A 2B 01 97 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 01 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 01 00 9A 2B 00 96 [09:35:47]Write to MH i2c: 01 00 00 9B 2B C6 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]OFD Sender: No OFD packet to send [09:35:48]*** Cut start [09:35:48]*** Partial cut [09:35:48]*** CUTSNS_PIN = 1 [09:35:48]*** CUTSNS_PIN = 0 [09:35:48]*** Brake cut motor [09:35:48]Read from MH i2c: 01 [09:35:48]MH_I2C_Read... [09:35:48]*** Stop cut motor [09:35:48]*** Cut end [09:35:48]Read from MH i2c: 01 07 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: 01 07 00 9B 2B 00 00 00 00 00 FF 0F DB [09:35:48]process_action close_receipt done [09:35:48]requested_data is exist [09:35:48]produce_requested_data [09:35:48]requested_item fm.sn is exist - process it [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 11 00 00 [09:35:48]Write to MH i2c: E2 08 00 9C 2B 80 11 00 00 00 00 00 00 41 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 17 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 17 00 9C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [09:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:48]wFMCommunicate OK [09:35:48]requested_item fd.num is exist - process it [09:35:48]SAM_PROTO_GetFieldsCounters [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 13 00 00 [09:35:48]Write to MH i2c: E2 08 00 9D 2B 80 13 00 00 00 00 00 00 44 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 62 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 62 00 9D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [09:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:48]wFMCommunicate OK [09:35:49]SAM_PROTO_GetFieldsCounters done [09:35:49]requested_item shift.num is exist - process it [09:35:49]requested_item shift.opened is exist - process it [09:35:49]req_shift_opened [09:35:49]FM_GetShiftState [09:35:49]SAM_PROTO_GetShiftState [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 13 01 00 [09:35:49]Write to MH i2c: E2 08 00 9E 2B 80 13 01 00 00 00 00 00 46 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0E 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0E 00 9E 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 11 [09:35:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_GetShiftState done [09:35:49]FM_GetShiftState done [09:35:49]req_shift_opened done [09:35:49]requested_item shift.open_date is exist - process it [09:35:49]req_shift_open_date [09:35:49]req_shift_open_date done [09:35:49]produce_requested_data done [09:35:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166630,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:35:49]process_action_free close_receipt [09:35:49]json_value_free [09:35:49]json_value_free done [09:35:49]process_json_proto returns [09:35:49]Send response to host [09:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166630,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:35:49]free response buf [09:35:49]execute_script done [09:35:49]execute_script returns [09:35:49]free content buf [09:35:49]Sock 10.Close socket [09:35:49]Sock 10.Thread stoped [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:29]accept exits with 7 [09:37:29]New connection [09:37:29]New thread 3067632996 created [09:37:29]Thread 3067489636 joined [09:37:29]Waiting for new connection... [09:37:29] Sock 7.Parse request [09:37:29]Sock 7.Check first char [09:37:29]Sock 7.First char is OK [09:37:29]request: POST /json_proto HTTP/1.0 [09:37:29]Method: POST [09:37:29]URL: /json_proto [09:37:29]Method is POST - this is cgi request [09:37:29]url: /json_proto [09:37:29]query_string will be loaded in cgi processing [09:37:29]execute_cgi json_proto POST (null) [09:37:29]execute_cgi path=json_proto method=POST [09:37:29]POST find Content-Length [09:37:29]Host: 172.17.53.195:8080 [09:37:29]Content-Length: 767 [09:37:29]Content-Type: application/json [09:37:29] [09:37:29]POST finish read [09:37:29]Found Content-Length = 767 [09:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:29]execute_script... [09:37: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)221213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:29]POST & json_proto [09:37:29]process_json_proto [09:37:29]json parsed OK: [09:37:29]protocol is kg_v1.0 [09:37:29]action value=close_receipt [09:37:29]process_action close_receipt [09:37:29]cmd_close_receipt [09:37:29]MH_GetDate [09:37:29]Write to MH i2c: F0 00 00 9F 2B B9 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: F0 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: F0 09 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: F0 09 00 9F 2B 00 DD C3 18 67 21 48 4A 65 F9 [09:37:29]GetLastDocTimeStamp 1729676149 [09:37:29]current date 1729676253 [09:37:29]FM_GetShiftState [09:37:29]SAM_PROTO_GetShiftState [09:37:29]wFMCommunicate request_size=4 [09:37:29]MH_SAM_APDU [09:37:29]CAPDU: 80 13 01 00 [09:37:29]Write to MH i2c: E2 08 00 A0 2B 80 13 01 00 00 00 00 00 48 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:29]Read from MH i2c: E2 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: E2 0E 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: E2 0E 00 A0 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [09:37:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:37:29]wFMCommunicate OK [09:37:29]SAM_PROTO_GetShiftState done [09:37:29]FM_GetShiftState done [09:37:29]opened in 1729643772 [09:37:29]opened+sec_in_day 1729730172 [09:37:29]quantity*price = 70044 [09:37:29]sum+1 = 70045 [09:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 46 23.10.2024 09:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166631 ФПД: 155053244675033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166631&fm=155053244675033&tin=02508201610067®Number=0000000000091764&sum=70044 [09:37:30]StoreToDocumentArchive [09:37:30]shift 537 fd 166631 [09:37:30]save to /storage/0537/doc_00166631 [09:37:30]save last doc name /storage/0537/doc_00166631 to /storage/kkm_last_doc_name [09:37:30]save OK [09:37:30]Clear old archive folders... [09:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:30]tlvbuf is 011FEDF0 [09:37:30]SAM_PROTO_ClearQueue [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 09 00 00 [09:37:30]Write to MH i2c: E2 08 00 AD 2B 80 09 00 00 00 00 00 00 4A [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 AD 2B 00 90 00 4C [09:37:30]RAPDU: 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_ClearQueue done [09:37:30]KKMCreateOFDPacket [09:37:30]OFDProtocolAddRootSTLVToBuf [09:37:30]FM_MakeSignedData [09:37:30]FM_MakeSignedData [09:37:30]SAM_PROTO_SignData [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 0D 01 02 [09:37:30]Write to MH i2c: E2 08 00 AE 2B 80 0D 01 02 00 00 00 00 52 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [09:37:30]RAPDU: 90 00 [09:37:30]wFMCommunicate OK [09:37:30]wFMCommunicate request_size=255 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DD C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8A 02 00 35 04 06 00 8D [09:37:30]Write to MH i2c: E2 02 01 AF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DD C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8A 02 00 35 04 06 00 8D 00 00 B8 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 AF 2B 00 90 00 4E [09:37:30]RAPDU: 90 00 [09:37:30]wFMCommunicate OK [09:37:30]wFMCommunicate request_size=10 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 0D 02 02 05 05 25 91 F3 D9 [09:37:30]Write to MH i2c: E2 0D 00 B0 2B 80 0D 02 02 05 00 05 25 91 F3 D9 00 00 E6 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 03 00 B0 2B 00 90 00 4F [09:37:30]RAPDU: 90 00 [09:37:30]wFMCommunicate OK [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 0D 03 02 [09:37:30]Write to MH i2c: E2 08 00 B1 2B 80 0D 03 02 00 00 00 00 57 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0B 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0B 00 B1 2B 00 CA A9 6A 01 FB AA F6 57 90 00 28 [09:37:30]RAPDU: CA A9 6A 01 FB AA F6 57 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_SignData done [09:37:30]FM_MakeSignedData done [09:37:30]CreateOFDProtocolMessage [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 11 00 00 [09:37:30]Write to MH i2c: E2 08 00 B2 2B 80 11 00 00 00 00 00 00 57 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 B2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [09:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:37:30]wFMCommunicate OK [09:37:30]CreateOFDProtocolMessage done [09:37:30]OFDSenderStorePacket 166631 [09:37:30]StoreOFDPacket docnum=166631 [09:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 5F 07 01 8B 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DD C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8A 02 00 35 04 06 00 8D 05 25 91 F3 D9 CA A9 6A 01 FB AA F6 57 [09:37:30]CheckFolder [09:37:30]dirname=/storage/ofd_packets [09:37:30]CheckFolder done [09:37:30]ProducePacketName [09:37:30]name=ofd_packets/00166631 [09:37:30]NVStorageSaveData ofd_packets/00166631 [09:37:30]File name is /storage/ofd_packets/00166631 [09:37:30]Write 301 bytes [09:37:30]NVStorageSaveData done [09:37:30]OFDSenderStorePacket done [09:37:30]KKMCreateOFDPacket done [09:37:30]NVStorageSaveData kkm_last_timestamp [09:37:30]File name is /storage/kkm_last_timestamp [09:37:30]Write 4 bytes [09:37:30]NVStorageSaveData done [09:37:30]ExternCall_PrintAddStr [09:37:30]wPrintStart [09:37:30]Write to MH i2c: 01 00 00 B3 2B DE [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: 01 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: 01 07 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: 01 07 00 B3 2B 00 00 00 00 00 FF 0F F3 [09:37:30]RasterBufferAndPrint [09:37:30]line Счет N : (1)221213 [09:37:30]line ИНН: 02508201610067 [09:37:30]line Контрольно-Кассовый Чек [09:37:30]line ПРОДАЖА [09:37:30]line ТРК (МРК, ГНК) : 23 [09:37:30]line Товар: 2710124130 [09:37:30]line Аи-92-К-5 [09:37:30]line 10.470 * 66.90 [09:37:30]line = 700.44 [09:37:30]line НДС 12% НСП 1% [09:37:30]line > о реализуемом товаре [09:37:30]line ИТОГО: 700.44 [09:37:30]line НСП 1% : 6.20 [09:37:30]line НДС 12% : 74.38 [09:37:30]line Наличными: 0.00 [09:37:30]line Безнал.: 700.44 [09:37:30]line Место: АЗС № 161 "Партнер Нефть" [09:37:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:37:30]line СНО: Общий режим [09:37:30]line Чек 46 23.10.2024 09:37 [09:37:30]line Смена: 537 ФФД: 1.0 [09:37:30]line ЗНМ: 0300000104 [09:37:30]line РНМ: 0000000000091764 [09:37:30]line Версия ККМ: 001 [09:37:30]line Платежная система: Mbank [09:37:30]line ФМ: 0000000000871759 [09:37:30]line ФД: 166631 [09:37:30]line ФПД: 155053244675033 [09:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166631&fm=155053244675033&tin=02508201610067®Number=0000000000091764&sum=70044 [09:37:30]written 0, free lines is 4095 [09:37:30]OFD Sender: Processing packet 166631 [packets to send 48, broken 47] [09:37:30]ProducePacketName [09:37:30]name=ofd_packets/00166631 [09:37:31]OFD Sender: To server: pG, [09:37:31]CommunicateWithHost lk.salyk.kg:30040 [09:37:31]ConnectInit lk.salyk.kg [09:37:31]Write to MH i2c: 01 00 00 DC 2B 07 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: 01 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: 01 07 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 CC 0C E6 [09:37:31]RasterBufferAndPrint [09:37:31]line [09:37:31]line [09:37:31]line [09:37:31]line [09:37:31]line [09:37:31]written 0, free lines is 3280 [09:37:31]Connected sock=9 [09:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 5F 07 01 8B 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 DD C3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8A 02 00 35 04 06 00 8D 05 25 91 F3 D9 CA A9 6A 01 FB AA F6 57 [09:37:31]MH_Cut [09:37:31]Write to MH i2c: D1 01 00 E3 2B 01 E0 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: D1 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: D1 01 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: D1 01 00 E3 2B 00 DF [09:37:31]Write to MH i2c: 01 00 00 E4 2B 0F [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FB 46 47 00 F6 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8A 02 00 F4 03 04 00 45 6A 18 67 B6 04 01 00 00 D7 97 A6 0B C7 09 D0 8B [09:37:31]CommunicateWithHost err = 0 [09:37:31]CheckOFDResponse [09:37:31]1017 (14) - 77093643461234 [09:37:31]1041 (16) - 0000000000871759 [09:37:31]1040 (4) - 166631 [09:37:31]1012 (4) - 23.10.2024 03:15 [09:37:31]1206 (1) - 0 [09:37:31]OFD Sender: Remove packet 166631 [09:37:31]ProducePacketName [09:37:31]name=ofd_packets/00166631 [09:37:31]NVStorageDeleteData [09:37:32]OFD Sender: No OFD packet to send [09:37:32]*** Cut start [09:37:32]*** Partial cut [09:37:32]*** CUTSNS_PIN = 1 [09:37:32]*** CUTSNS_PIN = 0 [09:37:32]*** Brake cut motor [09:37:32]Read from MH i2c: 01 [09:37:32]MH_I2C_Read... [09:37:32]*** Stop cut motor [09:37:32]*** Cut end [09:37:32]Read from MH i2c: 01 07 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [09:37:32]process_action close_receipt done [09:37:32]requested_data is exist [09:37:32]produce_requested_data [09:37:32]requested_item fm.sn is exist - process it [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 11 00 00 [09:37:32]Write to MH i2c: E2 08 00 E5 2B 80 11 00 00 00 00 00 00 8A [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 E5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [09:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:37:32]wFMCommunicate OK [09:37:32]requested_item fd.num is exist - process it [09:37:32]SAM_PROTO_GetFieldsCounters [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 13 00 00 [09:37:32]Write to MH i2c: E2 08 00 E6 2B 80 13 00 00 00 00 00 00 8D [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 62 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 62 00 E6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:37:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:32]wFMCommunicate OK [09:37:32]SAM_PROTO_GetFieldsCounters done [09:37:32]requested_item shift.num is exist - process it [09:37:32]requested_item shift.opened is exist - process it [09:37:32]req_shift_opened [09:37:32]FM_GetShiftState [09:37:32]SAM_PROTO_GetShiftState [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 13 01 00 [09:37:32]Write to MH i2c: E2 08 00 E7 2B 80 13 01 00 00 00 00 00 8F [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:33]Read from MH i2c: E2 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: E2 0E 00 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: E2 0E 00 E7 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5A [09:37:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:37:33]wFMCommunicate OK [09:37:33]SAM_PROTO_GetShiftState done [09:37:33]FM_GetShiftState done [09:37:33]req_shift_opened done [09:37:33]requested_item shift.open_date is exist - process it [09:37:33]req_shift_open_date [09:37:33]req_shift_open_date done [09:37:33]produce_requested_data done [09:37:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166631,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:37:33]process_action_free close_receipt [09:37:33]json_value_free [09:37:33]json_value_free done [09:37:33]process_json_proto returns [09:37:33]Send response to host [09:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166631,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:37:33]free response buf [09:37:33]execute_script done [09:37:33]execute_script returns [09:37:33]free content buf [09:37:33]Sock 7.Close socket [09:37:33]Sock 7.Thread stoped [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:01]accept exits with 10 [09:44:01]New connection [09:44:01]New thread 3067489636 created [09:44:01]Thread 3067632996 joined [09:44:01]Waiting for new connection... [09:44:01] Sock 10.Parse request [09:44:01]Sock 10.Check first char [09:44:01]Sock 10.First char is OK [09:44:01]request: POST /json_proto HTTP/1.0 [09:44:01]Method: POST [09:44:01]URL: /json_proto [09:44:01]Method is POST - this is cgi request [09:44:01]url: /json_proto [09:44:01]query_string will be loaded in cgi processing [09:44:01]execute_cgi json_proto POST (null) [09:44:01]execute_cgi path=json_proto method=POST [09:44:01]POST find Content-Length [09:44:01]Host: 172.17.53.195:8080 [09:44:01]Content-Length: 678 [09:44:01]Content-Type: application/json [09:44:01] [09:44:01]POST finish read [09:44:01]Found Content-Length = 678 [09:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:01]execute_script... [09:44: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)221214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:01]POST & json_proto [09:44:01]process_json_proto [09:44:01]json parsed OK: [09:44:01]protocol is kg_v1.0 [09:44:01]action value=close_receipt [09:44:01]process_action close_receipt [09:44:01]cmd_close_receipt [09:44:01]MH_GetDate [09:44:01]Write to MH i2c: F0 00 00 E8 2B 02 [09:44:01]Write i2c OK [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 09 00 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 09 00 E8 2B 00 65 C5 18 67 21 48 4A 65 CC [09:44:01]GetLastDocTimeStamp 1729676253 [09:44:01]current date 1729676645 [09:44:01]FM_GetShiftState [09:44:01]SAM_PROTO_GetShiftState [09:44:01]wFMCommunicate request_size=4 [09:44:01]MH_SAM_APDU [09:44:01]CAPDU: 80 13 01 00 [09:44:01]Write to MH i2c: E2 08 00 E9 2B 80 13 01 00 00 00 00 00 91 [09:44:01]Write i2c OK [09:44:01]MH_I2C_Read... [09:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:01]Read from MH i2c: E2 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 E9 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [09:44:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:44:01]wFMCommunicate OK [09:44:01]SAM_PROTO_GetShiftState done [09:44:01]FM_GetShiftState done [09:44:01]opened in 1729643772 [09:44:01]opened+sec_in_day 1729730172 [09:44:01]quantity*price = 85029 [09:44:01]sum+1 = 85031 [09:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 47 23.10.2024 09:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166632 ФПД: 194726197472396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166632&fm=194726197472396&tin=02508201610067®Number=0000000000091764&sum=85000 [09:44:02]StoreToDocumentArchive [09:44:02]shift 537 fd 166632 [09:44:02]save to /storage/0537/doc_00166632 [09:44:02]save last doc name /storage/0537/doc_00166632 to /storage/kkm_last_doc_name [09:44:02]save OK [09:44:02]Clear old archive folders... [09:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:02]tlvbuf is 0124EA30 [09:44:02]SAM_PROTO_ClearQueue [09:44:02]wFMCommunicate request_size=4 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 09 00 00 [09:44:02]Write to MH i2c: E2 08 00 F6 2B 80 09 00 00 00 00 00 00 93 [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 F6 2B 00 90 00 95 [09:44:02]RAPDU: 90 00 [09:44:02]wFMCommunicate OK [09:44:02]SAM_PROTO_ClearQueue done [09:44:02]KKMCreateOFDPacket [09:44:02]OFDProtocolAddRootSTLVToBuf [09:44:02]FM_MakeSignedData [09:44:02]FM_MakeSignedData [09:44:02]SAM_PROTO_SignData [09:44:02]wFMCommunicate request_size=4 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 0D 01 02 [09:44:02]Write to MH i2c: E2 08 00 F7 2B 80 0D 01 02 00 00 00 00 9B [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]OFD Sender: No OFD packet to send [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:02]Read from MH i2c: E2 03 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 F7 2B 00 90 00 96 [09:44:02]RAPDU: 90 00 [09:44:02]wFMCommunicate OK [09:44:02]wFMCommunicate request_size=255 [09:44:02]MH_SAM_APDU [09:44: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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 65 C5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8A 02 00 35 04 06 00 B1 [09:44:02]Write to MH i2c: E2 02 01 F8 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 65 C5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8A 02 00 35 04 06 00 B1 00 00 4F [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 F8 2B 00 90 00 97 [09:44:02]RAPDU: 90 00 [09:44:02]wFMCommunicate OK [09:44:02]wFMCommunicate request_size=10 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 0D 02 02 05 1A 39 D4 2C 8C [09:44:02]Write to MH i2c: E2 0D 00 F9 2B 80 0D 02 02 05 00 1A 39 D4 2C 8C 00 00 87 [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 03 00 F9 2B 00 90 00 98 [09:44:02]RAPDU: 90 00 [09:44:02]wFMCommunicate OK [09:44:02]wFMCommunicate request_size=4 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 0D 03 02 [09:44:02]Write to MH i2c: E2 08 00 FA 2B 80 0D 03 02 00 00 00 00 A0 [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 0B 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 0B 00 FA 2B 00 B1 05 C7 79 BD 07 59 32 90 00 E6 [09:44:02]RAPDU: B1 05 C7 79 BD 07 59 32 90 00 [09:44:02]wFMCommunicate OK [09:44:02]SAM_PROTO_SignData done [09:44:02]FM_MakeSignedData done [09:44:02]CreateOFDProtocolMessage [09:44:02]wFMCommunicate request_size=4 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 11 00 00 [09:44:02]Write to MH i2c: E2 08 00 FB 2B 80 11 00 00 00 00 00 00 A0 [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:02]Read from MH i2c: E2 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 17 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: E2 17 00 FB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [09:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:02]wFMCommunicate OK [09:44:02]CreateOFDProtocolMessage done [09:44:02]OFDSenderStorePacket 166632 [09:44:02]StoreOFDPacket docnum=166632 [09:44:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D B2 07 01 FA 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 65 C5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8A 02 00 35 04 06 00 B1 1A 39 D4 2C 8C B1 05 C7 79 BD 07 59 32 [09:44:02]CheckFolder [09:44:02]dirname=/storage/ofd_packets [09:44:02]CheckFolder done [09:44:02]ProducePacketName [09:44:02]name=ofd_packets/00166632 [09:44:02]NVStorageSaveData ofd_packets/00166632 [09:44:02]File name is /storage/ofd_packets/00166632 [09:44:02]Write 301 bytes [09:44:02]NVStorageSaveData done [09:44:02]OFDSenderStorePacket done [09:44:02]KKMCreateOFDPacket done [09:44:02]NVStorageSaveData kkm_last_timestamp [09:44:02]File name is /storage/kkm_last_timestamp [09:44:02]Write 4 bytes [09:44:02]NVStorageSaveData done [09:44:02]ExternCall_PrintAddStr [09:44:02]wPrintStart [09:44:02]Write to MH i2c: 01 00 00 FC 2B 27 [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: 01 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: 01 07 00 [09:44:02]MH_I2C_Read... [09:44:02]Read from MH i2c: 01 07 00 FC 2B 00 00 00 00 00 FF 0F 3C [09:44:02]RasterBufferAndPrint [09:44:02]line Счет N : (1)221214 [09:44:02]line ИНН: 02508201610067 [09:44:02]line Контрольно-Кассовый Чек [09:44:02]line ПРОДАЖА [09:44:02]line ТРК (МРК, ГНК) : 33 [09:44:02]line Товар: 2710124130 [09:44:02]line Аи-92-К-5 [09:44:02]line 12.710 * 66.90 [09:44:02]line = 850.30 [09:44:02]line НДС 12% НСП 1% [09:44:02]line > о реализуемом товаре [09:44:02]line ОКРУГЛЕНИЕ: -0.30 [09:44:02]line ИТОГО: 850.00 [09:44:02]line Внесено: 850.00 [09:44:02]line СДАЧА: 0.00 [09:44:02]line НСП 1% : 7.52 [09:44:02]line НДС 12% : 90.30 [09:44:02]line Наличными: 850.00 [09:44:02]line Безнал.: 0.00 [09:44:02]line Место: АЗС № 161 "Партнер Нефть" [09:44:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:44:02]line СНО: Общий режим [09:44:02]line Чек 47 23.10.2024 09:44 [09:44:02]line Смена: 537 ФФД: 1.0 [09:44:02]line ЗНМ: 0300000104 [09:44:02]line РНМ: 0000000000091764 [09:44:02]line Версия ККМ: 001 [09:44:02]line ФМ: 0000000000871759 [09:44:02]line ФД: 166632 [09:44:02]line ФПД: 194726197472396 [09:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166632&fm=194726197472396&tin=02508201610067®Number=0000000000091764&sum=85000 [09:44:03]OFD Sender: Processing packet 166632 [packets to send 48, broken 47] [09:44:03]ProducePacketName [09:44:03]name=ofd_packets/00166632 [09:44:03]OFD Sender: To server: pG, [09:44:03]CommunicateWithHost lk.salyk.kg:30040 [09:44:03]ConnectInit lk.salyk.kg [09:44:03]written 0, free lines is 4095 [09:44:03]Connected sock=9 [09:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D B2 07 01 FA 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 65 C5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8A 02 00 35 04 06 00 B1 1A 39 D4 2C 8C B1 05 C7 79 BD 07 59 32 [09:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 F9 47 00 E3 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8A 02 00 F4 03 04 00 CD 6B 18 67 B6 04 01 00 00 80 32 07 0B E0 4B 88 CD [09:44:03]CommunicateWithHost err = 0 [09:44:03]CheckOFDResponse [09:44:03]1017 (14) - 77093643461234 [09:44:03]1041 (16) - 0000000000871759 [09:44:03]1040 (4) - 166632 [09:44:03]1012 (4) - 23.10.2024 03:21 [09:44:03]1206 (1) - 0 [09:44:03]OFD Sender: Remove packet 166632 [09:44:03]ProducePacketName [09:44:03]name=ofd_packets/00166632 [09:44:03]NVStorageDeleteData [09:44:03]Write to MH i2c: 01 00 00 27 2C 53 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 07 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 07 00 27 2C 00 00 00 00 00 B3 0C 19 [09:44:03]RasterBufferAndPrint [09:44:03]line [09:44:03]line [09:44:03]line [09:44:03]line [09:44:03]line [09:44:03]written 0, free lines is 3258 [09:44:03]MH_Cut [09:44:03]Write to MH i2c: D1 01 00 2E 2C 01 2C [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: D1 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: D1 01 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: D1 01 00 2E 2C 00 2B [09:44:03]Write to MH i2c: 01 00 00 2F 2C 5B [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:04]OFD Sender: No OFD packet to send [09:44:04]*** Cut start [09:44:04]*** Partial cut [09:44:04]*** CUTSNS_PIN = 1 [09:44:04]*** CUTSNS_PIN = 0 [09:44:04]*** Brake cut motor [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]*** Stop cut motor [09:44:05]*** Cut end [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 2F 2C 00 00 00 00 00 FF 0F 70 [09:44:05]process_action close_receipt done [09:44:05]requested_data is exist [09:44:05]produce_requested_data [09:44:05]requested_item fm.sn is exist - process it [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 11 00 00 [09:44:05]Write to MH i2c: E2 08 00 30 2C 80 11 00 00 00 00 00 00 D6 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 30 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [09:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:05]wFMCommunicate OK [09:44:05]requested_item fd.num is exist - process it [09:44:05]SAM_PROTO_GetFieldsCounters [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 13 00 00 [09:44:05]Write to MH i2c: E2 08 00 31 2C 80 13 00 00 00 00 00 00 D9 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 62 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 62 00 31 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:05]wFMCommunicate OK [09:44:05]SAM_PROTO_GetFieldsCounters done [09:44:05]requested_item shift.num is exist - process it [09:44:05]requested_item shift.opened is exist - process it [09:44:05]req_shift_opened [09:44:05]FM_GetShiftState [09:44:05]SAM_PROTO_GetShiftState [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 13 01 00 [09:44:05]Write to MH i2c: E2 08 00 32 2C 80 13 01 00 00 00 00 00 DB [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:05]Read from MH i2c: E2 0E 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 0E 00 32 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A6 [09:44:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:44:05]wFMCommunicate OK [09:44:05]SAM_PROTO_GetShiftState done [09:44:05]FM_GetShiftState done [09:44:05]req_shift_opened done [09:44:05]requested_item shift.open_date is exist - process it [09:44:05]req_shift_open_date [09:44:05]req_shift_open_date done [09:44:05]produce_requested_data done [09:44:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166632,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:44:05]process_action_free close_receipt [09:44:05]json_value_free [09:44:05]json_value_free done [09:44:05]process_json_proto returns [09:44:05]Send response to host [09:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166632,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:44:05]free response buf [09:44:05]execute_script done [09:44:05]execute_script returns [09:44:05]free content buf [09:44:05]Sock 10.Close socket [09:44:05]Sock 10.Thread stoped [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:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]accept exits with 7 [09:53:14]New connection [09:53:14]New thread 3067632996 created [09:53:14]Thread 3067489636 joined [09:53:14]Waiting for new connection... [09:53:14] Sock 7.Parse request [09:53:14]Sock 7.Check first char [09:53:14]Sock 7.First char is OK [09:53:14]request: POST /json_proto HTTP/1.0 [09:53:14]Method: POST [09:53:14]URL: /json_proto [09:53:14]Method is POST - this is cgi request [09:53:14]url: /json_proto [09:53:14]query_string will be loaded in cgi processing [09:53:14]execute_cgi json_proto POST (null) [09:53:14]execute_cgi path=json_proto method=POST [09:53:14]POST find Content-Length [09:53:14]Host: 172.17.53.195:8080 [09:53:14]Content-Length: 674 [09:53:14]Content-Type: application/json [09:53:14] [09:53:14]POST finish read [09:53:14]Found Content-Length = 674 [09:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:14]execute_script... [09:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:14]POST & json_proto [09:53:14]process_json_proto [09:53:14]json parsed OK: [09:53:14]protocol is kg_v1.0 [09:53:14]action value=close_receipt [09:53:14]process_action close_receipt [09:53:14]cmd_close_receipt [09:53:14]MH_GetDate [09:53:14]Write to MH i2c: F0 00 00 33 2C 4E [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 09 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 09 00 33 2C 00 8E C7 18 67 21 48 4A 65 43 [09:53:14]GetLastDocTimeStamp 1729676645 [09:53:14]current date 1729677198 [09:53:14]FM_GetShiftState [09:53:14]SAM_PROTO_GetShiftState [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 13 01 00 [09:53:14]Write to MH i2c: E2 08 00 34 2C 80 13 01 00 00 00 00 00 DD [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:14]OFD Sender: No OFD packet to send [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 34 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [09:53:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:53:14]wFMCommunicate OK [09:53:14]SAM_PROTO_GetShiftState done [09:53:14]FM_GetShiftState done [09:53:14]opened in 1729643772 [09:53:14]opened+sec_in_day 1729730172 [09:53:14]quantity*price = 49987 [09:53:14]sum+1 = 49988 [09:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 48 23.10.2024 09:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166633 ФПД: 7863655968309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166633&fm=7863655968309&tin=02508201610067®Number=0000000000091764&sum=49900 [09:53:15]StoreToDocumentArchive [09:53:15]shift 537 fd 166633 [09:53:15]save to /storage/0537/doc_00166633 [09:53:15]save last doc name /storage/0537/doc_00166633 to /storage/kkm_last_doc_name [09:53:15]save OK [09:53:15]Clear old archive folders... [09:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:53:15]tlvbuf is B6F804F0 [09:53:15]SAM_PROTO_ClearQueue [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 09 00 00 [09:53:15]Write to MH i2c: E2 08 00 41 2C 80 09 00 00 00 00 00 00 DF [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 41 2C 00 90 00 E1 [09:53:15]RAPDU: 90 00 [09:53:15]wFMCommunicate OK [09:53:15]SAM_PROTO_ClearQueue done [09:53:15]KKMCreateOFDPacket [09:53:15]OFDProtocolAddRootSTLVToBuf [09:53:15]FM_MakeSignedData [09:53:15]FM_MakeSignedData [09:53:15]SAM_PROTO_SignData [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 0D 01 02 [09:53:15]Write to MH i2c: E2 08 00 42 2C 80 0D 01 02 00 00 00 00 E7 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 42 2C 00 90 00 E2 [09:53:15]RAPDU: 90 00 [09:53:15]wFMCommunicate OK [09:53:15]wFMCommunicate request_size=255 [09:53:15]MH_SAM_APDU [09:53: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 8E C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8A 02 00 35 04 06 00 07 26 E6 6B [09:53:15]Write to MH i2c: E2 02 01 43 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 8E C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8A 02 00 35 04 06 00 07 26 E6 6B 00 00 E4 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [09:53:16]RAPDU: 90 00 [09:53:16]wFMCommunicate OK [09:53:16]wFMCommunicate request_size=7 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 0D 02 02 02 AE 35 [09:53:16]Write to MH i2c: E2 0A 00 44 2C 80 0D 02 02 02 00 AE 35 00 00 D1 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 44 2C 00 90 00 E4 [09:53:16]RAPDU: 90 00 [09:53:16]wFMCommunicate OK [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 0D 03 02 [09:53:16]Write to MH i2c: E2 08 00 45 2C 80 0D 03 02 00 00 00 00 EC [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0B 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0B 00 45 2C 00 2A FA 9F 6D 28 7C 62 EB 90 00 0E [09:53:16]RAPDU: 2A FA 9F 6D 28 7C 62 EB 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_SignData done [09:53:16]FM_MakeSignedData done [09:53:16]CreateOFDProtocolMessage [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 11 00 00 [09:53:16]Write to MH i2c: E2 08 00 46 2C 80 11 00 00 00 00 00 00 EC [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 46 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [09:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:16]wFMCommunicate OK [09:53:16]CreateOFDProtocolMessage done [09:53:16]OFDSenderStorePacket 166633 [09:53:16]StoreOFDPacket docnum=166633 [09:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AA 2D 04 01 A8 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 8E C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8A 02 00 35 04 06 00 07 26 E6 6B AE 35 2A FA 9F 6D 28 7C 62 EB [09:53:16]CheckFolder [09:53:16]dirname=/storage/ofd_packets [09:53:16]CheckFolder done [09:53:16]ProducePacketName [09:53:16]name=ofd_packets/00166633 [09:53:16]NVStorageSaveData ofd_packets/00166633 [09:53:16]File name is /storage/ofd_packets/00166633 [09:53:16]Write 298 bytes [09:53:16]NVStorageSaveData done [09:53:16]OFDSenderStorePacket done [09:53:16]KKMCreateOFDPacket done [09:53:16]NVStorageSaveData kkm_last_timestamp [09:53:16]File name is /storage/kkm_last_timestamp [09:53:16]Write 4 bytes [09:53:16]NVStorageSaveData done [09:53:16]ExternCall_PrintAddStr [09:53:16]wPrintStart [09:53:16]Write to MH i2c: 01 00 00 47 2C 73 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 47 2C 00 00 00 00 00 FF 0F 88 [09:53:16]RasterBufferAndPrint [09:53:16]line Счет N : (1)221215 [09:53:16]line ИНН: 02508201610067 [09:53:16]line Контрольно-Кассовый Чек [09:53:16]line ПРОДАЖА [09:53:16]line ТРК (МРК, ГНК) : 11 [09:53:16]line Товар: 2710194210 [09:53:16]line ДТ-К-5 [09:53:16]line 6.560 * 76.20 [09:53:16]line = 499.87 [09:53:16]line НДС 12% НСП 1% [09:53:16]line > о реализуемом товаре [09:53:16]line ОКРУГЛЕНИЕ: -0.87 [09:53:16]line ИТОГО: 499.00 [09:53:16]line Внесено: 500.00 [09:53:16]line СДАЧА: 1.00 [09:53:16]line НСП 1% : 4.42 [09:53:16]line НДС 12% : 53.08 [09:53:16]line Наличными: 499.00 [09:53:16]line Безнал.: 0.00 [09:53:16]line Место: АЗС № 161 "Партнер Нефть" [09:53:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:53:16]line СНО: Общий режим [09:53:16]line Чек 48 23.10.2024 09:53 [09:53:16]line Смена: 537 ФФД: 1.0 [09:53:16]line ЗНМ: 0300000104 [09:53:16]line РНМ: 0000000000091764 [09:53:16]line Версия ККМ: 001 [09:53:16]line ФМ: 0000000000871759 [09:53:16]line ФД: 166633 [09:53:16]line ФПД: 7863655968309 [09:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166633&fm=7863655968309&tin=02508201610067®Number=0000000000091764&sum=49900 [09:53:16]OFD Sender: Processing packet 166633 [packets to send 48, broken 47] [09:53:16]ProducePacketName [09:53:16]name=ofd_packets/00166633 [09:53:16]OFD Sender: To server: pG, [09:53:16]CommunicateWithHost lk.salyk.kg:30040 [09:53:16]ConnectInit lk.salyk.kg [09:53:16]written 0, free lines is 4095 [09:53:16]Connected sock=10 [09:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AA 2D 04 01 A8 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 8E C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8A 02 00 35 04 06 00 07 26 E6 6B AE 35 2A FA 9F 6D 28 7C 62 EB [09:53:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 38 CB 47 00 41 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8A 02 00 F4 03 04 00 F6 6D 18 67 B6 04 01 00 00 93 FD 89 1A B0 AD 97 4F [09:53:16]CommunicateWithHost err = 0 [09:53:16]CheckOFDResponse [09:53:16]1017 (14) - 77093643461234 [09:53:16]1041 (16) - 0000000000871759 [09:53:16]1040 (4) - 166633 [09:53:16]1012 (4) - 23.10.2024 03:31 [09:53:16]1206 (1) - 0 [09:53:16]OFD Sender: Remove packet 166633 [09:53:16]ProducePacketName [09:53:16]name=ofd_packets/00166633 [09:53:16]NVStorageDeleteData [09:53:16]Write to MH i2c: 01 00 00 72 2C 9E [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 72 2C 00 00 00 00 00 AD 0C 5E [09:53:16]RasterBufferAndPrint [09:53:16]line [09:53:16]line [09:53:16]line [09:53:16]line [09:53:16]line [09:53:16]written 0, free lines is 3251 [09:53:16]MH_Cut [09:53:16]Write to MH i2c: D1 01 00 79 2C 01 77 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: D1 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: D1 01 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: D1 01 00 79 2C 00 76 [09:53:16]Write to MH i2c: 01 00 00 7A 2C A6 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:17]OFD Sender: No OFD packet to send [09:53:17]*** Cut start [09:53:17]*** Partial cut [09:53:17]*** CUTSNS_PIN = 1 [09:53:17]*** CUTSNS_PIN = 0 [09:53:18]*** Brake cut motor [09:53:18]Read from MH i2c: 01 [09:53:18]MH_I2C_Read... [09:53:18]*** Stop cut motor [09:53:18]*** Cut end [09:53:18]Read from MH i2c: 01 07 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 07 00 7A 2C 00 00 00 00 00 FF 0F BB [09:53:18]process_action close_receipt done [09:53:18]requested_data is exist [09:53:18]produce_requested_data [09:53:18]requested_item fm.sn is exist - process it [09:53:18]wFMCommunicate request_size=4 [09:53:18]MH_SAM_APDU [09:53:18]CAPDU: 80 11 00 00 [09:53:18]Write to MH i2c: E2 08 00 7B 2C 80 11 00 00 00 00 00 00 21 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:18]Read from MH i2c: E2 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 17 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 17 00 7B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [09:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:18]wFMCommunicate OK [09:53:18]requested_item fd.num is exist - process it [09:53:18]SAM_PROTO_GetFieldsCounters [09:53:18]wFMCommunicate request_size=4 [09:53:18]MH_SAM_APDU [09:53:18]CAPDU: 80 13 00 00 [09:53:18]Write to MH i2c: E2 08 00 7C 2C 80 13 00 00 00 00 00 00 24 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:18]Read from MH i2c: E2 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 62 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 62 00 7C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:18]wFMCommunicate OK [09:53:18]SAM_PROTO_GetFieldsCounters done [09:53:18]requested_item shift.num is exist - process it [09:53:18]requested_item shift.opened is exist - process it [09:53:18]req_shift_opened [09:53:18]FM_GetShiftState [09:53:18]SAM_PROTO_GetShiftState [09:53:18]wFMCommunicate request_size=4 [09:53:18]MH_SAM_APDU [09:53:18]CAPDU: 80 13 01 00 [09:53:18]Write to MH i2c: E2 08 00 7D 2C 80 13 01 00 00 00 00 00 26 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:18]Read from MH i2c: E2 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 7D 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F1 [09:53:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:53:18]wFMCommunicate OK [09:53:18]SAM_PROTO_GetShiftState done [09:53:18]FM_GetShiftState done [09:53:18]req_shift_opened done [09:53:18]requested_item shift.open_date is exist - process it [09:53:18]req_shift_open_date [09:53:18]req_shift_open_date done [09:53:18]produce_requested_data done [09:53:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166633,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:53:18]process_action_free close_receipt [09:53:18]json_value_free [09:53:18]json_value_free done [09:53:18]process_json_proto returns [09:53:18]Send response to host [09:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166633,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:53:18]free response buf [09:53:18]execute_script done [09:53:18]execute_script returns [09:53:18]free content buf [09:53:18]Sock 7.Close socket [09:53:18]Sock 7.Thread stoped [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:31]accept exits with 9 [09:54:31]New connection [09:54:31]New thread 3067489636 created [09:54:31]Thread 3067632996 joined [09:54:31]Waiting for new connection... [09:54:31] Sock 9.Parse request [09:54:31]Sock 9.Check first char [09:54:31]Sock 9.First char is OK [09:54:31]request: POST /json_proto HTTP/1.0 [09:54:31]Method: POST [09:54:31]URL: /json_proto [09:54:31]Method is POST - this is cgi request [09:54:31]url: /json_proto [09:54:31]query_string will be loaded in cgi processing [09:54:31]execute_cgi json_proto POST (null) [09:54:31]execute_cgi path=json_proto method=POST [09:54:31]POST find Content-Length [09:54:31]Host: 172.17.53.195:8080 [09:54:31]Content-Length: 677 [09:54:31]Content-Type: application/json [09:54:31] [09:54:31]POST finish read [09:54:31]Found Content-Length = 677 [09:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:31]execute_script... [09: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)221216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:31]POST & json_proto [09:54:31]process_json_proto [09:54:31]json parsed OK: [09:54:31]protocol is kg_v1.0 [09:54:31]action value=close_receipt [09:54:31]process_action close_receipt [09:54:31]cmd_close_receipt [09:54:31]MH_GetDate [09:54:31]Write to MH i2c: F0 00 00 7E 2C 99 [09:54:31]Write i2c OK [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 09 00 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: F0 09 00 7E 2C 00 DB C7 18 67 21 48 4A 65 DB [09:54:31]GetLastDocTimeStamp 1729677198 [09:54:31]current date 1729677275 [09:54:31]FM_GetShiftState [09:54:31]SAM_PROTO_GetShiftState [09:54:31]wFMCommunicate request_size=4 [09:54:31]MH_SAM_APDU [09:54:31]CAPDU: 80 13 01 00 [09:54:31]Write to MH i2c: E2 08 00 7F 2C 80 13 01 00 00 00 00 00 28 [09:54:31]Write i2c OK [09:54:31]MH_I2C_Read... [09:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:31]Read from MH i2c: E2 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: E2 0E 00 [09:54:31]MH_I2C_Read... [09:54:31]Read from MH i2c: E2 0E 00 7F 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F3 [09:54:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:54:31]wFMCommunicate OK [09:54:31]SAM_PROTO_GetShiftState done [09:54:31]FM_GetShiftState done [09:54:31]opened in 1729643772 [09:54:31]opened+sec_in_day 1729730172 [09:54:31]quantity*price = 50041 [09:54:31]sum+1 = 50042 [09:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 49 23.10.2024 09:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166634 ФПД: 59976858629013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166634&fm=59976858629013&tin=02508201610067®Number=0000000000091764&sum=50000 [09:54:32]StoreToDocumentArchive [09:54:32]shift 537 fd 166634 [09:54:32]save to /storage/0537/doc_00166634 [09:54:32]save last doc name /storage/0537/doc_00166634 to /storage/kkm_last_doc_name [09:54:32]save OK [09:54:32]Clear old archive folders... [09:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:32]tlvbuf is 01201900 [09:54:32]SAM_PROTO_ClearQueue [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 09 00 00 [09:54:32]Write to MH i2c: E2 08 00 8C 2C 80 09 00 00 00 00 00 00 2A [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 8C 2C 00 90 00 2C [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]SAM_PROTO_ClearQueue done [09:54:32]KKMCreateOFDPacket [09:54:32]OFDProtocolAddRootSTLVToBuf [09:54:32]FM_MakeSignedData [09:54:32]FM_MakeSignedData [09:54:32]SAM_PROTO_SignData [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 0D 01 02 [09:54:32]Write to MH i2c: E2 08 00 8D 2C 80 0D 01 02 00 00 00 00 32 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 8D 2C 00 90 00 2D [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]wFMCommunicate request_size=255 [09:54:32]MH_SAM_APDU [09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DB C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8A 02 00 35 04 06 00 36 [09:54:32]Write to MH i2c: E2 02 01 8E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DB C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8A 02 00 35 04 06 00 36 00 00 E1 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]wFMCommunicate request_size=10 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 0D 02 02 05 8C 73 5A 73 95 [09:54:32]Write to MH i2c: E2 0D 00 8F 2C 80 0D 02 02 05 00 8C 73 5A 73 95 00 00 A0 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [09:54:32]RAPDU: 90 00 [09:54:32]wFMCommunicate OK [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 0D 03 02 [09:54:32]Write to MH i2c: E2 08 00 90 2C 80 0D 03 02 00 00 00 00 37 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 0B 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 0B 00 90 2C 00 A1 ED 18 A3 25 E9 EB 58 90 00 D2 [09:54:32]RAPDU: A1 ED 18 A3 25 E9 EB 58 90 00 [09:54:32]wFMCommunicate OK [09:54:32]SAM_PROTO_SignData done [09:54:32]FM_MakeSignedData done [09:54:32]CreateOFDProtocolMessage [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 11 00 00 [09:54:32]Write to MH i2c: E2 08 00 91 2C 80 11 00 00 00 00 00 00 37 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:33]Read from MH i2c: E2 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 17 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: E2 17 00 91 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [09:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:33]wFMCommunicate OK [09:54:33]CreateOFDProtocolMessage done [09:54:33]OFDSenderStorePacket 166634 [09:54:33]StoreOFDPacket docnum=166634 [09:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 89 9D 07 01 B1 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DB C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8A 02 00 35 04 06 00 36 8C 73 5A 73 95 A1 ED 18 A3 25 E9 EB 58 [09:54:33]CheckFolder [09:54:33]dirname=/storage/ofd_packets [09:54:33]CheckFolder done [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00166634 [09:54:33]NVStorageSaveData ofd_packets/00166634 [09:54:33]File name is /storage/ofd_packets/00166634 [09:54:33]Write 301 bytes [09:54:33]NVStorageSaveData done [09:54:33]OFDSenderStorePacket done [09:54:33]KKMCreateOFDPacket done [09:54:33]NVStorageSaveData kkm_last_timestamp [09:54:33]File name is /storage/kkm_last_timestamp [09:54:33]Write 4 bytes [09:54:33]NVStorageSaveData done [09:54:33]ExternCall_PrintAddStr [09:54:33]wPrintStart [09:54:33]Write to MH i2c: 01 00 00 92 2C BE [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 92 2C 00 00 00 00 00 FF 0F D3 [09:54:33]RasterBufferAndPrint [09:54:33]line Счет N : (1)221216 [09:54:33]line ИНН: 02508201610067 [09:54:33]line Контрольно-Кассовый Чек [09:54:33]line ПРОДАЖА [09:54:33]line ТРК (МРК, ГНК) : 23 [09:54:33]line Товар: 2710124130 [09:54:33]line Аи-92-К-5 [09:54:33]line 7.480 * 66.90 [09:54:33]line = 500.41 [09:54:33]line НДС 12% НСП 1% [09:54:33]line > о реализуемом товаре [09:54:33]line ОКРУГЛЕНИЕ: -0.41 [09:54:33]line ИТОГО: 500.00 [09:54:33]line Внесено: 500.00 [09:54:33]line СДАЧА: 0.00 [09:54:33]line НСП 1% : 4.43 [09:54:33]line НДС 12% : 53.14 [09:54:33]line Наличными: 500.00 [09:54:33]line Безнал.: 0.00 [09:54:33]line Место: АЗС № 161 "Партнер Нефть" [09:54:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:54:33]line СНО: Общий режим [09:54:33]line Чек 49 23.10.2024 09:54 [09:54:33]line Смена: 537 ФФД: 1.0 [09:54:33]line ЗНМ: 0300000104 [09:54:33]line РНМ: 0000000000091764 [09:54:33]line Версия ККМ: 001 [09:54:33]line ФМ: 0000000000871759 [09:54:33]line ФД: 166634 [09:54:33]line ФПД: 59976858629013 [09:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166634&fm=59976858629013&tin=02508201610067®Number=0000000000091764&sum=50000 [09:54:33]OFD Sender: Processing packet 166634 [packets to send 48, broken 47] [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00166634 [09:54:33]OFD Sender: To server: pG, [09:54:33]CommunicateWithHost lk.salyk.kg:30040 [09:54:33]ConnectInit lk.salyk.kg [09:54:33]written 0, free lines is 4095 [09:54:33]Connected sock=10 [09:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 89 9D 07 01 B1 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DB C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8A 02 00 35 04 06 00 36 8C 73 5A 73 95 A1 ED 18 A3 25 E9 EB 58 [09:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 5E 47 00 A7 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8A 02 00 F4 03 04 00 43 6E 18 67 B6 04 01 00 00 63 67 6D CD A9 1D CF A0 [09:54:33]CommunicateWithHost err = 0 [09:54:33]CheckOFDResponse [09:54:33]1017 (14) - 77093643461234 [09:54:33]1041 (16) - 0000000000871759 [09:54:33]1040 (4) - 166634 [09:54:33]1012 (4) - 23.10.2024 03:32 [09:54:33]1206 (1) - 0 [09:54:33]OFD Sender: Remove packet 166634 [09:54:33]ProducePacketName [09:54:33]name=ofd_packets/00166634 [09:54:33]NVStorageDeleteData [09:54:33]Write to MH i2c: 01 00 00 BD 2C E9 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: 01 07 00 BD 2C 00 00 00 00 00 A9 0C A5 [09:54:33]RasterBufferAndPrint [09:54:33]line [09:54:33]line [09:54:33]line [09:54:33]line [09:54:33]line [09:54:33]written 0, free lines is 3246 [09:54:33]MH_Cut [09:54:33]Write to MH i2c: D1 01 00 C4 2C 01 C2 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: D1 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: D1 01 00 [09:54:33]MH_I2C_Read... [09:54:33]Read from MH i2c: D1 01 00 C4 2C 00 C1 [09:54:33]Write to MH i2c: 01 00 00 C5 2C F1 [09:54:33]Write i2c OK [09:54:33]MH_I2C_Read... [09:54:34]OFD Sender: No OFD packet to send [09:54:34]*** Cut start [09:54:34]*** Partial cut [09:54:34]*** CUTSNS_PIN = 1 [09:54:34]*** CUTSNS_PIN = 0 [09:54:34]*** Brake cut motor [09:54:35]Read from MH i2c: 01 [09:54:35]MH_I2C_Read... [09:54:35]*** Stop cut motor [09:54:35]*** Cut end [09:54:35]Read from MH i2c: 01 07 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: 01 07 00 C5 2C 00 00 00 00 00 FF 0F 06 [09:54:35]process_action close_receipt done [09:54:35]requested_data is exist [09:54:35]produce_requested_data [09:54:35]requested_item fm.sn is exist - process it [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 11 00 00 [09:54:35]Write to MH i2c: E2 08 00 C6 2C 80 11 00 00 00 00 00 00 6C [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 17 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 17 00 C6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [09:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:35]wFMCommunicate OK [09:54:35]requested_item fd.num is exist - process it [09:54:35]SAM_PROTO_GetFieldsCounters [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 13 00 00 [09:54:35]Write to MH i2c: E2 08 00 C7 2C 80 13 00 00 00 00 00 00 6F [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 62 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 62 00 C7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:35]wFMCommunicate OK [09:54:35]SAM_PROTO_GetFieldsCounters done [09:54:35]requested_item shift.num is exist - process it [09:54:35]requested_item shift.opened is exist - process it [09:54:35]req_shift_opened [09:54:35]FM_GetShiftState [09:54:35]SAM_PROTO_GetShiftState [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 13 01 00 [09:54:35]Write to MH i2c: E2 08 00 C8 2C 80 13 01 00 00 00 00 00 71 [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 0E 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 0E 00 C8 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3C [09:54:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:54:35]wFMCommunicate OK [09:54:35]SAM_PROTO_GetShiftState done [09:54:35]FM_GetShiftState done [09:54:35]req_shift_opened done [09:54:35]requested_item shift.open_date is exist - process it [09:54:35]req_shift_open_date [09:54:35]req_shift_open_date done [09:54:35]produce_requested_data done [09:54:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166634,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:54:35]process_action_free close_receipt [09:54:35]json_value_free [09:54:35]json_value_free done [09:54:35]process_json_proto returns [09:54:35]Send response to host [09:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166634,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:54:35]free response buf [09:54:35]execute_script done [09:54:35]execute_script returns [09:54:35]free content buf [09:54:35]Sock 9.Close socket [09:54:35]Sock 9.Thread stoped [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:07]accept exits with 7 [09:55:07]New connection [09:55:07]New thread 3067632996 created [09:55:07]Thread 3067489636 joined [09:55:07]Waiting for new connection... [09:55:07] Sock 7.Parse request [09:55:07]Sock 7.Check first char [09:55:07]Sock 7.First char is OK [09:55:07]request: POST /json_proto HTTP/1.0 [09:55:07]Method: POST [09:55:07]URL: /json_proto [09:55:07]Method is POST - this is cgi request [09:55:07]url: /json_proto [09:55:07]query_string will be loaded in cgi processing [09:55:07]execute_cgi json_proto POST (null) [09:55:07]execute_cgi path=json_proto method=POST [09:55:07]POST find Content-Length [09:55:07]Host: 172.17.53.195:8080 [09:55:07]Content-Length: 677 [09:55:07]Content-Type: application/json [09:55:07] [09:55:07]POST finish read [09:55:07]Found Content-Length = 677 [09:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:07]execute_script... [09:55: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)221218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:07]POST & json_proto [09:55:07]process_json_proto [09:55:07]json parsed OK: [09:55:07]protocol is kg_v1.0 [09:55:07]action value=close_receipt [09:55:07]process_action close_receipt [09:55:07]cmd_close_receipt [09:55:07]MH_GetDate [09:55:07]Write to MH i2c: F0 00 00 C9 2C E4 [09:55:07]Write i2c OK [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: F0 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: F0 09 00 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: F0 09 00 C9 2C 00 FF C7 18 67 21 48 4A 65 4A [09:55:07]GetLastDocTimeStamp 1729677275 [09:55:07]current date 1729677311 [09:55:07]FM_GetShiftState [09:55:07]SAM_PROTO_GetShiftState [09:55:07]wFMCommunicate request_size=4 [09:55:07]MH_SAM_APDU [09:55:07]CAPDU: 80 13 01 00 [09:55:07]Write to MH i2c: E2 08 00 CA 2C 80 13 01 00 00 00 00 00 73 [09:55:07]Write i2c OK [09:55:07]MH_I2C_Read... [09:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:07]Read from MH i2c: E2 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 0E 00 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 0E 00 CA 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3E [09:55:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:55:07]wFMCommunicate OK [09:55:07]SAM_PROTO_GetShiftState done [09:55:07]FM_GetShiftState done [09:55:07]opened in 1729643772 [09:55:07]opened+sec_in_day 1729730172 [09:55:07]quantity*price = 26024 [09:55:07]sum+1 = 26025 [09:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 50 23.10.2024 09:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166635 ФПД: 228407457954996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095511&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166635&fm=228407457954996&tin=02508201610067®Number=0000000000091764&sum=26000 [09:55:08]StoreToDocumentArchive [09:55:08]shift 537 fd 166635 [09:55:08]save to /storage/0537/doc_00166635 [09:55:08]save last doc name /storage/0537/doc_00166635 to /storage/kkm_last_doc_name [09:55:08]save OK [09:55:08]Clear old archive folders... [09:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:08]tlvbuf is 01261CB0 [09:55:08]SAM_PROTO_ClearQueue [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 09 00 00 [09:55:08]Write to MH i2c: E2 08 00 D7 2C 80 09 00 00 00 00 00 00 75 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 D7 2C 00 90 00 77 [09:55:08]RAPDU: 90 00 [09:55:08]wFMCommunicate OK [09:55:08]SAM_PROTO_ClearQueue done [09:55:08]KKMCreateOFDPacket [09:55:08]OFDProtocolAddRootSTLVToBuf [09:55:08]FM_MakeSignedData [09:55:08]FM_MakeSignedData [09:55:08]SAM_PROTO_SignData [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 0D 01 02 [09:55:08]Write to MH i2c: E2 08 00 D8 2C 80 0D 01 02 00 00 00 00 7D [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [09:55:08]RAPDU: 90 00 [09:55:08]wFMCommunicate OK [09:55:08]wFMCommunicate request_size=255 [09:55:08]MH_SAM_APDU [09:55: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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FF C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8A 02 00 35 04 06 00 CF [09:55:08]Write to MH i2c: E2 02 01 D9 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FF C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8A 02 00 35 04 06 00 CF 00 00 96 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=10 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 02 02 05 BC 41 65 3C B4 [09:55:09]Write to MH i2c: E2 0D 00 DA 2C 80 0D 02 02 05 00 BC 41 65 3C B4 00 00 DC [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 DA 2C 00 90 00 7A [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 03 02 [09:55:09]Write to MH i2c: E2 08 00 DB 2C 80 0D 03 02 00 00 00 00 82 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 DB 2C 00 EB 45 9B 38 28 F7 EE DC 90 00 6F [09:55:09]RAPDU: EB 45 9B 38 28 F7 EE DC 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_SignData done [09:55:09]FM_MakeSignedData done [09:55:09]CreateOFDProtocolMessage [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 11 00 00 [09:55:09]Write to MH i2c: E2 08 00 DC 2C 80 11 00 00 00 00 00 00 82 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 17 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 17 00 DC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [09:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:09]wFMCommunicate OK [09:55:09]CreateOFDProtocolMessage done [09:55:09]OFDSenderStorePacket 166635 [09:55:09]StoreOFDPacket docnum=166635 [09:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 6E 07 01 D0 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FF C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8A 02 00 35 04 06 00 CF BC 41 65 3C B4 EB 45 9B 38 28 F7 EE DC [09:55:09]CheckFolder [09:55:09]dirname=/storage/ofd_packets [09:55:09]CheckFolder done [09:55:09]ProducePacketName [09:55:09]name=ofd_packets/00166635 [09:55:09]NVStorageSaveData ofd_packets/00166635 [09:55:09]File name is /storage/ofd_packets/00166635 [09:55:09]Write 301 bytes [09:55:09]NVStorageSaveData done [09:55:09]OFDSenderStorePacket done [09:55:09]KKMCreateOFDPacket done [09:55:09]NVStorageSaveData kkm_last_timestamp [09:55:09]File name is /storage/kkm_last_timestamp [09:55:09]Write 4 bytes [09:55:09]NVStorageSaveData done [09:55:09]ExternCall_PrintAddStr [09:55:09]wPrintStart [09:55:09]Write to MH i2c: 01 00 00 DD 2C 09 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 DD 2C 00 00 00 00 00 FF 0F 1E [09:55:09]RasterBufferAndPrint [09:55:09]line Счет N : (1)221218 [09:55:09]line ИНН: 02508201610067 [09:55:09]line Контрольно-Кассовый Чек [09:55:09]line ПРОДАЖА [09:55:09]line ТРК (МРК, ГНК) : 43 [09:55:09]line Товар: 2710124130 [09:55:09]line Аи-92-К-5 [09:55:09]line 3.890 * 66.90 [09:55:09]line = 260.24 [09:55:09]line НДС 12% НСП 1% [09:55:09]line > о реализуемом товаре [09:55:09]line ОКРУГЛЕНИЕ: -0.24 [09:55:09]line ИТОГО: 260.00 [09:55:09]line Внесено: 260.00 [09:55:09]line СДАЧА: 0.00 [09:55:09]line НСП 1% : 2.30 [09:55:09]line НДС 12% : 27.64 [09:55:09]line Наличными: 260.00 [09:55:09]line Безнал.: 0.00 [09:55:09]line Место: АЗС № 161 "Партнер Нефть" [09:55:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:55:09]line СНО: Общий режим [09:55:09]line Чек 50 23.10.2024 09:55 [09:55:09]line Смена: 537 ФФД: 1.0 [09:55:09]line ЗНМ: 0300000104 [09:55:09]line РНМ: 0000000000091764 [09:55:09]line Версия ККМ: 001 [09:55:09]line ФМ: 0000000000871759 [09:55:09]line ФД: 166635 [09:55:09]line ФПД: 228407457954996 [09:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095511&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166635&fm=228407457954996&tin=02508201610067®Number=0000000000091764&sum=26000 [09:55:09]OFD Sender: Processing packet 166635 [packets to send 48, broken 47] [09:55:09]ProducePacketName [09:55:09]name=ofd_packets/00166635 [09:55:09]OFD Sender: To server: pG, [09:55:09]CommunicateWithHost lk.salyk.kg:30040 [09:55:09]ConnectInit lk.salyk.kg [09:55:09]written 0, free lines is 4095 [09:55:09]Connected sock=11 [09:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 6E 07 01 D0 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 FF C7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8A 02 00 35 04 06 00 CF BC 41 65 3C B4 EB 45 9B 38 28 F7 EE DC [09:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 B0 47 00 4B 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8A 02 00 F4 03 04 00 68 6E 18 67 B6 04 01 00 00 39 4E 9D D0 A1 E1 7D 43 [09:55:09]CommunicateWithHost err = 0 [09:55:09]CheckOFDResponse [09:55:09]1017 (14) - 77093643461234 [09:55:09]1041 (16) - 0000000000871759 [09:55:09]1040 (4) - 166635 [09:55:09]1012 (4) - 23.10.2024 03:32 [09:55:09]1206 (1) - 0 [09:55:09]OFD Sender: Remove packet 166635 [09:55:09]ProducePacketName [09:55:09]name=ofd_packets/00166635 [09:55:09]NVStorageDeleteData [09:55:09]Write to MH i2c: 01 00 00 08 2D 35 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 08 2D 00 00 00 00 00 AA 0C F2 [09:55:09]RasterBufferAndPrint [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]written 0, free lines is 3249 [09:55:09]MH_Cut [09:55:09]Write to MH i2c: D1 01 00 0F 2D 01 0E [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 01 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 01 00 0F 2D 00 0D [09:55:09]Write to MH i2c: 01 00 00 10 2D 3D [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:10]OFD Sender: No OFD packet to send [09:55:10]*** Cut start [09:55:10]*** Partial cut [09:55:10]*** CUTSNS_PIN = 1 [09:55:10]*** CUTSNS_PIN = 0 [09:55:11]*** Brake cut motor [09:55:11]Read from MH i2c: 01 [09:55:11]MH_I2C_Read... [09:55:11]*** Stop cut motor [09:55:11]*** Cut end [09:55:11]Read from MH i2c: 01 07 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 10 2D 00 00 00 00 00 FF 0F 52 [09:55:11]process_action close_receipt done [09:55:11]requested_data is exist [09:55:11]produce_requested_data [09:55:11]requested_item fm.sn is exist - process it [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 11 00 00 [09:55:11]Write to MH i2c: E2 08 00 11 2D 80 11 00 00 00 00 00 00 B8 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 11 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [09:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:11]wFMCommunicate OK [09:55:11]requested_item fd.num is exist - process it [09:55:11]SAM_PROTO_GetFieldsCounters [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 00 00 [09:55:11]Write to MH i2c: E2 08 00 12 2D 80 13 00 00 00 00 00 00 BB [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 12 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetFieldsCounters done [09:55:11]requested_item shift.num is exist - process it [09:55:11]requested_item shift.opened is exist - process it [09:55:11]req_shift_opened [09:55:11]FM_GetShiftState [09:55:11]SAM_PROTO_GetShiftState [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 01 00 [09:55:11]Write to MH i2c: E2 08 00 13 2D 80 13 01 00 00 00 00 00 BD [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 13 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 88 [09:55:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetShiftState done [09:55:11]FM_GetShiftState done [09:55:11]req_shift_opened done [09:55:11]requested_item shift.open_date is exist - process it [09:55:11]req_shift_open_date [09:55:11]req_shift_open_date done [09:55:11]produce_requested_data done [09:55:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166635,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:55:11]process_action_free close_receipt [09:55:11]json_value_free [09:55:11]json_value_free done [09:55:11]process_json_proto returns [09:55:11]Send response to host [09:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166635,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:55:11]free response buf [09:55:11]execute_script done [09:55:11]execute_script returns [09:55:11]free content buf [09:55:11]Sock 7.Close socket [09:55:11]Sock 7.Thread stoped [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:49]accept exits with 9 [09:56:49]New connection [09:56:49]New thread 3067489636 created [09:56:49]Thread 3067632996 joined [09:56:49]Waiting for new connection... [09:56:49] Sock 9.Parse request [09:56:49]Sock 9.Check first char [09:56:49]Sock 9.First char is OK [09:56:49]request: POST /json_proto HTTP/1.0 [09:56:49]Method: POST [09:56:49]URL: /json_proto [09:56:49]Method is POST - this is cgi request [09:56:49]url: /json_proto [09:56:49]query_string will be loaded in cgi processing [09:56:49]execute_cgi json_proto POST (null) [09:56:49]execute_cgi path=json_proto method=POST [09:56:49]POST find Content-Length [09:56:49]Host: 172.17.53.195:8080 [09:56:49]Content-Length: 792 [09:56:49]Content-Type: application/json [09:56:49] [09:56:49]POST finish read [09:56:49]Found Content-Length = 792 [09:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:49]execute_script... [09:56: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)221217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:49]POST & json_proto [09:56:49]process_json_proto [09:56:49]json parsed OK: [09:56:49]protocol is kg_v1.0 [09:56:49]action value=close_receipt [09:56:49]process_action close_receipt [09:56:49]cmd_close_receipt [09:56:49]MH_GetDate [09:56:49]Write to MH i2c: F0 00 00 14 2D 30 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 09 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 09 00 14 2D 00 66 C8 18 67 21 48 4A 65 FE [09:56:49]GetLastDocTimeStamp 1729677311 [09:56:49]current date 1729677414 [09:56:49]FM_GetShiftState [09:56:49]SAM_PROTO_GetShiftState [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 13 01 00 [09:56:49]Write to MH i2c: E2 08 00 15 2D 80 13 01 00 00 00 00 00 BF [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0E 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0E 00 15 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8A [09:56:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:56:49]wFMCommunicate OK [09:56:49]SAM_PROTO_GetShiftState done [09:56:49]FM_GetShiftState done [09:56:49]opened in 1729643772 [09:56:49]opened+sec_in_day 1729730172 [09:56:49]quantity*price = 0 [09:56:49]sum+1 = 1 [09:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 51 23.10.2024 09:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166636 ФПД: 253683261590484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166636&fm=253683261590484&tin=02508201610067®Number=0000000000091764&sum=0 [09:56:51]StoreToDocumentArchive [09:56:51]shift 537 fd 166636 [09:56:51]save to /storage/0537/doc_00166636 [09:56:51]save last doc name /storage/0537/doc_00166636 to /storage/kkm_last_doc_name [09:56:51]save OK [09:56:51]Clear old archive folders... [09:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:51]tlvbuf is 0129AD60 [09:56:51]SAM_PROTO_ClearQueue [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 09 00 00 [09:56:51]Write to MH i2c: E2 08 00 22 2D 80 09 00 00 00 00 00 00 C1 [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 22 2D 00 90 00 C3 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]SAM_PROTO_ClearQueue done [09:56:51]KKMCreateOFDPacket [09:56:51]OFDProtocolAddRootSTLVToBuf [09:56:51]FM_MakeSignedData [09:56:51]FM_MakeSignedData [09:56:51]SAM_PROTO_SignData [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 01 02 [09:56:51]Write to MH i2c: E2 08 00 23 2D 80 0D 01 02 00 00 00 00 C9 [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 23 2D 00 90 00 C4 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]wFMCommunicate request_size=255 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 66 C8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8A 02 00 35 04 06 00 E6 [09:56:51]Write to MH i2c: E2 02 01 24 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 66 C8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8A 02 00 35 04 06 00 E6 00 00 CC [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 24 2D 00 90 00 C5 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]wFMCommunicate request_size=10 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 02 02 05 B9 3C B1 4B D4 [09:56:51]Write to MH i2c: E2 0D 00 25 2D 80 0D 02 02 05 00 B9 3C B1 4B D4 00 00 9B [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 25 2D 00 90 00 C6 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 03 02 [09:56:51]Write to MH i2c: E2 08 00 26 2D 80 0D 03 02 00 00 00 00 CE [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0B 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0B 00 26 2D 00 2A A0 FF 5A E1 1A A0 08 90 00 95 [09:56:51]RAPDU: 2A A0 FF 5A E1 1A A0 08 90 00 [09:56:51]wFMCommunicate OK [09:56:51]SAM_PROTO_SignData done [09:56:51]FM_MakeSignedData done [09:56:51]CreateOFDProtocolMessage [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 11 00 00 [09:56:51]Write to MH i2c: E2 08 00 27 2D 80 11 00 00 00 00 00 00 CE [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 27 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [09:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:51]wFMCommunicate OK [09:56:51]CreateOFDProtocolMessage done [09:56:51]OFDSenderStorePacket 166636 [09:56:51]StoreOFDPacket docnum=166636 [09:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 F1 07 01 E6 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 66 C8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8A 02 00 35 04 06 00 E6 B9 3C B1 4B D4 2A A0 FF 5A E1 1A A0 08 [09:56:51]CheckFolder [09:56:51]dirname=/storage/ofd_packets [09:56:51]CheckFolder done [09:56:51]ProducePacketName [09:56:51]name=ofd_packets/00166636 [09:56:51]NVStorageSaveData ofd_packets/00166636 [09:56:51]File name is /storage/ofd_packets/00166636 [09:56:51]Write 301 bytes [09:56:51]NVStorageSaveData done [09:56:51]OFDSenderStorePacket done [09:56:51]KKMCreateOFDPacket done [09:56:51]NVStorageSaveData kkm_last_timestamp [09:56:51]File name is /storage/kkm_last_timestamp [09:56:51]Write 4 bytes [09:56:51]NVStorageSaveData done [09:56:51]ExternCall_PrintAddStr [09:56:51]wPrintStart [09:56:51]Write to MH i2c: 01 00 00 28 2D 55 [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 07 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 07 00 28 2D 00 00 00 00 00 FF 0F 6A [09:56:51]RasterBufferAndPrint [09:56:51]line Счет N : (1)221217 [09:56:51]line ИНН: 02508201610067 [09:56:51]line Контрольно-Кассовый Чек [09:56:51]line ПРОДАЖА [09:56:51]line ТРК (МРК, ГНК) : 34 [09:56:51]line Товар: 2710124500 [09:56:51]line Аи-95-К-5 [09:56:51]line 40.440 * 0.00 [09:56:51]line = 0.00 [09:56:51]line НДС 12% НСП 1% [09:56:51]line > о реализуемом товаре [09:56:51]line ИТОГО: 0.00 [09:56:51]line НСП 1% : 0.00 [09:56:51]line НДС 12% : 0.00 [09:56:51]line Наличными: 0.00 [09:56:51]line Безнал.: 0.00 [09:56:51]line Место: АЗС № 161 "Партнер Нефть" [09:56:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:56:51]line СНО: Общий режим [09:56:51]line Чек 51 23.10.2024 09:56 [09:56:51]line Смена: 537 ФФД: 1.0 [09:56:51]line ЗНМ: 0300000104 [09:56:51]line РНМ: 0000000000091764 [09:56:51]line Версия ККМ: 001 [09:56:51]line Талоны: Топливная Карта [09:56:51]line 85863 [09:56:51]line ФМ: 0000000000871759 [09:56:51]line ФД: 166636 [09:56:51]line ФПД: 253683261590484 [09:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166636&fm=253683261590484&tin=02508201610067®Number=0000000000091764&sum=0 [09:56:52]written 0, free lines is 4095 [09:56:52]OFD Sender: Processing packet 166636 [packets to send 48, broken 47] [09:56:52]ProducePacketName [09:56:52]name=ofd_packets/00166636 [09:56:52]OFD Sender: To server: pG, [09:56:52]CommunicateWithHost lk.salyk.kg:30040 [09:56:52]ConnectInit lk.salyk.kg [09:56:52]Connected sock=10 [09:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 F1 07 01 E6 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 66 C8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8A 02 00 35 04 06 00 E6 B9 3C B1 4B D4 2A A0 FF 5A E1 1A A0 08 [09:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 7B 47 00 EB 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8A 02 00 F4 03 04 00 CE 6E 18 67 B6 04 01 00 00 8D 7F 23 D5 33 78 A7 38 [09:56:52]CommunicateWithHost err = 0 [09:56:52]CheckOFDResponse [09:56:52]1017 (14) - 77093643461234 [09:56:52]1041 (16) - 0000000000871759 [09:56:52]1040 (4) - 166636 [09:56:52]1012 (4) - 23.10.2024 03:34 [09:56:52]1206 (1) - 0 [09:56:52]OFD Sender: Remove packet 166636 [09:56:52]ProducePacketName [09:56:52]name=ofd_packets/00166636 [09:56:52]NVStorageDeleteData [09:56:52]Write to MH i2c: 01 00 00 52 2D 7F [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 07 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 07 00 52 2D 00 00 00 00 00 BE 0C 50 [09:56:52]RasterBufferAndPrint [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]written 0, free lines is 3268 [09:56:52]MH_Cut [09:56:52]Write to MH i2c: D1 01 00 59 2D 01 58 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 01 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 01 00 59 2D 00 57 [09:56:52]Write to MH i2c: 01 00 00 5A 2D 87 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]OFD Sender: No OFD packet to send [09:56:53]*** Cut start [09:56:53]*** Partial cut [09:56:53]*** CUTSNS_PIN = 1 [09:56:53]*** CUTSNS_PIN = 0 [09:56:53]*** Brake cut motor [09:56:53]Read from MH i2c: 01 [09:56:53]MH_I2C_Read... [09:56:53]*** Stop cut motor [09:56:53]*** Cut end [09:56:53]Read from MH i2c: 01 07 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 FF 0F 9C [09:56:53]process_action close_receipt done [09:56:53]requested_data is exist [09:56:53]produce_requested_data [09:56:53]requested_item fm.sn is exist - process it [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 11 00 00 [09:56:53]Write to MH i2c: E2 08 00 5B 2D 80 11 00 00 00 00 00 00 02 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 17 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 17 00 5B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [09:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:53]wFMCommunicate OK [09:56:53]requested_item fd.num is exist - process it [09:56:53]SAM_PROTO_GetFieldsCounters [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 13 00 00 [09:56:53]Write to MH i2c: E2 08 00 5C 2D 80 13 00 00 00 00 00 00 05 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 62 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 62 00 5C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [09:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_GetFieldsCounters done [09:56:54]requested_item shift.num is exist - process it [09:56:54]requested_item shift.opened is exist - process it [09:56:54]req_shift_opened [09:56:54]FM_GetShiftState [09:56:54]SAM_PROTO_GetShiftState [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 13 01 00 [09:56:54]Write to MH i2c: E2 08 00 5D 2D 80 13 01 00 00 00 00 00 07 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:54]Read from MH i2c: E2 0E 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0E 00 5D 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D2 [09:56:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_GetShiftState done [09:56:54]FM_GetShiftState done [09:56:54]req_shift_opened done [09:56:54]requested_item shift.open_date is exist - process it [09:56:54]req_shift_open_date [09:56:54]req_shift_open_date done [09:56:54]produce_requested_data done [09:56:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166636,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:56:54]process_action_free close_receipt [09:56:54]json_value_free [09:56:54]json_value_free done [09:56:54]process_json_proto returns [09:56:54]Send response to host [09:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166636,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:56:54]free response buf [09:56:54]execute_script done [09:56:54]execute_script returns [09:56:54]free content buf [09:56:54]Sock 9.Close socket [09:56:54]Sock 9.Thread stoped [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:30]accept exits with 7 [09:59:30]New connection [09:59:30]New thread 3067632996 created [09:59:30]Thread 3067489636 joined [09:59:30]Waiting for new connection... [09:59:30] Sock 7.Parse request [09:59:30]Sock 7.Check first char [09:59:30]Sock 7.First char is OK [09:59:30]request: POST /json_proto HTTP/1.0 [09:59:30]Method: POST [09:59:30]URL: /json_proto [09:59:30]Method is POST - this is cgi request [09:59:30]url: /json_proto [09:59:30]query_string will be loaded in cgi processing [09:59:30]execute_cgi json_proto POST (null) [09:59:30]execute_cgi path=json_proto method=POST [09:59:30]POST find Content-Length [09:59:30]Host: 172.17.53.195:8080 [09:59:30]Content-Length: 677 [09:59:30]Content-Type: application/json [09:59:30] [09:59:30]POST finish read [09:59:30]Found Content-Length = 677 [09:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]execute_script... [09:59: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)221219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]POST & json_proto [09:59:30]process_json_proto [09:59:30]json parsed OK: [09:59:30]protocol is kg_v1.0 [09:59:30]action value=close_receipt [09:59:30]process_action close_receipt [09:59:30]cmd_close_receipt [09:59:30]MH_GetDate [09:59:30]Write to MH i2c: F0 00 00 5E 2D 7A [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 5E 2D 00 06 C9 18 67 21 48 4A 65 E9 [09:59:30]GetLastDocTimeStamp 1729677414 [09:59:30]current date 1729677574 [09:59:30]FM_GetShiftState [09:59:30]SAM_PROTO_GetShiftState [09:59:30]wFMCommunicate request_size=4 [09:59:30]MH_SAM_APDU [09:59:30]CAPDU: 80 13 01 00 [09:59:30]Write to MH i2c: E2 08 00 5F 2D 80 13 01 00 00 00 00 00 09 [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:30]Read from MH i2c: E2 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: E2 0E 00 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: E2 0E 00 5F 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D4 [09:59:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:59:30]wFMCommunicate OK [09:59:30]SAM_PROTO_GetShiftState done [09:59:30]FM_GetShiftState done [09:59:30]opened in 1729643772 [09:59:30]opened+sec_in_day 1729730172 [09:59:30]quantity*price = 50041 [09:59:30]sum+1 = 50042 [09:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 52 23.10.2024 09:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166637 ФПД: 58998546475509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166637&fm=58998546475509&tin=02508201610067®Number=0000000000091764&sum=50000 [09:59:31]StoreToDocumentArchive [09:59:31]shift 537 fd 166637 [09:59:31]save to /storage/0537/doc_00166637 [09:59:31]save last doc name /storage/0537/doc_00166637 to /storage/kkm_last_doc_name [09:59:31]save OK [09:59:31]Clear old archive folders... [09:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:31]tlvbuf is 012BC700 [09:59:31]SAM_PROTO_ClearQueue [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 09 00 00 [09:59:31]Write to MH i2c: E2 08 00 6C 2D 80 09 00 00 00 00 00 00 0B [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 6C 2D 00 90 00 0D [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_ClearQueue done [09:59:31]KKMCreateOFDPacket [09:59:31]OFDProtocolAddRootSTLVToBuf [09:59:31]FM_MakeSignedData [09:59:31]FM_MakeSignedData [09:59:31]SAM_PROTO_SignData [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 01 02 [09:59:31]Write to MH i2c: E2 08 00 6D 2D 80 0D 01 02 00 00 00 00 13 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 6D 2D 00 90 00 0E [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=255 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8A 02 00 35 04 06 00 35 [09:59:31]Write to MH i2c: E2 02 01 6E 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 06 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8A 02 00 35 04 06 00 35 00 00 F4 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 6E 2D 00 90 00 0F [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=10 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 02 02 05 A8 AB 67 A9 F5 [09:59:31]Write to MH i2c: E2 0D 00 6F 2D 80 0D 02 02 05 00 A8 AB 67 A9 F5 00 00 78 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [09:59:31]RAPDU: 90 00 [09:59:31]wFMCommunicate OK [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 0D 03 02 [09:59:31]Write to MH i2c: E2 08 00 70 2D 80 0D 03 02 00 00 00 00 18 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0B 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0B 00 70 2D 00 7C D2 4A 29 F3 AA F2 E1 90 00 4A [09:59:31]RAPDU: 7C D2 4A 29 F3 AA F2 E1 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_SignData done [09:59:31]FM_MakeSignedData done [09:59:31]CreateOFDProtocolMessage [09:59:31]wFMCommunicate request_size=4 [09:59:31]MH_SAM_APDU [09:59:31]CAPDU: 80 11 00 00 [09:59:31]Write to MH i2c: E2 08 00 71 2D 80 11 00 00 00 00 00 00 18 [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 17 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 17 00 71 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [09:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:59:31]wFMCommunicate OK [09:59:31]CreateOFDProtocolMessage done [09:59:31]OFDSenderStorePacket 166637 [09:59:31]StoreOFDPacket docnum=166637 [09:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 9A 07 01 99 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8A 02 00 35 04 06 00 35 A8 AB 67 A9 F5 7C D2 4A 29 F3 AA F2 E1 [09:59:31]CheckFolder [09:59:31]dirname=/storage/ofd_packets [09:59:31]CheckFolder done [09:59:31]ProducePacketName [09:59:31]name=ofd_packets/00166637 [09:59:31]NVStorageSaveData ofd_packets/00166637 [09:59:31]File name is /storage/ofd_packets/00166637 [09:59:31]Write 301 bytes [09:59:31]NVStorageSaveData done [09:59:31]OFDSenderStorePacket done [09:59:31]KKMCreateOFDPacket done [09:59:31]NVStorageSaveData kkm_last_timestamp [09:59:31]File name is /storage/kkm_last_timestamp [09:59:31]Write 4 bytes [09:59:31]NVStorageSaveData done [09:59:31]ExternCall_PrintAddStr [09:59:31]wPrintStart [09:59:31]Write to MH i2c: 01 00 00 72 2D 9F [09:59:31]Write i2c OK [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 07 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 FF 0F B4 [09:59:31]RasterBufferAndPrint [09:59:31]line Счет N : (1)221219 [09:59:31]line ИНН: 02508201610067 [09:59:31]line Контрольно-Кассовый Чек [09:59:31]line ПРОДАЖА [09:59:31]line ТРК (МРК, ГНК) : 23 [09:59:31]line Товар: 2710124130 [09:59:31]line Аи-92-К-5 [09:59:31]line 7.480 * 66.90 [09:59:31]line = 500.41 [09:59:31]line НДС 12% НСП 1% [09:59:31]line > о реализуемом товаре [09:59:31]line ОКРУГЛЕНИЕ: -0.41 [09:59:31]line ИТОГО: 500.00 [09:59:31]line Внесено: 500.00 [09:59:31]line СДАЧА: 0.00 [09:59:31]line НСП 1% : 4.43 [09:59:31]line НДС 12% : 53.14 [09:59:31]line Наличными: 500.00 [09:59:31]line Безнал.: 0.00 [09:59:31]line Место: АЗС № 161 "Партнер Нефть" [09:59:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:59:31]line СНО: Общий режим [09:59:31]line Чек 52 23.10.2024 09:59 [09:59:31]line Смена: 537 ФФД: 1.0 [09:59:31]line ЗНМ: 0300000104 [09:59:31]line РНМ: 0000000000091764 [09:59:31]line Версия ККМ: 001 [09:59:31]line ФМ: 0000000000871759 [09:59:31]line ФД: 166637 [09:59:31]line ФПД: 58998546475509 [09:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166637&fm=58998546475509&tin=02508201610067®Number=0000000000091764&sum=50000 [09:59:32]OFD Sender: Processing packet 166637 [packets to send 48, broken 47] [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00166637 [09:59:32]OFD Sender: To server: pG, [09:59:32]CommunicateWithHost lk.salyk.kg:30040 [09:59:32]ConnectInit lk.salyk.kg [09:59:32]written 0, free lines is 4095 [09:59:32]Connected sock=10 [09:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 9A 07 01 99 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8A 02 00 35 04 06 00 35 A8 AB 67 A9 F5 7C D2 4A 29 F3 AA F2 E1 [09:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF D2 47 00 2A 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8A 02 00 F4 03 04 00 6E 6F 18 67 B6 04 01 00 00 5E A6 66 17 0B C3 AE 26 [09:59:32]CommunicateWithHost err = 0 [09:59:32]CheckOFDResponse [09:59:32]1017 (14) - 77093643461234 [09:59:32]1041 (16) - 0000000000871759 [09:59:32]1040 (4) - 166637 [09:59:32]1012 (4) - 23.10.2024 03:37 [09:59:32]1206 (1) - 0 [09:59:32]OFD Sender: Remove packet 166637 [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00166637 [09:59:32]NVStorageDeleteData [09:59:32]Write to MH i2c: 01 00 00 9D 2D CA [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 A9 0C 86 [09:59:32]RasterBufferAndPrint [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]line [09:59:32]written 0, free lines is 3246 [09:59:32]MH_Cut [09:59:32]Write to MH i2c: D1 01 00 A4 2D 01 A3 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 01 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: D1 01 00 A4 2D 00 A2 [09:59:32]Write to MH i2c: 01 00 00 A5 2D D2 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:33]OFD Sender: No OFD packet to send [09:59:33]*** Cut start [09:59:33]*** Partial cut [09:59:33]*** CUTSNS_PIN = 1 [09:59:33]*** CUTSNS_PIN = 0 [09:59:33]*** Brake cut motor [09:59:34]Read from MH i2c: 01 [09:59:34]MH_I2C_Read... [09:59:34]*** Stop cut motor [09:59:34]*** Cut end [09:59:34]Read from MH i2c: 01 07 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 FF 0F E7 [09:59:34]process_action close_receipt done [09:59:34]requested_data is exist [09:59:34]produce_requested_data [09:59:34]requested_item fm.sn is exist - process it [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 A6 2D 80 11 00 00 00 00 00 00 4D [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 A6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:59:34]wFMCommunicate OK [09:59:34]requested_item fd.num is exist - process it [09:59:34]SAM_PROTO_GetFieldsCounters [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 13 00 00 [09:59:34]Write to MH i2c: E2 08 00 A7 2D 80 13 00 00 00 00 00 00 50 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 62 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 62 00 A7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_GetFieldsCounters done [09:59:34]requested_item shift.num is exist - process it [09:59:34]requested_item shift.opened is exist - process it [09:59:34]req_shift_opened [09:59:34]FM_GetShiftState [09:59:34]SAM_PROTO_GetShiftState [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 13 01 00 [09:59:34]Write to MH i2c: E2 08 00 A8 2D 80 13 01 00 00 00 00 00 52 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 A8 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1D [09:59:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_GetShiftState done [09:59:34]FM_GetShiftState done [09:59:34]req_shift_opened done [09:59:34]requested_item shift.open_date is exist - process it [09:59:34]req_shift_open_date [09:59:34]req_shift_open_date done [09:59:34]produce_requested_data done [09:59:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166637,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [09:59:34]process_action_free close_receipt [09:59:34]json_value_free [09:59:34]json_value_free done [09:59:34]process_json_proto returns [09:59:34]Send response to host [09:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166637,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [09:59:34]free response buf [09:59:34]execute_script done [09:59:34]execute_script returns [09:59:34]free content buf [09:59:34]Sock 7.Close socket [09:59:34]Sock 7.Thread stoped [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:37]accept exits with 9 [10:01:37]New connection [10:01:37]New thread 3067489636 created [10:01:37]Thread 3067632996 joined [10:01:37]Waiting for new connection... [10:01:37] Sock 9.Parse request [10:01:37]Sock 9.Check first char [10:01:37]Sock 9.First char is OK [10:01:37]request: POST /json_proto HTTP/1.0 [10:01:37]Method: POST [10:01:37]URL: /json_proto [10:01:37]Method is POST - this is cgi request [10:01:37]url: /json_proto [10:01:37]query_string will be loaded in cgi processing [10:01:37]execute_cgi json_proto POST (null) [10:01:37]execute_cgi path=json_proto method=POST [10:01:37]POST find Content-Length [10:01:37]Host: 172.17.53.195:8080 [10:01:37]Content-Length: 677 [10:01:37]Content-Type: application/json [10:01:37] [10:01:37]POST finish read [10:01:37]Found Content-Length = 677 [10:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:37]execute_script... [10:01: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)221220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:37]POST & json_proto [10:01:37]process_json_proto [10:01:37]json parsed OK: [10:01:37]protocol is kg_v1.0 [10:01:37]action value=close_receipt [10:01:37]process_action close_receipt [10:01:37]cmd_close_receipt [10:01:37]MH_GetDate [10:01:37]Write to MH i2c: F0 00 00 A9 2D C5 [10:01:37]Write i2c OK [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: F0 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: F0 09 00 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: F0 09 00 A9 2D 00 86 C9 18 67 21 48 4A 65 B4 [10:01:37]GetLastDocTimeStamp 1729677574 [10:01:37]current date 1729677702 [10:01:37]FM_GetShiftState [10:01:37]SAM_PROTO_GetShiftState [10:01:37]wFMCommunicate request_size=4 [10:01:37]MH_SAM_APDU [10:01:37]CAPDU: 80 13 01 00 [10:01:37]Write to MH i2c: E2 08 00 AA 2D 80 13 01 00 00 00 00 00 54 [10:01:37]Write i2c OK [10:01:37]MH_I2C_Read... [10:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:37]Read from MH i2c: E2 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: E2 0E 00 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: E2 0E 00 AA 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1F [10:01:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:01:37]wFMCommunicate OK [10:01:37]SAM_PROTO_GetShiftState done [10:01:37]FM_GetShiftState done [10:01:37]opened in 1729643772 [10:01:37]opened+sec_in_day 1729730172 [10:01:37]quantity*price = 20003 [10:01:37]sum+1 = 20004 [10:01: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 53 23.10.2024 10:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166638 ФПД: 116593757250422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100142&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166638&fm=116593757250422&tin=02508201610067®Number=0000000000091764&sum=20000 [10:01:38]StoreToDocumentArchive [10:01:38]shift 537 fd 166638 [10:01:38]save to /storage/0537/doc_00166638 [10:01:38]save last doc name /storage/0537/doc_00166638 to /storage/kkm_last_doc_name [10:01:38]save OK [10:01:38]Clear old archive folders... [10:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:38]tlvbuf is 012489E0 [10:01:38]SAM_PROTO_ClearQueue [10:01:38]wFMCommunicate request_size=4 [10:01:38]MH_SAM_APDU [10:01:38]CAPDU: 80 09 00 00 [10:01:38]Write to MH i2c: E2 08 00 B7 2D 80 09 00 00 00 00 00 00 56 [10:01:38]Write i2c OK [10:01:38]MH_I2C_Read... [10:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:38]Read from MH i2c: E2 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 03 00 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [10:01:38]RAPDU: 90 00 [10:01:38]wFMCommunicate OK [10:01:38]SAM_PROTO_ClearQueue done [10:01:38]KKMCreateOFDPacket [10:01:38]OFDProtocolAddRootSTLVToBuf [10:01:38]FM_MakeSignedData [10:01:38]FM_MakeSignedData [10:01:38]SAM_PROTO_SignData [10:01:38]wFMCommunicate request_size=4 [10:01:38]MH_SAM_APDU [10:01:38]CAPDU: 80 0D 01 02 [10:01:38]Write to MH i2c: E2 08 00 B8 2D 80 0D 01 02 00 00 00 00 5E [10:01:38]Write i2c OK [10:01:38]MH_I2C_Read... [10:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:38]Read from MH i2c: E2 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 03 00 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [10:01:38]RAPDU: 90 00 [10:01:38]wFMCommunicate OK [10:01:38]wFMCommunicate request_size=255 [10:01:38]MH_SAM_APDU [10:01:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 86 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8A 02 00 35 04 06 00 6A [10:01:38]Write to MH i2c: E2 02 01 B9 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 86 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8A 02 00 35 04 06 00 6A 00 00 B8 [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 03 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [10:01:39]RAPDU: 90 00 [10:01:39]wFMCommunicate OK [10:01:39]wFMCommunicate request_size=10 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 0D 02 02 05 0A 99 7B E3 76 [10:01:39]Write to MH i2c: E2 0D 00 BA 2D 80 0D 02 02 05 00 0A 99 7B E3 76 00 00 E2 [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 03 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [10:01:39]RAPDU: 90 00 [10:01:39]wFMCommunicate OK [10:01:39]wFMCommunicate request_size=4 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 0D 03 02 [10:01:39]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0B 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0B 00 BB 2D 00 71 19 CE 2A CF F1 01 34 90 00 DB [10:01:39]RAPDU: 71 19 CE 2A CF F1 01 34 90 00 [10:01:39]wFMCommunicate OK [10:01:39]SAM_PROTO_SignData done [10:01:39]FM_MakeSignedData done [10:01:39]CreateOFDProtocolMessage [10:01:39]wFMCommunicate request_size=4 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 11 00 00 [10:01:39]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 17 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [10:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:39]wFMCommunicate OK [10:01:39]CreateOFDProtocolMessage done [10:01:39]OFDSenderStorePacket 166638 [10:01:39]StoreOFDPacket docnum=166638 [10:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 33 07 01 FE 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 86 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8A 02 00 35 04 06 00 6A 0A 99 7B E3 76 71 19 CE 2A CF F1 01 34 [10:01:39]CheckFolder [10:01:39]dirname=/storage/ofd_packets [10:01:39]CheckFolder done [10:01:39]ProducePacketName [10:01:39]name=ofd_packets/00166638 [10:01:39]NVStorageSaveData ofd_packets/00166638 [10:01:39]File name is /storage/ofd_packets/00166638 [10:01:39]Write 301 bytes [10:01:39]NVStorageSaveData done [10:01:39]OFDSenderStorePacket done [10:01:39]KKMCreateOFDPacket done [10:01:39]NVStorageSaveData kkm_last_timestamp [10:01:39]File name is /storage/kkm_last_timestamp [10:01:39]Write 4 bytes [10:01:39]NVStorageSaveData done [10:01:39]ExternCall_PrintAddStr [10:01:39]wPrintStart [10:01:39]Write to MH i2c: 01 00 00 BD 2D EA [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: 01 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: 01 07 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [10:01:39]RasterBufferAndPrint [10:01:39]line Счет N : (1)221220 [10:01:39]line ИНН: 02508201610067 [10:01:39]line Контрольно-Кассовый Чек [10:01:39]line ПРОДАЖА [10:01:39]line ТРК (МРК, ГНК) : 23 [10:01:39]line Товар: 2710124130 [10:01:39]line Аи-92-К-5 [10:01:39]line 2.990 * 66.90 [10:01:39]line = 200.03 [10:01:39]line НДС 12% НСП 1% [10:01:39]line > о реализуемом товаре [10:01:39]line ОКРУГЛЕНИЕ: -0.03 [10:01:39]line ИТОГО: 200.00 [10:01:39]line Внесено: 200.00 [10:01:39]line СДАЧА: 0.00 [10:01:39]line НСП 1% : 1.77 [10:01:39]line НДС 12% : 21.24 [10:01:39]line Наличными: 200.00 [10:01:39]line Безнал.: 0.00 [10:01:39]line Место: АЗС № 161 "Партнер Нефть" [10:01:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:01:39]line СНО: Общий режим [10:01:39]line Чек 53 23.10.2024 10:01 [10:01:39]line Смена: 537 ФФД: 1.0 [10:01:39]line ЗНМ: 0300000104 [10:01:39]line РНМ: 0000000000091764 [10:01:39]line Версия ККМ: 001 [10:01:39]line ФМ: 0000000000871759 [10:01:39]line ФД: 166638 [10:01:39]line ФПД: 116593757250422 [10:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100142&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166638&fm=116593757250422&tin=02508201610067®Number=0000000000091764&sum=20000 [10:01:39]OFD Sender: Processing packet 166638 [packets to send 48, broken 47] [10:01:39]ProducePacketName [10:01:39]name=ofd_packets/00166638 [10:01:39]OFD Sender: To server: pG, [10:01:39]CommunicateWithHost lk.salyk.kg:30040 [10:01:39]ConnectInit lk.salyk.kg [10:01:39]written 0, free lines is 4095 [10:01:39]Connected sock=10 [10: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 31 37 35 39 0F 01 00 00 1E 33 07 01 FE 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 86 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8A 02 00 35 04 06 00 6A 0A 99 7B E3 76 71 19 CE 2A CF F1 01 34 [10:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 47 60 47 00 F6 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8A 02 00 F4 03 04 00 EE 6F 18 67 B6 04 01 00 00 7E D1 2B AC B2 EC F9 4E [10:01:40]CommunicateWithHost err = 0 [10:01:40]CheckOFDResponse [10:01:40]1017 (14) - 77093643461234 [10:01:40]1041 (16) - 0000000000871759 [10:01:40]1040 (4) - 166638 [10:01:40]1012 (4) - 23.10.2024 03:39 [10:01:40]1206 (1) - 0 [10:01:40]OFD Sender: Remove packet 166638 [10:01:40]ProducePacketName [10:01:40]name=ofd_packets/00166638 [10:01:40]NVStorageDeleteData [10:01:40]Write to MH i2c: 01 00 00 E8 2D 15 [10:01:40]Write i2c OK [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: 01 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: 01 07 00 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 A3 0C CB [10:01:40]RasterBufferAndPrint [10:01:40]line [10:01:40]line [10:01:40]line [10:01:40]line [10:01:40]line [10:01:40]written 0, free lines is 3241 [10:01:40]MH_Cut [10:01:40]Write to MH i2c: D1 01 00 EF 2D 01 EE [10:01:40]Write i2c OK [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: D1 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: D1 01 00 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: D1 01 00 EF 2D 00 ED [10:01:40]Write to MH i2c: 01 00 00 F0 2D 1D [10:01:40]Write i2c OK [10:01:40]MH_I2C_Read... [10:01:40]OFD Sender: No OFD packet to send [10:01:41]*** Cut start [10:01:41]*** Partial cut [10:01:41]*** CUTSNS_PIN = 1 [10:01:41]*** CUTSNS_PIN = 0 [10:01:41]*** Brake cut motor [10:01:41]Read from MH i2c: 01 [10:01:41]MH_I2C_Read... [10:01:41]*** Stop cut motor [10:01:41]*** Cut end [10:01:41]Read from MH i2c: 01 07 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 FF 0F 32 [10:01:41]process_action close_receipt done [10:01:41]requested_data is exist [10:01:41]produce_requested_data [10:01:41]requested_item fm.sn is exist - process it [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 11 00 00 [10:01:41]Write to MH i2c: E2 08 00 F1 2D 80 11 00 00 00 00 00 00 98 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 F1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [10:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:41]wFMCommunicate OK [10:01:41]requested_item fd.num is exist - process it [10:01:41]SAM_PROTO_GetFieldsCounters [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 13 00 00 [10:01:41]Write to MH i2c: E2 08 00 F2 2D 80 13 00 00 00 00 00 00 9B [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 62 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 62 00 F2 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [10:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_GetFieldsCounters done [10:01:41]requested_item shift.num is exist - process it [10:01:41]requested_item shift.opened is exist - process it [10:01:41]req_shift_opened [10:01:41]FM_GetShiftState [10:01:41]SAM_PROTO_GetShiftState [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 13 01 00 [10:01:41]Write to MH i2c: E2 08 00 F3 2D 80 13 01 00 00 00 00 00 9D [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0E 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0E 00 F3 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 68 [10:01:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_GetShiftState done [10:01:41]FM_GetShiftState done [10:01:41]req_shift_opened done [10:01:41]requested_item shift.open_date is exist - process it [10:01:41]req_shift_open_date [10:01:41]req_shift_open_date done [10:01:41]produce_requested_data done [10:01:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166638,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:01:41]process_action_free close_receipt [10:01:41]json_value_free [10:01:41]json_value_free done [10:01:41]process_json_proto returns [10:01:41]Send response to host [10:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166638,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:01:41]free response buf [10:01:41]execute_script done [10:01:41]execute_script returns [10:01:41]free content buf [10:01:41]Sock 9.Close socket [10:01:41]Sock 9.Thread stoped [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:02:57]accept exits with 7 [10:02:57]New connection [10:02:57]New thread 3067632996 created [10:02:57]Thread 3067489636 joined [10:02:57]Waiting for new connection... [10:02:57] Sock 7.Parse request [10:02:57]Sock 7.Check first char [10:02:57]Sock 7.First char is OK [10:02:57]request: POST /json_proto HTTP/1.0 [10:02:57]Method: POST [10:02:57]URL: /json_proto [10:02:57]Method is POST - this is cgi request [10:02:57]url: /json_proto [10:02:57]query_string will be loaded in cgi processing [10:02:57]execute_cgi json_proto POST (null) [10:02:57]execute_cgi path=json_proto method=POST [10:02:57]POST find Content-Length [10:02:57]Host: 172.17.53.195:8080 [10:02:57]Content-Length: 682 [10:02:57]Content-Type: application/json [10:02:57] [10:02:57]POST finish read [10:02:57]Found Content-Length = 682 [10:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:57]execute_script... [10:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:57]POST & json_proto [10:02:57]process_json_proto [10:02:57]json parsed OK: [10:02:57]protocol is kg_v1.0 [10:02:57]action value=close_receipt [10:02:57]process_action close_receipt [10:02:57]cmd_close_receipt [10:02:57]MH_GetDate [10:02:57]Write to MH i2c: F0 00 00 F4 2D 10 [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: F0 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: F0 09 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: F0 09 00 F4 2D 00 D6 C9 18 67 21 48 4A 65 4F [10:02:57]GetLastDocTimeStamp 1729677702 [10:02:57]current date 1729677782 [10:02:57]FM_GetShiftState [10:02:57]SAM_PROTO_GetShiftState [10:02:57]wFMCommunicate request_size=4 [10:02:57]MH_SAM_APDU [10:02:57]CAPDU: 80 13 01 00 [10:02:57]Write to MH i2c: E2 08 00 F5 2D 80 13 01 00 00 00 00 00 9F [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:57]Read from MH i2c: E2 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: E2 0E 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: E2 0E 00 F5 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6A [10:02:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:02:57]wFMCommunicate OK [10:02:57]SAM_PROTO_GetShiftState done [10:02:57]FM_GetShiftState done [10:02:57]opened in 1729643772 [10:02:57]opened+sec_in_day 1729730172 [10:02:57]quantity*price = 149989 [10:02:57]sum+1 = 149991 [10:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.28 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 54 23.10.2024 10:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166639 ФПД: 198042704176785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166639&fm=198042704176785&tin=02508201610067®Number=0000000000091764&sum=149900 [10:02:58]StoreToDocumentArchive [10:02:58]shift 537 fd 166639 [10:02:58]save to /storage/0537/doc_00166639 [10:02:58]save last doc name /storage/0537/doc_00166639 to /storage/kkm_last_doc_name [10:02:58]save OK [10:02:58]Clear old archive folders... [10:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:58]tlvbuf is 01298720 [10:02:58]SAM_PROTO_ClearQueue [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 09 00 00 [10:02:58]Write to MH i2c: E2 08 00 02 2E 80 09 00 00 00 00 00 00 A2 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 03 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [10:02:58]RAPDU: 90 00 [10:02:58]wFMCommunicate OK [10:02:58]SAM_PROTO_ClearQueue done [10:02:58]KKMCreateOFDPacket [10:02:58]OFDProtocolAddRootSTLVToBuf [10:02:58]FM_MakeSignedData [10:02:58]FM_MakeSignedData [10:02:58]SAM_PROTO_SignData [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 0D 01 02 [10:02:58]Write to MH i2c: E2 08 00 03 2E 80 0D 01 02 00 00 00 00 AA [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 03 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [10:02:58]RAPDU: 90 00 [10:02:58]wFMCommunicate OK [10:02:58]wFMCommunicate request_size=255 [10:02:58]MH_SAM_APDU [10:02: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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D6 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8A 02 00 35 04 06 00 B4 [10:02:58]Write to MH i2c: E2 02 01 04 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D6 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8A 02 00 35 04 06 00 B4 00 00 09 [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 04 2E 00 90 00 A6 [10:02:59]RAPDU: 90 00 [10:02:59]wFMCommunicate OK [10:02:59]wFMCommunicate request_size=10 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 0D 02 02 05 1E 69 08 66 91 [10:02:59]Write to MH i2c: E2 0D 00 05 2E 80 0D 02 02 05 00 1E 69 08 66 91 00 00 3D [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 05 2E 00 90 00 A7 [10:02:59]RAPDU: 90 00 [10:02:59]wFMCommunicate OK [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 0D 03 02 [10:02:59]Write to MH i2c: E2 08 00 06 2E 80 0D 03 02 00 00 00 00 AF [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 0B 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 0B 00 06 2E 00 89 8C 04 45 F5 7D 1F B4 90 00 53 [10:02:59]RAPDU: 89 8C 04 45 F5 7D 1F B4 90 00 [10:02:59]wFMCommunicate OK [10:02:59]SAM_PROTO_SignData done [10:02:59]FM_MakeSignedData done [10:02:59]CreateOFDProtocolMessage [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 11 00 00 [10:02:59]Write to MH i2c: E2 08 00 07 2E 80 11 00 00 00 00 00 00 AF [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 17 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 17 00 07 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [10:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:02:59]wFMCommunicate OK [10:02:59]CreateOFDProtocolMessage done [10:02:59]OFDSenderStorePacket 166639 [10:02:59]StoreOFDPacket docnum=166639 [10:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 93 07 01 D9 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D6 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8A 02 00 35 04 06 00 B4 1E 69 08 66 91 89 8C 04 45 F5 7D 1F B4 [10:02:59]CheckFolder [10:02:59]dirname=/storage/ofd_packets [10:02:59]CheckFolder done [10:02:59]ProducePacketName [10:02:59]name=ofd_packets/00166639 [10:02:59]NVStorageSaveData ofd_packets/00166639 [10:02:59]File name is /storage/ofd_packets/00166639 [10:02:59]Write 301 bytes [10:02:59]NVStorageSaveData done [10:02:59]OFDSenderStorePacket done [10:02:59]KKMCreateOFDPacket done [10:02:59]NVStorageSaveData kkm_last_timestamp [10:02:59]File name is /storage/kkm_last_timestamp [10:02:59]Write 4 bytes [10:02:59]NVStorageSaveData done [10:02:59]ExternCall_PrintAddStr [10:02:59]wPrintStart [10:02:59]Write to MH i2c: 01 00 00 08 2E 36 [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: 01 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: 01 07 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: 01 07 00 08 2E 00 00 00 00 00 FF 0F 4B [10:02:59]RasterBufferAndPrint [10:02:59]line Счет N : (1)221221 [10:02:59]line ИНН: 02508201610067 [10:02:59]line Контрольно-Кассовый Чек [10:02:59]line ПРОДАЖА [10:02:59]line ТРК (МРК, ГНК) : 43 [10:02:59]line Товар: 2710124130 [10:02:59]line Аи-92-К-5 [10:02:59]line 22.420 * 66.90 [10:02:59]line = 1499.90 [10:02:59]line НДС 12% НСП 1% [10:02:59]line > о реализуемом товаре [10:02:59]line ОКРУГЛЕНИЕ: -0.90 [10:02:59]line ИТОГО: 1499.00 [10:02:59]line Внесено: 1500.00 [10:02:59]line СДАЧА: 1.00 [10:02:59]line НСП 1% : 13.27 [10:02:59]line НДС 12% : 159.28 [10:02:59]line Наличными: 1499.00 [10:02:59]line Безнал.: 0.00 [10:02:59]line Место: АЗС № 161 "Партнер Нефть" [10:02:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:02:59]line СНО: Общий режим [10:02:59]line Чек 54 23.10.2024 10:03 [10:02:59]line Смена: 537 ФФД: 1.0 [10:02:59]line ЗНМ: 0300000104 [10:02:59]line РНМ: 0000000000091764 [10:02:59]line Версия ККМ: 001 [10:02:59]line ФМ: 0000000000871759 [10:02:59]line ФД: 166639 [10:02:59]line ФПД: 198042704176785 [10:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166639&fm=198042704176785&tin=02508201610067®Number=0000000000091764&sum=149900 [10:02:59]OFD Sender: Processing packet 166639 [packets to send 48, broken 47] [10:02:59]ProducePacketName [10:02:59]name=ofd_packets/00166639 [10:02:59]OFD Sender: To server: pG, [10:02:59]CommunicateWithHost lk.salyk.kg:30040 [10:02:59]ConnectInit lk.salyk.kg [10:02:59]written 0, free lines is 4095 [10:02:59]Connected sock=10 [10:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 93 07 01 D9 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D6 C9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8A 02 00 35 04 06 00 B4 1E 69 08 66 91 89 8C 04 45 F5 7D 1F B4 [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 31 37 35 39 4F 00 00 00 DC 45 47 00 C6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8A 02 00 F4 03 04 00 3E 70 18 67 B6 04 01 00 00 C0 BD 0B 3D 6B 6B 5A 2C [10:03:00]CommunicateWithHost err = 0 [10:03:00]CheckOFDResponse [10:03:00]1017 (14) - 77093643461234 [10:03:00]1041 (16) - 0000000000871759 [10:03:00]1040 (4) - 166639 [10:03:00]1012 (4) - 23.10.2024 03:40 [10:03:00]1206 (1) - 0 [10:03:00]OFD Sender: Remove packet 166639 [10:03:00]ProducePacketName [10:03:00]name=ofd_packets/00166639 [10:03:00]NVStorageDeleteData [10:03:00]Write to MH i2c: 01 00 00 33 2E 61 [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 33 2E 00 00 00 00 00 A7 0C 1B [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 3245 [10:03:00]MH_Cut [10:03:00]Write to MH i2c: D1 01 00 3A 2E 01 3A [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 3A 2E 00 39 [10:03:00]Write to MH i2c: 01 00 00 3B 2E 69 [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]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:01]Read from MH i2c: 01 [10:03:01]MH_I2C_Read... [10:03:01]*** Stop cut motor [10:03:01]*** Cut end [10:03:01]Read from MH i2c: 01 07 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [10:03:01]process_action close_receipt done [10:03:01]requested_data is exist [10:03:01]produce_requested_data [10:03:01]requested_item fm.sn is exist - process it [10:03:01]wFMCommunicate request_size=4 [10:03:01]MH_SAM_APDU [10:03:01]CAPDU: 80 11 00 00 [10:03:01]Write to MH i2c: E2 08 00 3C 2E 80 11 00 00 00 00 00 00 E4 [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:01]Read from MH i2c: E2 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 17 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 17 00 3C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [10:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:03:01]wFMCommunicate OK [10:03:01]requested_item fd.num is exist - process it [10:03:01]SAM_PROTO_GetFieldsCounters [10:03:01]wFMCommunicate request_size=4 [10:03:01]MH_SAM_APDU [10:03:01]CAPDU: 80 13 00 00 [10:03:01]Write to MH i2c: E2 08 00 3D 2E 80 13 00 00 00 00 00 00 E7 [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:01]Read from MH i2c: E2 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 62 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 62 00 3D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:01]wFMCommunicate OK [10:03:01]SAM_PROTO_GetFieldsCounters done [10:03:01]requested_item shift.num is exist - process it [10:03:01]requested_item shift.opened is exist - process it [10:03:01]req_shift_opened [10:03:01]FM_GetShiftState [10:03:01]SAM_PROTO_GetShiftState [10:03:01]wFMCommunicate request_size=4 [10:03:01]MH_SAM_APDU [10:03:01]CAPDU: 80 13 01 00 [10:03:01]Write to MH i2c: E2 08 00 3E 2E 80 13 01 00 00 00 00 00 E9 [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:01]Read from MH i2c: E2 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 3E 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B4 [10:03:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:03:01]wFMCommunicate OK [10:03:01]SAM_PROTO_GetShiftState done [10:03:01]FM_GetShiftState done [10:03:01]req_shift_opened done [10:03:01]requested_item shift.open_date is exist - process it [10:03:01]req_shift_open_date [10:03:01]req_shift_open_date done [10:03:01]produce_requested_data done [10:03:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166639,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:03:01]process_action_free close_receipt [10:03:01]json_value_free [10:03:01]json_value_free done [10:03:01]process_json_proto returns [10:03:01]Send response to host [10:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166639,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:03:01]free response buf [10:03:01]execute_script done [10:03:01]execute_script returns [10:03:01]free content buf [10:03:01]Sock 7.Close socket [10:03:01]Sock 7.Thread stoped [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]accept exits with 9 [10:08:35]New connection [10:08:35]New thread 3067489636 created [10:08:35]Thread 3067632996 joined [10:08:35]Waiting for new connection... [10:08:35] Sock 9.Parse request [10:08:35]Sock 9.Check first char [10:08:35]Sock 9.First char is OK [10:08:35]request: POST /json_proto HTTP/1.0 [10:08:35]Method: POST [10:08:35]URL: /json_proto [10:08:35]Method is POST - this is cgi request [10:08:35]url: /json_proto [10:08:35]query_string will be loaded in cgi processing [10:08:35]execute_cgi json_proto POST (null) [10:08:35]execute_cgi path=json_proto method=POST [10:08:35]POST find Content-Length [10:08:35]Host: 172.17.53.195:8080 [10:08:35]Content-Length: 677 [10:08:35]Content-Type: application/json [10:08:35] [10:08:35]POST finish read [10:08:35]Found Content-Length = 677 [10:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:35]execute_script... [10:08: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)221222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:35]POST & json_proto [10:08:35]process_json_proto [10:08:35]json parsed OK: [10:08:35]protocol is kg_v1.0 [10:08:35]action value=close_receipt [10:08:35]process_action close_receipt [10:08:35]cmd_close_receipt [10:08:35]MH_GetDate [10:08:35]Write to MH i2c: F0 00 00 3F 2E 5C [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: F0 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: F0 09 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: F0 09 00 3F 2E 00 28 CB 18 67 21 48 4A 65 EF [10:08:35]GetLastDocTimeStamp 1729677782 [10:08:35]current date 1729678120 [10:08:35]FM_GetShiftState [10:08:35]SAM_PROTO_GetShiftState [10:08:35]wFMCommunicate request_size=4 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 13 01 00 [10:08:35]Write to MH i2c: E2 08 00 40 2E 80 13 01 00 00 00 00 00 EB [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 0E 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 0E 00 40 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B6 [10:08:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:08:35]wFMCommunicate OK [10:08:35]SAM_PROTO_GetShiftState done [10:08:35]FM_GetShiftState done [10:08:35]opened in 1729643772 [10:08:35]opened+sec_in_day 1729730172 [10:08:35]quantity*price = 50041 [10:08:35]sum+1 = 50042 [10:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 55 23.10.2024 10:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166640 ФПД: 278246041630301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166640&fm=278246041630301&tin=02508201610067®Number=0000000000091764&sum=50000 [10:08:36]StoreToDocumentArchive [10:08:36]shift 537 fd 166640 [10:08:36]save to /storage/0537/doc_00166640 [10:08:36]save last doc name /storage/0537/doc_00166640 to /storage/kkm_last_doc_name [10:08:36]save OK [10:08:36]Clear old archive folders... [10:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:36]tlvbuf is 012A5EB0 [10:08:36]SAM_PROTO_ClearQueue [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 09 00 00 [10:08:36]Write to MH i2c: E2 08 00 4D 2E 80 09 00 00 00 00 00 00 ED [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 4D 2E 00 90 00 EF [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]SAM_PROTO_ClearQueue done [10:08:36]KKMCreateOFDPacket [10:08:36]OFDProtocolAddRootSTLVToBuf [10:08:36]FM_MakeSignedData [10:08:36]FM_MakeSignedData [10:08:36]SAM_PROTO_SignData [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 01 02 [10:08:36]Write to MH i2c: E2 08 00 4E 2E 80 0D 01 02 00 00 00 00 F5 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 4E 2E 00 90 00 F0 [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]wFMCommunicate request_size=255 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 28 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8A 02 00 35 04 06 00 FD [10:08:36]Write to MH i2c: E2 02 01 4F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8A 02 00 35 04 06 00 FD 00 00 C8 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 03 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 03 00 4F 2E 00 90 00 F1 [10:08:37]RAPDU: 90 00 [10:08:37]wFMCommunicate OK [10:08:37]wFMCommunicate request_size=10 [10:08:37]MH_SAM_APDU [10:08:37]CAPDU: 80 0D 02 02 05 10 34 78 B6 5D [10:08:37]Write to MH i2c: E2 0D 00 50 2E 80 0D 02 02 05 00 10 34 78 B6 5D 00 00 D1 [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 03 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 03 00 50 2E 00 90 00 F2 [10:08:37]RAPDU: 90 00 [10:08:37]wFMCommunicate OK [10:08:37]wFMCommunicate request_size=4 [10:08:37]MH_SAM_APDU [10:08:37]CAPDU: 80 0D 03 02 [10:08:37]Write to MH i2c: E2 08 00 51 2E 80 0D 03 02 00 00 00 00 FA [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0B 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0B 00 51 2E 00 A4 E6 64 EA D7 02 62 B4 90 00 C2 [10:08:37]RAPDU: A4 E6 64 EA D7 02 62 B4 90 00 [10:08:37]wFMCommunicate OK [10:08:37]SAM_PROTO_SignData done [10:08:37]FM_MakeSignedData done [10:08:37]CreateOFDProtocolMessage [10:08:37]wFMCommunicate request_size=4 [10:08:37]MH_SAM_APDU [10:08:37]CAPDU: 80 11 00 00 [10:08:37]Write to MH i2c: E2 08 00 52 2E 80 11 00 00 00 00 00 00 FA [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 17 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 17 00 52 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [10:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:08:37]wFMCommunicate OK [10:08:37]CreateOFDProtocolMessage done [10:08:37]OFDSenderStorePacket 166640 [10:08:37]StoreOFDPacket docnum=166640 [10:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 6E 07 01 B4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8A 02 00 35 04 06 00 FD 10 34 78 B6 5D A4 E6 64 EA D7 02 62 B4 [10:08:37]CheckFolder [10:08:37]dirname=/storage/ofd_packets [10:08:37]CheckFolder done [10:08:37]ProducePacketName [10:08:37]name=ofd_packets/00166640 [10:08:37]NVStorageSaveData ofd_packets/00166640 [10:08:37]File name is /storage/ofd_packets/00166640 [10:08:37]Write 301 bytes [10:08:37]NVStorageSaveData done [10:08:37]OFDSenderStorePacket done [10:08:37]KKMCreateOFDPacket done [10:08:37]NVStorageSaveData kkm_last_timestamp [10:08:37]File name is /storage/kkm_last_timestamp [10:08:37]Write 4 bytes [10:08:37]NVStorageSaveData done [10:08:37]ExternCall_PrintAddStr [10:08:37]wPrintStart [10:08:37]Write to MH i2c: 01 00 00 53 2E 81 [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 07 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 07 00 53 2E 00 00 00 00 00 FF 0F 96 [10:08:37]RasterBufferAndPrint [10:08:37]line Счет N : (1)221222 [10:08:37]line ИНН: 02508201610067 [10:08:37]line Контрольно-Кассовый Чек [10:08:37]line ПРОДАЖА [10:08:37]line ТРК (МРК, ГНК) : 13 [10:08:37]line Товар: 2710124130 [10:08:37]line Аи-92-К-5 [10:08:37]line 7.480 * 66.90 [10:08:37]line = 500.41 [10:08:37]line НДС 12% НСП 1% [10:08:37]line > о реализуемом товаре [10:08:37]line ОКРУГЛЕНИЕ: -0.41 [10:08:37]line ИТОГО: 500.00 [10:08:37]line Внесено: 500.00 [10:08:37]line СДАЧА: 0.00 [10:08:37]line НСП 1% : 4.43 [10:08:37]line НДС 12% : 53.14 [10:08:37]line Наличными: 500.00 [10:08:37]line Безнал.: 0.00 [10:08:37]line Место: АЗС № 161 "Партнер Нефть" [10:08:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:08:37]line СНО: Общий режим [10:08:37]line Чек 55 23.10.2024 10:08 [10:08:37]line Смена: 537 ФФД: 1.0 [10:08:37]line ЗНМ: 0300000104 [10:08:37]line РНМ: 0000000000091764 [10:08:37]line Версия ККМ: 001 [10:08:37]line ФМ: 0000000000871759 [10:08:37]line ФД: 166640 [10:08:37]line ФПД: 278246041630301 [10:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166640&fm=278246041630301&tin=02508201610067®Number=0000000000091764&sum=50000 [10:08:37]OFD Sender: Processing packet 166640 [packets to send 48, broken 47] [10:08:37]ProducePacketName [10:08:37]name=ofd_packets/00166640 [10:08:37]OFD Sender: To server: pG, [10:08:37]CommunicateWithHost lk.salyk.kg:30040 [10:08:37]ConnectInit lk.salyk.kg [10:08:37]written 0, free lines is 4095 [10:08:37]Connected sock=10 [10:08:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 6E 07 01 B4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8A 02 00 35 04 06 00 FD 10 34 78 B6 5D A4 E6 64 EA D7 02 62 B4 [10:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 3D 47 00 72 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8A 02 00 F4 03 04 00 90 71 18 67 B6 04 01 00 00 30 A6 4A 1C C3 84 E1 49 [10:08:37]CommunicateWithHost err = 0 [10:08:37]CheckOFDResponse [10:08:37]1017 (14) - 77093643461234 [10:08:37]1041 (16) - 0000000000871759 [10:08:37]1040 (4) - 166640 [10:08:37]1012 (4) - 23.10.2024 03:46 [10:08:37]1206 (1) - 0 [10:08:37]OFD Sender: Remove packet 166640 [10:08:37]ProducePacketName [10:08:37]name=ofd_packets/00166640 [10:08:37]NVStorageDeleteData [10:08:38]Write to MH i2c: 01 00 00 7E 2E AC [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 7E 2E 00 00 00 00 00 9D 0C 5C [10:08:38]RasterBufferAndPrint [10:08:38]line [10:08:38]line [10:08:38]line [10:08:38]line [10:08:38]line [10:08:38]written 0, free lines is 3237 [10:08:38]MH_Cut [10:08:38]Write to MH i2c: D1 01 00 85 2E 01 85 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: D1 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: D1 01 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: D1 01 00 85 2E 00 84 [10:08:38]Write to MH i2c: 01 00 00 86 2E B4 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]OFD Sender: No OFD packet to send [10:08:38]*** Cut start [10:08:38]*** Partial cut [10:08:38]*** CUTSNS_PIN = 1 [10:08:38]*** CUTSNS_PIN = 0 [10:08:39]*** Brake cut motor [10:08:39]Read from MH i2c: 01 [10:08:39]MH_I2C_Read... [10:08:39]*** Stop cut motor [10:08:39]*** Cut end [10:08:39]Read from MH i2c: 01 07 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 07 00 86 2E 00 00 00 00 00 FF 0F C9 [10:08:39]process_action close_receipt done [10:08:39]requested_data is exist [10:08:39]produce_requested_data [10:08:39]requested_item fm.sn is exist - process it [10:08:39]wFMCommunicate request_size=4 [10:08:39]MH_SAM_APDU [10:08:39]CAPDU: 80 11 00 00 [10:08:39]Write to MH i2c: E2 08 00 87 2E 80 11 00 00 00 00 00 00 2F [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:39]Read from MH i2c: E2 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 17 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 17 00 87 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [10:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:08:39]wFMCommunicate OK [10:08:39]requested_item fd.num is exist - process it [10:08:39]SAM_PROTO_GetFieldsCounters [10:08:39]wFMCommunicate request_size=4 [10:08:39]MH_SAM_APDU [10:08:39]CAPDU: 80 13 00 00 [10:08:39]Write to MH i2c: E2 08 00 88 2E 80 13 00 00 00 00 00 00 32 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:39]Read from MH i2c: E2 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 62 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 62 00 88 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [10:08:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:39]wFMCommunicate OK [10:08:39]SAM_PROTO_GetFieldsCounters done [10:08:39]requested_item shift.num is exist - process it [10:08:39]requested_item shift.opened is exist - process it [10:08:39]req_shift_opened [10:08:39]FM_GetShiftState [10:08:39]SAM_PROTO_GetShiftState [10:08:39]wFMCommunicate request_size=4 [10:08:39]MH_SAM_APDU [10:08:39]CAPDU: 80 13 01 00 [10:08:39]Write to MH i2c: E2 08 00 89 2E 80 13 01 00 00 00 00 00 34 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:39]Read from MH i2c: E2 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 89 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FF [10:08:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:08:39]wFMCommunicate OK [10:08:39]SAM_PROTO_GetShiftState done [10:08:39]FM_GetShiftState done [10:08:39]req_shift_opened done [10:08:39]requested_item shift.open_date is exist - process it [10:08:39]req_shift_open_date [10:08:39]req_shift_open_date done [10:08:39]produce_requested_data done [10:08:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166640,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:08:39]process_action_free close_receipt [10:08:39]json_value_free [10:08:39]json_value_free done [10:08:39]process_json_proto returns [10:08:39]Send response to host [10:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166640,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:08:39]free response buf [10:08:39]execute_script done [10:08:39]execute_script returns [10:08:39]free content buf [10:08:39]Sock 9.Close socket [10:08:39]Sock 9.Thread stoped [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:50]accept exits with 7 [10:08:50]New connection [10:08:50]New thread 3067632996 created [10:08:50]Thread 3067489636 joined [10:08:50]Waiting for new connection... [10:08:50] Sock 7.Parse request [10:08:50]Sock 7.Check first char [10:08:50]Sock 7.First char is OK [10:08:50]request: POST /json_proto HTTP/1.0 [10:08:50]Method: POST [10:08:50]URL: /json_proto [10:08:50]Method is POST - this is cgi request [10:08:50]url: /json_proto [10:08:50]query_string will be loaded in cgi processing [10:08:50]execute_cgi json_proto POST (null) [10:08:50]execute_cgi path=json_proto method=POST [10:08:50]POST find Content-Length [10:08:50]Host: 172.17.53.195:8080 [10:08:50]Content-Length: 769 [10:08:50]Content-Type: application/json [10:08:50] [10:08:50]POST finish read [10:08:50]Found Content-Length = 769 [10:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:50]execute_script... [10:08: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)221223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:50]POST & json_proto [10:08:50]process_json_proto [10:08:50]json parsed OK: [10:08:50]protocol is kg_v1.0 [10:08:50]action value=close_receipt [10:08:50]process_action close_receipt [10:08:50]cmd_close_receipt [10:08:50]MH_GetDate [10:08:50]Write to MH i2c: F0 00 00 8A 2E A7 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 09 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 09 00 8A 2E 00 36 CB 18 67 21 48 4A 65 48 [10:08:50]GetLastDocTimeStamp 1729678120 [10:08:50]current date 1729678134 [10:08:50]FM_GetShiftState [10:08:50]SAM_PROTO_GetShiftState [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 13 01 00 [10:08:50]Write to MH i2c: E2 08 00 8B 2E 80 13 01 00 00 00 00 00 36 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 8B 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 01 [10:08:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetShiftState done [10:08:50]FM_GetShiftState done [10:08:50]opened in 1729643772 [10:08:50]opened+sec_in_day 1729730172 [10:08:50]quantity*price = 100015 [10:08:50]sum+1 = 100017 [10:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 56 23.10.2024 10:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166641 ФПД: 123778133444869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166641&fm=123778133444869&tin=02508201610067®Number=0000000000091764&sum=100016 [10:08:51]StoreToDocumentArchive [10:08:51]shift 537 fd 166641 [10:08:51]save to /storage/0537/doc_00166641 [10:08:51]save last doc name /storage/0537/doc_00166641 to /storage/kkm_last_doc_name [10:08:51]save OK [10:08:51]Clear old archive folders... [10:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:51]tlvbuf is B6F80720 [10:08:51]SAM_PROTO_ClearQueue [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 09 00 00 [10:08:51]Write to MH i2c: E2 08 00 98 2E 80 09 00 00 00 00 00 00 38 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 98 2E 00 90 00 3A [10:08:51]RAPDU: 90 00 [10:08:51]wFMCommunicate OK [10:08:51]SAM_PROTO_ClearQueue done [10:08:51]KKMCreateOFDPacket [10:08:51]OFDProtocolAddRootSTLVToBuf [10:08:51]FM_MakeSignedData [10:08:51]FM_MakeSignedData [10:08:51]SAM_PROTO_SignData [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 0D 01 02 [10:08:51]Write to MH i2c: E2 08 00 99 2E 80 0D 01 02 00 00 00 00 40 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [10:08:51]RAPDU: 90 00 [10:08:51]wFMCommunicate OK [10:08:51]wFMCommunicate request_size=255 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 36 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8A 02 00 35 04 06 00 70 [10:08:51]Write to MH i2c: E2 02 01 9A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 36 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8A 02 00 35 04 06 00 70 00 00 B0 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [10:08:51]RAPDU: 90 00 [10:08:51]wFMCommunicate OK [10:08:51]wFMCommunicate request_size=10 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 0D 02 02 05 93 57 AC C9 05 [10:08:51]Write to MH i2c: E2 0D 00 9B 2E 80 0D 02 02 05 00 93 57 AC C9 05 00 00 B1 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [10:08:51]RAPDU: 90 00 [10:08:51]wFMCommunicate OK [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 0D 03 02 [10:08:51]Write to MH i2c: E2 08 00 9C 2E 80 0D 03 02 00 00 00 00 45 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 0B 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 0B 00 9C 2E 00 31 07 77 4F FF 3D E0 E8 90 00 48 [10:08:51]RAPDU: 31 07 77 4F FF 3D E0 E8 90 00 [10:08:51]wFMCommunicate OK [10:08:51]SAM_PROTO_SignData done [10:08:51]FM_MakeSignedData done [10:08:51]CreateOFDProtocolMessage [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 11 00 00 [10:08:51]Write to MH i2c: E2 08 00 9D 2E 80 11 00 00 00 00 00 00 45 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 17 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 17 00 9D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [10:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:08:51]wFMCommunicate OK [10:08:51]CreateOFDProtocolMessage done [10:08:51]OFDSenderStorePacket 166641 [10:08:51]StoreOFDPacket docnum=166641 [10:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC BC 07 01 F1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 36 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8A 02 00 35 04 06 00 70 93 57 AC C9 05 31 07 77 4F FF 3D E0 E8 [10:08:51]CheckFolder [10:08:51]dirname=/storage/ofd_packets [10:08:51]CheckFolder done [10:08:51]ProducePacketName [10:08:51]name=ofd_packets/00166641 [10:08:51]NVStorageSaveData ofd_packets/00166641 [10:08:51]File name is /storage/ofd_packets/00166641 [10:08:51]Write 301 bytes [10:08:51]NVStorageSaveData done [10:08:51]OFDSenderStorePacket done [10:08:51]KKMCreateOFDPacket done [10:08:51]NVStorageSaveData kkm_last_timestamp [10:08:51]File name is /storage/kkm_last_timestamp [10:08:51]Write 4 bytes [10:08:51]NVStorageSaveData done [10:08:51]ExternCall_PrintAddStr [10:08:51]wPrintStart [10:08:51]Write to MH i2c: 01 00 00 9E 2E CC [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 07 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 07 00 9E 2E 00 00 00 00 00 FF 0F E1 [10:08:51]RasterBufferAndPrint [10:08:51]line Счет N : (1)221223 [10:08:51]line ИНН: 02508201610067 [10:08:51]line Контрольно-Кассовый Чек [10:08:51]line ПРОДАЖА [10:08:51]line ТРК (МРК, ГНК) : 23 [10:08:51]line Товар: 2710124130 [10:08:51]line Аи-92-К-5 [10:08:51]line 14.950 * 66.90 [10:08:51]line = 1000.16 [10:08:51]line НДС 12% НСП 1% [10:08:51]line > о реализуемом товаре [10:08:51]line ИТОГО: 1000.16 [10:08:51]line НСП 1% : 8.85 [10:08:51]line НДС 12% : 106.21 [10:08:51]line Наличными: 0.00 [10:08:51]line Безнал.: 1000.16 [10:08:51]line Место: АЗС № 161 "Партнер Нефть" [10:08:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:08:51]line СНО: Общий режим [10:08:51]line Чек 56 23.10.2024 10:08 [10:08:51]line Смена: 537 ФФД: 1.0 [10:08:51]line ЗНМ: 0300000104 [10:08:51]line РНМ: 0000000000091764 [10:08:51]line Версия ККМ: 001 [10:08:51]line Платежная система: Mbank [10:08:51]line ФМ: 0000000000871759 [10:08:51]line ФД: 166641 [10:08:51]line ФПД: 123778133444869 [10:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166641&fm=123778133444869&tin=02508201610067®Number=0000000000091764&sum=100016 [10:08:52]written 0, free lines is 4095 [10:08:52]OFD Sender: Processing packet 166641 [packets to send 48, broken 47] [10:08:52]ProducePacketName [10:08:52]name=ofd_packets/00166641 [10:08:52]OFD Sender: To server: pG, [10:08:52]CommunicateWithHost lk.salyk.kg:30040 [10:08:52]ConnectInit lk.salyk.kg [10:08:52]Connected sock=10 [10:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC BC 07 01 F1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 36 CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8A 02 00 35 04 06 00 70 93 57 AC C9 05 31 07 77 4F FF 3D E0 E8 [10:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C0 39 47 00 64 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8A 02 00 F4 03 04 00 9E 71 18 67 B6 04 01 00 00 A1 32 E0 FB 74 36 6C 62 [10:08:52]CommunicateWithHost err = 0 [10:08:52]CheckOFDResponse [10:08:52]1017 (14) - 77093643461234 [10:08:52]1041 (16) - 0000000000871759 [10:08:52]1040 (4) - 166641 [10:08:52]1012 (4) - 23.10.2024 03:46 [10:08:52]1206 (1) - 0 [10:08:52]OFD Sender: Remove packet 166641 [10:08:52]ProducePacketName [10:08:52]name=ofd_packets/00166641 [10:08:52]NVStorageDeleteData [10:08:52]Write to MH i2c: 01 00 00 C7 2E F5 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 07 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 CC 0C D4 [10:08:52]RasterBufferAndPrint [10:08:52]line [10:08:52]line [10:08:52]line [10:08:52]line [10:08:52]line [10:08:52]written 0, free lines is 3282 [10:08:52]MH_Cut [10:08:52]Write to MH i2c: D1 01 00 CE 2E 01 CE [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: D1 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: D1 01 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: D1 01 00 CE 2E 00 CD [10:08:52]Write to MH i2c: 01 00 00 CF 2E FD [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:53]OFD Sender: No OFD packet to send [10:08:53]*** Cut start [10:08:53]*** Partial cut [10:08:53]*** CUTSNS_PIN = 1 [10:08:53]*** CUTSNS_PIN = 0 [10:08:53]*** Brake cut motor [10:08:54]Read from MH i2c: 01 [10:08:54]MH_I2C_Read... [10:08:54]*** Stop cut motor [10:08:54]*** Cut end [10:08:54]Read from MH i2c: 01 07 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: 01 07 00 CF 2E 00 00 00 00 00 FF 0F 12 [10:08:54]process_action close_receipt done [10:08:54]requested_data is exist [10:08:54]produce_requested_data [10:08:54]requested_item fm.sn is exist - process it [10:08:54]wFMCommunicate request_size=4 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 11 00 00 [10:08:54]Write to MH i2c: E2 08 00 D0 2E 80 11 00 00 00 00 00 00 78 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:54]Read from MH i2c: E2 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 17 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 17 00 D0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [10:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:08:54]wFMCommunicate OK [10:08:54]requested_item fd.num is exist - process it [10:08:54]SAM_PROTO_GetFieldsCounters [10:08:54]wFMCommunicate request_size=4 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 13 00 00 [10:08:54]Write to MH i2c: E2 08 00 D1 2E 80 13 00 00 00 00 00 00 7B [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:54]Read from MH i2c: E2 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 62 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 62 00 D1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:54]wFMCommunicate OK [10:08:54]SAM_PROTO_GetFieldsCounters done [10:08:54]requested_item shift.num is exist - process it [10:08:54]requested_item shift.opened is exist - process it [10:08:54]req_shift_opened [10:08:54]FM_GetShiftState [10:08:54]SAM_PROTO_GetShiftState [10:08:54]wFMCommunicate request_size=4 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 13 01 00 [10:08:54]Write to MH i2c: E2 08 00 D2 2E 80 13 01 00 00 00 00 00 7D [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:54]Read from MH i2c: E2 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 0E 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 0E 00 D2 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 48 [10:08:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:08:54]wFMCommunicate OK [10:08:54]SAM_PROTO_GetShiftState done [10:08:54]FM_GetShiftState done [10:08:54]req_shift_opened done [10:08:54]requested_item shift.open_date is exist - process it [10:08:54]req_shift_open_date [10:08:54]req_shift_open_date done [10:08:54]produce_requested_data done [10:08:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166641,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:08:54]process_action_free close_receipt [10:08:54]json_value_free [10:08:54]json_value_free done [10:08:54]process_json_proto returns [10:08:54]Send response to host [10:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166641,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:08:54]free response buf [10:08:54]execute_script done [10:08:54]execute_script returns [10:08:54]free content buf [10:08:54]Sock 7.Close socket [10:08:54]Sock 7.Thread stoped [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:27]accept exits with 9 [10:09:27]New connection [10:09:27]New thread 3067489636 created [10:09:27]Thread 3067632996 joined [10:09:27]Waiting for new connection... [10:09:27] Sock 9.Parse request [10:09:27]Sock 9.Check first char [10:09:27]Sock 9.First char is OK [10:09:27]request: POST /json_proto HTTP/1.0 [10:09:27]Method: POST [10:09:27]URL: /json_proto [10:09:27]Method is POST - this is cgi request [10:09:27]url: /json_proto [10:09:27]query_string will be loaded in cgi processing [10:09:27]execute_cgi json_proto POST (null) [10:09:27]execute_cgi path=json_proto method=POST [10:09:27]POST find Content-Length [10:09:27]Host: 172.17.53.195:8080 [10:09:27]Content-Length: 677 [10:09:27]Content-Type: application/json [10:09:27] [10:09:27]POST finish read [10:09:27]Found Content-Length = 677 [10:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:27]execute_script... [10:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:27]POST & json_proto [10:09:27]process_json_proto [10:09:27]json parsed OK: [10:09:27]protocol is kg_v1.0 [10:09:27]action value=close_receipt [10:09:27]process_action close_receipt [10:09:27]cmd_close_receipt [10:09:27]MH_GetDate [10:09:27]Write to MH i2c: F0 00 00 D3 2E F0 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 D3 2E 00 5C CB 18 67 21 48 4A 65 B7 [10:09:27]GetLastDocTimeStamp 1729678134 [10:09:27]current date 1729678172 [10:09:27]FM_GetShiftState [10:09:27]SAM_PROTO_GetShiftState [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 01 00 [10:09:27]Write to MH i2c: E2 08 00 D4 2E 80 13 01 00 00 00 00 00 7F [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 D4 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4A [10:09:27]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetShiftState done [10:09:27]FM_GetShiftState done [10:09:27]opened in 1729643772 [10:09:27]opened+sec_in_day 1729730172 [10:09:27]quantity*price = 30038 [10:09:27]sum+1 = 30039 [10:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 57 23.10.2024 10:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166642 ФПД: 34372970339251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100932&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166642&fm=34372970339251&tin=02508201610067®Number=0000000000091764&sum=30000 [10:09:29]StoreToDocumentArchive [10:09:29]shift 537 fd 166642 [10:09:29]save to /storage/0537/doc_00166642 [10:09:29]save last doc name /storage/0537/doc_00166642 to /storage/kkm_last_doc_name [10:09:29]save OK [10:09:29]Clear old archive folders... [10:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:29]tlvbuf is 011FF250 [10:09:29]SAM_PROTO_ClearQueue [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 09 00 00 [10:09:29]Write to MH i2c: E2 08 00 E1 2E 80 09 00 00 00 00 00 00 81 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 E1 2E 00 90 00 83 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_ClearQueue done [10:09:29]KKMCreateOFDPacket [10:09:29]OFDProtocolAddRootSTLVToBuf [10:09:29]FM_MakeSignedData [10:09:29]FM_MakeSignedData [10:09:29]SAM_PROTO_SignData [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 01 02 [10:09:29]Write to MH i2c: E2 08 00 E2 2E 80 0D 01 02 00 00 00 00 89 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=255 [10:09:29]MH_SAM_APDU [10:09: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8A 02 00 35 04 06 00 1F [10:09:29]Write to MH i2c: E2 02 01 E3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8A 02 00 35 04 06 00 1F 00 00 AA [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 E3 2E 00 90 00 85 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=10 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 02 02 05 43 14 AF DB B3 [10:09:29]Write to MH i2c: E2 0D 00 E4 2E 80 0D 02 02 05 00 43 14 AF DB B3 00 00 2A [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 03 02 [10:09:29]Write to MH i2c: E2 08 00 E5 2E 80 0D 03 02 00 00 00 00 8E [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 E5 2E 00 F6 DE BF A5 8E 1A EE EF 90 00 4C [10:09:29]RAPDU: F6 DE BF A5 8E 1A EE EF 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_SignData done [10:09:29]FM_MakeSignedData done [10:09:29]CreateOFDProtocolMessage [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 E6 2E 80 11 00 00 00 00 00 00 8E [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 E6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [10:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:29]wFMCommunicate OK [10:09:29]CreateOFDProtocolMessage done [10:09:29]OFDSenderStorePacket 166642 [10:09:29]StoreOFDPacket docnum=166642 [10:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 39 07 01 25 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8A 02 00 35 04 06 00 1F 43 14 AF DB B3 F6 DE BF A5 8E 1A EE EF [10:09:29]CheckFolder [10:09:29]dirname=/storage/ofd_packets [10:09:29]CheckFolder done [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00166642 [10:09:29]NVStorageSaveData ofd_packets/00166642 [10:09:29]File name is /storage/ofd_packets/00166642 [10:09:29]Write 301 bytes [10:09:29]NVStorageSaveData done [10:09:29]OFDSenderStorePacket done [10:09:29]KKMCreateOFDPacket done [10:09:29]NVStorageSaveData kkm_last_timestamp [10:09:29]File name is /storage/kkm_last_timestamp [10:09:29]Write 4 bytes [10:09:29]NVStorageSaveData done [10:09:29]ExternCall_PrintAddStr [10:09:29]wPrintStart [10:09:29]Write to MH i2c: 01 00 00 E7 2E 15 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 FF 0F 2A [10:09:29]RasterBufferAndPrint [10:09:29]line Счет N : (1)221224 [10:09:29]line ИНН: 02508201610067 [10:09:29]line Контрольно-Кассовый Чек [10:09:29]line ПРОДАЖА [10:09:29]line ТРК (МРК, ГНК) : 33 [10:09:29]line Товар: 2710124130 [10:09:29]line Аи-92-К-5 [10:09:29]line 4.490 * 66.90 [10:09:29]line = 300.38 [10:09:29]line НДС 12% НСП 1% [10:09:29]line > о реализуемом товаре [10:09:29]line ОКРУГЛЕНИЕ: -0.38 [10:09:29]line ИТОГО: 300.00 [10:09:29]line Внесено: 300.00 [10:09:29]line СДАЧА: 0.00 [10:09:29]line НСП 1% : 2.66 [10:09:29]line НДС 12% : 31.90 [10:09:29]line Наличными: 300.00 [10:09:29]line Безнал.: 0.00 [10:09:29]line Место: АЗС № 161 "Партнер Нефть" [10:09:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:09:29]line СНО: Общий режим [10:09:29]line Чек 57 23.10.2024 10:09 [10:09:29]line Смена: 537 ФФД: 1.0 [10:09:29]line ЗНМ: 0300000104 [10:09:29]line РНМ: 0000000000091764 [10:09:29]line Версия ККМ: 001 [10:09:29]line ФМ: 0000000000871759 [10:09:29]line ФД: 166642 [10:09:29]line ФПД: 34372970339251 [10:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100932&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166642&fm=34372970339251&tin=02508201610067®Number=0000000000091764&sum=30000 [10:09:29]OFD Sender: Processing packet 166642 [packets to send 48, broken 47] [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00166642 [10:09:29]OFD Sender: To server: pG, [10:09:29]CommunicateWithHost lk.salyk.kg:30040 [10:09:29]ConnectInit lk.salyk.kg [10:09:29]written 0, free lines is 4095 [10:09:29]Connected sock=10 [10:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 39 07 01 25 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8A 02 00 35 04 06 00 1F 43 14 AF DB B3 F6 DE BF A5 8E 1A EE EF [10:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A8 C7 47 00 C2 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8A 02 00 F4 03 04 00 C4 71 18 67 B6 04 01 00 00 7F C3 1B 08 A1 E1 7B B5 [10:09:30]CommunicateWithHost err = 0 [10:09:30]CheckOFDResponse [10:09:30]1017 (14) - 77093643461234 [10:09:30]1041 (16) - 0000000000871759 [10:09:30]1040 (4) - 166642 [10:09:30]1012 (4) - 23.10.2024 03:47 [10:09:30]1206 (1) - 0 [10:09:30]OFD Sender: Remove packet 166642 [10:09:30]ProducePacketName [10:09:30]name=ofd_packets/00166642 [10:09:30]NVStorageDeleteData [10:09:30]Write to MH i2c: 01 00 00 12 2F 41 [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 12 2F 00 00 00 00 00 A4 0C F8 [10:09:30]RasterBufferAndPrint [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]written 0, free lines is 3242 [10:09:30]MH_Cut [10:09:30]Write to MH i2c: D1 01 00 19 2F 01 1A [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 19 2F 00 19 [10:09:30]Write to MH i2c: 01 00 00 1A 2F 49 [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]OFD Sender: No OFD packet to send [10:09:31]*** Cut start [10:09:31]*** Partial cut [10:09:31]*** CUTSNS_PIN = 1 [10:09:31]*** CUTSNS_PIN = 0 [10:09:31]*** Brake cut motor [10:09:31]Read from MH i2c: 01 [10:09:31]MH_I2C_Read... [10:09:31]*** Stop cut motor [10:09:31]*** Cut end [10:09:31]Read from MH i2c: 01 07 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: 01 07 00 1A 2F 00 00 00 00 00 FF 0F 5E [10:09:31]process_action close_receipt done [10:09:31]requested_data is exist [10:09:31]produce_requested_data [10:09:31]requested_item fm.sn is exist - process it [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 11 00 00 [10:09:31]Write to MH i2c: E2 08 00 1B 2F 80 11 00 00 00 00 00 00 C4 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 17 00 1B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [10:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:31]wFMCommunicate OK [10:09:31]requested_item fd.num is exist - process it [10:09:31]SAM_PROTO_GetFieldsCounters [10:09:31]wFMCommunicate request_size=4 [10:09:31]MH_SAM_APDU [10:09:31]CAPDU: 80 13 00 00 [10:09:31]Write to MH i2c: E2 08 00 1C 2F 80 13 00 00 00 00 00 00 C7 [10:09:31]Write i2c OK [10:09:31]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 1C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetFieldsCounters done [10:09:32]requested_item shift.num is exist - process it [10:09:32]requested_item shift.opened is exist - process it [10:09:32]req_shift_opened [10:09:32]FM_GetShiftState [10:09:32]SAM_PROTO_GetShiftState [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 13 01 00 [10:09:32]Write to MH i2c: E2 08 00 1D 2F 80 13 01 00 00 00 00 00 C9 [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 1D 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 94 [10:09:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetShiftState done [10:09:32]FM_GetShiftState done [10:09:32]req_shift_opened done [10:09:32]requested_item shift.open_date is exist - process it [10:09:32]req_shift_open_date [10:09:32]req_shift_open_date done [10:09:32]produce_requested_data done [10:09:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166642,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:09:32]process_action_free close_receipt [10:09:32]json_value_free [10:09:32]json_value_free done [10:09:32]process_json_proto returns [10:09:32]Send response to host [10:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166642,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:09:32]free response buf [10:09:32]execute_script done [10:09:32]execute_script returns [10:09:32]free content buf [10:09:32]Sock 9.Close socket [10:09:32]Sock 9.Thread stoped [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:09:59]accept exits with 7 [10:09:59]New connection [10:09:59]New thread 3067632996 created [10:09:59]Thread 3067489636 joined [10:09:59]Waiting for new connection... [10:09:59] Sock 7.Parse request [10:09:59]Sock 7.Check first char [10:09:59]Sock 7.First char is OK [10:09:59]request: POST /json_proto HTTP/1.0 [10:09:59]Method: POST [10:09:59]URL: /json_proto [10:09:59]Method is POST - this is cgi request [10:09:59]url: /json_proto [10:09:59]query_string will be loaded in cgi processing [10:09:59]execute_cgi json_proto POST (null) [10:09:59]execute_cgi path=json_proto method=POST [10:09:59]POST find Content-Length [10:09:59]Host: 172.17.53.195:8080 [10:09:59]Content-Length: 674 [10:09:59]Content-Type: application/json [10:09:59] [10:09:59]POST finish read [10:09:59]Found Content-Length = 674 [10:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]execute_script... [10:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]POST & json_proto [10:09:59]process_json_proto [10:09:59]json parsed OK: [10:09:59]protocol is kg_v1.0 [10:09:59]action value=close_receipt [10:09:59]process_action close_receipt [10:09:59]cmd_close_receipt [10:09:59]MH_GetDate [10:09:59]Write to MH i2c: F0 00 00 1E 2F 3C [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 1E 2F 00 7C CB 18 67 21 48 4A 65 23 [10:09:59]GetLastDocTimeStamp 1729678172 [10:09:59]current date 1729678204 [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 1F 2F 80 13 01 00 00 00 00 00 CB [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 1F 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 96 [10:10:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetShiftState done [10:10:00]FM_GetShiftState done [10:10:00]opened in 1729643772 [10:10:00]opened+sec_in_day 1729730172 [10:10:00]quantity*price = 49987 [10:10:00]sum+1 = 49988 [10:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 58 23.10.2024 10:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166643 ФПД: 88796659289155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166643&fm=88796659289155&tin=02508201610067®Number=0000000000091764&sum=49900 [10:10:01]StoreToDocumentArchive [10:10:01]shift 537 fd 166643 [10:10:01]save to /storage/0537/doc_00166643 [10:10:01]save last doc name /storage/0537/doc_00166643 to /storage/kkm_last_doc_name [10:10:01]save OK [10:10:01]Clear old archive folders... [10:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:01]tlvbuf is 012A2920 [10:10:01]SAM_PROTO_ClearQueue [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 09 00 00 [10:10:01]Write to MH i2c: E2 08 00 2C 2F 80 09 00 00 00 00 00 00 CD [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 2C 2F 00 90 00 CF [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]SAM_PROTO_ClearQueue done [10:10:01]KKMCreateOFDPacket [10:10:01]OFDProtocolAddRootSTLVToBuf [10:10:01]FM_MakeSignedData [10:10:01]FM_MakeSignedData [10:10:01]SAM_PROTO_SignData [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 0D 01 02 [10:10:01]Write to MH i2c: E2 08 00 2D 2F 80 0D 01 02 00 00 00 00 D5 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 2D 2F 00 90 00 D0 [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]wFMCommunicate request_size=255 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8A 02 00 35 04 06 00 50 C2 95 55 [10:10:01]Write to MH i2c: E2 02 01 2E 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8A 02 00 35 04 06 00 50 C2 95 55 00 00 56 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 2E 2F 00 90 00 D1 [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]wFMCommunicate request_size=7 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 0D 02 02 02 8C 43 [10:10:01]Write to MH i2c: E2 0A 00 2F 2F 80 0D 02 02 02 00 8C 43 00 00 AB [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 0D 03 02 [10:10:01]Write to MH i2c: E2 08 00 30 2F 80 0D 03 02 00 00 00 00 DA [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0B 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0B 00 30 2F 00 B4 EB 9D 71 EA B2 68 07 90 00 93 [10:10:01]RAPDU: B4 EB 9D 71 EA B2 68 07 90 00 [10:10:01]wFMCommunicate OK [10:10:01]SAM_PROTO_SignData done [10:10:01]FM_MakeSignedData done [10:10:01]CreateOFDProtocolMessage [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 11 00 00 [10:10:01]Write to MH i2c: E2 08 00 31 2F 80 11 00 00 00 00 00 00 DA [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 17 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 17 00 31 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [10:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:10:01]wFMCommunicate OK [10:10:01]CreateOFDProtocolMessage done [10:10:01]OFDSenderStorePacket 166643 [10:10:01]StoreOFDPacket docnum=166643 [10:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 61 D3 04 01 77 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8A 02 00 35 04 06 00 50 C2 95 55 8C 43 B4 EB 9D 71 EA B2 68 07 [10:10:01]CheckFolder [10:10:01]dirname=/storage/ofd_packets [10:10:01]CheckFolder done [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00166643 [10:10:01]NVStorageSaveData ofd_packets/00166643 [10:10:01]File name is /storage/ofd_packets/00166643 [10:10:01]Write 298 bytes [10:10:01]NVStorageSaveData done [10:10:01]OFDSenderStorePacket done [10:10:01]KKMCreateOFDPacket done [10:10:01]NVStorageSaveData kkm_last_timestamp [10:10:01]File name is /storage/kkm_last_timestamp [10:10:01]Write 4 bytes [10:10:01]NVStorageSaveData done [10:10:01]ExternCall_PrintAddStr [10:10:01]wPrintStart [10:10:01]Write to MH i2c: 01 00 00 32 2F 61 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 FF 0F 76 [10:10:01]RasterBufferAndPrint [10:10:01]line Счет N : (1)221225 [10:10:01]line ИНН: 02508201610067 [10:10:01]line Контрольно-Кассовый Чек [10:10:01]line ПРОДАЖА [10:10:01]line ТРК (МРК, ГНК) : 41 [10:10:01]line Товар: 2710194210 [10:10:01]line ДТ-К-5 [10:10:01]line 6.560 * 76.20 [10:10:01]line = 499.87 [10:10:01]line НДС 12% НСП 1% [10:10:01]line > о реализуемом товаре [10:10:01]line ОКРУГЛЕНИЕ: -0.87 [10:10:01]line ИТОГО: 499.00 [10:10:01]line Внесено: 500.00 [10:10:01]line СДАЧА: 1.00 [10:10:01]line НСП 1% : 4.42 [10:10:01]line НДС 12% : 53.08 [10:10:01]line Наличными: 499.00 [10:10:01]line Безнал.: 0.00 [10:10:01]line Место: АЗС № 161 "Партнер Нефть" [10:10:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:10:01]line СНО: Общий режим [10:10:01]line Чек 58 23.10.2024 10:10 [10:10:01]line Смена: 537 ФФД: 1.0 [10:10:01]line ЗНМ: 0300000104 [10:10:01]line РНМ: 0000000000091764 [10:10:01]line Версия ККМ: 001 [10:10:01]line ФМ: 0000000000871759 [10:10:01]line ФД: 166643 [10:10:01]line ФПД: 88796659289155 [10:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166643&fm=88796659289155&tin=02508201610067®Number=0000000000091764&sum=49900 [10:10:02]OFD Sender: Processing packet 166643 [packets to send 48, broken 47] [10:10:02]ProducePacketName [10:10:02]name=ofd_packets/00166643 [10:10:02]OFD Sender: To server: pG, [10:10:02]CommunicateWithHost lk.salyk.kg:30040 [10:10:02]ConnectInit lk.salyk.kg [10:10:02]written 0, free lines is 4095 [10:10:02]Connected sock=9 [10:10:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 61 D3 04 01 77 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C CB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8A 02 00 35 04 06 00 50 C2 95 55 8C 43 B4 EB 9D 71 EA B2 68 07 [10:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3D 4C 47 00 53 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8A 02 00 F4 03 04 00 E4 71 18 67 B6 04 01 00 00 B1 CF 07 CC 97 2C 64 33 [10:10:02]CommunicateWithHost err = 0 [10:10:02]CheckOFDResponse [10:10:02]1017 (14) - 77093643461234 [10:10:02]1041 (16) - 0000000000871759 [10:10:02]1040 (4) - 166643 [10:10:02]1012 (4) - 23.10.2024 03:47 [10:10:02]1206 (1) - 0 [10:10:02]OFD Sender: Remove packet 166643 [10:10:02]ProducePacketName [10:10:02]name=ofd_packets/00166643 [10:10:02]NVStorageDeleteData [10:10:02]Write to MH i2c: 01 00 00 5D 2F 8C [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 5D 2F 00 00 00 00 00 AF 0C 4E [10:10:02]RasterBufferAndPrint [10:10:02]line [10:10:02]line [10:10:02]line [10:10:02]line [10:10:02]line [10:10:02]written 0, free lines is 3253 [10:10:02]MH_Cut [10:10:02]Write to MH i2c: D1 01 00 64 2F 01 65 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: D1 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: D1 01 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: D1 01 00 64 2F 00 64 [10:10:02]Write to MH i2c: 01 00 00 65 2F 94 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]OFD Sender: No OFD packet to send [10:10:03]*** Cut start [10:10:03]*** Partial cut [10:10:03]*** CUTSNS_PIN = 1 [10:10:03]*** CUTSNS_PIN = 0 [10:10:03]*** Brake cut motor [10:10:03]Read from MH i2c: 01 [10:10:03]MH_I2C_Read... [10:10:03]*** Stop cut motor [10:10:03]*** Cut end [10:10:03]Read from MH i2c: 01 07 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 65 2F 00 00 00 00 00 FF 0F A9 [10:10:03]process_action close_receipt done [10:10:03]requested_data is exist [10:10:03]produce_requested_data [10:10:03]requested_item fm.sn is exist - process it [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 11 00 00 [10:10:03]Write to MH i2c: E2 08 00 66 2F 80 11 00 00 00 00 00 00 0F [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 66 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [10:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:10:03]wFMCommunicate OK [10:10:03]requested_item fd.num is exist - process it [10:10:03]SAM_PROTO_GetFieldsCounters [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 13 00 00 [10:10:03]Write to MH i2c: E2 08 00 67 2F 80 13 00 00 00 00 00 00 12 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 62 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 62 00 67 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [10:10:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:04]wFMCommunicate OK [10:10:04]SAM_PROTO_GetFieldsCounters done [10:10:04]requested_item shift.num is exist - process it [10:10:04]requested_item shift.opened is exist - process it [10:10:04]req_shift_opened [10:10:04]FM_GetShiftState [10:10:04]SAM_PROTO_GetShiftState [10:10:04]wFMCommunicate request_size=4 [10:10:04]MH_SAM_APDU [10:10:04]CAPDU: 80 13 01 00 [10:10:04]Write to MH i2c: E2 08 00 68 2F 80 13 01 00 00 00 00 00 14 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 68 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DF [10:10:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:10:04]wFMCommunicate OK [10:10:04]SAM_PROTO_GetShiftState done [10:10:04]FM_GetShiftState done [10:10:04]req_shift_opened done [10:10:04]requested_item shift.open_date is exist - process it [10:10:04]req_shift_open_date [10:10:04]req_shift_open_date done [10:10:04]produce_requested_data done [10:10:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166643,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:10:04]process_action_free close_receipt [10:10:04]json_value_free [10:10:04]json_value_free done [10:10:04]process_json_proto returns [10:10:04]Send response to host [10:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166643,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:10:04]free response buf [10:10:04]execute_script done [10:10:04]execute_script returns [10:10:04]free content buf [10:10:04]Sock 7.Close socket [10:10:04]Sock 7.Thread stoped [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:29]accept exits with 10 [10:13:29]New connection [10:13:29]New thread 3067489636 created [10:13:29]Thread 3067632996 joined [10:13:29]Waiting for new connection... [10:13:29] Sock 10.Parse request [10:13:29]Sock 10.Check first char [10:13:29]Sock 10.First char is OK [10:13:29]request: POST /json_proto HTTP/1.0 [10:13:29]Method: POST [10:13:29]URL: /json_proto [10:13:29]Method is POST - this is cgi request [10:13:29]url: /json_proto [10:13:29]query_string will be loaded in cgi processing [10:13:29]execute_cgi json_proto POST (null) [10:13:29]execute_cgi path=json_proto method=POST [10:13:29]POST find Content-Length [10:13:29]Host: 172.17.53.195:8080 [10:13:29]Content-Length: 677 [10:13:29]Content-Type: application/json [10:13:29] [10:13:29]POST finish read [10:13:29]Found Content-Length = 677 [10:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]execute_script... [10:13:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]POST & json_proto [10:13:29]process_json_proto [10:13:29]json parsed OK: [10:13:29]protocol is kg_v1.0 [10:13:29]action value=close_receipt [10:13:29]process_action close_receipt [10:13:29]cmd_close_receipt [10:13:29]MH_GetDate [10:13:29]Write to MH i2c: F0 00 00 69 2F 87 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 69 2F 00 4D CC 18 67 21 48 4A 65 40 [10:13:29]GetLastDocTimeStamp 1729678204 [10:13:29]current date 1729678413 [10:13:29]FM_GetShiftState [10:13:29]SAM_PROTO_GetShiftState [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 13 01 00 [10:13:29]Write to MH i2c: E2 08 00 6A 2F 80 13 01 00 00 00 00 00 16 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 6A 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E1 [10:13:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:13:29]wFMCommunicate OK [10:13:29]SAM_PROTO_GetShiftState done [10:13:29]FM_GetShiftState done [10:13:29]opened in 1729643772 [10:13:29]opened+sec_in_day 1729730172 [10:13:29]quantity*price = 35055 [10:13:29]sum+1 = 35057 [10:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 59 23.10.2024 10:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166644 ФПД: 190038090626135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166644&fm=190038090626135&tin=02508201610067®Number=0000000000091764&sum=35000 [10:13:30]StoreToDocumentArchive [10:13:30]shift 537 fd 166644 [10:13:30]save to /storage/0537/doc_00166644 [10:13:30]save last doc name /storage/0537/doc_00166644 to /storage/kkm_last_doc_name [10:13:30]save OK [10:13:30]Clear old archive folders... [10:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:30]tlvbuf is 012BCEA0 [10:13:30]SAM_PROTO_ClearQueue [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 09 00 00 [10:13:30]Write to MH i2c: E2 08 00 77 2F 80 09 00 00 00 00 00 00 18 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 77 2F 00 90 00 1A [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_ClearQueue done [10:13:30]KKMCreateOFDPacket [10:13:30]OFDProtocolAddRootSTLVToBuf [10:13:30]FM_MakeSignedData [10:13:30]FM_MakeSignedData [10:13:30]SAM_PROTO_SignData [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 01 02 [10:13:30]Write to MH i2c: E2 08 00 78 2F 80 0D 01 02 00 00 00 00 20 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 78 2F 00 90 00 1B [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=255 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4D CC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8A 02 00 35 04 06 00 AC [10:13:30]Write to MH i2c: E2 02 01 79 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4D CC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8A 02 00 35 04 06 00 AC 00 00 DB [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=10 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 02 02 05 D6 B0 E2 B4 57 [10:13:30]Write to MH i2c: E2 0D 00 7A 2F 80 0D 02 02 05 00 D6 B0 E2 B4 57 00 00 A0 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 03 02 [10:13:30]Write to MH i2c: E2 08 00 7B 2F 80 0D 03 02 00 00 00 00 25 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0B 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0B 00 7B 2F 00 9F F5 06 DA 42 FE CF 68 90 00 11 [10:13:30]RAPDU: 9F F5 06 DA 42 FE CF 68 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_SignData done [10:13:30]FM_MakeSignedData done [10:13:30]CreateOFDProtocolMessage [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 11 00 00 [10:13:30]Write to MH i2c: E2 08 00 7C 2F 80 11 00 00 00 00 00 00 25 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 7C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [10:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:13:31]wFMCommunicate OK [10:13:31]CreateOFDProtocolMessage done [10:13:31]OFDSenderStorePacket 166644 [10:13:31]StoreOFDPacket docnum=166644 [10:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 DC 07 01 B0 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4D CC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8A 02 00 35 04 06 00 AC D6 B0 E2 B4 57 9F F5 06 DA 42 FE CF 68 [10:13:31]CheckFolder [10:13:31]dirname=/storage/ofd_packets [10:13:31]CheckFolder done [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00166644 [10:13:31]NVStorageSaveData ofd_packets/00166644 [10:13:31]File name is /storage/ofd_packets/00166644 [10:13:31]Write 301 bytes [10:13:31]NVStorageSaveData done [10:13:31]OFDSenderStorePacket done [10:13:31]KKMCreateOFDPacket done [10:13:31]NVStorageSaveData kkm_last_timestamp [10:13:31]File name is /storage/kkm_last_timestamp [10:13:31]Write 4 bytes [10:13:31]NVStorageSaveData done [10:13:31]ExternCall_PrintAddStr [10:13:31]wPrintStart [10:13:31]Write to MH i2c: 01 00 00 7D 2F AC [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 FF 0F C1 [10:13:31]RasterBufferAndPrint [10:13:31]line Счет N : (1)221226 [10:13:31]line ИНН: 02508201610067 [10:13:31]line Контрольно-Кассовый Чек [10:13:31]line ПРОДАЖА [10:13:31]line ТРК (МРК, ГНК) : 23 [10:13:31]line Товар: 2710124130 [10:13:31]line Аи-92-К-5 [10:13:31]line 5.240 * 66.90 [10:13:31]line = 350.56 [10:13:31]line НДС 12% НСП 1% [10:13:31]line > о реализуемом товаре [10:13:31]line ОКРУГЛЕНИЕ: -0.56 [10:13:31]line ИТОГО: 350.00 [10:13:31]line Внесено: 350.00 [10:13:31]line СДАЧА: 0.00 [10:13:31]line НСП 1% : 3.10 [10:13:31]line НДС 12% : 37.23 [10:13:31]line Наличными: 350.00 [10:13:31]line Безнал.: 0.00 [10:13:31]line Место: АЗС № 161 "Партнер Нефть" [10:13:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:13:31]line СНО: Общий режим [10:13:31]line Чек 59 23.10.2024 10:13 [10:13:31]line Смена: 537 ФФД: 1.0 [10:13:31]line ЗНМ: 0300000104 [10:13:31]line РНМ: 0000000000091764 [10:13:31]line Версия ККМ: 001 [10:13:31]line ФМ: 0000000000871759 [10:13:31]line ФД: 166644 [10:13:31]line ФПД: 190038090626135 [10:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166644&fm=190038090626135&tin=02508201610067®Number=0000000000091764&sum=35000 [10:13:31]OFD Sender: Processing packet 166644 [packets to send 48, broken 47] [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00166644 [10:13:31]OFD Sender: To server: pG, [10:13:31]CommunicateWithHost lk.salyk.kg:30040 [10:13:31]ConnectInit lk.salyk.kg [10:13:31]written 0, free lines is 4095 [10:13:31]Connected sock=9 [10:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 DC 07 01 B0 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 4D CC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8A 02 00 35 04 06 00 AC D6 B0 E2 B4 57 9F F5 06 DA 42 FE CF 68 [10:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B 50 47 00 76 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8A 02 00 F4 03 04 00 B5 72 18 67 B6 04 01 00 00 BC 1F FE 0D 92 07 2C 3B [10:13:31]CommunicateWithHost err = 0 [10:13:31]CheckOFDResponse [10:13:31]1017 (14) - 77093643461234 [10:13:31]1041 (16) - 0000000000871759 [10:13:31]1040 (4) - 166644 [10:13:31]1012 (4) - 23.10.2024 03:51 [10:13:31]1206 (1) - 0 [10:13:31]OFD Sender: Remove packet 166644 [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00166644 [10:13:31]NVStorageDeleteData [10:13:31]Write to MH i2c: 01 00 00 A8 2F D7 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 A8 2F 00 00 00 00 00 A2 0C 8C [10:13:31]RasterBufferAndPrint [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]written 0, free lines is 3240 [10:13:31]MH_Cut [10:13:31]Write to MH i2c: D1 01 00 AF 2F 01 B0 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 01 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 01 00 AF 2F 00 AF [10:13:31]Write to MH i2c: 01 00 00 B0 2F DF [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:32]OFD Sender: No OFD packet to send [10:13:32]*** Cut start [10:13:32]*** Partial cut [10:13:32]*** CUTSNS_PIN = 1 [10:13:32]*** CUTSNS_PIN = 0 [10:13:32]*** Brake cut motor [10:13:33]Read from MH i2c: 01 [10:13:33]MH_I2C_Read... [10:13:33]*** Stop cut motor [10:13:33]*** Cut end [10:13:33]Read from MH i2c: 01 07 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 B0 2F 00 00 00 00 00 FF 0F F4 [10:13:33]process_action close_receipt done [10:13:33]requested_data is exist [10:13:33]produce_requested_data [10:13:33]requested_item fm.sn is exist - process it [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 11 00 00 [10:13:33]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [10:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:13:33]wFMCommunicate OK [10:13:33]requested_item fd.num is exist - process it [10:13:33]SAM_PROTO_GetFieldsCounters [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 00 00 [10:13:33]Write to MH i2c: E2 08 00 B2 2F 80 13 00 00 00 00 00 00 5D [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 62 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 62 00 B2 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [10:13:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_GetFieldsCounters done [10:13:33]requested_item shift.num is exist - process it [10:13:33]requested_item shift.opened is exist - process it [10:13:33]req_shift_opened [10:13:33]FM_GetShiftState [10:13:33]SAM_PROTO_GetShiftState [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 01 00 [10:13:33]Write to MH i2c: E2 08 00 B3 2F 80 13 01 00 00 00 00 00 5F [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0E 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0E 00 B3 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2A [10:13:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_GetShiftState done [10:13:33]FM_GetShiftState done [10:13:33]req_shift_opened done [10:13:33]requested_item shift.open_date is exist - process it [10:13:33]req_shift_open_date [10:13:33]req_shift_open_date done [10:13:33]produce_requested_data done [10:13:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166644,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:13:33]process_action_free close_receipt [10:13:33]json_value_free [10:13:33]json_value_free done [10:13:33]process_json_proto returns [10:13:33]Send response to host [10:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166644,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:13:33]free response buf [10:13:33]execute_script done [10:13:33]execute_script returns [10:13:33]free content buf [10:13:33]Sock 10.Close socket [10:13:33]Sock 10.Thread stoped [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:20]accept exits with 7 [10:18:20]New connection [10:18:20]New thread 3067632996 created [10:18:20]Thread 3067489636 joined [10:18:20]Waiting for new connection... [10:18:20] Sock 7.Parse request [10:18:20]Sock 7.Check first char [10:18:20]Sock 7.First char is OK [10:18:20]request: POST /json_proto HTTP/1.0 [10:18:20]Method: POST [10:18:20]URL: /json_proto [10:18:20]Method is POST - this is cgi request [10:18:20]url: /json_proto [10:18:20]query_string will be loaded in cgi processing [10:18:20]execute_cgi json_proto POST (null) [10:18:20]execute_cgi path=json_proto method=POST [10:18:20]POST find Content-Length [10:18:20]Host: 172.17.53.195:8080 [10:18:20]Content-Length: 674 [10:18:20]Content-Type: application/json [10:18:20] [10:18:20]POST finish read [10:18:20]Found Content-Length = 674 [10:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:20]execute_script... [10:18: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)221227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:20]POST & json_proto [10:18:20]process_json_proto [10:18:20]json parsed OK: [10:18:20]protocol is kg_v1.0 [10:18:20]action value=close_receipt [10:18:20]process_action close_receipt [10:18:20]cmd_close_receipt [10:18:20]MH_GetDate [10:18:20]Write to MH i2c: F0 00 00 B4 2F D2 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 B4 2F 00 71 CD 18 67 21 48 4A 65 B0 [10:18:20]GetLastDocTimeStamp 1729678413 [10:18:20]current date 1729678705 [10:18:20]FM_GetShiftState [10:18:20]SAM_PROTO_GetShiftState [10:18:20]wFMCommunicate request_size=4 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 13 01 00 [10:18:20]Write to MH i2c: E2 08 00 B5 2F 80 13 01 00 00 00 00 00 61 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0E 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0E 00 B5 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2C [10:18:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_GetShiftState done [10:18:21]FM_GetShiftState done [10:18:21]opened in 1729643772 [10:18:21]opened+sec_in_day 1729730172 [10:18:21]quantity*price = 70027 [10:18:21]sum+1 = 70029 [10:18:21]Check (price>sum+1) || (price+1 о реализуемом товаре [10:20:05]line ОКРУГЛЕНИЕ: -0.28 [10:20:05]line ИТОГО: 700.00 [10:20:05]line Внесено: 700.00 [10:20:05]line СДАЧА: 0.00 [10:20:05]line НСП 1% : 6.20 [10:20:05]line НДС 12% : 74.37 [10:20:05]line Наличными: 700.00 [10:20:05]line Безнал.: 0.00 [10:20:05]line Место: АЗС № 161 "Партнер Нефть" [10:20:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:20:05]line СНО: Общий режим [10:20:05]line Чек 60 23.10.2024 10:18 [10:20:05]line Смена: 537 ФФД: 1.0 [10:20:05]line ЗНМ: 0300000104 [10:20:05]line РНМ: 0000000000091764 [10:20:05]line Версия ККМ: 001 [10:20:05]line ФМ: 0000000000871759 [10:20:05]line ФД: 166645 [10:20:05]line ФПД: 139414573875326 [10:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166645&fm=139414573875326&tin=02508201610067®Number=0000000000091764&sum=70000 [10:20:05]written 0, free lines is 4095 [10:20:06]Write to MH i2c: 01 00 00 48 00 48 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 B0 0C 0B [10:20:06]RasterBufferAndPrint [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]written 0, free lines is 3262 [10:20:06]MH_Cut [10:20:06]Write to MH i2c: D1 01 00 4F 00 01 21 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 01 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 01 00 4F 00 00 20 [10:20:06]Write to MH i2c: 01 00 00 50 00 50 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:07]*** Cut start [10:20:07]*** Partial cut [10:20:07]*** CUTSNS_PIN = 1 [10:20:07]*** CUTSNS_PIN = 0 [10:20:07]*** Brake cut motor [10:20:07]OFD Sender: No OFD packet to send [10:20:07]Read from MH i2c: 01 [10:20:07]MH_I2C_Read... [10:20:07]*** Stop cut motor [10:20:07]*** Cut end [10:20:07]Read from MH i2c: 01 07 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [10:20:07]process_action print_doc done [10:20:07]requested_data is exist [10:20:07]produce_requested_data [10:20:07]produce_requested_data return (null) [10:20:07]process_action_free print_doc [10:20:07]json_value_free [10:20:07]json_value_free done [10:20:07]process_json_proto returns [10:20:07]Send response to host [10:20:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:20:07]free response buf [10:20:07]execute_script done [10:20:07]execute_script returns [10:20:07]free content buf [10:20:07]Sock 9.Close socket [10:20:07]Sock 9.Thread stoped [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:32]accept exits with 8 [10:20:32]New connection [10:20:32]New thread 3067034980 created [10:20:32]Thread 3067178340 joined [10:20:32]Waiting for new connection... [10:20:32] Sock 8.Parse request [10:20:32]Sock 8.Check first char [10:20:32]Sock 8.First char is OK [10:20:32]request: POST /json_proto HTTP/1.0 [10:20:32]Method: POST [10:20:32]URL: /json_proto [10:20:32]Method is POST - this is cgi request [10:20:32]url: /json_proto [10:20:32]query_string will be loaded in cgi processing [10:20:32]execute_cgi json_proto POST (null) [10:20:32]execute_cgi path=json_proto method=POST [10:20:32]POST find Content-Length [10:20:32]Host: 172.17.53.195:8080 [10:20:32]Content-Length: 674 [10:20:32]Content-Type: application/json [10:20:32] [10:20:32]POST finish read [10:20:32]Found Content-Length = 674 [10:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:32]execute_script... [10:20: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)221228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:32]POST & json_proto [10:20:32]process_json_proto [10:20:32]json parsed OK: [10:20:32]protocol is kg_v1.0 [10:20:32]action value=close_receipt [10:20:32]process_action close_receipt [10:20:32]cmd_close_receipt [10:20:32]MH_GetDate [10:20:32]Write to MH i2c: F0 00 00 51 00 40 [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: F0 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: F0 09 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: F0 09 00 51 00 00 F1 CD 18 67 21 48 4A 65 9E [10:20:32]GetLastDocTimeStamp 1729678705 [10:20:32]current date 1729678833 [10:20:32]FM_GetShiftState [10:20:32]SAM_PROTO_GetShiftState [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 13 01 00 [10:20:32]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 0E 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9A [10:20:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:20:32]wFMCommunicate OK [10:20:32]SAM_PROTO_GetShiftState done [10:20:32]FM_GetShiftState done [10:20:32]opened in 1729643772 [10:20:32]opened+sec_in_day 1729730172 [10:20:32]quantity*price = 70027 [10:20:32]sum+1 = 70029 [10:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 61 23.10.2024 10:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166646 ФПД: 92546270689942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166646&fm=92546270689942&tin=02508201610067®Number=0000000000091764&sum=70000 [10:20:34]StoreToDocumentArchive [10:20:34]shift 537 fd 166646 [10:20:34]save to /storage/0537/doc_00166646 [10:20:34]save last doc name /storage/0537/doc_00166646 to /storage/kkm_last_doc_name [10:20:34]save OK [10:20:34]Clear old archive folders... [10:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:20:34]tlvbuf is 01FB1F90 [10:20:34]SAM_PROTO_ClearQueue [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 09 00 00 [10:20:34]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]SAM_PROTO_ClearQueue done [10:20:34]KKMCreateOFDPacket [10:20:34]OFDProtocolAddRootSTLVToBuf [10:20:34]FM_MakeSignedData [10:20:34]FM_MakeSignedData [10:20:34]SAM_PROTO_SignData [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 01 02 [10:20:34]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=255 [10:20:34]MH_SAM_APDU [10:20: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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F1 CD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8A 02 00 35 04 06 00 54 2B 9B 96 [10:20:34]Write to MH i2c: E2 02 01 61 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F1 CD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8A 02 00 35 04 06 00 54 2B 9B 96 00 00 28 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=7 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 02 02 02 FA 96 [10:20:34]Write to MH i2c: E2 0A 00 62 00 80 0D 02 02 02 00 FA 96 00 00 70 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 03 02 [10:20:34]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0B 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0B 00 63 00 00 0C 24 BB 59 90 11 11 C4 90 00 99 [10:20:34]RAPDU: 0C 24 BB 59 90 11 11 C4 90 00 [10:20:34]wFMCommunicate OK [10:20:34]SAM_PROTO_SignData done [10:20:34]FM_MakeSignedData done [10:20:34]CreateOFDProtocolMessage [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 11 00 00 [10:20:34]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 17 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [10:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:20:34]wFMCommunicate OK [10:20:34]CreateOFDProtocolMessage done [10:20:34]OFDSenderStorePacket 166646 [10:20:34]StoreOFDPacket docnum=166646 [10:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9E 85 04 01 2B 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F1 CD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8A 02 00 35 04 06 00 54 2B 9B 96 FA 96 0C 24 BB 59 90 11 11 C4 [10:20:34]CheckFolder [10:20:34]dirname=/storage/ofd_packets [10:20:34]CheckFolder done [10:20:34]ProducePacketName [10:20:34]name=ofd_packets/00166646 [10:20:34]NVStorageSaveData ofd_packets/00166646 [10:20:34]File name is /storage/ofd_packets/00166646 [10:20:34]Write 298 bytes [10:20:34]NVStorageSaveData done [10:20:34]OFDSenderStorePacket done [10:20:34]KKMCreateOFDPacket done [10:20:34]NVStorageSaveData kkm_last_timestamp [10:20:34]File name is /storage/kkm_last_timestamp [10:20:34]Write 4 bytes [10:20:34]NVStorageSaveData done [10:20:34]ExternCall_PrintAddStr [10:20:34]wPrintStart [10:20:34]Write to MH i2c: 01 00 00 65 00 65 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [10:20:34]RasterBufferAndPrint [10:20:34]line Счет N : (1)221228 [10:20:34]line ИНН: 02508201610067 [10:20:34]line Контрольно-Кассовый Чек [10:20:34]line ПРОДАЖА [10:20:34]line ТРК (МРК, ГНК) : 31 [10:20:34]line Товар: 2710194210 [10:20:34]line ДТ-К-5 [10:20:34]line 9.190 * 76.20 [10:20:34]line = 700.28 [10:20:34]line НДС 12% НСП 1% [10:20:34]line > о реализуемом товаре [10:20:34]line ОКРУГЛЕНИЕ: -0.28 [10:20:34]line ИТОГО: 700.00 [10:20:34]line Внесено: 700.00 [10:20:34]line СДАЧА: 0.00 [10:20:34]line НСП 1% : 6.20 [10:20:34]line НДС 12% : 74.37 [10:20:34]line Наличными: 700.00 [10:20:34]line Безнал.: 0.00 [10:20:34]line Место: АЗС № 161 "Партнер Нефть" [10:20:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:20:34]line СНО: Общий режим [10:20:34]line Чек 61 23.10.2024 10:20 [10:20:34]line Смена: 537 ФФД: 1.0 [10:20:34]line ЗНМ: 0300000104 [10:20:34]line РНМ: 0000000000091764 [10:20:34]line Версия ККМ: 001 [10:20:34]line ФМ: 0000000000871759 [10:20:34]line ФД: 166646 [10:20:34]line ФПД: 92546270689942 [10:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166646&fm=92546270689942&tin=02508201610067®Number=0000000000091764&sum=70000 [10:20:34]OFD Sender: Processing packet 166646 [packets to send 48, broken 47] [10:20:34]ProducePacketName [10:20:34]name=ofd_packets/00166646 [10:20:34]OFD Sender: To server: pG, [10:20:34]CommunicateWithHost lk.salyk.kg:30040 [10:20:34]ConnectInit lk.salyk.kg [10:20:34]written 0, free lines is 4095 [10:20:35]Connected sock=10 [10:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9E 85 04 01 2B 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F1 CD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8A 02 00 35 04 06 00 54 2B 9B 96 FA 96 0C 24 BB 59 90 11 11 C4 [10:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 68 9B 47 00 73 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8A 02 00 F4 03 04 00 59 74 18 67 B6 04 01 00 00 C1 98 56 4B 5E 9F 1D 88 [10:20:35]CommunicateWithHost err = 0 [10:20:35]CheckOFDResponse [10:20:35]1017 (14) - 77093643461234 [10:20:35]1041 (16) - 0000000000871759 [10:20:35]1040 (4) - 166646 [10:20:35]1012 (4) - 23.10.2024 03:58 [10:20:35]1206 (1) - 0 [10:20:35]OFD Sender: Remove packet 166646 [10:20:35]ProducePacketName [10:20:35]name=ofd_packets/00166646 [10:20:35]NVStorageDeleteData [10:20:35]Write to MH i2c: 01 00 00 90 00 90 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 AA 0C 4D [10:20:35]RasterBufferAndPrint [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]written 0, free lines is 3248 [10:20:35]MH_Cut [10:20:35]Write to MH i2c: D1 01 00 97 00 01 69 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 01 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 01 00 97 00 00 68 [10:20:35]Write to MH i2c: 01 00 00 98 00 98 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]OFD Sender: No OFD packet to send [10:20:36]*** Cut start [10:20:36]*** Partial cut [10:20:36]*** CUTSNS_PIN = 1 [10:20:36]*** CUTSNS_PIN = 0 [10:20:36]*** Brake cut motor [10:20:36]Read from MH i2c: 01 [10:20:36]MH_I2C_Read... [10:20:36]*** Stop cut motor [10:20:36]*** Cut end [10:20:36]Read from MH i2c: 01 07 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [10:20:36]process_action close_receipt done [10:20:36]requested_data is exist [10:20:36]produce_requested_data [10:20:36]requested_item fm.sn is exist - process it [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 11 00 00 [10:20:36]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 17 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [10:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:20:36]wFMCommunicate OK [10:20:36]requested_item fd.num is exist - process it [10:20:36]SAM_PROTO_GetFieldsCounters [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 00 00 [10:20:36]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 62 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetFieldsCounters done [10:20:37]requested_item shift.num is exist - process it [10:20:37]requested_item shift.opened is exist - process it [10:20:37]req_shift_opened [10:20:37]FM_GetShiftState [10:20:37]SAM_PROTO_GetShiftState [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 13 01 00 [10:20:37]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E3 [10:20:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetShiftState done [10:20:37]FM_GetShiftState done [10:20:37]req_shift_opened done [10:20:37]requested_item shift.open_date is exist - process it [10:20:37]req_shift_open_date [10:20:37]req_shift_open_date done [10:20:37]produce_requested_data done [10:20:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166646,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:20:37]process_action_free close_receipt [10:20:37]json_value_free [10:20:37]json_value_free done [10:20:37]process_json_proto returns [10:20:37]Send response to host [10:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166646,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:20:37]free response buf [10:20:37]execute_script done [10:20:37]execute_script returns [10:20:37]free content buf [10:20:37]Sock 8.Close socket [10:20:37]Sock 8.Thread stoped [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:02]accept exits with 9 [10:21:02]New connection [10:21:02]New thread 3067178340 created [10:21:02]Thread 3067034980 joined [10:21:02]Waiting for new connection... [10:21:02] Sock 9.Parse request [10:21:02]Sock 9.Check first char [10:21:02]Sock 9.First char is OK [10:21:02]request: POST /json_proto HTTP/1.0 [10:21:02]Method: POST [10:21:02]URL: /json_proto [10:21:02]Method is POST - this is cgi request [10:21:02]url: /json_proto [10:21:02]query_string will be loaded in cgi processing [10:21:02]execute_cgi json_proto POST (null) [10:21:02]execute_cgi path=json_proto method=POST [10:21:02]POST find Content-Length [10:21:02]Host: 172.17.53.195:8080 [10:21:02]Content-Length: 766 [10:21:02]Content-Type: application/json [10:21:02] [10:21:02]POST finish read [10:21:02]Found Content-Length = 766 [10:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:02]execute_script... [10:21: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)221229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:02]POST & json_proto [10:21:02]process_json_proto [10:21:02]json parsed OK: [10:21:02]protocol is kg_v1.0 [10:21:02]action value=close_receipt [10:21:02]process_action close_receipt [10:21:02]cmd_close_receipt [10:21:02]MH_GetDate [10:21:02]Write to MH i2c: F0 00 00 9C 00 8B [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 09 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 09 00 9C 00 00 0F CE 18 67 21 48 4A 65 08 [10:21:02]GetLastDocTimeStamp 1729678833 [10:21:02]current date 1729678863 [10:21:02]FM_GetShiftState [10:21:02]SAM_PROTO_GetShiftState [10:21:02]wFMCommunicate request_size=4 [10:21:02]MH_SAM_APDU [10:21:02]CAPDU: 80 13 01 00 [10:21:02]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:02]Read from MH i2c: E2 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: E2 0E 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E5 [10:21:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:21:02]wFMCommunicate OK [10:21:02]SAM_PROTO_GetShiftState done [10:21:02]FM_GetShiftState done [10:21:02]opened in 1729643772 [10:21:02]opened+sec_in_day 1729730172 [10:21:02]quantity*price = 70044 [10:21:02]sum+1 = 70046 [10:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 62 23.10.2024 10:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166647 ФПД: 119771228147738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166647&fm=119771228147738&tin=02508201610067®Number=0000000000091764&sum=70045 [10:21:04]StoreToDocumentArchive [10:21:04]shift 537 fd 166647 [10:21:04]save to /storage/0537/doc_00166647 [10:21:04]save last doc name /storage/0537/doc_00166647 to /storage/kkm_last_doc_name [10:21:04]save OK [10:21:04]Clear old archive folders... [10:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:04]tlvbuf is 01FAFF20 [10:21:04]SAM_PROTO_ClearQueue [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 09 00 00 [10:21:04]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_ClearQueue done [10:21:04]KKMCreateOFDPacket [10:21:04]OFDProtocolAddRootSTLVToBuf [10:21:04]FM_MakeSignedData [10:21:04]FM_MakeSignedData [10:21:04]SAM_PROTO_SignData [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 01 02 [10:21:04]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]wFMCommunicate request_size=255 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8A 02 00 35 04 06 00 6C [10:21:04]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8A 02 00 35 04 06 00 6C 00 00 9F [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]wFMCommunicate request_size=10 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 02 02 05 EE 69 82 10 1A [10:21:04]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 EE 69 82 10 1A 00 00 34 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 03 02 [10:21:04]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0B 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0B 00 AE 00 00 43 03 B0 07 31 F7 0D FA 90 00 56 [10:21:04]RAPDU: 43 03 B0 07 31 F7 0D FA 90 00 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_SignData done [10:21:04]FM_MakeSignedData done [10:21:04]CreateOFDProtocolMessage [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 11 00 00 [10:21:04]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 17 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [10:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:04]wFMCommunicate OK [10:21:04]CreateOFDProtocolMessage done [10:21:04]OFDSenderStorePacket 166647 [10:21:04]StoreOFDPacket docnum=166647 [10:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 42 07 01 6D 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8A 02 00 35 04 06 00 6C EE 69 82 10 1A 43 03 B0 07 31 F7 0D FA [10:21:04]CheckFolder [10:21:04]dirname=/storage/ofd_packets [10:21:04]CheckFolder done [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00166647 [10:21:04]NVStorageSaveData ofd_packets/00166647 [10:21:04]File name is /storage/ofd_packets/00166647 [10:21:04]Write 301 bytes [10:21:04]NVStorageSaveData done [10:21:04]OFDSenderStorePacket done [10:21:04]KKMCreateOFDPacket done [10:21:04]NVStorageSaveData kkm_last_timestamp [10:21:04]File name is /storage/kkm_last_timestamp [10:21:04]Write 4 bytes [10:21:04]NVStorageSaveData done [10:21:04]ExternCall_PrintAddStr [10:21:04]wPrintStart [10:21:04]Write to MH i2c: 01 00 00 B0 00 B0 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [10:21:04]RasterBufferAndPrint [10:21:04]line Счет N : (1)221229 [10:21:04]line ИНН: 02508201610067 [10:21:04]line Контрольно-Кассовый Чек [10:21:04]line ПРОДАЖА [10:21:04]line ТРК (МРК, ГНК) : 24 [10:21:04]line Товар: 2710124500 [10:21:04]line Аи-95-К-5 [10:21:04]line 9.440 * 74.20 [10:21:04]line = 700.45 [10:21:04]line НДС 12% НСП 1% [10:21:04]line > о реализуемом товаре [10:21:04]line ИТОГО: 700.45 [10:21:04]line НСП 1% : 6.20 [10:21:04]line НДС 12% : 74.38 [10:21:04]line Наличными: 0.00 [10:21:04]line Безнал.: 700.45 [10:21:04]line Место: АЗС № 161 "Партнер Нефть" [10:21:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:21:04]line СНО: Общий режим [10:21:04]line Чек 62 23.10.2024 10:21 [10:21:04]line Смена: 537 ФФД: 1.0 [10:21:04]line ЗНМ: 0300000104 [10:21:04]line РНМ: 0000000000091764 [10:21:04]line Версия ККМ: 001 [10:21:04]line Платежная система: Mbank [10:21:04]line ФМ: 0000000000871759 [10:21:04]line ФД: 166647 [10:21:04]line ФПД: 119771228147738 [10:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166647&fm=119771228147738&tin=02508201610067®Number=0000000000091764&sum=70045 [10:21:04]OFD Sender: Processing packet 166647 [packets to send 48, broken 47] [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00166647 [10:21:04]OFD Sender: To server: pG, [10:21:04]CommunicateWithHost lk.salyk.kg:30040 [10:21:04]ConnectInit lk.salyk.kg [10:21:04]written 0, free lines is 4095 [10:21:05]Connected sock=10 [10:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 42 07 01 6D 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8A 02 00 35 04 06 00 6C EE 69 82 10 1A 43 03 B0 07 31 F7 0D FA [10:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BB 47 47 00 F7 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8A 02 00 F4 03 04 00 77 74 18 67 B6 04 01 00 00 0D C7 33 3B 30 53 F2 1A [10:21:05]CommunicateWithHost err = 0 [10:21:05]CheckOFDResponse [10:21:05]1017 (14) - 77093643461234 [10:21:05]1041 (16) - 0000000000871759 [10:21:05]1040 (4) - 166647 [10:21:05]1012 (4) - 23.10.2024 03:58 [10:21:05]1206 (1) - 0 [10:21:05]OFD Sender: Remove packet 166647 [10:21:05]ProducePacketName [10:21:05]name=ofd_packets/00166647 [10:21:05]NVStorageDeleteData [10:21:05]Write to MH i2c: 01 00 00 D9 00 D9 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 D4 0C C0 [10:21:05]RasterBufferAndPrint [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]written 0, free lines is 3289 [10:21:05]MH_Cut [10:21:05]Write to MH i2c: D1 01 00 E0 00 01 B2 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 01 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 01 00 E0 00 00 B1 [10:21:05]Write to MH i2c: 01 00 00 E1 00 E1 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]OFD Sender: No OFD packet to send [10:21:06]*** Cut start [10:21:06]*** Partial cut [10:21:06]*** CUTSNS_PIN = 1 [10:21:06]*** CUTSNS_PIN = 0 [10:21:06]*** Brake cut motor [10:21:06]Read from MH i2c: 01 [10:21:06]MH_I2C_Read... [10:21:06]*** Stop cut motor [10:21:06]*** Cut end [10:21:06]Read from MH i2c: 01 07 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [10:21:06]process_action close_receipt done [10:21:06]requested_data is exist [10:21:06]produce_requested_data [10:21:06]requested_item fm.sn is exist - process it [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 11 00 00 [10:21:06]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 17 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B4 [10:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:06]wFMCommunicate OK [10:21:06]requested_item fd.num is exist - process it [10:21:06]SAM_PROTO_GetFieldsCounters [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 13 00 00 [10:21:06]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 62 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [10:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:07]wFMCommunicate OK [10:21:07]SAM_PROTO_GetFieldsCounters done [10:21:07]requested_item shift.num is exist - process it [10:21:07]requested_item shift.opened is exist - process it [10:21:07]req_shift_opened [10:21:07]FM_GetShiftState [10:21:07]SAM_PROTO_GetShiftState [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 13 01 00 [10:21:07]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2C [10:21:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:21:07]wFMCommunicate OK [10:21:07]SAM_PROTO_GetShiftState done [10:21:07]FM_GetShiftState done [10:21:07]req_shift_opened done [10:21:07]requested_item shift.open_date is exist - process it [10:21:07]req_shift_open_date [10:21:07]req_shift_open_date done [10:21:07]produce_requested_data done [10:21:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166647,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:21:07]process_action_free close_receipt [10:21:07]json_value_free [10:21:07]json_value_free done [10:21:07]process_json_proto returns [10:21:07]Send response to host [10:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166647,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:21:07]free response buf [10:21:07]execute_script done [10:21:07]execute_script returns [10:21:07]free content buf [10:21:07]Sock 9.Close socket [10:21:07]Sock 9.Thread stoped [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:43]accept exits with 8 [10:21:43]New connection [10:21:43]New thread 3067034980 created [10:21:43]Thread 3067178340 joined [10:21:43]Waiting for new connection... [10:21:43] Sock 8.Parse request [10:21:43]Sock 8.Check first char [10:21:43]Sock 8.First char is OK [10:21:43]request: POST /json_proto HTTP/1.0 [10:21:43]Method: POST [10:21:43]URL: /json_proto [10:21:43]Method is POST - this is cgi request [10:21:43]url: /json_proto [10:21:43]query_string will be loaded in cgi processing [10:21:43]execute_cgi json_proto POST (null) [10:21:43]execute_cgi path=json_proto method=POST [10:21:43]POST find Content-Length [10:21:43]Host: 172.17.53.195:8080 [10:21:43]Content-Length: 677 [10:21:43]Content-Type: application/json [10:21:43] [10:21:43]POST finish read [10:21:43]Found Content-Length = 677 [10:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:43]execute_script... [10:21: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)221230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:43]POST & json_proto [10:21:43]process_json_proto [10:21:43]json parsed OK: [10:21:43]protocol is kg_v1.0 [10:21:43]action value=close_receipt [10:21:43]process_action close_receipt [10:21:43]cmd_close_receipt [10:21:43]MH_GetDate [10:21:43]Write to MH i2c: F0 00 00 E5 00 D4 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: F0 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: F0 09 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: F0 09 00 E5 00 00 37 CE 18 67 21 48 4A 65 79 [10:21:43]GetLastDocTimeStamp 1729678863 [10:21:43]current date 1729678903 [10:21:43]FM_GetShiftState [10:21:43]SAM_PROTO_GetShiftState [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 13 01 00 [10:21:43]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0E 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2E [10:21:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:21:43]wFMCommunicate OK [10:21:43]SAM_PROTO_GetShiftState done [10:21:43]FM_GetShiftState done [10:21:43]opened in 1729643772 [10:21:43]opened+sec_in_day 1729730172 [10:21:43]quantity*price = 50010 [10:21:43]sum+1 = 50012 [10:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 63 23.10.2024 10:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166648 ФПД: 84347153077164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166648&fm=84347153077164&tin=02508201610067®Number=0000000000091764&sum=50000 [10:21:44]StoreToDocumentArchive [10:21:44]shift 537 fd 166648 [10:21:44]save to /storage/0537/doc_00166648 [10:21:44]save last doc name /storage/0537/doc_00166648 to /storage/kkm_last_doc_name [10:21:44]save OK [10:21:44]Clear old archive folders... [10:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:44]tlvbuf is 01F5D620 [10:21:44]SAM_PROTO_ClearQueue [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 09 00 00 [10:21:44]Write to MH i2c: E2 08 00 F3 00 80 09 00 00 00 00 00 00 65 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [10:21:44]RAPDU: 90 00 [10:21:44]wFMCommunicate OK [10:21:44]SAM_PROTO_ClearQueue done [10:21:44]KKMCreateOFDPacket [10:21:44]OFDProtocolAddRootSTLVToBuf [10:21:44]FM_MakeSignedData [10:21:44]FM_MakeSignedData [10:21:44]SAM_PROTO_SignData [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 0D 01 02 [10:21:44]Write to MH i2c: E2 08 00 F4 00 80 0D 01 02 00 00 00 00 6D [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [10:21:44]RAPDU: 90 00 [10:21:44]wFMCommunicate OK [10:21:44]wFMCommunicate request_size=255 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 37 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8A 02 00 35 04 06 00 4C [10:21:44]Write to MH i2c: E2 02 01 F5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 37 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8A 02 00 35 04 06 00 4C 00 00 89 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [10:21:44]RAPDU: 90 00 [10:21:44]wFMCommunicate OK [10:21:44]wFMCommunicate request_size=10 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 0D 02 02 05 B6 9A 18 D3 AC [10:21:44]Write to MH i2c: E2 0D 00 F6 00 80 0D 02 02 05 00 B6 9A 18 D3 AC 00 00 61 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [10:21:44]RAPDU: 90 00 [10:21:44]wFMCommunicate OK [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 0D 03 02 [10:21:44]Write to MH i2c: E2 08 00 F7 00 80 0D 03 02 00 00 00 00 72 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 0B 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 0B 00 F7 00 00 BA D5 62 27 8E B4 BB BA 90 00 42 [10:21:44]RAPDU: BA D5 62 27 8E B4 BB BA 90 00 [10:21:44]wFMCommunicate OK [10:21:44]SAM_PROTO_SignData done [10:21:44]FM_MakeSignedData done [10:21:44]CreateOFDProtocolMessage [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 11 00 00 [10:21:44]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:44]Read from MH i2c: E2 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: E2 17 00 [10:21:44]MH_I2C_Read... [10:21:44]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 31 37 35 39 90 00 CA [10:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:44]wFMCommunicate OK [10:21:44]CreateOFDProtocolMessage done [10:21:44]OFDSenderStorePacket 166648 [10:21:44]StoreOFDPacket docnum=166648 [10:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E C4 07 01 99 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 37 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8A 02 00 35 04 06 00 4C B6 9A 18 D3 AC BA D5 62 27 8E B4 BB BA [10:21:44]CheckFolder [10:21:44]dirname=/storage/ofd_packets [10:21:44]CheckFolder done [10:21:44]ProducePacketName [10:21:44]name=ofd_packets/00166648 [10:21:44]NVStorageSaveData ofd_packets/00166648 [10:21:44]File name is /storage/ofd_packets/00166648 [10:21:44]Write 301 bytes [10:21:44]NVStorageSaveData done [10:21:44]OFDSenderStorePacket done [10:21:44]KKMCreateOFDPacket done [10:21:44]NVStorageSaveData kkm_last_timestamp [10:21:44]File name is /storage/kkm_last_timestamp [10:21:44]Write 4 bytes [10:21:44]NVStorageSaveData done [10:21:44]OFD Sender: Processing packet 166648 [packets to send 48, broken 47] [10:21:44]ProducePacketName [10:21:44]name=ofd_packets/00166648 [10:21:44]OFD Sender: To server: pG, [10:21:44]CommunicateWithHost lk.salyk.kg:30040 [10:21:44]ConnectInit lk.salyk.kg [10:21:44]ExternCall_PrintAddStr [10:21:44]wPrintStart [10:21:44]Write to MH i2c: 01 00 00 F9 00 F9 [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 07 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [10:21:44]RasterBufferAndPrint [10:21:44]line Счет N : (1)221230 [10:21:44]line ИНН: 02508201610067 [10:21:44]line Контрольно-Кассовый Чек [10:21:44]line ПРОДАЖА [10:21:44]line ТРК (МРК, ГНК) : 14 [10:21:44]line Товар: 2710124500 [10:21:44]line Аи-95-К-5 [10:21:44]line 6.740 * 74.20 [10:21:44]line = 500.11 [10:21:44]line НДС 12% НСП 1% [10:21:44]line > о реализуемом товаре [10:21:44]line ОКРУГЛЕНИЕ: -0.11 [10:21:44]line ИТОГО: 500.00 [10:21:44]line Внесено: 500.00 [10:21:44]line СДАЧА: 0.00 [10:21:44]line НСП 1% : 4.43 [10:21:44]line НДС 12% : 53.11 [10:21:44]line Наличными: 500.00 [10:21:44]line Безнал.: 0.00 [10:21:44]line Место: АЗС № 161 "Партнер Нефть" [10:21:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:21:44]line СНО: Общий режим [10:21:44]line Чек 63 23.10.2024 10:21 [10:21:44]line Смена: 537 ФФД: 1.0 [10:21:44]line ЗНМ: 0300000104 [10:21:44]line РНМ: 0000000000091764 [10:21:44]line Версия ККМ: 001 [10:21:44]line ФМ: 0000000000871759 [10:21:44]line ФД: 166648 [10:21:44]line ФПД: 84347153077164 [10:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166648&fm=84347153077164&tin=02508201610067®Number=0000000000091764&sum=50000 [10:21:45]Connected sock=11 [10:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E C4 07 01 99 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 37 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8A 02 00 35 04 06 00 4C B6 9A 18 D3 AC BA D5 62 27 8E B4 BB BA [10:21:45]written 0, free lines is 4095 [10:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 4C 47 00 F1 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8A 02 00 F4 03 04 00 9F 74 18 67 B6 04 01 00 00 8F 67 52 89 DC 34 32 35 [10:21:45]CommunicateWithHost err = 0 [10:21:45]CheckOFDResponse [10:21:45]1017 (14) - 77093643461234 [10:21:45]1041 (16) - 0000000000871759 [10:21:45]1040 (4) - 166648 [10:21:45]1012 (4) - 23.10.2024 03:59 [10:21:45]1206 (1) - 0 [10:21:45]OFD Sender: Remove packet 166648 [10:21:45]ProducePacketName [10:21:45]name=ofd_packets/00166648 [10:21:45]NVStorageDeleteData [10:21:45]Write to MH i2c: 01 00 00 24 01 25 [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: 01 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: 01 07 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 B1 0C E9 [10:21:45]RasterBufferAndPrint [10:21:45]line [10:21:45]line [10:21:45]line [10:21:45]line [10:21:45]line [10:21:45]written 0, free lines is 3257 [10:21:45]MH_Cut [10:21:45]Write to MH i2c: D1 01 00 2B 01 01 FE [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: D1 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: D1 01 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: D1 01 00 2B 01 00 FD [10:21:45]Write to MH i2c: 01 00 00 2C 01 2D [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]OFD Sender: No OFD packet to send [10:21:46]*** Cut start [10:21:46]*** Partial cut [10:21:46]*** CUTSNS_PIN = 1 [10:21:46]*** CUTSNS_PIN = 0 [10:21:46]*** Brake cut motor [10:21:47]Read from MH i2c: 01 [10:21:47]MH_I2C_Read... [10:21:47]*** Stop cut motor [10:21:47]Read from MH i2c: *** Cut end [10:21:47]01 07 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [10:21:47]process_action close_receipt done [10:21:47]requested_data is exist [10:21:47]produce_requested_data [10:21:47]requested_item fm.sn is exist - process it [10:21:47]wFMCommunicate request_size=4 [10:21:47]MH_SAM_APDU [10:21:47]CAPDU: 80 11 00 00 [10:21:47]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:47]Read from MH i2c: E2 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 17 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [10:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:47]wFMCommunicate OK [10:21:47]requested_item fd.num is exist - process it [10:21:47]SAM_PROTO_GetFieldsCounters [10:21:47]wFMCommunicate request_size=4 [10:21:47]MH_SAM_APDU [10:21:47]CAPDU: 80 13 00 00 [10:21:47]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:47]Read from MH i2c: E2 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 62 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [10:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:47]wFMCommunicate OK [10:21:47]SAM_PROTO_GetFieldsCounters done [10:21:47]requested_item shift.num is exist - process it [10:21:47]requested_item shift.opened is exist - process it [10:21:47]req_shift_opened [10:21:47]FM_GetShiftState [10:21:47]SAM_PROTO_GetShiftState [10:21:47]wFMCommunicate request_size=4 [10:21:47]MH_SAM_APDU [10:21:47]CAPDU: 80 13 01 00 [10:21:47]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:47]Read from MH i2c: E2 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 0E 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 78 [10:21:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:21:47]wFMCommunicate OK [10:21:47]SAM_PROTO_GetShiftState done [10:21:47]FM_GetShiftState done [10:21:47]req_shift_opened done [10:21:47]requested_item shift.open_date is exist - process it [10:21:47]req_shift_open_date [10:21:47]req_shift_open_date done [10:21:47]produce_requested_data done [10:21:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166648,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:21:47]process_action_free close_receipt [10:21:47]json_value_free [10:21:47]json_value_free done [10:21:47]process_json_proto returns [10:21:47]Send response to host [10:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166648,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:21:47]free response buf [10:21:47]execute_script done [10:21:47]execute_script returns [10:21:47]free content buf [10:21:47]Sock 8.Close socket [10:21:47]Sock 8.Thread stoped [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:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:11]accept exits with 9 [10:24:11]New connection [10:24:11]New thread 3067178340 created [10:24:11]Thread 3067034980 joined [10:24:11]Waiting for new connection... [10:24:11] Sock 9.Parse request [10:24:11]Sock 9.Check first char [10:24:11]Sock 9.First char is OK [10:24:11]request: POST /json_proto HTTP/1.0 [10:24:11]Method: POST [10:24:11]URL: /json_proto [10:24:11]Method is POST - this is cgi request [10:24:11]url: /json_proto [10:24:11]query_string will be loaded in cgi processing [10:24:11]execute_cgi json_proto POST (null) [10:24:11]execute_cgi path=json_proto method=POST [10:24:11]POST find Content-Length [10:24:11]Host: 172.17.53.195:8080 [10:24:11]Content-Length: 677 [10:24:11]Content-Type: application/json [10:24:11] [10:24:11]POST finish read [10:24:11]Found Content-Length = 677 [10:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:11]execute_script... [10:24:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:11]POST & json_proto [10:24:11]process_json_proto [10:24:11]json parsed OK: [10:24:11]protocol is kg_v1.0 [10:24:11]action value=close_receipt [10:24:11]process_action close_receipt [10:24:11]cmd_close_receipt [10:24:11]MH_GetDate [10:24:11]Write to MH i2c: F0 00 00 30 01 20 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 09 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 09 00 30 01 00 CB CE 18 67 21 48 4A 65 59 [10:24:11]GetLastDocTimeStamp 1729678903 [10:24:11]current date 1729679051 [10:24:11]FM_GetShiftState [10:24:11]SAM_PROTO_GetShiftState [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 13 01 00 [10:24:11]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7A [10:24:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetShiftState done [10:24:11]FM_GetShiftState done [10:24:11]opened in 1729643772 [10:24:11]opened+sec_in_day 1729730172 [10:24:11]quantity*price = 50041 [10:24:11]sum+1 = 50042 [10:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 64 23.10.2024 10:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166649 ФПД: 109508718230693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166649&fm=109508718230693&tin=02508201610067®Number=0000000000091764&sum=50000 [10:24:12]StoreToDocumentArchive [10:24:12]shift 537 fd 166649 [10:24:12]save to /storage/0537/doc_00166649 [10:24:12]save last doc name /storage/0537/doc_00166649 to /storage/kkm_last_doc_name [10:24:12]save OK [10:24:12]Clear old archive folders... [10:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:12]tlvbuf is 01FB1610 [10:24:12]SAM_PROTO_ClearQueue [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 09 00 00 [10:24:12]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_ClearQueue done [10:24:12]KKMCreateOFDPacket [10:24:12]OFDProtocolAddRootSTLVToBuf [10:24:12]FM_MakeSignedData [10:24:12]FM_MakeSignedData [10:24:12]SAM_PROTO_SignData [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 01 02 [10:24:12]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=255 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8A 02 00 35 04 06 00 63 [10:24:12]Write to MH i2c: E2 02 01 40 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8A 02 00 35 04 06 00 63 00 00 AA [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=10 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 02 02 05 98 FC 3F FC A5 [10:24:12]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 98 FC 3F FC A5 00 00 3A [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 03 02 [10:24:12]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 42 01 00 BC C4 B4 2E B5 BB 21 99 90 00 4B [10:24:12]RAPDU: BC C4 B4 2E B5 BB 21 99 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_SignData done [10:24:12]FM_MakeSignedData done [10:24:12]CreateOFDProtocolMessage [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 11 00 00 [10:24:12]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [10:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:24:12]wFMCommunicate OK [10:24:12]CreateOFDProtocolMessage done [10:24:12]OFDSenderStorePacket 166649 [10:24:12]StoreOFDPacket docnum=166649 [10:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6A 6A 07 01 90 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8A 02 00 35 04 06 00 63 98 FC 3F FC A5 BC C4 B4 2E B5 BB 21 99 [10:24:12]CheckFolder [10:24:12]dirname=/storage/ofd_packets [10:24:12]CheckFolder done [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00166649 [10:24:12]NVStorageSaveData ofd_packets/00166649 [10:24:12]File name is /storage/ofd_packets/00166649 [10:24:12]Write 301 bytes [10:24:12]NVStorageSaveData done [10:24:12]OFDSenderStorePacket done [10:24:12]KKMCreateOFDPacket done [10:24:12]NVStorageSaveData kkm_last_timestamp [10:24:12]File name is /storage/kkm_last_timestamp [10:24:12]Write 4 bytes [10:24:12]NVStorageSaveData done [10:24:12]ExternCall_PrintAddStr [10:24:12]wPrintStart [10:24:12]Write to MH i2c: 01 00 00 44 01 45 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [10:24:12]RasterBufferAndPrint [10:24:12]line Счет N : (1)221231 [10:24:12]line ИНН: 02508201610067 [10:24:12]line Контрольно-Кассовый Чек [10:24:12]line ПРОДАЖА [10:24:12]line ТРК (МРК, ГНК) : 23 [10:24:12]line Товар: 2710124130 [10:24:12]line Аи-92-К-5 [10:24:12]line 7.480 * 66.90 [10:24:12]line = 500.41 [10:24:12]line НДС 12% НСП 1% [10:24:12]line > о реализуемом товаре [10:24:12]line ОКРУГЛЕНИЕ: -0.41 [10:24:12]line ИТОГО: 500.00 [10:24:12]line Внесено: 500.00 [10:24:12]line СДАЧА: 0.00 [10:24:12]line НСП 1% : 4.43 [10:24:12]line НДС 12% : 53.14 [10:24:12]line Наличными: 500.00 [10:24:12]line Безнал.: 0.00 [10:24:12]line Место: АЗС № 161 "Партнер Нефть" [10:24:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:24:12]line СНО: Общий режим [10:24:12]line Чек 64 23.10.2024 10:24 [10:24:12]line Смена: 537 ФФД: 1.0 [10:24:12]line ЗНМ: 0300000104 [10:24:12]line РНМ: 0000000000091764 [10:24:12]line Версия ККМ: 001 [10:24:12]line ФМ: 0000000000871759 [10:24:12]line ФД: 166649 [10:24:12]line ФПД: 109508718230693 [10:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166649&fm=109508718230693&tin=02508201610067®Number=0000000000091764&sum=50000 [10:24:13]OFD Sender: Processing packet 166649 [packets to send 48, broken 47] [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00166649 [10:24:13]OFD Sender: To server: pG, [10:24:13]CommunicateWithHost lk.salyk.kg:30040 [10:24:13]ConnectInit lk.salyk.kg [10:24:13]written 0, free lines is 4095 [10:24:13]Connected sock=10 [10:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6A 6A 07 01 90 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8A 02 00 35 04 06 00 63 98 FC 3F FC A5 BC C4 B4 2E B5 BB 21 99 [10:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D3 70 47 00 C5 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8A 02 00 F4 03 04 00 33 75 18 67 B6 04 01 00 00 48 48 99 14 B3 64 60 B0 [10:24:13]CommunicateWithHost err = 0 [10:24:13]CheckOFDResponse [10:24:13]1017 (14) - 77093643461234 [10:24:13]1041 (16) - 0000000000871759 [10:24:13]1040 (4) - 166649 [10:24:13]1012 (4) - 23.10.2024 04:01 [10:24:13]1206 (1) - 0 [10:24:13]OFD Sender: Remove packet 166649 [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00166649 [10:24:13]NVStorageDeleteData [10:24:13]Write to MH i2c: 01 00 00 6F 01 70 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 AB 0C 2E [10:24:13]RasterBufferAndPrint [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]written 0, free lines is 3249 [10:24:13]MH_Cut [10:24:13]Write to MH i2c: D1 01 00 76 01 01 49 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 76 01 00 48 [10:24:13]Write to MH i2c: 01 00 00 77 01 78 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:14]OFD Sender: No OFD packet to send [10:24:14]*** Cut start [10:24:14]*** Partial cut [10:24:14]*** CUTSNS_PIN = 1 [10:24:14]*** CUTSNS_PIN = 0 [10:24:14]*** Brake cut motor [10:24:15]Read from MH i2c: 01 [10:24:15]MH_I2C_Read... [10:24:15]*** Stop cut motor [10:24:15]*** Cut end [10:24:15]Read from MH i2c: 01 07 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [10:24:15]process_action close_receipt done [10:24:15]requested_data is exist [10:24:15]produce_requested_data [10:24:15]requested_item fm.sn is exist - process it [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 11 00 00 [10:24:15]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 17 00 [10:24:15]MH_I2C_Read... [10:24:15]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 31 37 35 39 90 00 4B [10:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:24:15]wFMCommunicate OK [10:24:15]requested_item fd.num is exist - process it [10:24:15]SAM_PROTO_GetFieldsCounters [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 00 00 [10:24:15]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 62 00 [10:24:15]MH_I2C_Read... [10:24:15]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [10:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetFieldsCounters done [10:24:15]requested_item shift.num is exist - process it [10:24:15]requested_item shift.opened is exist - process it [10:24:15]req_shift_opened [10:24:15]FM_GetShiftState [10:24:15]SAM_PROTO_GetShiftState [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 01 00 [10:24:15]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C3 [10:24:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetShiftState done [10:24:15]FM_GetShiftState done [10:24:15]req_shift_opened done [10:24:15]requested_item shift.open_date is exist - process it [10:24:15]req_shift_open_date [10:24:15]req_shift_open_date done [10:24:15]produce_requested_data done [10:24:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166649,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:24:15]process_action_free close_receipt [10:24:15]json_value_free [10:24:15]json_value_free done [10:24:15]process_json_proto returns [10:24:15]Send response to host [10:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166649,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:24:15]free response buf [10:24:15]execute_script done [10:24:15]execute_script returns [10:24:15]free content buf [10:24:15]Sock 9.Close socket [10:24:15]Sock 9.Thread stoped [10:24:15]accept exits with 8 [10:24:15]New connection [10:24:15]New thread 3067034980 created [10:24:15]Thread 3067178340 joined [10:24:15]Waiting for new connection... [10:24:15] Sock 8.Parse request [10:24:15]Sock 8.Check first char [10:24:15]Sock 8.First char is OK [10:24:15]request: POST /json_proto HTTP/1.0 [10:24:15]Method: POST [10:24:15]URL: /json_proto [10:24:15]Method is POST - this is cgi request [10:24:15]url: /json_proto [10:24:15]query_string will be loaded in cgi processing [10:24:15]execute_cgi json_proto POST (null) [10:24:15]execute_cgi path=json_proto method=POST [10:24:15]POST find Content-Length [10:24:15]Host: 172.17.53.195:8080 [10:24:15]Content-Length: 677 [10:24:15]Content-Type: application/json [10:24:15] [10:24:15]POST finish read [10:24:15]Found Content-Length = 677 [10:24:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:15]execute_script... [10:24: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)221232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:15]POST & json_proto [10:24:15]process_json_proto [10:24:15]json parsed OK: [10:24:15]protocol is kg_v1.0 [10:24:15]action value=close_receipt [10:24:15]process_action close_receipt [10:24:15]cmd_close_receipt [10:24:15]MH_GetDate [10:24:15]Write to MH i2c: F0 00 00 7B 01 6B [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: F0 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: F0 09 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: F0 09 00 7B 01 00 D0 CE 18 67 21 48 4A 65 A9 [10:24:15]GetLastDocTimeStamp 1729679051 [10:24:15]current date 1729679056 [10:24:15]FM_GetShiftState [10:24:15]SAM_PROTO_GetShiftState [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 01 00 [10:24:15]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C5 [10:24:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetShiftState done [10:24:15]FM_GetShiftState done [10:24:15]opened in 1729643772 [10:24:15]opened+sec_in_day 1729730172 [10:24:15]quantity*price = 49974 [10:24:15]sum+1 = 49975 [10:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 65 23.10.2024 10:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166650 ФПД: 82441018362784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166650&fm=82441018362784&tin=02508201610067®Number=0000000000091764&sum=49900 [10:24:17]StoreToDocumentArchive [10:24:17]shift 537 fd 166650 [10:24:17]save to /storage/0537/doc_00166650 [10:24:17]save last doc name /storage/0537/doc_00166650 to /storage/kkm_last_doc_name [10:24:17]save OK [10:24:17]Clear old archive folders... [10:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:17]tlvbuf is 01F78CD0 [10:24:17]SAM_PROTO_ClearQueue [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 09 00 00 [10:24:17]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]SAM_PROTO_ClearQueue done [10:24:17]KKMCreateOFDPacket [10:24:17]OFDProtocolAddRootSTLVToBuf [10:24:17]FM_MakeSignedData [10:24:17]FM_MakeSignedData [10:24:17]SAM_PROTO_SignData [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 01 02 [10:24:17]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=255 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D0 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8A 02 00 35 04 06 00 4A [10:24:17]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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D0 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8A 02 00 35 04 06 00 4A 00 00 C4 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=10 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 02 02 05 FA CB 9D 4B A0 [10:24:17]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 FA CB 9D 4B A0 00 00 5E [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 03 02 [10:24:17]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 0B 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 0B 00 8D 01 00 E4 D9 57 D0 22 DA FF 0A 90 00 F3 [10:24:17]RAPDU: E4 D9 57 D0 22 DA FF 0A 90 00 [10:24:17]wFMCommunicate OK [10:24:17]SAM_PROTO_SignData done [10:24:17]FM_MakeSignedData done [10:24:17]CreateOFDProtocolMessage [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 11 00 00 [10:24:17]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 17 00 [10:24:17]MH_I2C_Read... [10:24:17]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 31 37 35 39 90 00 61 [10:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:24:17]wFMCommunicate OK [10:24:17]CreateOFDProtocolMessage done [10:24:17]OFDSenderStorePacket 166650 [10:24:17]StoreOFDPacket docnum=166650 [10:24:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A B3 07 01 2B 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D0 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8A 02 00 35 04 06 00 4A FA CB 9D 4B A0 E4 D9 57 D0 22 DA FF 0A [10:24:17]CheckFolder [10:24:17]dirname=/storage/ofd_packets [10:24:17]CheckFolder done [10:24:17]ProducePacketName [10:24:17]name=ofd_packets/00166650 [10:24:17]NVStorageSaveData ofd_packets/00166650 [10:24:17]File name is /storage/ofd_packets/00166650 [10:24:17]Write 301 bytes [10:24:17]NVStorageSaveData done [10:24:17]OFDSenderStorePacket done [10:24:17]KKMCreateOFDPacket done [10:24:17]NVStorageSaveData kkm_last_timestamp [10:24:17]File name is /storage/kkm_last_timestamp [10:24:17]Write 4 bytes [10:24:17]NVStorageSaveData done [10:24:17]ExternCall_PrintAddStr [10:24:17]wPrintStart [10:24:17]Write to MH i2c: 01 00 00 8F 01 90 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [10:24:17]RasterBufferAndPrint [10:24:17]line Счет N : (1)221232 [10:24:17]line ИНН: 02508201610067 [10:24:17]line Контрольно-Кассовый Чек [10:24:17]line ПРОДАЖА [10:24:17]line ТРК (МРК, ГНК) : 13 [10:24:17]line Товар: 2710124130 [10:24:17]line Аи-92-К-5 [10:24:17]line 7.470 * 66.90 [10:24:17]line = 499.74 [10:24:17]line НДС 12% НСП 1% [10:24:17]line > о реализуемом товаре [10:24:17]line ОКРУГЛЕНИЕ: -0.74 [10:24:17]line ИТОГО: 499.00 [10:24:17]line Внесено: 500.00 [10:24:17]line СДАЧА: 1.00 [10:24:17]line НСП 1% : 4.42 [10:24:17]line НДС 12% : 53.07 [10:24:17]line Наличными: 499.00 [10:24:17]line Безнал.: 0.00 [10:24:17]line Место: АЗС № 161 "Партнер Нефть" [10:24:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:24:18]line СНО: Общий режим [10:24:18]line Чек 65 23.10.2024 10:24 [10:24:18]line Смена: 537 ФФД: 1.0 [10:24:18]line ЗНМ: 0300000104 [10:24:18]line РНМ: 0000000000091764 [10:24:18]line Версия ККМ: 001 [10:24:18]line ФМ: 0000000000871759 [10:24:18]line ФД: 166650 [10:24:18]line ФПД: 82441018362784 [10:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166650&fm=82441018362784&tin=02508201610067®Number=0000000000091764&sum=49900 [10:24:18]OFD Sender: Processing packet 166650 [packets to send 48, broken 47] [10:24:18]ProducePacketName [10:24:18]name=ofd_packets/00166650 [10:24:18]OFD Sender: To server: pG, [10:24:18]CommunicateWithHost lk.salyk.kg:30040 [10:24:18]ConnectInit lk.salyk.kg [10:24:18]written 0, free lines is 4095 [10:24:18]Connected sock=10 [10:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A B3 07 01 2B 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D0 CE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8A 02 00 35 04 06 00 4A FA CB 9D 4B A0 E4 D9 57 D0 22 DA FF 0A [10:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 39 47 00 82 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8A 02 00 F4 03 04 00 38 75 18 67 B6 04 01 00 00 AE 6D 89 E8 A4 45 F7 A6 [10:24:18]CommunicateWithHost err = 0 [10:24:18]CheckOFDResponse [10:24:18]1017 (14) - 77093643461234 [10:24:18]1041 (16) - 0000000000871759 [10:24:18]1040 (4) - 166650 [10:24:18]1012 (4) - 23.10.2024 04:02 [10:24:18]1206 (1) - 0 [10:24:18]OFD Sender: Remove packet 166650 [10:24:18]ProducePacketName [10:24:18]name=ofd_packets/00166650 [10:24:18]NVStorageDeleteData [10:24:18]Write to MH i2c: 01 00 00 BA 01 BB [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 C5 0C 93 [10:24:18]RasterBufferAndPrint [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]written 0, free lines is 3281 [10:24:18]MH_Cut [10:24:18]Write to MH i2c: D1 01 00 C1 01 01 94 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 01 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 01 00 C1 01 00 93 [10:24:18]Write to MH i2c: 01 00 00 C2 01 C3 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:19]OFD Sender: No OFD packet to send [10:24:19]*** Cut start [10:24:19]*** Partial cut [10:24:19]*** CUTSNS_PIN = 1 [10:24:19]*** CUTSNS_PIN = 0 [10:24:19]*** Brake cut motor [10:24:20]Read from MH i2c: 01 [10:24:20]*** Stop cut motor [10:24:20]MH_I2C_Read... [10:24:20]*** Cut end [10:24:20]Read from MH i2c: 01 07 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [10:24:20]process_action close_receipt done [10:24:20]requested_data is exist [10:24:20]produce_requested_data [10:24:20]requested_item fm.sn is exist - process it [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 11 00 00 [10:24:20]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:20]E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 17 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [10:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:24:20]wFMCommunicate OK [10:24:20]requested_item fd.num is exist - process it [10:24:20]SAM_PROTO_GetFieldsCounters [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 00 00 [10:24:20]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 62 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 62 00 C4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetFieldsCounters done [10:24:20]requested_item shift.num is exist - process it [10:24:20]requested_item shift.opened is exist - process it [10:24:20]req_shift_opened [10:24:20]FM_GetShiftState [10:24:20]SAM_PROTO_GetShiftState [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 01 00 [10:24:20]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0E [10:24:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetShiftState done [10:24:20]FM_GetShiftState done [10:24:20]req_shift_opened done [10:24:20]requested_item shift.open_date is exist - process it [10:24:20]req_shift_open_date [10:24:20]req_shift_open_date done [10:24:20]produce_requested_data done [10:24:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166650,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:24:20]process_action_free close_receipt [10:24:20]json_value_free [10:24:20]json_value_free done [10:24:20]process_json_proto returns [10:24:20]Send response to host [10:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166650,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:24:20]free response buf [10:24:20]execute_script done [10:24:20]execute_script returns [10:24:20]free content buf [10:24:20]Sock 8.Close socket [10:24:20]Sock 8.Thread stoped [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:44]accept exits with 9 [10:30:44]New connection [10:30:44]New thread 3067178340 created [10:30:44]Thread 3067034980 joined [10:30:44]Waiting for new connection... [10:30:44] Sock 9.Parse request [10:30:44]Sock 9.Check first char [10:30:44]Sock 9.First char is OK [10:30:44]request: POST /json_proto HTTP/1.0 [10:30:44]Method: POST [10:30:44]URL: /json_proto [10:30:44]Method is POST - this is cgi request [10:30:44]url: /json_proto [10:30:44]query_string will be loaded in cgi processing [10:30:44]execute_cgi json_proto POST (null) [10:30:44]execute_cgi path=json_proto method=POST [10:30:44]POST find Content-Length [10:30:44]Host: 172.17.53.195:8080 [10:30:44]Content-Length: 677 [10:30:44]Content-Type: application/json [10:30:44] [10:30:44]POST finish read [10:30:44]Found Content-Length = 677 [10:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:44]execute_script... [10:30: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)221233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:44]POST & json_proto [10:30:44]process_json_proto [10:30:44]json parsed OK: [10:30:44]protocol is kg_v1.0 [10:30:44]action value=close_receipt [10:30:44]process_action close_receipt [10:30:44]cmd_close_receipt [10:30:44]MH_GetDate [10:30:44]Write to MH i2c: F0 00 00 C6 01 B6 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: F0 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: F0 09 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: F0 09 00 C6 01 00 54 D0 18 67 21 48 4A 65 7A [10:30:44]GetLastDocTimeStamp 1729679056 [10:30:44]current date 1729679444 [10:30:44]FM_GetShiftState [10:30:44]SAM_PROTO_GetShiftState [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 13 01 00 [10:30:44]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0E 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 10 [10:30:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:30:44]wFMCommunicate OK [10:30:44]SAM_PROTO_GetShiftState done [10:30:44]FM_GetShiftState done [10:30:44]opened in 1729643772 [10:30:44]opened+sec_in_day 1729730172 [10:30:44]quantity*price = 70044 [10:30:44]sum+1 = 70046 [10:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 66 23.10.2024 10:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166651 ФПД: 155791217386156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166651&fm=155791217386156&tin=02508201610067®Number=0000000000091764&sum=70000 [10:30:45]StoreToDocumentArchive [10:30:45]shift 537 fd 166651 [10:30:45]save to /storage/0537/doc_00166651 [10:30:45]save last doc name /storage/0537/doc_00166651 to /storage/kkm_last_doc_name [10:30:45]save OK [10:30:45]Clear old archive folders... [10:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:45]tlvbuf is 01F6E850 [10:30:45]SAM_PROTO_ClearQueue [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 09 00 00 [10:30:45]Write to MH i2c: E2 08 00 D4 01 80 09 00 00 00 00 00 00 47 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 03 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [10:30:45]RAPDU: 90 00 [10:30:45]wFMCommunicate OK [10:30:45]SAM_PROTO_ClearQueue done [10:30:45]KKMCreateOFDPacket [10:30:45]OFDProtocolAddRootSTLVToBuf [10:30:45]FM_MakeSignedData [10:30:45]FM_MakeSignedData [10:30:45]SAM_PROTO_SignData [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 0D 01 02 [10:30:45]Write to MH i2c: E2 08 00 D5 01 80 0D 01 02 00 00 00 00 4F [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 03 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [10:30:45]RAPDU: 90 00 [10:30:45]wFMCommunicate OK [10:30:45]wFMCommunicate request_size=255 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 55 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8A 02 00 35 04 06 00 8D [10:30:45]Write to MH i2c: E2 02 01 D6 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 55 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8A 02 00 35 04 06 00 8D 00 00 E1 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 03 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [10:30:46]RAPDU: 90 00 [10:30:46]wFMCommunicate OK [10:30:46]wFMCommunicate request_size=10 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 0D 02 02 05 B0 F8 2B E2 AC [10:30:46]Write to MH i2c: E2 0D 00 D7 01 80 0D 02 02 05 00 B0 F8 2B E2 AC 00 00 BD [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 03 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [10:30:46]RAPDU: 90 00 [10:30:46]wFMCommunicate OK [10:30:46]wFMCommunicate request_size=4 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 0D 03 02 [10:30:46]Write to MH i2c: E2 08 00 D8 01 80 0D 03 02 00 00 00 00 54 [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 0B 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 0B 00 D8 01 00 61 16 60 B3 7B E6 7B E9 90 00 A4 [10:30:46]RAPDU: 61 16 60 B3 7B E6 7B E9 90 00 [10:30:46]wFMCommunicate OK [10:30:46]SAM_PROTO_SignData done [10:30:46]FM_MakeSignedData done [10:30:46]CreateOFDProtocolMessage [10:30:46]wFMCommunicate request_size=4 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 11 00 00 [10:30:46]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 17 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [10:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:30:46]wFMCommunicate OK [10:30:46]CreateOFDProtocolMessage done [10:30:46]OFDSenderStorePacket 166651 [10:30:46]StoreOFDPacket docnum=166651 [10:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA E7 07 01 EE 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 55 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8A 02 00 35 04 06 00 8D B0 F8 2B E2 AC 61 16 60 B3 7B E6 7B E9 [10:30:46]CheckFolder [10:30:46]dirname=/storage/ofd_packets [10:30:46]CheckFolder done [10:30:46]ProducePacketName [10:30:46]name=ofd_packets/00166651 [10:30:46]NVStorageSaveData ofd_packets/00166651 [10:30:46]File name is /storage/ofd_packets/00166651 [10:30:46]Write 301 bytes [10:30:46]NVStorageSaveData done [10:30:46]OFDSenderStorePacket done [10:30:46]KKMCreateOFDPacket done [10:30:46]NVStorageSaveData kkm_last_timestamp [10:30:46]File name is /storage/kkm_last_timestamp [10:30:46]Write 4 bytes [10:30:46]NVStorageSaveData done [10:30:46]ExternCall_PrintAddStr [10:30:46]wPrintStart [10:30:46]Write to MH i2c: 01 00 00 DA 01 DB [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: 01 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: 01 07 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [10:30:46]RasterBufferAndPrint [10:30:46]line Счет N : (1)221233 [10:30:46]line ИНН: 02508201610067 [10:30:46]line Контрольно-Кассовый Чек [10:30:46]line ПРОДАЖА [10:30:46]line ТРК (МРК, ГНК) : 24 [10:30:46]line Товар: 2710124500 [10:30:46]line Аи-95-К-5 [10:30:46]line 9.440 * 74.20 [10:30:46]line = 700.45 [10:30:46]line НДС 12% НСП 1% [10:30:46]line > о реализуемом товаре [10:30:46]line ОКРУГЛЕНИЕ: -0.45 [10:30:46]line ИТОГО: 700.00 [10:30:46]line Внесено: 700.00 [10:30:46]line СДАЧА: 0.00 [10:30:46]line НСП 1% : 6.20 [10:30:46]line НДС 12% : 74.38 [10:30:46]line Наличными: 700.00 [10:30:46]line Безнал.: 0.00 [10:30:46]line Место: АЗС № 161 "Партнер Нефть" [10:30:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:30:46]line СНО: Общий режим [10:30:46]line Чек 66 23.10.2024 10:30 [10:30:46]line Смена: 537 ФФД: 1.0 [10:30:46]line ЗНМ: 0300000104 [10:30:46]line РНМ: 0000000000091764 [10:30:46]line Версия ККМ: 001 [10:30:46]line ФМ: 0000000000871759 [10:30:46]line ФД: 166651 [10:30:46]line ФПД: 155791217386156 [10:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166651&fm=155791217386156&tin=02508201610067®Number=0000000000091764&sum=70000 [10:30:46]OFD Sender: Processing packet 166651 [packets to send 48, broken 47] [10:30:46]ProducePacketName [10:30:46]name=ofd_packets/00166651 [10:30:46]OFD Sender: To server: pG, [10:30:46]CommunicateWithHost lk.salyk.kg:30040 [10:30:46]ConnectInit lk.salyk.kg [10:30:46]written 0, free lines is 4095 [10:30:46]Connected sock=11 [10:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA E7 07 01 EE 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 55 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8A 02 00 35 04 06 00 8D B0 F8 2B E2 AC 61 16 60 B3 7B E6 7B E9 [10:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 C5 47 00 DE 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8A 02 00 F4 03 04 00 BC 76 18 67 B6 04 01 00 00 E3 6D 3F 87 BC 8E AD A9 [10:30:46]CommunicateWithHost err = 0 [10:30:46]CheckOFDResponse [10:30:46]1017 (14) - 77093643461234 [10:30:46]1041 (16) - 0000000000871759 [10:30:46]1040 (4) - 166651 [10:30:46]1012 (4) - 23.10.2024 04:08 [10:30:46]1206 (1) - 0 [10:30:46]OFD Sender: Remove packet 166651 [10:30:46]ProducePacketName [10:30:46]name=ofd_packets/00166651 [10:30:46]NVStorageDeleteData [10:30:47]Write to MH i2c: 01 00 00 05 02 07 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 07 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 A5 0C BF [10:30:47]RasterBufferAndPrint [10:30:47]line [10:30:47]line [10:30:47]line [10:30:47]line [10:30:47]line [10:30:47]written 0, free lines is 3240 [10:30:47]MH_Cut [10:30:47]Write to MH i2c: D1 01 00 0C 02 01 E0 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: D1 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: D1 01 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: D1 01 00 0C 02 00 DF [10:30:47]Write to MH i2c: 01 00 00 0D 02 0F [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]OFD Sender: No OFD packet to send [10:30:47]*** Cut start [10:30:47]*** Partial cut [10:30:47]*** CUTSNS_PIN = 1 [10:30:47]*** CUTSNS_PIN = 0 [10:30:48]*** Brake cut motor [10:30:48]Read from MH i2c: 01 [10:30:48]MH_I2C_Read... [10:30:48]*** Stop cut motor [10:30:48]*** Cut end [10:30:48]Read from MH i2c: 01 07 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [10:30:48]process_action close_receipt done [10:30:48]requested_data is exist [10:30:48]produce_requested_data [10:30:48]requested_item fm.sn is exist - process it [10:30:48]wFMCommunicate request_size=4 [10:30:48]MH_SAM_APDU [10:30:48]CAPDU: 80 11 00 00 [10:30:48]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:48]Read from MH i2c: E2 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 17 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [10:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:30:48]wFMCommunicate OK [10:30:48]requested_item fd.num is exist - process it [10:30:48]SAM_PROTO_GetFieldsCounters [10:30:48]wFMCommunicate request_size=4 [10:30:48]MH_SAM_APDU [10:30:48]CAPDU: 80 13 00 00 [10:30:48]Write to MH i2c: E2 08 00 0F 02 80 13 00 00 00 00 00 00 8D [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:48]Read from MH i2c: E2 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 62 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 62 00 0F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [10:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:48]wFMCommunicate OK [10:30:48]SAM_PROTO_GetFieldsCounters done [10:30:48]requested_item shift.num is exist - process it [10:30:48]requested_item shift.opened is exist - process it [10:30:48]req_shift_opened [10:30:48]FM_GetShiftState [10:30:48]SAM_PROTO_GetShiftState [10:30:48]wFMCommunicate request_size=4 [10:30:48]MH_SAM_APDU [10:30:48]CAPDU: 80 13 01 00 [10:30:48]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:48]Read from MH i2c: E2 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 0E 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5A [10:30:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:30:48]wFMCommunicate OK [10:30:48]SAM_PROTO_GetShiftState done [10:30:48]FM_GetShiftState done [10:30:48]req_shift_opened done [10:30:48]requested_item shift.open_date is exist - process it [10:30:48]req_shift_open_date [10:30:48]req_shift_open_date done [10:30:48]produce_requested_data done [10:30:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166651,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:30:48]process_action_free close_receipt [10:30:48]json_value_free [10:30:48]json_value_free done [10:30:48]process_json_proto returns [10:30:48]Send response to host [10:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166651,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:30:48]free response buf [10:30:48]execute_script done [10:30:48]execute_script returns [10:30:48]free content buf [10:30:48]Sock 9.Close socket [10:30:48]Sock 9.Thread stoped [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:08]accept exits with 8 [10:32:08]New connection [10:32:08]New thread 3067034980 created [10:32:08]Thread 3067178340 joined [10:32:08]Waiting for new connection... [10:32:08] Sock 8.Parse request [10:32:08]Sock 8.Check first char [10:32:08]Sock 8.First char is OK [10:32:08]request: POST /json_proto HTTP/1.0 [10:32:08]Method: POST [10:32:08]URL: /json_proto [10:32:08]Method is POST - this is cgi request [10:32:08]url: /json_proto [10:32:08]query_string will be loaded in cgi processing [10:32:08]execute_cgi json_proto POST (null) [10:32:08]execute_cgi path=json_proto method=POST [10:32:08]POST find Content-Length [10:32:08]Host: 172.17.53.195:8080 [10:32:08]Content-Length: 677 [10:32:08]Content-Type: application/json [10:32:08] [10:32:08]POST finish read [10:32:08]Found Content-Length = 677 [10:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:08]execute_script... [10: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)221234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:08]POST & json_proto [10:32:08]process_json_proto [10:32:08]json parsed OK: [10:32:08]protocol is kg_v1.0 [10:32:08]action value=close_receipt [10:32:08]process_action close_receipt [10:32:08]cmd_close_receipt [10:32:08]MH_GetDate [10:32:08]Write to MH i2c: F0 00 00 11 02 02 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 09 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: F0 09 00 11 02 00 A8 D0 18 67 21 48 4A 65 1A [10:32:08]GetLastDocTimeStamp 1729679445 [10:32:08]current date 1729679528 [10:32:08]FM_GetShiftState [10:32:08]SAM_PROTO_GetShiftState [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 13 01 00 [10:32:08]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0E 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [10:32:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_GetShiftState done [10:32:08]FM_GetShiftState done [10:32:08]opened in 1729643772 [10:32:08]opened+sec_in_day 1729730172 [10:32:08]quantity*price = 49974 [10:32:08]sum+1 = 49975 [10:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 67 23.10.2024 10:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166652 ФПД: 256989011477282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166652&fm=256989011477282&tin=02508201610067®Number=0000000000091764&sum=49900 [10:32:09]StoreToDocumentArchive [10:32:09]shift 537 fd 166652 [10:32:09]save to /storage/0537/doc_00166652 [10:32:09]save last doc name /storage/0537/doc_00166652 to /storage/kkm_last_doc_name [10:32:09]save OK [10:32:09]Clear old archive folders... [10:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:09]tlvbuf is 01FB02D0 [10:32:09]SAM_PROTO_ClearQueue [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 09 00 00 [10:32:09]Write to MH i2c: E2 08 00 1F 02 80 09 00 00 00 00 00 00 93 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [10:32:09]RAPDU: 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_ClearQueue done [10:32:09]KKMCreateOFDPacket [10:32:09]OFDProtocolAddRootSTLVToBuf [10:32:09]FM_MakeSignedData [10:32:09]FM_MakeSignedData [10:32:09]SAM_PROTO_SignData [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 0D 01 02 [10:32:09]Write to MH i2c: E2 08 00 20 02 80 0D 01 02 00 00 00 00 9B [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [10:32:09]RAPDU: 90 00 [10:32:09]wFMCommunicate OK [10:32:09]wFMCommunicate request_size=255 [10:32:09]MH_SAM_APDU [10: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A8 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8A 02 00 35 04 06 00 E9 [10:32:09]Write to MH i2c: E2 02 01 21 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A8 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8A 02 00 35 04 06 00 E9 00 00 D8 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [10:32:09]RAPDU: 90 00 [10:32:09]wFMCommunicate OK [10:32:09]wFMCommunicate request_size=10 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 0D 02 02 05 BA EA BD 83 22 [10:32:09]Write to MH i2c: E2 0D 00 22 02 80 0D 02 02 05 00 BA EA BD 83 22 00 00 AE [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [10:32:09]RAPDU: 90 00 [10:32:09]wFMCommunicate OK [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 0D 03 02 [10:32:09]Write to MH i2c: E2 08 00 23 02 80 0D 03 02 00 00 00 00 A0 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0B 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0B 00 23 02 00 FD 21 54 04 36 DB 6F 14 90 00 AB [10:32:09]RAPDU: FD 21 54 04 36 DB 6F 14 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_SignData done [10:32:09]FM_MakeSignedData done [10:32:09]CreateOFDProtocolMessage [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 11 00 00 [10:32:09]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:32:10]wFMCommunicate OK [10:32:10]CreateOFDProtocolMessage done [10:32:10]OFDSenderStorePacket 166652 [10:32:10]StoreOFDPacket docnum=166652 [10:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 5D 07 01 58 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A8 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8A 02 00 35 04 06 00 E9 BA EA BD 83 22 FD 21 54 04 36 DB 6F 14 [10:32:10]CheckFolder [10:32:10]dirname=/storage/ofd_packets [10:32:10]CheckFolder done [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00166652 [10:32:10]NVStorageSaveData ofd_packets/00166652 [10:32:10]File name is /storage/ofd_packets/00166652 [10:32:10]Write 301 bytes [10:32:10]NVStorageSaveData done [10:32:10]OFDSenderStorePacket done [10:32:10]KKMCreateOFDPacket done [10:32:10]NVStorageSaveData kkm_last_timestamp [10:32:10]File name is /storage/kkm_last_timestamp [10:32:10]Write 4 bytes [10:32:10]NVStorageSaveData done [10:32:10]ExternCall_PrintAddStr [10:32:10]wPrintStart [10:32:10]Write to MH i2c: 01 00 00 25 02 27 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [10:32:10]RasterBufferAndPrint [10:32:10]line Счет N : (1)221234 [10:32:10]line ИНН: 02508201610067 [10:32:10]line Контрольно-Кассовый Чек [10:32:10]line ПРОДАЖА [10:32:10]line ТРК (МРК, ГНК) : 43 [10:32:10]line Товар: 2710124130 [10:32:10]line Аи-92-К-5 [10:32:10]line 7.470 * 66.90 [10:32:10]line = 499.74 [10:32:10]line НДС 12% НСП 1% [10:32:10]line > о реализуемом товаре [10:32:10]line ОКРУГЛЕНИЕ: -0.74 [10:32:10]line ИТОГО: 499.00 [10:32:10]line Внесено: 500.00 [10:32:10]line СДАЧА: 1.00 [10:32:10]line НСП 1% : 4.42 [10:32:10]line НДС 12% : 53.07 [10:32:10]line Наличными: 499.00 [10:32:10]line Безнал.: 0.00 [10:32:10]line Место: АЗС № 161 "Партнер Нефть" [10:32:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:32:10]line СНО: Общий режим [10:32:10]line Чек 67 23.10.2024 10:32 [10:32:10]line Смена: 537 ФФД: 1.0 [10:32:10]line ЗНМ: 0300000104 [10:32:10]line РНМ: 0000000000091764 [10:32:10]line Версия ККМ: 001 [10:32:10]line ФМ: 0000000000871759 [10:32:10]line ФД: 166652 [10:32:10]line ФПД: 256989011477282 [10:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166652&fm=256989011477282&tin=02508201610067®Number=0000000000091764&sum=49900 [10:32:10]OFD Sender: Processing packet 166652 [packets to send 48, broken 47] [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00166652 [10:32:10]OFD Sender: To server: pG, [10:32:10]CommunicateWithHost lk.salyk.kg:30040 [10:32:10]ConnectInit lk.salyk.kg [10:32:10]written 0, free lines is 4095 [10:32:10]Connected sock=10 [10: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 31 37 35 39 0F 01 00 00 52 5D 07 01 58 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A8 D0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8A 02 00 35 04 06 00 E9 BA EA BD 83 22 FD 21 54 04 36 DB 6F 14 [10:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 E5 47 00 5C 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8A 02 00 F4 03 04 00 10 77 18 67 B6 04 01 00 00 F9 93 AA 94 C6 1C 6C 6B [10:32:10]CommunicateWithHost err = 0 [10:32:10]CheckOFDResponse [10:32:10]1017 (14) - 77093643461234 [10:32:10]1041 (16) - 0000000000871759 [10:32:10]1040 (4) - 166652 [10:32:10]1012 (4) - 23.10.2024 04:09 [10:32:10]1206 (1) - 0 [10:32:10]OFD Sender: Remove packet 166652 [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00166652 [10:32:10]NVStorageDeleteData [10:32:10]Write to MH i2c: 01 00 00 50 02 52 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 AD 0C 12 [10:32:10]RasterBufferAndPrint [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]line [10:32:10]written 0, free lines is 3251 [10:32:10]MH_Cut [10:32:10]Write to MH i2c: D1 01 00 57 02 01 2B [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: D1 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: D1 01 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: D1 01 00 57 02 00 2A [10:32:10]Write to MH i2c: 01 00 00 58 02 5A [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:11]OFD Sender: No OFD packet to send [10:32:11]*** Cut start [10:32:11]*** Partial cut [10:32:11]*** CUTSNS_PIN = 1 [10:32:11]*** CUTSNS_PIN = 0 [10:32:11]*** Brake cut motor [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]*** Stop cut motor [10:32:12]*** Cut end [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [10:32:12]process_action close_receipt done [10:32:12]requested_data is exist [10:32:12]produce_requested_data [10:32:12]requested_item fm.sn is exist - process it [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 11 00 00 [10:32:12]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [10:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:32:12]wFMCommunicate OK [10:32:12]requested_item fd.num is exist - process it [10:32:12]SAM_PROTO_GetFieldsCounters [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 13 00 00 [10:32:12]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 62 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 62 00 5A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [10: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_GetFieldsCounters done [10:32:12]requested_item shift.num is exist - process it [10:32:12]requested_item shift.opened is exist - process it [10:32:12]req_shift_opened [10:32:12]FM_GetShiftState [10:32:12]SAM_PROTO_GetShiftState [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 13 01 00 [10:32:12]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0E 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A5 [10:32:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_GetShiftState done [10:32:12]FM_GetShiftState done [10:32:12]req_shift_opened done [10:32:12]requested_item shift.open_date is exist - process it [10:32:12]req_shift_open_date [10:32:12]req_shift_open_date done [10:32:12]produce_requested_data done [10:32:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166652,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:32:12]process_action_free close_receipt [10:32:12]json_value_free [10:32:12]json_value_free done [10:32:12]process_json_proto returns [10:32:12]Send response to host [10:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166652,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:32:12]free response buf [10:32:12]execute_script done [10:32:12]execute_script returns [10:32:12]free content buf [10:32:12]Sock 8.Close socket [10:32:12]Sock 8.Thread stoped [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:23]accept exits with 9 [10:34:23]New connection [10:34:23]New thread 3067178340 created [10:34:23]Thread 3067034980 joined [10:34:23]Waiting for new connection... [10:34:23] Sock 9.Parse request [10:34:23]Sock 9.Check first char [10:34:23]Sock 9.First char is OK [10:34:23]request: POST /json_proto HTTP/1.0 [10:34:23]Method: POST [10:34:23]URL: /json_proto [10:34:23]Method is POST - this is cgi request [10:34:23]url: /json_proto [10:34:23]query_string will be loaded in cgi processing [10:34:23]execute_cgi json_proto POST (null) [10:34:23]execute_cgi path=json_proto method=POST [10:34:23]POST find Content-Length [10:34:23]Host: 172.17.53.195:8080 [10:34:23]Content-Length: 678 [10:34:23]Content-Type: application/json [10:34:23] [10:34:23]POST finish read [10:34:23]Found Content-Length = 678 [10:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:23]execute_script... [10:34: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)221235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:23]POST & json_proto [10:34:23]process_json_proto [10:34:23]json parsed OK: [10:34:23]protocol is kg_v1.0 [10:34:23]action value=close_receipt [10:34:23]process_action close_receipt [10:34:23]cmd_close_receipt [10:34:23]MH_GetDate [10:34:23]Write to MH i2c: F0 00 00 5C 02 4D [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: F0 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: F0 09 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: F0 09 00 5C 02 00 30 D1 18 67 21 48 4A 65 EE [10:34:23]GetLastDocTimeStamp 1729679528 [10:34:23]current date 1729679664 [10:34:23]FM_GetShiftState [10:34:23]SAM_PROTO_GetShiftState [10:34:23]wFMCommunicate request_size=4 [10:34:23]MH_SAM_APDU [10:34:23]CAPDU: 80 13 01 00 [10:34:23]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:23]Read from MH i2c: E2 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 0E 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A7 [10:34:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:34:23]wFMCommunicate OK [10:34:23]SAM_PROTO_GetShiftState done [10:34:23]FM_GetShiftState done [10:34:23]opened in 1729643772 [10:34:23]opened+sec_in_day 1729730172 [10:34:23]quantity*price = 70044 [10:34:23]sum+1 = 70045 [10:34:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 68 23.10.2024 10:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166653 ФПД: 264270398579309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103424&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166653&fm=264270398579309&tin=02508201610067®Number=0000000000091764&sum=70000 [10:34:24]StoreToDocumentArchive [10:34:24]shift 537 fd 166653 [10:34:24]save to /storage/0537/doc_00166653 [10:34:24]save last doc name /storage/0537/doc_00166653 to /storage/kkm_last_doc_name [10:34:24]save OK [10:34:24]Clear old archive folders... [10:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:24]tlvbuf is 01F5BB20 [10:34:24]SAM_PROTO_ClearQueue [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 09 00 00 [10:34:24]Write to MH i2c: E2 08 00 6A 02 80 09 00 00 00 00 00 00 DE [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:24]Read from MH i2c: E2 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 03 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [10:34:24]RAPDU: 90 00 [10:34:24]wFMCommunicate OK [10:34:24]SAM_PROTO_ClearQueue done [10:34:24]KKMCreateOFDPacket [10:34:24]OFDProtocolAddRootSTLVToBuf [10:34:24]FM_MakeSignedData [10:34:24]FM_MakeSignedData [10:34:24]SAM_PROTO_SignData [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 0D 01 02 [10:34:24]Write to MH i2c: E2 08 00 6B 02 80 0D 01 02 00 00 00 00 E6 [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=255 [10:34:25]MH_SAM_APDU [10:34: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 30 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8A 02 00 35 04 06 00 F0 [10:34:25]Write to MH i2c: E2 02 01 6C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 30 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8A 02 00 35 04 06 00 F0 00 00 E4 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=10 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 0D 02 02 05 5A 3F 3B 62 6D [10:34:25]Write to MH i2c: E2 0D 00 6D 02 80 0D 02 02 05 00 5A 3F 3B 62 6D 00 00 96 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 0D 03 02 [10:34:25]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 0B 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 0B 00 6E 02 00 BA CD 1A 96 5C DE FE C3 90 00 1E [10:34:25]RAPDU: BA CD 1A 96 5C DE FE C3 90 00 [10:34:25]wFMCommunicate OK [10:34:25]SAM_PROTO_SignData done [10:34:25]FM_MakeSignedData done [10:34:25]CreateOFDProtocolMessage [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 11 00 00 [10:34:25]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 17 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [10:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:34:25]wFMCommunicate OK [10:34:25]CreateOFDProtocolMessage done [10:34:25]OFDSenderStorePacket 166653 [10:34:25]StoreOFDPacket docnum=166653 [10:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 21 07 01 9E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 30 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8A 02 00 35 04 06 00 F0 5A 3F 3B 62 6D BA CD 1A 96 5C DE FE C3 [10:34:25]CheckFolder [10:34:25]dirname=/storage/ofd_packets [10:34:25]CheckFolder done [10:34:25]ProducePacketName [10:34:25]name=ofd_packets/00166653 [10:34:25]NVStorageSaveData ofd_packets/00166653 [10:34:25]File name is /storage/ofd_packets/00166653 [10:34:25]Write 301 bytes [10:34:25]NVStorageSaveData done [10:34:25]OFDSenderStorePacket done [10:34:25]KKMCreateOFDPacket done [10:34:25]NVStorageSaveData kkm_last_timestamp [10:34:25]File name is /storage/kkm_last_timestamp [10:34:25]Write 4 bytes [10:34:25]NVStorageSaveData done [10:34:25]OFD Sender: Processing packet 166653 [packets to send 48, broken 47] [10:34:25]ProducePacketName [10:34:25]name=ofd_packets/00166653 [10:34:25]OFD Sender: To server: pG, [10:34:25]CommunicateWithHost lk.salyk.kg:30040 [10:34:25]ConnectInit lk.salyk.kg [10:34:25]ExternCall_PrintAddStr [10:34:25]wPrintStart [10:34:25]Write to MH i2c: 01 00 00 70 02 72 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 07 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [10:34:25]RasterBufferAndPrint [10:34:25]line Счет N : (1)221235 [10:34:25]line ИНН: 02508201610067 [10:34:25]line Контрольно-Кассовый Чек [10:34:25]line ПРОДАЖА [10:34:25]line ТРК (МРК, ГНК) : 23 [10:34:25]line Товар: 2710124130 [10:34:25]line Аи-92-К-5 [10:34:25]line 10.470 * 66.90 [10:34:25]line = 700.44 [10:34:25]line НДС 12% НСП 1% [10:34:25]line > о реализуемом товаре [10:34:25]line ОКРУГЛЕНИЕ: -0.44 [10:34:25]line ИТОГО: 700.00 [10:34:25]line Внесено: 700.00 [10:34:25]line СДАЧА: 0.00 [10:34:25]line НСП 1% : 6.20 [10:34:25]line НДС 12% : 74.38 [10:34:25]line Наличными: 700.00 [10:34:25]line Безнал.: 0.00 [10:34:25]line Место: АЗС № 161 "Партнер Нефть" [10:34:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:34:25]line СНО: Общий режим [10:34:25]line Чек 68 23.10.2024 10:34 [10:34:25]line Смена: 537 ФФД: 1.0 [10:34:25]line ЗНМ: 0300000104 [10:34:25]line РНМ: 0000000000091764 [10:34:25]line Версия ККМ: 001 [10:34:25]line ФМ: 0000000000871759 [10:34:25]line ФД: 166653 [10:34:25]line ФПД: 264270398579309 [10:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103424&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166653&fm=264270398579309&tin=02508201610067®Number=0000000000091764&sum=70000 [10:34:25]Connected sock=11 [10:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 21 07 01 9E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 30 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8A 02 00 35 04 06 00 F0 5A 3F 3B 62 6D BA CD 1A 96 5C DE FE C3 [10:34:25]written 0, free lines is 4095 [10:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 05 BE 47 00 2E 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8A 02 00 F4 03 04 00 98 77 18 67 B6 04 01 00 00 64 29 1B 13 1C 69 B5 78 [10:34:26]CommunicateWithHost err = 0 [10:34:26]CheckOFDResponse [10:34:26]1017 (14) - 77093643461234 [10:34:26]1041 (16) - 0000000000871759 [10:34:26]1040 (4) - 166653 [10:34:26]1012 (4) - 23.10.2024 04:12 [10:34:26]1206 (1) - 0 [10:34:26]OFD Sender: Remove packet 166653 [10:34:26]ProducePacketName [10:34:26]name=ofd_packets/00166653 [10:34:26]NVStorageDeleteData [10:34:26]Write to MH i2c: 01 00 00 9B 02 9D [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 07 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 AA 0C 5A [10:34:26]RasterBufferAndPrint [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]written 0, free lines is 3248 [10:34:26]MH_Cut [10:34:26]Write to MH i2c: D1 01 00 A2 02 01 76 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 01 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 01 00 A2 02 00 75 [10:34:26]Write to MH i2c: 01 00 00 A3 02 A5 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]OFD Sender: No OFD packet to send [10:34:27]*** Cut start [10:34:27]*** Partial cut [10:34:27]*** CUTSNS_PIN = 1 [10:34:27]*** CUTSNS_PIN = 0 [10:34:27]*** Brake cut motor [10:34:27]Read from MH i2c: 01 [10:34:27]MH_I2C_Read... [10:34:27]*** Stop cut motor [10:34:27]*** Cut end [10:34:27]Read from MH i2c: 01 07 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [10:34:27]process_action close_receipt done [10:34:27]requested_data is exist [10:34:27]produce_requested_data [10:34:27]requested_item fm.sn is exist - process it [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 11 00 00 [10:34:27]Write to MH i2c: E2 08 00 A4 02 80 11 00 00 00 00 00 00 20 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:27]Read from MH i2c: E2 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 17 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 17 00 A4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [10:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:34:27]wFMCommunicate OK [10:34:27]requested_item fd.num is exist - process it [10:34:27]SAM_PROTO_GetFieldsCounters [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 13 00 00 [10:34:27]Write to MH i2c: E2 08 00 A5 02 80 13 00 00 00 00 00 00 23 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:27]Read from MH i2c: E2 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 62 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 62 00 A5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:27]wFMCommunicate OK [10:34:27]SAM_PROTO_GetFieldsCounters done [10:34:27]requested_item shift.num is exist - process it [10:34:27]requested_item shift.opened is exist - process it [10:34:27]req_shift_opened [10:34:27]FM_GetShiftState [10:34:27]SAM_PROTO_GetShiftState [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 13 01 00 [10:34:27]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F0 [10:34:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_GetShiftState done [10:34:28]FM_GetShiftState done [10:34:28]req_shift_opened done [10:34:28]requested_item shift.open_date is exist - process it [10:34:28]req_shift_open_date [10:34:28]req_shift_open_date done [10:34:28]produce_requested_data done [10:34:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166653,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:34:28]process_action_free close_receipt [10:34:28]json_value_free [10:34:28]json_value_free done [10:34:28]process_json_proto returns [10:34:28]Send response to host [10:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166653,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:34:28]free response buf [10:34:28]execute_script done [10:34:28]execute_script returns [10:34:28]free content buf [10:34:28]Sock 9.Close socket [10:34:28]Sock 9.Thread stoped [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:24]accept exits with 10 [10:36:24]New connection [10:36:24]New thread 3067034980 created [10:36:24]Thread 3067178340 joined [10:36:24]Waiting for new connection... [10:36:24] Sock 10.Parse request [10:36:24]Sock 10.Check first char [10:36:24]Sock 10.First char is OK [10:36:24]request: POST /json_proto HTTP/1.0 [10:36:24]Method: POST [10:36:24]URL: /json_proto [10:36:24]Method is POST - this is cgi request [10:36:24]url: /json_proto [10:36:24]query_string will be loaded in cgi processing [10:36:24]execute_cgi json_proto POST (null) [10:36:24]execute_cgi path=json_proto method=POST [10:36:24]POST find Content-Length [10:36:24]Host: 172.17.53.195:8080 [10:36:24]Content-Length: 677 [10:36:24]Content-Type: application/json [10:36:24] [10:36:24]POST finish read [10:36:24]Found Content-Length = 677 [10:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:24]execute_script... [10:36: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)221236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:24]POST & json_proto [10:36:24]process_json_proto [10:36:24]json parsed OK: [10:36:24]protocol is kg_v1.0 [10:36:24]action value=close_receipt [10:36:24]process_action close_receipt [10:36:24]cmd_close_receipt [10:36:24]MH_GetDate [10:36:24]Write to MH i2c: F0 00 00 A7 02 98 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: F0 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: F0 09 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: F0 09 00 A7 02 00 A8 D1 18 67 21 48 4A 65 B1 [10:36:24]GetLastDocTimeStamp 1729679664 [10:36:24]current date 1729679784 [10:36:24]FM_GetShiftState [10:36:24]SAM_PROTO_GetShiftState [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 13 01 00 [10:36:24]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0E 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F2 [10:36:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:36:24]wFMCommunicate OK [10:36:24]SAM_PROTO_GetShiftState done [10:36:24]FM_GetShiftState done [10:36:24]opened in 1729643772 [10:36:24]opened+sec_in_day 1729730172 [10:36:24]quantity*price = 50041 [10:36:24]sum+1 = 50042 [10:36:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 69 23.10.2024 10:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166654 ФПД: 188746573305244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166654&fm=188746573305244&tin=02508201610067®Number=0000000000091764&sum=50000 [10:36:25]StoreToDocumentArchive [10:36:25]shift 537 fd 166654 [10:36:25]save to /storage/0537/doc_00166654 [10:36:25]save last doc name /storage/0537/doc_00166654 to /storage/kkm_last_doc_name [10:36:25]save OK [10:36:25]Clear old archive folders... [10:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:25]tlvbuf is B6EDF140 [10:36:25]SAM_PROTO_ClearQueue [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 09 00 00 [10:36:25]Write to MH i2c: E2 08 00 B5 02 80 09 00 00 00 00 00 00 29 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_ClearQueue done [10:36:25]KKMCreateOFDPacket [10:36:25]OFDProtocolAddRootSTLVToBuf [10:36:25]FM_MakeSignedData [10:36:25]FM_MakeSignedData [10:36:25]SAM_PROTO_SignData [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 01 02 [10:36:25]Write to MH i2c: E2 08 00 B6 02 80 0D 01 02 00 00 00 00 31 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=255 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A8 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8A 02 00 35 04 06 00 AB [10:36:25]Write to MH i2c: E2 02 01 B7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A8 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8A 02 00 35 04 06 00 AB 00 00 54 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]wFMCommunicate request_size=10 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 0D 02 02 05 A9 FC 74 55 9C [10:36:26]Write to MH i2c: E2 0D 00 B8 02 80 0D 02 02 05 00 A9 FC 74 55 9C 00 00 48 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 0D 03 02 [10:36:26]Write to MH i2c: E2 08 00 B9 02 80 0D 03 02 00 00 00 00 36 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0B 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0B 00 B9 02 00 F9 0B 86 A2 33 29 DC 96 90 00 31 [10:36:26]RAPDU: F9 0B 86 A2 33 29 DC 96 90 00 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_SignData done [10:36:26]FM_MakeSignedData done [10:36:26]CreateOFDProtocolMessage [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 11 00 00 [10:36:26]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 17 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [10:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:36:26]wFMCommunicate OK [10:36:26]CreateOFDProtocolMessage done [10:36:26]OFDSenderStorePacket 166654 [10:36:26]StoreOFDPacket docnum=166654 [10:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 10 07 01 4E B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A8 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8A 02 00 35 04 06 00 AB A9 FC 74 55 9C F9 0B 86 A2 33 29 DC 96 [10:36:26]CheckFolder [10:36:26]dirname=/storage/ofd_packets [10:36:26]CheckFolder done [10:36:26]ProducePacketName [10:36:26]name=ofd_packets/00166654 [10:36:26]NVStorageSaveData ofd_packets/00166654 [10:36:26]File name is /storage/ofd_packets/00166654 [10:36:26]Write 301 bytes [10:36:26]NVStorageSaveData done [10:36:26]OFDSenderStorePacket done [10:36:26]KKMCreateOFDPacket done [10:36:26]NVStorageSaveData kkm_last_timestamp [10:36:26]File name is /storage/kkm_last_timestamp [10:36:26]Write 4 bytes [10:36:26]NVStorageSaveData done [10:36:26]ExternCall_PrintAddStr [10:36:26]wPrintStart [10:36:26]Write to MH i2c: 01 00 00 BB 02 BD [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [10:36:26]RasterBufferAndPrint [10:36:26]line Счет N : (1)221236 [10:36:26]line ИНН: 02508201610067 [10:36:26]line Контрольно-Кассовый Чек [10:36:26]line ПРОДАЖА [10:36:26]line ТРК (МРК, ГНК) : 13 [10:36:26]line Товар: 2710124130 [10:36:26]line Аи-92-К-5 [10:36:26]line 7.480 * 66.90 [10:36:26]line = 500.41 [10:36:26]line НДС 12% НСП 1% [10:36:26]line > о реализуемом товаре [10:36:26]line ОКРУГЛЕНИЕ: -0.41 [10:36:26]line ИТОГО: 500.00 [10:36:26]line Внесено: 500.00 [10:36:26]line СДАЧА: 0.00 [10:36:26]line НСП 1% : 4.43 [10:36:26]line НДС 12% : 53.14 [10:36:26]line Наличными: 500.00 [10:36:26]line Безнал.: 0.00 [10:36:26]line Место: АЗС № 161 "Партнер Нефть" [10:36:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:36:26]line СНО: Общий режим [10:36:26]line Чек 69 23.10.2024 10:36 [10:36:26]line Смена: 537 ФФД: 1.0 [10:36:26]line ЗНМ: 0300000104 [10:36:26]line РНМ: 0000000000091764 [10:36:26]line Версия ККМ: 001 [10:36:26]line ФМ: 0000000000871759 [10:36:26]line ФД: 166654 [10:36:26]line ФПД: 188746573305244 [10:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166654&fm=188746573305244&tin=02508201610067®Number=0000000000091764&sum=50000 [10:36:26]OFD Sender: Processing packet 166654 [packets to send 48, broken 47] [10:36:26]ProducePacketName [10:36:26]name=ofd_packets/00166654 [10:36:26]OFD Sender: To server: pG, [10:36:26]CommunicateWithHost lk.salyk.kg:30040 [10:36:26]ConnectInit lk.salyk.kg [10:36:26]written 0, free lines is 4095 [10:36:26]Connected sock=9 [10:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 10 07 01 4E B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A8 D1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8A 02 00 35 04 06 00 AB A9 FC 74 55 9C F9 0B 86 A2 33 29 DC 96 [10:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 08 47 00 2F D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8A 02 00 F4 03 04 00 10 78 18 67 B6 04 01 00 00 38 CC 90 0F 18 7B 77 EE [10:36:26]CommunicateWithHost err = 0 [10:36:26]CheckOFDResponse [10:36:26]1017 (14) - 77093643461234 [10:36:26]1041 (16) - 0000000000871759 [10:36:26]1040 (4) - 166654 [10:36:26]1012 (4) - 23.10.2024 04:14 [10:36:26]1206 (1) - 0 [10:36:26]OFD Sender: Remove packet 166654 [10:36:26]ProducePacketName [10:36:26]name=ofd_packets/00166654 [10:36:26]NVStorageDeleteData [10:36:26]Write to MH i2c: 01 00 00 E6 02 E8 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 A9 0C A4 [10:36:26]RasterBufferAndPrint [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]written 0, free lines is 3246 [10:36:27]MH_Cut [10:36:27]Write to MH i2c: D1 01 00 ED 02 01 C1 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 01 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 01 00 ED 02 00 C0 [10:36:27]Write to MH i2c: 01 00 00 EE 02 F0 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]OFD Sender: No OFD packet to send [10:36:27]*** Cut start [10:36:27]*** Partial cut [10:36:27]*** CUTSNS_PIN = 1 [10:36:27]*** CUTSNS_PIN = 0 [10:36:28]*** Brake cut motor [10:36:28]Read from MH i2c: 01 [10:36:28]MH_I2C_Read... [10:36:28]*** Stop cut motor [10:36:28]*** Cut end [10:36:28]Read from MH i2c: 01 07 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 EE 02 00 00 00 00 00 FF 0F 05 [10:36:28]process_action close_receipt done [10:36:28]requested_data is exist [10:36:28]produce_requested_data [10:36:28]requested_item fm.sn is exist - process it [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 11 00 00 [10:36:28]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 17 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [10:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:36:28]wFMCommunicate OK [10:36:28]requested_item fd.num is exist - process it [10:36:28]SAM_PROTO_GetFieldsCounters [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 13 00 00 [10:36:28]Write to MH i2c: E2 08 00 F0 02 80 13 00 00 00 00 00 00 6E [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 62 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 62 00 F0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:36:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_GetFieldsCounters done [10:36:28]requested_item shift.num is exist - process it [10:36:28]requested_item shift.opened is exist - process it [10:36:28]req_shift_opened [10:36:28]FM_GetShiftState [10:36:28]SAM_PROTO_GetShiftState [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 13 01 00 [10:36:28]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0E 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3B [10:36:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_GetShiftState done [10:36:28]FM_GetShiftState done [10:36:28]req_shift_opened done [10:36:28]requested_item shift.open_date is exist - process it [10:36:28]req_shift_open_date [10:36:28]req_shift_open_date done [10:36:28]produce_requested_data done [10:36:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166654,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:36:28]process_action_free close_receipt [10:36:28]json_value_free [10:36:28]json_value_free done [10:36:28]process_json_proto returns [10:36:28]Send response to host [10:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166654,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:36:28]free response buf [10:36:28]execute_script done [10:36:28]execute_script returns [10:36:28]free content buf [10:36:28]Sock 10.Close socket [10:36:28]Sock 10.Thread stoped [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:10]accept exits with 8 [10:38:10]New connection [10:38:10]New thread 3067178340 created [10:38:10]Thread 3067034980 joined [10:38:10]Waiting for new connection... [10:38:10] Sock 8.Parse request [10:38:10]Sock 8.Check first char [10:38:10]Sock 8.First char is OK [10:38:10]request: POST /json_proto HTTP/1.0 [10:38:10]Method: POST [10:38:10]URL: /json_proto [10:38:10]Method is POST - this is cgi request [10:38:10]url: /json_proto [10:38:10]query_string will be loaded in cgi processing [10:38:10]execute_cgi json_proto POST (null) [10:38:10]execute_cgi path=json_proto method=POST [10:38:10]POST find Content-Length [10:38:10]Host: 172.17.53.195:8080 [10:38:10]Content-Length: 679 [10:38:10]Content-Type: application/json [10:38:10] [10:38:10]POST finish read [10:38:10]Found Content-Length = 679 [10:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [10:38:10]execute_script... [10:38: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)221237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [10:38:10]POST & json_proto [10:38:10]process_json_proto [10:38:10]json parsed OK: [10:38:10]protocol is kg_v1.0 [10:38:10]action value=close_receipt [10:38:10]process_action close_receipt [10:38:10]cmd_close_receipt [10:38:10]MH_GetDate [10:38:10]Write to MH i2c: F0 00 00 F2 02 E3 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 F2 02 00 13 D2 18 67 21 48 4A 65 68 [10:38:10]GetLastDocTimeStamp 1729679784 [10:38:10]current date 1729679891 [10:38:10]FM_GetShiftState [10:38:10]SAM_PROTO_GetShiftState [10:38:10]wFMCommunicate request_size=4 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 13 01 00 [10:38:10]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3D [10:38:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:38:10]wFMCommunicate OK [10:38:10]SAM_PROTO_GetShiftState done [10:38:10]FM_GetShiftState done [10:38:10]opened in 1729643772 [10:38:10]opened+sec_in_day 1729730172 [10:38:10]quantity*price = 110032 [10:38:10]sum+1 = 110034 [10:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 70 23.10.2024 10:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166655 ФПД: 276680562900565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103811&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166655&fm=276680562900565&tin=02508201610067®Number=0000000000091764&sum=110000 [10:38:11]StoreToDocumentArchive [10:38:11]shift 537 fd 166655 [10:38:11]save to /storage/0537/doc_00166655 [10:38:11]save last doc name /storage/0537/doc_00166655 to /storage/kkm_last_doc_name [10:38:11]save OK [10:38:11]Clear old archive folders... [10:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:11]tlvbuf is 01FB5C70 [10:38:11]SAM_PROTO_ClearQueue [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 09 00 00 [10:38:11]Write to MH i2c: E2 08 00 00 03 80 09 00 00 00 00 00 00 75 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_ClearQueue done [10:38:11]KKMCreateOFDPacket [10:38:11]OFDProtocolAddRootSTLVToBuf [10:38:11]FM_MakeSignedData [10:38:11]FM_MakeSignedData [10:38:11]SAM_PROTO_SignData [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 01 02 [10:38:11]Write to MH i2c: E2 08 00 01 03 80 0D 01 02 00 00 00 00 7D [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]wFMCommunicate request_size=255 [10:38:12]MH_SAM_APDU [10:38: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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 46 00 00 00 F4 03 04 00 13 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8A 02 00 35 04 06 00 FB A3 B6 AA [10:38:12]Write to MH i2c: E2 02 01 02 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 46 00 00 00 F4 03 04 00 13 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8A 02 00 35 04 06 00 FB A3 B6 AA 00 00 8E [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]wFMCommunicate request_size=7 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 0D 02 02 02 FE 55 [10:38:12]Write to MH i2c: E2 0A 00 03 03 80 0D 02 02 02 00 FE 55 00 00 D7 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 0D 03 02 [10:38:12]Write to MH i2c: E2 08 00 04 03 80 0D 03 02 00 00 00 00 82 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 04 03 00 B9 E2 37 8F 5A BD EF 83 90 00 6D [10:38:12]RAPDU: B9 E2 37 8F 5A BD EF 83 90 00 [10:38:12]wFMCommunicate OK [10:38:12]SAM_PROTO_SignData done [10:38:12]FM_MakeSignedData done [10:38:12]CreateOFDProtocolMessage [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 11 00 00 [10:38:12]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [10:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:12]wFMCommunicate OK [10:38:12]CreateOFDProtocolMessage done [10:38:12]OFDSenderStorePacket 166655 [10:38:12]StoreOFDPacket docnum=166655 [10:38:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 81 DB 04 01 9F 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 46 00 00 00 F4 03 04 00 13 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8A 02 00 35 04 06 00 FB A3 B6 AA FE 55 B9 E2 37 8F 5A BD EF 83 [10:38:12]CheckFolder [10:38:12]dirname=/storage/ofd_packets [10:38:12]CheckFolder done [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00166655 [10:38:12]NVStorageSaveData ofd_packets/00166655 [10:38:12]File name is /storage/ofd_packets/00166655 [10:38:12]Write 298 bytes [10:38:12]NVStorageSaveData done [10:38:12]OFDSenderStorePacket done [10:38:12]KKMCreateOFDPacket done [10:38:12]NVStorageSaveData kkm_last_timestamp [10:38:12]File name is /storage/kkm_last_timestamp [10:38:12]Write 4 bytes [10:38:12]NVStorageSaveData done [10:38:12]ExternCall_PrintAddStr [10:38:12]wPrintStart [10:38:12]Write to MH i2c: 01 00 00 06 03 09 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [10:38:12]RasterBufferAndPrint [10:38:12]line Счет N : (1)221237 [10:38:12]line ИНН: 02508201610067 [10:38:12]line Контрольно-Кассовый Чек [10:38:12]line ПРОДАЖА [10:38:12]line ТРК (МРК, ГНК) : 21 [10:38:12]line Товар: 2710194210 [10:38:12]line ДТ-К-5 [10:38:12]line 14.440 * 76.20 [10:38:12]line = 1100.33 [10:38:12]line НДС 12% НСП 1% [10:38:12]line > о реализуемом товаре [10:38:12]line ОКРУГЛЕНИЕ: -0.33 [10:38:12]line ИТОГО: 1100.00 [10:38:12]line Внесено: 1100.00 [10:38:12]line СДАЧА: 0.00 [10:38:12]line НСП 1% : 9.74 [10:38:12]line НДС 12% : 116.85 [10:38:12]line Наличными: 1100.00 [10:38:12]line Безнал.: 0.00 [10:38:12]line Место: АЗС № 161 "Партнер Нефть" [10:38:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:38:12]line СНО: Общий режим [10:38:12]line Чек 70 23.10.2024 10:38 [10:38:12]line Смена: 537 ФФД: 1.0 [10:38:12]line ЗНМ: 0300000104 [10:38:12]line РНМ: 0000000000091764 [10:38:12]line Версия ККМ: 001 [10:38:12]line ФМ: 0000000000871759 [10:38:12]line ФД: 166655 [10:38:12]line ФПД: 276680562900565 [10:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103811&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166655&fm=276680562900565&tin=02508201610067®Number=0000000000091764&sum=110000 [10:38:12]OFD Sender: Processing packet 166655 [packets to send 48, broken 47] [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00166655 [10:38:12]OFD Sender: To server: pG, [10:38:12]CommunicateWithHost lk.salyk.kg:30040 [10:38:12]ConnectInit lk.salyk.kg [10:38:12]written 0, free lines is 4095 [10:38:12]Connected sock=10 [10:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 81 DB 04 01 9F 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 46 00 00 00 F4 03 04 00 13 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8A 02 00 35 04 06 00 FB A3 B6 AA FE 55 B9 E2 37 8F 5A BD EF 83 [10:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F1 97 47 00 8D 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8A 02 00 F4 03 04 00 7B 78 18 67 B6 04 01 00 00 13 1A C2 8D FF 45 11 64 [10:38:13]CommunicateWithHost err = 0 [10:38:13]CheckOFDResponse [10:38:13]1017 (14) - 77093643461234 [10:38:13]1041 (16) - 0000000000871759 [10:38:13]1040 (4) - 166655 [10:38:13]1012 (4) - 23.10.2024 04:15 [10:38:13]1206 (1) - 0 [10:38:13]OFD Sender: Remove packet 166655 [10:38:13]ProducePacketName [10:38:13]name=ofd_packets/00166655 [10:38:13]NVStorageDeleteData [10:38:13]Write to MH i2c: 01 00 00 31 03 34 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 A9 0C F0 [10:38:13]RasterBufferAndPrint [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]written 0, free lines is 3247 [10:38:13]MH_Cut [10:38:13]Write to MH i2c: D1 01 00 38 03 01 0D [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 38 03 00 0C [10:38:13]Write to MH i2c: 01 00 00 39 03 3C [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]int [10:38:13]*** FLAG_PRN_PAP2 set [10:38:13]*** Cut start [10:38:13]*** Partial cut [10:38:13]*** CUTSNS_PIN = 1 [10:38:13]*** CUTSNS_PIN = 0 [10:38:13]OFD Sender: No OFD packet to send [10:38:13]*** Brake cut motor [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]*** Stop cut motor [10:38:13]Read from MH i2c: 01 *** Cut end [10:38:13]07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 39 03 00 02 00 00 00 FF 0F 53 [10:38:13]process_action close_receipt done [10:38:13]requested_data is exist [10:38:13]produce_requested_data [10:38:13]requested_item fm.sn is exist - process it [10:38:13]wFMCommunicate request_size=4 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 11 00 00 [10:38:13]Write to MH i2c: E2 08 00 3A 03 80 11 00 00 00 00 00 00 B7 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 3A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [10:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:14]wFMCommunicate OK [10:38:14]requested_item fd.num is exist - process it [10:38:14]SAM_PROTO_GetFieldsCounters [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 00 00 [10:38:14]Write to MH i2c: E2 08 00 3B 03 80 13 00 00 00 00 00 00 BA [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 3B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetFieldsCounters done [10:38:14]requested_item shift.num is exist - process it [10:38:14]requested_item shift.opened is exist - process it [10:38:14]req_shift_opened [10:38:14]FM_GetShiftState [10:38:14]SAM_PROTO_GetShiftState [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 01 00 [10:38:14]Write to MH i2c: 01 00 00 3C 03 3F [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: 01 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: 01 07 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: 01 07 00 3C 03 00 02 00 00 00 FF 0F 56 [10:38:14]state=0 [10:38:14]Cover opened [10:38:14]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 88 [10:38:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetShiftState done [10:38:14]FM_GetShiftState done [10:38:14]req_shift_opened done [10:38:14]requested_item shift.open_date is exist - process it [10:38:14]req_shift_open_date [10:38:14]req_shift_open_date done [10:38:14]produce_requested_data done [10:38:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166655,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:38:14]process_action_free close_receipt [10:38:14]json_value_free [10:38:14]json_value_free done [10:38:14]process_json_proto returns [10:38:14]Send response to host [10:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166655,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:38:14]free response buf [10:38:14]execute_script done [10:38:14]execute_script returns [10:38:14]free content buf [10:38:14]Sock 8.Close socket [10:38:14]Sock 8.Thread stoped [10:38:18]OFD Sender: No OFD packet to send [10:38:19]Write to MH i2c: 01 00 00 3E 03 41 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 3E 03 00 02 00 00 00 FF 0F 58 [10:38:19]state=3 [10:38:19]Cover opened [10:38:23]OFD Sender: No OFD packet to send [10:38:24]Write to MH i2c: 01 00 00 3F 03 42 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: 01 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: 01 07 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: 01 07 00 3F 03 00 02 00 00 00 FF 0F 59 [10:38:24]state=3 [10:38:24]Cover opened [10:38:28]OFD Sender: No OFD packet to send [10:38:29]Write to MH i2c: 01 00 00 40 03 43 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 40 03 00 02 00 00 00 FF 0F 5A [10:38:29]state=3 [10:38:29]Cover opened [10:38:33]OFD Sender: No OFD packet to send [10:38:34]Write to MH i2c: 01 00 00 41 03 44 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 41 03 00 02 00 00 00 FF 0F 5B [10:38:34]state=3 [10:38:34]Cover opened [10:38:38]OFD Sender: No OFD packet to send [10:38:39]Write to MH i2c: 01 00 00 42 03 45 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 42 03 00 02 00 00 00 FF 0F 5C [10:38:39]state=3 [10:38:39]Cover opened [10:38:40]int [10:38:40]Write to MH i2c: 01 00 00 43 03 46 [10:38:40]*** FLAG_PRN_PAP1 set [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: 01 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: 01 07 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: 01 07 00 43 03 00 03 00 00 00 FF 0F 5E [10:38:40]state=3 [10:38:40]No paper [10:38:40]Cover opened [10:38:43]OFD Sender: No OFD packet to send [10:38:45]Write to MH i2c: 01 00 00 44 03 47 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 44 03 00 03 00 00 00 FF 0F 5F [10:38:45]state=3 [10:38:45]No paper [10:38:45]Cover opened [10:38:45]int [10:38:45]Write to MH i2c: 01 00 00 45 03 48 [10:38:45]*** FLAG_PRN_PAP2 reset [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 45 03 00 01 00 00 00 FF 0F 5E [10:38:45]state=3 [10:38:45]No paper [10:38:45]Cover closed [10:38:45]int [10:38:45]Write to MH i2c: 01 00 00 46 03 49 [10:38:45]*** FLAG_PRN_PAP1 reset [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [10:38:45]state=0 [10:38:48]OFD Sender: No OFD packet to send [10:38:51]accept exits with 9 [10:38:51]New connection [10:38:51]New thread 3067034980 created [10:38:51]Thread 3067178340 joined [10:38:51]Waiting for new connection... [10:38:51] Sock 9.Parse request [10:38:51]Sock 9.Check first char [10:38:51]Sock 9.First char is OK [10:38:51]request: POST /json_proto HTTP/1.0 [10:38:51]Method: POST [10:38:51]URL: /json_proto [10:38:51]Method is POST - this is cgi request [10:38:51]url: /json_proto [10:38:51]query_string will be loaded in cgi processing [10:38:51]execute_cgi json_proto POST (null) [10:38:51]execute_cgi path=json_proto method=POST [10:38:51]POST find Content-Length [10:38:51]Host: 172.17.53.195:8080 [10:38:51]Content-Length: 215 [10:38:51]Content-Type: application/json [10:38:51] [10:38:51]POST finish read [10:38:51]Found Content-Length = 215 [10:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:51]execute_script... [10:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:51]POST & json_proto [10:38:51]process_json_proto [10:38:51]json parsed OK: [10:38:51]protocol is kg_v1.0 [10:38:51]action value=get_value [10:38:51]process_action get_value [10:38:51]cmd_get_value [10:38:51]process_action get_value done [10:38:51]requested_data is exist [10:38:51]produce_requested_data [10:38:51]requested_item kkm.sn is exist - process it [10:38:51]requested_item kkm.ver is exist - process it [10:38:51]requested_item fm.sn is exist - process it [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 11 00 00 [10:38:51]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 [10:38:51]MH_I2C_Read... [10:38:51]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 31 37 35 39 90 00 1C [10:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:51]wFMCommunicate OK [10:38:51]requested_item fd.num is exist - process it [10:38:51]SAM_PROTO_GetFieldsCounters [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 00 00 [10:38:51]Write to MH i2c: E2 08 00 48 03 80 13 00 00 00 00 00 00 C7 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 62 00 [10:38:51]MH_I2C_Read... [10:38:51]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_GetFieldsCounters done [10:38:51]requested_item shift.num is exist - process it [10:38:51]requested_item shift.opened is exist - process it [10:38:51]req_shift_opened [10:38:51]FM_GetShiftState [10:38:51]SAM_PROTO_GetShiftState [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 01 00 [10:38:51]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 94 [10:38:51]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_GetShiftState done [10:38:51]FM_GetShiftState done [10:38:51]req_shift_opened done [10:38:51]requested_item shift.open_date is exist - process it [10:38:51]req_shift_open_date [10:38:51]req_shift_open_date done [10:38:51]produce_requested_data done [10:38:51]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166655,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:38:51]process_action_free get_value [10:38:51]json_value_free [10:38:51]json_value_free done [10:38:51]process_json_proto returns [10:38:51]Send response to host [10:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166655,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:38:51]free response buf [10:38:51]execute_script done [10:38:51]execute_script returns [10:38:51]free content buf [10:38:51]Sock 9.Close socket [10:38:51]Sock 9.Thread stoped [10:38:51]accept exits with 8 [10:38:51]New connection [10:38:51]New thread 3067178340 created [10:38:51]Thread 3067034980 joined [10:38:51]Waiting for new connection... [10:38:51] Sock 8.Parse request [10:38:51]Sock 8.Check first char [10:38:51]Sock 8.First char is OK [10:38:51]request: POST /json_proto HTTP/1.0 [10:38:51]Method: POST [10:38:51]URL: /json_proto [10:38:51]Method is POST - this is cgi request [10:38:51]url: /json_proto [10:38:51]query_string will be loaded in cgi processing [10:38:51]execute_cgi json_proto POST (null) [10:38:51]execute_cgi path=json_proto method=POST [10:38:51]POST find Content-Length [10:38:51]Host: 172.17.53.195:8080 [10:38:51]Content-Length: 331 [10:38:51]Content-Type: application/json [10:38:51] [10:38:51]POST finish read [10:38:51]Found Content-Length = 331 [10:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:38:51]execute_script... [10:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:38:51]POST & json_proto [10:38:51]process_json_proto [10:38:51]json parsed OK: [10:38:51]protocol is kg_v1.0 [10:38:51]action value=get_value [10:38:51]process_action get_value [10:38:51]cmd_get_value [10:38:51]process_action get_value done [10:38:51]requested_data is exist [10:38:51]produce_requested_data [10:38:51]requested_item fm.sale.total is exist - process it [10:38:51]SAM_PROTO_GetFMData [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 03 00 [10:38:51]Write to MH i2c: E2 08 00 4A 03 80 13 03 00 00 00 00 00 CC [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 4A 03 00 C5 04 85 04 C1 04 6E 04 04 00 CD 86 02 00 69 04 A3 00 6F 04 04 00 CE 85 02 00 B1 04 05 00 82 92 B4 B4 03 70 04 05 00 C8 F5 AA 2A 03 72 04 04 00 BA 9C 09 8A 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 D7 41 CA 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 84 17 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 5F [10:38:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CD 86 02 00 69 04 A3 00 6F 04 04 00 CE 85 02 00 B1 04 05 00 82 92 B4 B4 03 70 04 05 00 C8 F5 AA 2A 03 72 04 04 00 BA 9C 09 8A 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 D7 41 CA 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 84 17 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 17 00 00 [10:38:52]Write to MH i2c: E2 08 00 4B 03 80 17 00 00 00 00 00 00 CE [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 4B 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9A [10:38:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 17 00 00 [10:38:52]Write to MH i2c: E2 08 00 4C 03 80 17 00 00 00 00 00 00 CF [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 4C 03 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E1 [10:38:52]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 17 00 00 [10:38:52]Write to MH i2c: E2 08 00 4D 03 80 17 00 00 00 00 00 00 D0 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 FD 00 4D 03 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 5C [10:38:52]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 17 00 00 [10:38:52]Write to MH i2c: E2 08 00 4E 03 80 17 00 00 00 00 00 00 D1 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 E2 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 E2 00 4E 03 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AF [10:38:53]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:38:53]wFMCommunicate OK [10:38:53]SAM_PROTO_GetFMData done [10:38:53]requested_item fm.sale_refund.total is exist - process it [10:38:53]requested_item fm.buy.total is exist - process it [10:38:53]requested_item shift.sale.total is exist - process it [10:38:53]SAM_PROTO_GetShiftData [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 13 02 00 [10:38:53]Write to MH i2c: E2 08 00 4F 03 80 13 02 00 00 00 00 00 D0 [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 FD 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 FD 00 4F 03 00 AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 F4 57 58 70 04 03 00 2C DD 50 72 04 03 00 C8 7A 07 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 9F 62 09 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 38 C8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6C [10:38:53]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 46 00 00 00 69 04 9B 00 6F 04 04 00 46 00 00 00 B1 04 03 00 F4 57 58 70 04 03 00 2C DD 50 72 04 03 00 C8 7A 07 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 9F 62 09 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 38 C8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:38:53]wFMCommunicate OK [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 17 00 00 [10:38:53]Write to MH i2c: E2 08 00 50 03 80 17 00 00 00 00 00 00 D3 [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]OFD Sender: No OFD packet to send [10:38:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 FD 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 FD 00 50 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 F5 [10:38:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:38:53]wFMCommunicate OK [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 17 00 00 [10:38:53]Write to MH i2c: E2 08 00 51 03 80 17 00 00 00 00 00 00 D4 [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 FD 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 FD 00 51 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 8B [10:38:54]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 17 00 00 [10:38:54]Write to MH i2c: E2 08 00 52 03 80 17 00 00 00 00 00 00 D5 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 FD 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 FD 00 52 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 47 [10:38:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 17 00 00 [10:38:54]Write to MH i2c: E2 08 00 53 03 80 17 00 00 00 00 00 00 D6 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 CB 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 CB 00 53 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [10:38:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_GetShiftData done [10:38:54]requested_item shift.sale.total_cash is exist - process it [10:38:54]requested_item shift.sale_refund.total is exist - process it [10:38:54]requested_item shift.sale_refund.total_cash is exist - process it [10:38:54]requested_item shift.buy.total is exist - process it [10:38:54]requested_item shift.buy.total_cash is exist - process it [10:38:54]produce_requested_data done [10:38:54]produce_requested_data return {"fm.sale.total":159166347.54,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":57896.84,"shift.sale.total_cash":52995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:38:54]process_action_free get_value [10:38:54]json_value_free [10:38:54]json_value_free done [10:38:54]process_json_proto returns [10:38:54]Send response to host [10:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159166347.54,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":57896.84,"shift.sale.total_cash":52995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:38:54]free response buf [10:38:54]execute_script done [10:38:54]execute_script returns [10:38:54]free content buf [10:38:54]Sock 8.Close socket [10:38:54]Sock 8.Thread stoped [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:19]accept exits with 9 [10:40:19]New connection [10:40:19]New thread 3067034980 created [10:40:19]Thread 3067178340 joined [10:40:19]Waiting for new connection... [10:40:19] Sock 9.Parse request [10:40:19]Sock 9.Check first char [10:40:19]Sock 9.First char is OK [10:40:19]request: POST /json_proto HTTP/1.0 [10:40:19]Method: POST [10:40:19]URL: /json_proto [10:40:19]Method is POST - this is cgi request [10:40:19]url: /json_proto [10:40:19]query_string will be loaded in cgi processing [10:40:19]execute_cgi json_proto POST (null) [10:40:19]execute_cgi path=json_proto method=POST [10:40:19]POST find Content-Length [10:40:19]Host: 172.17.53.195:8080 [10:40:19]Content-Length: 678 [10:40:19]Content-Type: application/json [10:40:19] [10:40:19]POST finish read [10:40:19]Found Content-Length = 678 [10:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]execute_script... [10:40: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)221238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]POST & json_proto [10:40:19]process_json_proto [10:40:19]json parsed OK: [10:40:19]protocol is kg_v1.0 [10:40:19]action value=close_receipt [10:40:19]process_action close_receipt [10:40:19]cmd_close_receipt [10:40:19]MH_GetDate [10:40:19]Write to MH i2c: F0 00 00 54 03 46 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 54 03 00 94 D2 18 67 21 48 4A 65 4C [10:40:19]GetLastDocTimeStamp 1729679891 [10:40:19]current date 1729680020 [10:40:19]FM_GetShiftState [10:40:19]SAM_PROTO_GetShiftState [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 13 01 00 [10:40:19]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A0 [10:40:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_GetShiftState done [10:40:19]FM_GetShiftState done [10:40:19]opened in 1729643772 [10:40:19]opened+sec_in_day 1729730172 [10:40:19]quantity*price = 70044 [10:40:19]sum+1 = 70045 [10:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 71 23.10.2024 10:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166656 ФПД: 204835395712348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166656&fm=204835395712348&tin=02508201610067®Number=0000000000091764&sum=70000 [10:40:21]StoreToDocumentArchive [10:40:21]shift 537 fd 166656 [10:40:21]save to /storage/0537/doc_00166656 [10:40:21]save last doc name /storage/0537/doc_00166656 to /storage/kkm_last_doc_name [10:40:21]save OK [10:40:21]Clear old archive folders... [10:40:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:21]tlvbuf is 01F614B0 [10:40:21]SAM_PROTO_ClearQueue [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 09 00 00 [10:40:21]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_ClearQueue done [10:40:21]KKMCreateOFDPacket [10:40:21]OFDProtocolAddRootSTLVToBuf [10:40:21]FM_MakeSignedData [10:40:21]FM_MakeSignedData [10:40:21]SAM_PROTO_SignData [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 01 02 [10:40:21]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=255 [10:40:21]MH_SAM_APDU [10:40: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8B 02 00 35 04 06 00 BA [10:40:21]Write to MH i2c: E2 02 01 64 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8B 02 00 35 04 06 00 BA 00 00 13 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=10 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 02 02 05 4B F4 FF B5 5C [10:40:21]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 4B F4 FF B5 5C 00 00 3B [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 03 02 [10:40:21]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0B 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0B 00 66 03 00 92 A6 C2 7C E0 A8 EB EC 90 00 BA [10:40:21]RAPDU: 92 A6 C2 7C E0 A8 EB EC 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_SignData done [10:40:21]FM_MakeSignedData done [10:40:21]CreateOFDProtocolMessage [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 11 00 00 [10:40:21]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [10:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:40:21]wFMCommunicate OK [10:40:21]CreateOFDProtocolMessage done [10:40:21]OFDSenderStorePacket 166656 [10:40:21]StoreOFDPacket docnum=166656 [10:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 34 07 01 63 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8B 02 00 35 04 06 00 BA 4B F4 FF B5 5C 92 A6 C2 7C E0 A8 EB EC [10:40:21]CheckFolder [10:40:21]dirname=/storage/ofd_packets [10:40:21]CheckFolder done [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00166656 [10:40:21]NVStorageSaveData ofd_packets/00166656 [10:40:21]File name is /storage/ofd_packets/00166656 [10:40:21]Write 301 bytes [10:40:21]NVStorageSaveData done [10:40:21]OFDSenderStorePacket done [10:40:21]KKMCreateOFDPacket done [10:40:21]NVStorageSaveData kkm_last_timestamp [10:40:21]File name is /storage/kkm_last_timestamp [10:40:21]Write 4 bytes [10:40:21]NVStorageSaveData done [10:40:21]ExternCall_PrintAddStr [10:40:21]wPrintStart [10:40:21]Write to MH i2c: 01 00 00 68 03 6B [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [10:40:21]RasterBufferAndPrint [10:40:21]line Счет N : (1)221238 [10:40:21]line ИНН: 02508201610067 [10:40:21]line Контрольно-Кассовый Чек [10:40:21]line ПРОДАЖА [10:40:21]line ТРК (МРК, ГНК) : 23 [10:40:21]line Товар: 2710124130 [10:40:21]line Аи-92-К-5 [10:40:21]line 10.470 * 66.90 [10:40:21]line = 700.44 [10:40:21]line НДС 12% НСП 1% [10:40:21]line > о реализуемом товаре [10:40:21]line ОКРУГЛЕНИЕ: -0.44 [10:40:21]line ИТОГО: 700.00 [10:40:21]line Внесено: 700.00 [10:40:21]line СДАЧА: 0.00 [10:40:21]line НСП 1% : 6.20 [10:40:21]line НДС 12% : 74.38 [10:40:21]line Наличными: 700.00 [10:40:21]line Безнал.: 0.00 [10:40:21]line Место: АЗС № 161 "Партнер Нефть" [10:40:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:40:21]line СНО: Общий режим [10:40:21]line Чек 71 23.10.2024 10:40 [10:40:21]line Смена: 537 ФФД: 1.0 [10:40:21]line ЗНМ: 0300000104 [10:40:21]line РНМ: 0000000000091764 [10:40:21]line Версия ККМ: 001 [10:40:21]line ФМ: 0000000000871759 [10:40:21]line ФД: 166656 [10:40:21]line ФПД: 204835395712348 [10:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166656&fm=204835395712348&tin=02508201610067®Number=0000000000091764&sum=70000 [10:40:21]OFD Sender: Processing packet 166656 [packets to send 48, broken 47] [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00166656 [10:40:21]OFD Sender: To server: pG, [10:40:21]CommunicateWithHost lk.salyk.kg:30040 [10:40:21]ConnectInit lk.salyk.kg [10:40:21]written 0, free lines is 4095 [10:40:22]Connected sock=10 [10:40:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 34 07 01 63 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 D2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8B 02 00 35 04 06 00 BA 4B F4 FF B5 5C 92 A6 C2 7C E0 A8 EB EC [10:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 47 47 00 EA 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8B 02 00 F4 03 04 00 FC 78 18 67 B6 04 01 00 00 85 47 27 1C 1F A8 C0 86 [10:40:22]CommunicateWithHost err = 0 [10:40:22]CheckOFDResponse [10:40:22]1017 (14) - 77093643461234 [10:40:22]1041 (16) - 0000000000871759 [10:40:22]1040 (4) - 166656 [10:40:22]1012 (4) - 23.10.2024 04:18 [10:40:22]1206 (1) - 0 [10:40:22]OFD Sender: Remove packet 166656 [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00166656 [10:40:22]NVStorageDeleteData [10:40:22]Write to MH i2c: 01 00 00 93 03 96 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 A7 0C 50 [10:40:22]RasterBufferAndPrint [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]written 0, free lines is 3245 [10:40:22]MH_Cut [10:40:22]Write to MH i2c: D1 01 00 9A 03 01 6F [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 01 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 01 00 9A 03 00 6E [10:40:22]Write to MH i2c: 01 00 00 9B 03 9E [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]OFD Sender: No OFD packet to send [10:40:23]*** Cut start [10:40:23]*** Partial cut [10:40:23]*** CUTSNS_PIN = 1 [10:40:23]*** CUTSNS_PIN = 0 [10:40:23]*** Brake cut motor [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]*** Stop cut motor [10:40:23]*** Cut end [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [10:40:23]process_action close_receipt done [10:40:23]requested_data is exist [10:40:23]produce_requested_data [10:40:23]requested_item fm.sn is exist - process it [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 11 00 00 [10:40:23]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:23]Read from MH i2c: E2 17 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [10:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:40:23]wFMCommunicate OK [10:40:23]requested_item fd.num is exist - process it [10:40:23]SAM_PROTO_GetFieldsCounters [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 00 00 [10:40:23]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 62 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:40:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:24]wFMCommunicate OK [10:40:24]SAM_PROTO_GetFieldsCounters done [10:40:24]requested_item shift.num is exist - process it [10:40:24]requested_item shift.opened is exist - process it [10:40:24]req_shift_opened [10:40:24]FM_GetShiftState [10:40:24]SAM_PROTO_GetShiftState [10:40:24]wFMCommunicate request_size=4 [10:40:24]MH_SAM_APDU [10:40:24]CAPDU: 80 13 01 00 [10:40:24]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [10:40:24]Write i2c OK [10:40:24]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E9 [10:40:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:40:24]wFMCommunicate OK [10:40:24]SAM_PROTO_GetShiftState done [10:40:24]FM_GetShiftState done [10:40:24]req_shift_opened done [10:40:24]requested_item shift.open_date is exist - process it [10:40:24]req_shift_open_date [10:40:24]req_shift_open_date done [10:40:24]produce_requested_data done [10:40:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166656,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:40:24]process_action_free close_receipt [10:40:24]json_value_free [10:40:24]json_value_free done [10:40:24]process_json_proto returns [10:40:24]Send response to host [10:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166656,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:40:24]free response buf [10:40:24]execute_script done [10:40:24]execute_script returns [10:40:24]free content buf [10:40:24]Sock 9.Close socket [10:40:24]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:09]accept exits with 8 [10:45:09]New connection [10:45:09]New thread 3067178340 created [10:45:09]Thread 3067034980 joined [10:45:09]Waiting for new connection... [10:45:09] Sock 8.Parse request [10:45:09]Sock 8.Check first char [10:45:09]Sock 8.First char is OK [10:45:09]request: POST /json_proto HTTP/1.0 [10:45:09]Method: POST [10:45:09]URL: /json_proto [10:45:09]Method is POST - this is cgi request [10:45:09]url: /json_proto [10:45:09]query_string will be loaded in cgi processing [10:45:09]execute_cgi json_proto POST (null) [10:45:09]execute_cgi path=json_proto method=POST [10:45:09]POST find Content-Length [10:45:09]Host: 172.17.53.195:8080 [10:45:09]Content-Length: 677 [10:45:09]Content-Type: application/json [10:45:09] [10:45:09]POST finish read [10:45:09]Found Content-Length = 677 [10:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:09]execute_script... [10:45: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)221239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:09]POST & json_proto [10:45:09]process_json_proto [10:45:09]json parsed OK: [10:45:09]protocol is kg_v1.0 [10:45:09]action value=close_receipt [10:45:09]process_action close_receipt [10:45:09]cmd_close_receipt [10:45:09]MH_GetDate [10:45:09]Write to MH i2c: F0 00 00 9F 03 91 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: F0 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: F0 09 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: F0 09 00 9F 03 00 B5 D3 18 67 21 48 4A 65 B9 [10:45:09]GetLastDocTimeStamp 1729680020 [10:45:09]current date 1729680309 [10:45:09]FM_GetShiftState [10:45:09]SAM_PROTO_GetShiftState [10:45:09]wFMCommunicate request_size=4 [10:45:09]MH_SAM_APDU [10:45:09]CAPDU: 80 13 01 00 [10:45:09]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [10:45:09]Write i2c OK [10:45:09]MH_I2C_Read... [10:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:09]Read from MH i2c: E2 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: E2 0E 00 [10:45:09]MH_I2C_Read... [10:45:09]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EB [10:45:09]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:45:09]wFMCommunicate OK [10:45:09]SAM_PROTO_GetShiftState done [10:45:09]FM_GetShiftState done [10:45:09]opened in 1729643772 [10:45:09]opened+sec_in_day 1729730172 [10:45:09]quantity*price = 30038 [10:45:09]sum+1 = 30039 [10:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 72 23.10.2024 10:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166657 ФПД: 22155016824458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166657&fm=22155016824458&tin=02508201610067®Number=0000000000091764&sum=30000 [10:45:10]StoreToDocumentArchive [10:45:10]shift 537 fd 166657 [10:45:10]save to /storage/0537/doc_00166657 [10:45:10]save last doc name /storage/0537/doc_00166657 to /storage/kkm_last_doc_name [10:45:10]save OK [10:45:10]Clear old archive folders... [10:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:10]tlvbuf is 01FB2DC0 [10:45:10]SAM_PROTO_ClearQueue [10:45:10]wFMCommunicate request_size=4 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 09 00 00 [10:45:10]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 03 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [10:45:10]RAPDU: 90 00 [10:45:10]wFMCommunicate OK [10:45:10]SAM_PROTO_ClearQueue done [10:45:10]KKMCreateOFDPacket [10:45:10]OFDProtocolAddRootSTLVToBuf [10:45:10]FM_MakeSignedData [10:45:10]FM_MakeSignedData [10:45:10]SAM_PROTO_SignData [10:45:10]wFMCommunicate request_size=4 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 0D 01 02 [10:45:10]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 03 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [10:45:10]RAPDU: 90 00 [10:45:10]wFMCommunicate OK [10:45:10]wFMCommunicate request_size=255 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8B 02 00 35 04 06 00 14 [10:45:10]Write to MH i2c: E2 02 01 AF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8B 02 00 35 04 06 00 14 00 00 C0 [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 [10:45:10]MH_I2C_Read... [10:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:10]Read from MH i2c: E2 03 00 [10:45:10]MH_I2C_Read... [10:45:10]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [10:45:10]RAPDU: 90 00 [10:45:10]wFMCommunicate OK [10:45:10]wFMCommunicate request_size=10 [10:45:10]MH_SAM_APDU [10:45:10]CAPDU: 80 0D 02 02 05 26 5D E8 66 8A [10:45:10]Write to MH i2c: E2 0D 00 B0 03 80 0D 02 02 05 00 26 5D E8 66 8A 00 00 92 [10:45:10]Write i2c OK [10:45:10]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 03 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [10:45:11]RAPDU: 90 00 [10:45:11]wFMCommunicate OK [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 0D 03 02 [10:45:11]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0B 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0B 00 B1 03 00 87 A7 FA 0A 2B 8E BB 96 90 00 6C [10:45:11]RAPDU: 87 A7 FA 0A 2B 8E BB 96 90 00 [10:45:11]wFMCommunicate OK [10:45:11]SAM_PROTO_SignData done [10:45:11]FM_MakeSignedData done [10:45:11]CreateOFDProtocolMessage [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 11 00 00 [10:45:11]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 17 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [10:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:45:11]wFMCommunicate OK [10:45:11]CreateOFDProtocolMessage done [10:45:11]OFDSenderStorePacket 166657 [10:45:11]StoreOFDPacket docnum=166657 [10:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E3 23 07 01 70 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8B 02 00 35 04 06 00 14 26 5D E8 66 8A 87 A7 FA 0A 2B 8E BB 96 [10:45:11]CheckFolder [10:45:11]dirname=/storage/ofd_packets [10:45:11]CheckFolder done [10:45:11]ProducePacketName [10:45:11]name=ofd_packets/00166657 [10:45:11]NVStorageSaveData ofd_packets/00166657 [10:45:11]File name is /storage/ofd_packets/00166657 [10:45:11]Write 301 bytes [10:45:11]NVStorageSaveData done [10:45:11]OFDSenderStorePacket done [10:45:11]KKMCreateOFDPacket done [10:45:11]NVStorageSaveData kkm_last_timestamp [10:45:11]File name is /storage/kkm_last_timestamp [10:45:11]Write 4 bytes [10:45:11]NVStorageSaveData done [10:45:11]ExternCall_PrintAddStr [10:45:11]wPrintStart [10:45:11]Write to MH i2c: 01 00 00 B3 03 B6 [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 07 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [10:45:11]RasterBufferAndPrint [10:45:11]line Счет N : (1)221239 [10:45:11]line ИНН: 02508201610067 [10:45:11]line Контрольно-Кассовый Чек [10:45:11]line ПРОДАЖА [10:45:11]line ТРК (МРК, ГНК) : 23 [10:45:11]line Товар: 2710124130 [10:45:11]line Аи-92-К-5 [10:45:11]line 4.490 * 66.90 [10:45:11]line = 300.38 [10:45:11]line НДС 12% НСП 1% [10:45:11]line > о реализуемом товаре [10:45:11]line ОКРУГЛЕНИЕ: -0.38 [10:45:11]line ИТОГО: 300.00 [10:45:11]line Внесено: 300.00 [10:45:11]line СДАЧА: 0.00 [10:45:11]line НСП 1% : 2.66 [10:45:11]line НДС 12% : 31.90 [10:45:11]line Наличными: 300.00 [10:45:11]line Безнал.: 0.00 [10:45:11]line Место: АЗС № 161 "Партнер Нефть" [10:45:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:45:11]line СНО: Общий режим [10:45:11]line Чек 72 23.10.2024 10:45 [10:45:11]line Смена: 537 ФФД: 1.0 [10:45:11]line ЗНМ: 0300000104 [10:45:11]line РНМ: 0000000000091764 [10:45:11]line Версия ККМ: 001 [10:45:11]line ФМ: 0000000000871759 [10:45:11]line ФД: 166657 [10:45:11]line ФПД: 22155016824458 [10:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166657&fm=22155016824458&tin=02508201610067®Number=0000000000091764&sum=30000 [10:45:11]OFD Sender: Processing packet 166657 [packets to send 48, broken 47] [10:45:11]ProducePacketName [10:45:11]name=ofd_packets/00166657 [10:45:11]OFD Sender: To server: pG, [10:45:11]CommunicateWithHost lk.salyk.kg:30040 [10:45:11]ConnectInit lk.salyk.kg [10:45:11]written 0, free lines is 4095 [10:45:11]Connected sock=10 [10:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E3 23 07 01 70 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8B 02 00 35 04 06 00 14 26 5D E8 66 8A 87 A7 FA 0A 2B 8E BB 96 [10:45:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E4 E4 47 00 BD 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8B 02 00 F4 03 04 00 1D 7A 18 67 B6 04 01 00 00 F8 D8 9A 87 67 32 9D 95 [10:45:11]CommunicateWithHost err = 0 [10:45:11]CheckOFDResponse [10:45:11]1017 (14) - 77093643461234 [10:45:11]1041 (16) - 0000000000871759 [10:45:11]1040 (4) - 166657 [10:45:11]1012 (4) - 23.10.2024 04:22 [10:45:11]1206 (1) - 0 [10:45:11]OFD Sender: Remove packet 166657 [10:45:11]ProducePacketName [10:45:11]name=ofd_packets/00166657 [10:45:11]NVStorageDeleteData [10:45:11]Write to MH i2c: 01 00 00 DE 03 E1 [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 07 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 B8 0C AC [10:45:11]RasterBufferAndPrint [10:45:11]line [10:45:11]line [10:45:11]line [10:45:11]line [10:45:11]line [10:45:11]written 0, free lines is 3263 [10:45:11]MH_Cut [10:45:11]Write to MH i2c: D1 01 00 E5 03 01 BA [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: D1 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: D1 01 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: D1 01 00 E5 03 00 B9 [10:45:11]Write to MH i2c: 01 00 00 E6 03 E9 [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:12]OFD Sender: No OFD packet to send [10:45:12]*** Cut start [10:45:12]*** Partial cut [10:45:12]*** CUTSNS_PIN = 1 [10:45:12]*** CUTSNS_PIN = 0 [10:45:13]*** Brake cut motor [10:45:13]Read from MH i2c: 01 [10:45:13]MH_I2C_Read... [10:45:13]*** Stop cut motor [10:45:13]*** Cut end [10:45:13]Read from MH i2c: 01 07 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [10:45:13]process_action close_receipt done [10:45:13]requested_data is exist [10:45:13]produce_requested_data [10:45:13]requested_item fm.sn is exist - process it [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 11 00 00 [10:45:13]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 17 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [10:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:45:13]wFMCommunicate OK [10:45:13]requested_item fd.num is exist - process it [10:45:13]SAM_PROTO_GetFieldsCounters [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 13 00 00 [10:45:13]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 62 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:13]wFMCommunicate OK [10:45:13]SAM_PROTO_GetFieldsCounters done [10:45:13]requested_item shift.num is exist - process it [10:45:13]requested_item shift.opened is exist - process it [10:45:13]req_shift_opened [10:45:13]FM_GetShiftState [10:45:13]SAM_PROTO_GetShiftState [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 13 01 00 [10:45:13]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0E 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 34 [10:45:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:45:13]wFMCommunicate OK [10:45:13]SAM_PROTO_GetShiftState done [10:45:13]FM_GetShiftState done [10:45:13]req_shift_opened done [10:45:13]requested_item shift.open_date is exist - process it [10:45:13]req_shift_open_date [10:45:13]req_shift_open_date done [10:45:13]produce_requested_data done [10:45:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166657,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:45:13]process_action_free close_receipt [10:45:13]json_value_free [10:45:13]json_value_free done [10:45:13]process_json_proto returns [10:45:13]Send response to host [10:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166657,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:45:13]free response buf [10:45:13]execute_script done [10:45:13]execute_script returns [10:45:13]free content buf [10:45:13]Sock 8.Close socket [10:45:13]Sock 8.Thread stoped [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:33]accept exits with 9 [10:45:33]New connection [10:45:33]New thread 3067034980 created [10:45:33]Thread 3067178340 joined [10:45:33]Waiting for new connection... [10:45:33] Sock 9.Parse request [10:45:33]Sock 9.Check first char [10:45:33]Sock 9.First char is OK [10:45:33]request: POST /json_proto HTTP/1.0 [10:45:33]Method: POST [10:45:33]URL: /json_proto [10:45:33]Method is POST - this is cgi request [10:45:33]url: /json_proto [10:45:33]query_string will be loaded in cgi processing [10:45:33]execute_cgi json_proto POST (null) [10:45:33]execute_cgi path=json_proto method=POST [10:45:33]POST find Content-Length [10:45:33]Host: 172.17.53.195:8080 [10:45:33]Content-Length: 679 [10:45:33]Content-Type: application/json [10:45:33] [10:45:33]POST finish read [10:45:33]Found Content-Length = 679 [10:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:33]execute_script... [10:45: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)221240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:33]POST & json_proto [10:45:33]process_json_proto [10:45:33]json parsed OK: [10:45:33]protocol is kg_v1.0 [10:45:33]action value=close_receipt [10:45:33]process_action close_receipt [10:45:33]cmd_close_receipt [10:45:33]MH_GetDate [10:45:33]Write to MH i2c: F0 00 00 EA 03 DC [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: F0 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: F0 09 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: F0 09 00 EA 03 00 CD D3 18 67 21 48 4A 65 1C [10:45:33]GetLastDocTimeStamp 1729680309 [10:45:33]current date 1729680333 [10:45:33]FM_GetShiftState [10:45:33]SAM_PROTO_GetShiftState [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 13 01 00 [10:45:33]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 36 [10:45:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_GetShiftState done [10:45:33]FM_GetShiftState done [10:45:33]opened in 1729643772 [10:45:33]opened+sec_in_day 1729730172 [10:45:33]quantity*price = 99948 [10:45:33]sum+1 = 99950 [10:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 73 23.10.2024 10:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166658 ФПД: 17204744228991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166658&fm=17204744228991&tin=02508201610067®Number=0000000000091764&sum=99900 [10:45:34]StoreToDocumentArchive [10:45:34]shift 537 fd 166658 [10:45:34]save to /storage/0537/doc_00166658 [10:45:34]save last doc name /storage/0537/doc_00166658 to /storage/kkm_last_doc_name [10:45:34]save OK [10:45:34]Clear old archive folders... [10:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:34]tlvbuf is 01F68630 [10:45:34]SAM_PROTO_ClearQueue [10:45:34]wFMCommunicate request_size=4 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 09 00 00 [10:45:34]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [10:45:34]RAPDU: 90 00 [10:45:34]wFMCommunicate OK [10:45:34]SAM_PROTO_ClearQueue done [10:45:34]KKMCreateOFDPacket [10:45:34]OFDProtocolAddRootSTLVToBuf [10:45:34]FM_MakeSignedData [10:45:34]FM_MakeSignedData [10:45:34]SAM_PROTO_SignData [10:45:34]wFMCommunicate request_size=4 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 0D 01 02 [10:45:34]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [10:45:34]RAPDU: 90 00 [10:45:34]wFMCommunicate OK [10:45:34]wFMCommunicate request_size=255 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CD D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8B 02 00 35 04 06 00 0F [10:45:34]Write to MH i2c: E2 02 01 FA 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CD D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8B 02 00 35 04 06 00 0F 00 00 09 [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [10:45:34]RAPDU: 90 00 [10:45:34]wFMCommunicate OK [10:45:34]wFMCommunicate request_size=10 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 0D 02 02 05 A5 CA AB 10 7F [10:45:34]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 A5 CA AB 10 7F 00 00 2B [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [10:45:34]RAPDU: 90 00 [10:45:34]wFMCommunicate OK [10:45:34]wFMCommunicate request_size=4 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 0D 03 02 [10:45:34]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 0B 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 0B 00 FC 03 00 AF F3 93 E0 95 59 F2 16 90 00 86 [10:45:34]RAPDU: AF F3 93 E0 95 59 F2 16 90 00 [10:45:34]wFMCommunicate OK [10:45:34]SAM_PROTO_SignData done [10:45:34]FM_MakeSignedData done [10:45:34]CreateOFDProtocolMessage [10:45:34]wFMCommunicate request_size=4 [10:45:34]MH_SAM_APDU [10:45:34]CAPDU: 80 11 00 00 [10:45:34]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:34]Read from MH i2c: E2 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 17 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [10:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:45:34]wFMCommunicate OK [10:45:34]CreateOFDProtocolMessage done [10:45:34]OFDSenderStorePacket 166658 [10:45:34]StoreOFDPacket docnum=166658 [10:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 23 07 01 D6 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CD D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8B 02 00 35 04 06 00 0F A5 CA AB 10 7F AF F3 93 E0 95 59 F2 16 [10:45:34]CheckFolder [10:45:34]dirname=/storage/ofd_packets [10:45:34]CheckFolder done [10:45:34]ProducePacketName [10:45:34]name=ofd_packets/00166658 [10:45:34]NVStorageSaveData ofd_packets/00166658 [10:45:34]File name is /storage/ofd_packets/00166658 [10:45:34]Write 301 bytes [10:45:34]NVStorageSaveData done [10:45:34]OFDSenderStorePacket done [10:45:34]KKMCreateOFDPacket done [10:45:34]NVStorageSaveData kkm_last_timestamp [10:45:34]File name is /storage/kkm_last_timestamp [10:45:34]Write 4 bytes [10:45:34]NVStorageSaveData done [10:45:34]ExternCall_PrintAddStr [10:45:34]wPrintStart [10:45:34]Write to MH i2c: 01 00 00 FE 03 01 [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [10:45:34]RasterBufferAndPrint [10:45:34]line Счет N : (1)221240 [10:45:34]line ИНН: 02508201610067 [10:45:34]line Контрольно-Кассовый Чек [10:45:34]line ПРОДАЖА [10:45:34]line ТРК (МРК, ГНК) : 13 [10:45:34]line Товар: 2710124130 [10:45:34]line Аи-92-К-5 [10:45:34]line 14.940 * 66.90 [10:45:34]line = 999.49 [10:45:34]line НДС 12% НСП 1% [10:45:34]line > о реализуемом товаре [10:45:34]line ОКРУГЛЕНИЕ: -0.49 [10:45:34]line ИТОГО: 999.00 [10:45:34]line Внесено: 1000.00 [10:45:34]line СДАЧА: 1.00 [10:45:34]line НСП 1% : 8.84 [10:45:34]line НДС 12% : 106.14 [10:45:34]line Наличными: 999.00 [10:45:34]line Безнал.: 0.00 [10:45:34]line Место: АЗС № 161 "Партнер Нефть" [10:45:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:45:34]line СНО: Общий режим [10:45:34]line Чек 73 23.10.2024 10:45 [10:45:34]line Смена: 537 ФФД: 1.0 [10:45:34]line ЗНМ: 0300000104 [10:45:34]line РНМ: 0000000000091764 [10:45:34]line Версия ККМ: 001 [10:45:34]line ФМ: 0000000000871759 [10:45:34]line ФД: 166658 [10:45:34]line ФПД: 17204744228991 [10:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166658&fm=17204744228991&tin=02508201610067®Number=0000000000091764&sum=99900 [10:45:35]OFD Sender: Processing packet 166658 [packets to send 48, broken 47] [10:45:35]ProducePacketName [10:45:35]name=ofd_packets/00166658 [10:45:35]OFD Sender: To server: pG, [10:45:35]CommunicateWithHost lk.salyk.kg:30040 [10:45:35]ConnectInit lk.salyk.kg [10:45:35]written 0, free lines is 4095 [10:45:35]Connected sock=10 [10:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 23 07 01 D6 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CD D3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8B 02 00 35 04 06 00 0F A5 CA AB 10 7F AF F3 93 E0 95 59 F2 16 [10:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CB 89 47 00 92 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8B 02 00 F4 03 04 00 35 7A 18 67 B6 04 01 00 00 28 17 85 EC 61 FC 38 26 [10:45:35]CommunicateWithHost err = 0 [10:45:35]CheckOFDResponse [10:45:35]1017 (14) - 77093643461234 [10:45:35]1041 (16) - 0000000000871759 [10:45:35]1040 (4) - 166658 [10:45:35]1012 (4) - 23.10.2024 04:23 [10:45:35]1206 (1) - 0 [10:45:35]OFD Sender: Remove packet 166658 [10:45:35]ProducePacketName [10:45:35]name=ofd_packets/00166658 [10:45:35]NVStorageDeleteData [10:45:35]Write to MH i2c: 01 00 00 29 04 2D [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 07 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 BF 0C FF [10:45:35]RasterBufferAndPrint [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]written 0, free lines is 3270 [10:45:35]MH_Cut [10:45:35]Write to MH i2c: D1 01 00 30 04 01 06 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 01 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 01 00 30 04 00 05 [10:45:35]Write to MH i2c: 01 00 00 31 04 35 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:36]OFD Sender: No OFD packet to send [10:45:36]*** Cut start [10:45:36]*** Partial cut [10:45:36]*** CUTSNS_PIN = 1 [10:45:36]*** CUTSNS_PIN = 0 [10:45:36]*** Brake cut motor [10:45:37]Read from MH i2c: 01 [10:45:37]MH_I2C_Read... [10:45:37]*** Stop cut motor [10:45:37]*** Cut end [10:45:37]Read from MH i2c: 01 07 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [10:45:37]process_action close_receipt done [10:45:37]requested_data is exist [10:45:37]produce_requested_data [10:45:37]requested_item fm.sn is exist - process it [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 11 00 00 [10:45:37]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 17 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [10:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:45:37]wFMCommunicate OK [10:45:37]requested_item fd.num is exist - process it [10:45:37]SAM_PROTO_GetFieldsCounters [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 13 00 00 [10:45:37]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 62 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [10:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:37]wFMCommunicate OK [10:45:37]SAM_PROTO_GetFieldsCounters done [10:45:37]requested_item shift.num is exist - process it [10:45:37]requested_item shift.opened is exist - process it [10:45:37]req_shift_opened [10:45:37]FM_GetShiftState [10:45:37]SAM_PROTO_GetShiftState [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 13 01 00 [10:45:37]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 0E 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 80 [10:45:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:45:37]wFMCommunicate OK [10:45:37]SAM_PROTO_GetShiftState done [10:45:37]FM_GetShiftState done [10:45:37]req_shift_opened done [10:45:37]requested_item shift.open_date is exist - process it [10:45:37]req_shift_open_date [10:45:37]req_shift_open_date done [10:45:37]produce_requested_data done [10:45:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166658,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:45:37]process_action_free close_receipt [10:45:37]json_value_free [10:45:37]json_value_free done [10:45:37]process_json_proto returns [10:45:37]Send response to host [10:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166658,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:45:37]free response buf [10:45:37]execute_script done [10:45:37]execute_script returns [10:45:37]free content buf [10:45:37]Sock 9.Close socket [10:45:37]Sock 9.Thread stoped [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:14]accept exits with 8 [10:54:14]New connection [10:54:14]New thread 3067178340 created [10:54:14]Thread 3067034980 joined [10:54:14]Waiting for new connection... [10:54:14] Sock 8.Parse request [10:54:14]Sock 8.Check first char [10:54:14]Sock 8.First char is OK [10:54:14]request: POST /json_proto HTTP/1.0 [10:54:14]Method: POST [10:54:14]URL: /json_proto [10:54:14]Method is POST - this is cgi request [10:54:14]url: /json_proto [10:54:14]query_string will be loaded in cgi processing [10:54:14]execute_cgi json_proto POST (null) [10:54:14]execute_cgi path=json_proto method=POST [10:54:14]POST find Content-Length [10:54:14]Host: 172.17.53.195:8080 [10:54:14]Content-Length: 678 [10:54:14]Content-Type: application/json [10:54:14] [10:54:14]POST finish read [10:54:14]Found Content-Length = 678 [10:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:14]execute_script... [10:54:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:14]POST & json_proto [10:54:14]process_json_proto [10:54:14]json parsed OK: [10:54:14]protocol is kg_v1.0 [10:54:14]action value=close_receipt [10:54:14]process_action close_receipt [10:54:14]cmd_close_receipt [10:54:14]MH_GetDate [10:54:14]Write to MH i2c: F0 00 00 35 04 28 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: F0 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: F0 09 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: F0 09 00 35 04 00 D6 D5 18 67 21 48 4A 65 73 [10:54:14]GetLastDocTimeStamp 1729680333 [10:54:14]current date 1729680854 [10:54:14]FM_GetShiftState [10:54:14]SAM_PROTO_GetShiftState [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 13 01 00 [10:54:14]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 0E 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 82 [10:54:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:54:14]wFMCommunicate OK [10:54:14]SAM_PROTO_GetShiftState done [10:54:14]FM_GetShiftState done [10:54:14]opened in 1729643772 [10:54:14]opened+sec_in_day 1729730172 [10:54:14]quantity*price = 90004 [10:54:14]sum+1 = 90006 [10:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 74 23.10.2024 10:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166659 ФПД: 13354449819994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166659&fm=13354449819994&tin=02508201610067®Number=0000000000091764&sum=90000 [10:54:15]StoreToDocumentArchive [10:54:15]shift 537 fd 166659 [10:54:15]save to /storage/0537/doc_00166659 [10:54:15]save last doc name /storage/0537/doc_00166659 to /storage/kkm_last_doc_name [10:54:15]save OK [10:54:15]Clear old archive folders... [10:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:15]tlvbuf is 01FB2140 [10:54:15]SAM_PROTO_ClearQueue [10:54:15]wFMCommunicate request_size=4 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 09 00 00 [10:54:15]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [10:54:15]RAPDU: 90 00 [10:54:15]wFMCommunicate OK [10:54:15]SAM_PROTO_ClearQueue done [10:54:15]KKMCreateOFDPacket [10:54:15]OFDProtocolAddRootSTLVToBuf [10:54:15]FM_MakeSignedData [10:54:15]FM_MakeSignedData [10:54:15]SAM_PROTO_SignData [10:54:15]wFMCommunicate request_size=4 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 0D 01 02 [10:54:15]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [10:54:15]RAPDU: 90 00 [10:54:15]wFMCommunicate OK [10:54:15]wFMCommunicate request_size=255 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 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 4A 00 00 00 F4 03 04 00 D6 D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8B 02 00 35 04 06 00 0C [10:54:15]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 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 4A 00 00 00 F4 03 04 00 D6 D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8B 02 00 35 04 06 00 0C 00 00 19 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [10:54:15]RAPDU: 90 00 [10:54:15]wFMCommunicate OK [10:54:15]wFMCommunicate request_size=10 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 0D 02 02 05 25 53 3C D9 5A [10:54:15]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 25 53 3C D9 5A 00 00 B5 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [10:54:15]RAPDU: 90 00 [10:54:15]wFMCommunicate OK [10:54:15]wFMCommunicate request_size=4 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 0D 03 02 [10:54:15]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 0B 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 0B 00 47 04 00 A2 0A 3D 4B 96 7F 36 C1 90 00 07 [10:54:15]RAPDU: A2 0A 3D 4B 96 7F 36 C1 90 00 [10:54:15]wFMCommunicate OK [10:54:15]SAM_PROTO_SignData done [10:54:15]FM_MakeSignedData done [10:54:15]CreateOFDProtocolMessage [10:54:15]wFMCommunicate request_size=4 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 11 00 00 [10:54:15]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 17 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [10:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:15]wFMCommunicate OK [10:54:15]CreateOFDProtocolMessage done [10:54:15]OFDSenderStorePacket 166659 [10:54:15]StoreOFDPacket docnum=166659 [10:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 E6 07 01 A6 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 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 4A 00 00 00 F4 03 04 00 D6 D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8B 02 00 35 04 06 00 0C 25 53 3C D9 5A A2 0A 3D 4B 96 7F 36 C1 [10:54:15]CheckFolder [10:54:15]dirname=/storage/ofd_packets [10:54:15]CheckFolder done [10:54:15]ProducePacketName [10:54:15]name=ofd_packets/00166659 [10:54:15]NVStorageSaveData ofd_packets/00166659 [10:54:15]File name is /storage/ofd_packets/00166659 [10:54:15]Write 301 bytes [10:54:15]NVStorageSaveData done [10:54:15]OFDSenderStorePacket done [10:54:15]KKMCreateOFDPacket done [10:54:15]NVStorageSaveData kkm_last_timestamp [10:54:15]File name is /storage/kkm_last_timestamp [10:54:15]Write 4 bytes [10:54:15]NVStorageSaveData done [10:54:15]ExternCall_PrintAddStr [10:54:15]wPrintStart [10:54:15]Write to MH i2c: 01 00 00 49 04 4D [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: 01 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: 01 07 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [10:54:15]RasterBufferAndPrint [10:54:15]line Счет N : (1)221241 [10:54:15]line ИНН: 02508201610067 [10:54:15]line Контрольно-Кассовый Чек [10:54:15]line ПРОДАЖА [10:54:15]line ТРК (МРК, ГНК) : 34 [10:54:15]line Товар: 2710124500 [10:54:15]line Аи-95-К-5 [10:54:15]line 12.130 * 74.20 [10:54:15]line = 900.05 [10:54:15]line НДС 12% НСП 1% [10:54:15]line > о реализуемом товаре [10:54:15]line ОКРУГЛЕНИЕ: -0.05 [10:54:15]line ИТОГО: 900.00 [10:54:15]line Внесено: 900.00 [10:54:15]line СДАЧА: 0.00 [10:54:15]line НСП 1% : 7.96 [10:54:15]line НДС 12% : 95.58 [10:54:15]line Наличными: 900.00 [10:54:15]line Безнал.: 0.00 [10:54:15]line Место: АЗС № 161 "Партнер Нефть" [10:54:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:54:15]line СНО: Общий режим [10:54:15]line Чек 74 23.10.2024 10:54 [10:54:15]line Смена: 537 ФФД: 1.0 [10:54:15]line ЗНМ: 0300000104 [10:54:15]line РНМ: 0000000000091764 [10:54:15]line Версия ККМ: 001 [10:54:15]line ФМ: 0000000000871759 [10:54:15]line ФД: 166659 [10:54:15]line ФПД: 13354449819994 [10:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166659&fm=13354449819994&tin=02508201610067®Number=0000000000091764&sum=90000 [10:54:16]OFD Sender: Processing packet 166659 [packets to send 48, broken 47] [10:54:16]ProducePacketName [10:54:16]name=ofd_packets/00166659 [10:54:16]OFD Sender: To server: pG, [10:54:16]CommunicateWithHost lk.salyk.kg:30040 [10:54:16]ConnectInit lk.salyk.kg [10:54:16]written 0, free lines is 4095 [10:54:16]Connected sock=10 [10:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 E6 07 01 A6 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 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 4A 00 00 00 F4 03 04 00 D6 D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8B 02 00 35 04 06 00 0C 25 53 3C D9 5A A2 0A 3D 4B 96 7F 36 C1 [10:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DA 64 47 00 F0 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8B 02 00 F4 03 04 00 3E 7C 18 67 B6 04 01 00 00 F3 00 D8 E3 83 88 39 3C [10:54:16]CommunicateWithHost err = 0 [10:54:16]CheckOFDResponse [10:54:16]1017 (14) - 77093643461234 [10:54:16]1041 (16) - 0000000000871759 [10:54:16]1040 (4) - 166659 [10:54:16]1012 (4) - 23.10.2024 04:31 [10:54:16]1206 (1) - 0 [10:54:16]OFD Sender: Remove packet 166659 [10:54:16]ProducePacketName [10:54:16]name=ofd_packets/00166659 [10:54:16]NVStorageDeleteData [10:54:16]Write to MH i2c: 01 00 00 74 04 78 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 A3 0C 2E [10:54:16]RasterBufferAndPrint [10:54:16]line [10:54:16]line [10:54:16]line [10:54:16]line [10:54:16]line [10:54:16]written 0, free lines is 3241 [10:54:16]MH_Cut [10:54:16]Write to MH i2c: D1 01 00 7B 04 01 51 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: D1 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: D1 01 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: D1 01 00 7B 04 00 50 [10:54:16]Write to MH i2c: 01 00 00 7C 04 80 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]OFD Sender: No OFD packet to send [10:54:17]*** Cut start [10:54:17]*** Partial cut [10:54:17]*** CUTSNS_PIN = 1 [10:54:17]*** CUTSNS_PIN = 0 [10:54:17]*** Brake cut motor [10:54:18]Read from MH i2c: 01 [10:54:18]MH_I2C_Read... [10:54:18]*** Stop cut motor [10:54:18]*** Cut end [10:54:18]Read from MH i2c: 01 07 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [10:54:18]process_action close_receipt done [10:54:18]requested_data is exist [10:54:18]produce_requested_data [10:54:18]requested_item fm.sn is exist - process it [10:54:18]wFMCommunicate request_size=4 [10:54:18]MH_SAM_APDU [10:54:18]CAPDU: 80 11 00 00 [10:54:18]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [10:54:18]Write i2c OK [10:54:18]MH_I2C_Read... [10:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:18]Read from MH i2c: E2 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 17 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [10:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:18]wFMCommunicate OK [10:54:18]requested_item fd.num is exist - process it [10:54:18]SAM_PROTO_GetFieldsCounters [10:54:18]wFMCommunicate request_size=4 [10:54:18]MH_SAM_APDU [10:54:18]CAPDU: 80 13 00 00 [10:54:18]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [10:54:18]Write i2c OK [10:54:18]MH_I2C_Read... [10:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:18]Read from MH i2c: E2 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 62 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:18]wFMCommunicate OK [10:54:18]SAM_PROTO_GetFieldsCounters done [10:54:18]requested_item shift.num is exist - process it [10:54:18]requested_item shift.opened is exist - process it [10:54:18]req_shift_opened [10:54:18]FM_GetShiftState [10:54:18]SAM_PROTO_GetShiftState [10:54:18]wFMCommunicate request_size=4 [10:54:18]MH_SAM_APDU [10:54:18]CAPDU: 80 13 01 00 [10:54:18]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [10:54:18]Write i2c OK [10:54:18]MH_I2C_Read... [10:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:18]Read from MH i2c: E2 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 0E 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CB [10:54:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:54:18]wFMCommunicate OK [10:54:18]SAM_PROTO_GetShiftState done [10:54:18]FM_GetShiftState done [10:54:18]req_shift_opened done [10:54:18]requested_item shift.open_date is exist - process it [10:54:18]req_shift_open_date [10:54:18]req_shift_open_date done [10:54:18]produce_requested_data done [10:54:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166659,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:54:18]process_action_free close_receipt [10:54:18]json_value_free [10:54:18]json_value_free done [10:54:18]process_json_proto returns [10:54:18]Send response to host [10:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166659,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:54:18]free response buf [10:54:18]execute_script done [10:54:18]execute_script returns [10:54:18]free content buf [10:54:18]Sock 8.Close socket [10:54:18]Sock 8.Thread stoped [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54: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:53]accept exits with 9 [10:54:53]New connection [10:54:53]New thread 3067034980 created [10:54:53]Thread 3067178340 joined [10:54:53]Waiting for new connection... [10:54:53] Sock 9.Parse request [10:54:53]Sock 9.Check first char [10:54:53]Sock 9.First char is OK [10:54:53]request: POST /json_proto HTTP/1.0 [10:54:53]Method: POST [10:54:53]URL: /json_proto [10:54:53]Method is POST - this is cgi request [10:54:53]url: /json_proto [10:54:53]query_string will be loaded in cgi processing [10:54:53]execute_cgi json_proto POST (null) [10:54:53]execute_cgi path=json_proto method=POST [10:54:53]POST find Content-Length [10:54:53]Host: 172.17.53.195:8080 [10:54:53]Content-Length: 678 [10:54:53]Content-Type: application/json [10:54:53] [10:54:53]POST finish read [10:54:53]Found Content-Length = 678 [10:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:53]execute_script... [10:54: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)221242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:53]POST & json_proto [10:54:53]process_json_proto [10:54:53]json parsed OK: [10:54:53]protocol is kg_v1.0 [10:54:53]action value=close_receipt [10:54:53]process_action close_receipt [10:54:53]cmd_close_receipt [10:54:53]MH_GetDate [10:54:53]Write to MH i2c: F0 00 00 80 04 73 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: F0 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: F0 09 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: F0 09 00 80 04 00 FE D5 18 67 21 48 4A 65 E6 [10:54:53]GetLastDocTimeStamp 1729680854 [10:54:53]current date 1729680894 [10:54:53]FM_GetShiftState [10:54:53]SAM_PROTO_GetShiftState [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 13 01 00 [10:54:53]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0E 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CD [10:54:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:54:53]wFMCommunicate OK [10:54:53]SAM_PROTO_GetShiftState done [10:54:53]FM_GetShiftState done [10:54:53]opened in 1729643772 [10:54:53]opened+sec_in_day 1729730172 [10:54:53]quantity*price = 80012 [10:54:53]sum+1 = 80013 [10:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 75 23.10.2024 10:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166660 ФПД: 132509628921466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166660&fm=132509628921466&tin=02508201610067®Number=0000000000091764&sum=80000 [10:54:54]StoreToDocumentArchive [10:54:54]shift 537 fd 166660 [10:54:54]save to /storage/0537/doc_00166660 [10:54:54]save last doc name /storage/0537/doc_00166660 to /storage/kkm_last_doc_name [10:54:54]save OK [10:54:54]Clear old archive folders... [10:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:54]tlvbuf is 01F5AF50 [10:54:54]SAM_PROTO_ClearQueue [10:54:54]wFMCommunicate request_size=4 [10:54:54]MH_SAM_APDU [10:54:54]CAPDU: 80 09 00 00 [10:54:54]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [10:54:54]Write i2c OK [10:54:54]MH_I2C_Read... [10:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_ClearQueue done [10:54:55]KKMCreateOFDPacket [10:54:55]OFDProtocolAddRootSTLVToBuf [10:54:55]FM_MakeSignedData [10:54:55]FM_MakeSignedData [10:54:55]SAM_PROTO_SignData [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 01 02 [10:54:55]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=255 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8B 02 00 35 04 06 00 78 [10:54:55]Write to MH i2c: E2 02 01 90 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8B 02 00 35 04 06 00 78 00 00 4F [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=10 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 02 02 05 84 4D 5C 76 7A [10:54:55]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 84 4D 5C 76 7A 00 00 36 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 03 02 [10:54:55]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0B 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0B 00 92 04 00 17 B6 2C D4 15 73 2B DF 90 00 71 [10:54:55]RAPDU: 17 B6 2C D4 15 73 2B DF 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_SignData done [10:54:55]FM_MakeSignedData done [10:54:55]CreateOFDProtocolMessage [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 11 00 00 [10:54:55]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [10:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:55]wFMCommunicate OK [10:54:55]CreateOFDProtocolMessage done [10:54:55]OFDSenderStorePacket 166660 [10:54:55]StoreOFDPacket docnum=166660 [10:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 AB 07 01 1F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8B 02 00 35 04 06 00 78 84 4D 5C 76 7A 17 B6 2C D4 15 73 2B DF [10:54:55]CheckFolder [10:54:55]dirname=/storage/ofd_packets [10:54:55]CheckFolder done [10:54:55]ProducePacketName [10:54:55]name=ofd_packets/00166660 [10:54:55]NVStorageSaveData ofd_packets/00166660 [10:54:55]File name is /storage/ofd_packets/00166660 [10:54:55]Write 301 bytes [10:54:55]NVStorageSaveData done [10:54:55]OFDSenderStorePacket done [10:54:55]KKMCreateOFDPacket done [10:54:55]NVStorageSaveData kkm_last_timestamp [10:54:55]File name is /storage/kkm_last_timestamp [10:54:55]Write 4 bytes [10:54:55]NVStorageSaveData done [10:54:55]ExternCall_PrintAddStr [10:54:55]wPrintStart [10:54:55]Write to MH i2c: 01 00 00 94 04 98 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 07 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [10:54:55]RasterBufferAndPrint [10:54:55]line Счет N : (1)221242 [10:54:55]line ИНН: 02508201610067 [10:54:55]line Контрольно-Кассовый Чек [10:54:55]line ПРОДАЖА [10:54:55]line ТРК (МРК, ГНК) : 13 [10:54:55]line Товар: 2710124130 [10:54:55]line Аи-92-К-5 [10:54:55]line 11.960 * 66.90 [10:54:55]line = 800.12 [10:54:55]line НДС 12% НСП 1% [10:54:55]line > о реализуемом товаре [10:54:55]line ОКРУГЛЕНИЕ: -0.12 [10:54:55]line ИТОГО: 800.00 [10:54:55]line Внесено: 800.00 [10:54:55]line СДАЧА: 0.00 [10:54:55]line НСП 1% : 7.08 [10:54:55]line НДС 12% : 84.97 [10:54:55]line Наличными: 800.00 [10:54:55]line Безнал.: 0.00 [10:54:55]line Место: АЗС № 161 "Партнер Нефть" [10:54:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:54:55]line СНО: Общий режим [10:54:55]line Чек 75 23.10.2024 10:54 [10:54:55]line Смена: 537 ФФД: 1.0 [10:54:55]line ЗНМ: 0300000104 [10:54:55]line РНМ: 0000000000091764 [10:54:55]line Версия ККМ: 001 [10:54:55]line ФМ: 0000000000871759 [10:54:55]line ФД: 166660 [10:54:55]line ФПД: 132509628921466 [10:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166660&fm=132509628921466&tin=02508201610067®Number=0000000000091764&sum=80000 [10:54:55]OFD Sender: Processing packet 166660 [packets to send 48, broken 47] [10:54:55]ProducePacketName [10:54:55]name=ofd_packets/00166660 [10:54:55]OFD Sender: To server: pG, [10:54:55]CommunicateWithHost lk.salyk.kg:30040 [10:54:55]ConnectInit lk.salyk.kg [10:54:55]written 0, free lines is 4095 [10:54:55]Connected sock=10 [10:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 AB 07 01 1F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FE D5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8B 02 00 35 04 06 00 78 84 4D 5C 76 7A 17 B6 2C D4 15 73 2B DF [10:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 41 1E 47 00 DD 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8B 02 00 F4 03 04 00 66 7C 18 67 B6 04 01 00 00 1F DB 3E FF 35 D9 F6 54 [10:54:56]CommunicateWithHost err = 0 [10:54:56]CheckOFDResponse [10:54:56]1017 (14) - 77093643461234 [10:54:56]1041 (16) - 0000000000871759 [10:54:56]1040 (4) - 166660 [10:54:56]1012 (4) - 23.10.2024 04:32 [10:54:56]1206 (1) - 0 [10:54:56]OFD Sender: Remove packet 166660 [10:54:56]ProducePacketName [10:54:56]name=ofd_packets/00166660 [10:54:56]NVStorageDeleteData [10:54:56]Write to MH i2c: 01 00 00 BF 04 C3 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 A5 0C 7B [10:54:56]RasterBufferAndPrint [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]written 0, free lines is 3242 [10:54:56]MH_Cut [10:54:56]Write to MH i2c: D1 01 00 C6 04 01 9C [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 01 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 01 00 C6 04 00 9B [10:54:56]Write to MH i2c: 01 00 00 C7 04 CB [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]OFD Sender: No OFD packet to send [10:54:57]*** Cut start [10:54:57]*** Partial cut [10:54:57]*** CUTSNS_PIN = 1 [10:54:57]*** CUTSNS_PIN = 0 [10:54:57]*** Brake cut motor [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]*** Stop cut motor [10:54:57]*** Cut end [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [10:54:57]process_action close_receipt done [10:54:57]requested_data is exist [10:54:57]produce_requested_data [10:54:57]requested_item fm.sn is exist - process it [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 11 00 00 [10:54:57]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [10:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:57]wFMCommunicate OK [10:54:57]requested_item fd.num is exist - process it [10:54:57]SAM_PROTO_GetFieldsCounters [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 13 00 00 [10:54:57]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 62 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 62 00 C9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:54:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:57]wFMCommunicate OK [10:54:57]SAM_PROTO_GetFieldsCounters done [10:54:57]requested_item shift.num is exist - process it [10:54:57]requested_item shift.opened is exist - process it [10:54:57]req_shift_opened [10:54:57]FM_GetShiftState [10:54:57]SAM_PROTO_GetShiftState [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 13 01 00 [10:54:57]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 16 [10:54:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_GetShiftState done [10:54:58]FM_GetShiftState done [10:54:58]req_shift_opened done [10:54:58]requested_item shift.open_date is exist - process it [10:54:58]req_shift_open_date [10:54:58]req_shift_open_date done [10:54:58]produce_requested_data done [10:54:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166660,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:54:58]process_action_free close_receipt [10:54:58]json_value_free [10:54:58]json_value_free done [10:54:58]process_json_proto returns [10:54:58]Send response to host [10:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166660,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:54:58]free response buf [10:54:58]execute_script done [10:54:58]execute_script returns [10:54:58]free content buf [10:54:58]Sock 9.Close socket [10:54:58]Sock 9.Thread stoped [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:19]accept exits with 8 [10:57:19]New connection [10:57:19]New thread 3067178340 created [10:57:19]Thread 3067034980 joined [10:57:19]Waiting for new connection... [10:57:19] Sock 8.Parse request [10:57:19]Sock 8.Check first char [10:57:19]Sock 8.First char is OK [10:57:19]request: POST /json_proto HTTP/1.0 [10:57:19]Method: POST [10:57:19]URL: /json_proto [10:57:19]Method is POST - this is cgi request [10:57:19]url: /json_proto [10:57:19]query_string will be loaded in cgi processing [10:57:19]execute_cgi json_proto POST (null) [10:57:19]execute_cgi path=json_proto method=POST [10:57:19]POST find Content-Length [10:57:19]Host: 172.17.53.195:8080 [10:57:19]Content-Length: 682 [10:57:19]Content-Type: application/json [10:57:19] [10:57:19]POST finish read [10:57:19]Found Content-Length = 682 [10:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:19]execute_script... [10:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:19]POST & json_proto [10:57:19]process_json_proto [10:57:19]json parsed OK: [10:57:19]protocol is kg_v1.0 [10:57:19]action value=close_receipt [10:57:19]process_action close_receipt [10:57:19]cmd_close_receipt [10:57:19]MH_GetDate [10:57:19]Write to MH i2c: F0 00 00 CB 04 BE [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 09 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 09 00 CB 04 00 90 D6 18 67 21 48 4A 65 C4 [10:57:19]GetLastDocTimeStamp 1729680894 [10:57:19]current date 1729681040 [10:57:19]FM_GetShiftState [10:57:19]SAM_PROTO_GetShiftState [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 01 00 [10:57:19]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 18 [10:57:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetShiftState done [10:57:19]FM_GetShiftState done [10:57:19]opened in 1729643772 [10:57:19]opened+sec_in_day 1729730172 [10:57:19]quantity*price = 100015 [10:57:19]sum+1 = 100017 [10:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 76 23.10.2024 10:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166661 ФПД: 185733457902140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166661&fm=185733457902140&tin=02508201610067®Number=0000000000091764&sum=100000 [10:57:21]StoreToDocumentArchive [10:57:21]shift 537 fd 166661 [10:57:21]save to /storage/0537/doc_00166661 [10:57:21]save last doc name /storage/0537/doc_00166661 to /storage/kkm_last_doc_name [10:57:21]save OK [10:57:21]Clear old archive folders... [10:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:21]tlvbuf is B6DDF7F0 [10:57:21]SAM_PROTO_ClearQueue [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 09 00 00 [10:57:21]Write to MH i2c: E2 08 00 D9 04 80 09 00 00 00 00 00 00 4F [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_ClearQueue done [10:57:21]KKMCreateOFDPacket [10:57:21]OFDProtocolAddRootSTLVToBuf [10:57:21]FM_MakeSignedData [10:57:21]FM_MakeSignedData [10:57:21]SAM_PROTO_SignData [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 01 02 [10:57:21]Write to MH i2c: E2 08 00 DA 04 80 0D 01 02 00 00 00 00 57 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=255 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8B 02 00 35 04 06 00 A8 [10:57:21]Write to MH i2c: E2 02 01 DB 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8B 02 00 35 04 06 00 A8 00 00 6D [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=10 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 02 02 05 EC 70 C7 FA 3C [10:57:21]Write to MH i2c: E2 0D 00 DC 04 80 0D 02 02 05 00 EC 70 C7 FA 3C 00 00 BD [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 03 02 [10:57:21]Write to MH i2c: E2 08 00 DD 04 80 0D 03 02 00 00 00 00 5C [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 DD 04 00 6F 10 37 BE A5 5C 85 FB 90 00 52 [10:57:21]RAPDU: 6F 10 37 BE A5 5C 85 FB 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_SignData done [10:57:21]FM_MakeSignedData done [10:57:21]CreateOFDProtocolMessage [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 11 00 00 [10:57:21]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B4 [10:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:21]wFMCommunicate OK [10:57:21]CreateOFDProtocolMessage done [10:57:21]OFDSenderStorePacket 166661 [10:57:21]StoreOFDPacket docnum=166661 [10:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 6E 07 01 90 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 90 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8B 02 00 35 04 06 00 A8 EC 70 C7 FA 3C 6F 10 37 BE A5 5C 85 FB [10:57:21]CheckFolder [10:57:21]dirname=/storage/ofd_packets [10:57:21]CheckFolder done [10:57:21]ProducePacketName [10:57:21]name=ofd_packets/00166661 [10:57:21]NVStorageSaveData ofd_packets/00166661 [10:57:21]File name is /storage/ofd_packets/00166661 [10:57:21]Write 301 bytes [10:57:21]NVStorageSaveData done [10:57:21]OFDSenderStorePacket done [10:57:21]KKMCreateOFDPacket done [10:57:21]NVStorageSaveData kkm_last_timestamp [10:57:21]File name is /storage/kkm_last_timestamp [10:57:21]Write 4 bytes [10:57:21]NVStorageSaveData done [10:57:21]ExternCall_PrintAddStr [10:57:21]wPrintStart [10:57:21]Write to MH i2c: 01 00 00 DF 04 E3 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [10:57:21]RasterBufferAndPrint [10:57:21]line Счет N : (1)221243 [10:57:21]line ИНН: 02508201610067 [10:57:21]line Контрольно-Кассовый Чек [10:57:21]line ПРОДАЖА [10:57:21]line ТРК (МРК, ГНК) : 13 [10:57:21]line Товар: 2710124130 [10:57:21]line Аи-92-К-5 [10:57:21]line 14.950 * 66.90 [10:57:21]line = 1000.16 [10:57:21]line НДС 12% НСП 1% [10:57:21]line > о реализуемом товаре [10:57:21]line ОКРУГЛЕНИЕ: -0.16 [10:57:21]line ИТОГО: 1000.00 [10:57:21]line Внесено: 1000.00 [10:57:21]line СДАЧА: 0.00 [10:57:21]line НСП 1% : 8.85 [10:57:21]line НДС 12% : 106.21 [10:57:21]line Наличными: 1000.00 [10:57:21]line Безнал.: 0.00 [10:57:21]line Место: АЗС № 161 "Партнер Нефть" [10:57:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:57:21]line СНО: Общий режим [10:57:21]line Чек 76 23.10.2024 10:57 [10:57:21]line Смена: 537 ФФД: 1.0 [10:57:21]line ЗНМ: 0300000104 [10:57:21]line РНМ: 0000000000091764 [10:57:21]line Версия ККМ: 001 [10:57:21]line ФМ: 0000000000871759 [10:57:21]line ФД: 166661 [10:57:21]line ФПД: 185733457902140 [10:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166661&fm=185733457902140&tin=02508201610067®Number=0000000000091764&sum=100000 [10:57:21]OFD Sender: Processing packet 166661 [packets to send 48, broken 47] [10:57:21]ProducePacketName [10:57:21]name=ofd_packets/00166661 [10:57:21]OFD Sender: To server: pG, [10:57:21]CommunicateWithHost lk.salyk.kg:30040 [10:57:21]ConnectInit lk.salyk.kg [10:57:21]written 0, free lines is 4095 [10:57:22]Connected sock=10 [10:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 6E 07 01 90 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 90 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8B 02 00 35 04 06 00 A8 EC 70 C7 FA 3C 6F 10 37 BE A5 5C 85 FB [10:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 54 47 00 E8 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8B 02 00 F4 03 04 00 F8 7C 18 67 B6 04 01 00 00 A6 65 0D 31 68 CA DE BB [10:57:22]CommunicateWithHost err = 0 [10:57:22]CheckOFDResponse [10:57:22]1017 (14) - 77093643461234 [10:57:22]1041 (16) - 0000000000871759 [10:57:22]1040 (4) - 166661 [10:57:22]1012 (4) - 23.10.2024 04:35 [10:57:22]1206 (1) - 0 [10:57:22]OFD Sender: Remove packet 166661 [10:57:22]ProducePacketName [10:57:22]name=ofd_packets/00166661 [10:57:22]NVStorageDeleteData [10:57:22]Write to MH i2c: 01 00 00 0A 05 0F [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 A4 0C C6 [10:57:22]RasterBufferAndPrint [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]written 0, free lines is 3242 [10:57:22]MH_Cut [10:57:22]Write to MH i2c: D1 01 00 11 05 01 E8 [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 11 05 00 E7 [10:57:22]Write to MH i2c: 01 00 00 12 05 17 [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]OFD Sender: No OFD packet to send [10:57:23]*** Cut start [10:57:23]*** Partial cut [10:57:23]*** CUTSNS_PIN = 1 [10:57:23]*** CUTSNS_PIN = 0 [10:57:23]*** Brake cut motor [10:57:23]Read from MH i2c: 01 [10:57:23]MH_I2C_Read... [10:57:23]*** Stop cut motor [10:57:23]*** Cut end [10:57:23]Read from MH i2c: 01 07 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [10:57:23]process_action close_receipt done [10:57:23]requested_data is exist [10:57:23]produce_requested_data [10:57:23]requested_item fm.sn is exist - process it [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 11 00 00 [10:57:23]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 17 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [10:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:23]wFMCommunicate OK [10:57:23]requested_item fd.num is exist - process it [10:57:23]SAM_PROTO_GetFieldsCounters [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 00 00 [10:57:23]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 62 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [10:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetFieldsCounters done [10:57:24]requested_item shift.num is exist - process it [10:57:24]requested_item shift.opened is exist - process it [10:57:24]req_shift_opened [10:57:24]FM_GetShiftState [10:57:24]SAM_PROTO_GetShiftState [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 13 01 00 [10:57:24]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 62 [10:57:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetShiftState done [10:57:24]FM_GetShiftState done [10:57:24]req_shift_opened done [10:57:24]requested_item shift.open_date is exist - process it [10:57:24]req_shift_open_date [10:57:24]req_shift_open_date done [10:57:24]produce_requested_data done [10:57:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166661,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:57:24]process_action_free close_receipt [10:57:24]json_value_free [10:57:24]json_value_free done [10:57:24]process_json_proto returns [10:57:24]Send response to host [10:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166661,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:57:24]free response buf [10:57:24]execute_script done [10:57:24]execute_script returns [10:57:24]free content buf [10:57:24]Sock 8.Close socket [10:57:24]Sock 8.Thread stoped [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:23]accept exits with 9 [10:58:23]New connection [10:58:23]New thread 3067034980 created [10:58:23]Thread 3067178340 joined [10:58:23]Waiting for new connection... [10:58:23] Sock 9.Parse request [10:58:23]Sock 9.Check first char [10:58:23]Sock 9.First char is OK [10:58:23]request: POST /json_proto HTTP/1.0 [10:58:23]Method: POST [10:58:23]URL: /json_proto [10:58:23]Method is POST - this is cgi request [10:58:23]url: /json_proto [10:58:23]query_string will be loaded in cgi processing [10:58:23]execute_cgi json_proto POST (null) [10:58:23]execute_cgi path=json_proto method=POST [10:58:23]POST find Content-Length [10:58:23]Host: 172.17.53.195:8080 [10:58:23]Content-Length: 677 [10:58:23]Content-Type: application/json [10:58:23] [10:58:23]POST finish read [10:58:23]Found Content-Length = 677 [10:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]execute_script... [10:58: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)221244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]POST & json_proto [10:58:23]process_json_proto [10:58:23]json parsed OK: [10:58:23]protocol is kg_v1.0 [10:58:23]action value=close_receipt [10:58:23]process_action close_receipt [10:58:23]cmd_close_receipt [10:58:23]MH_GetDate [10:58:23]Write to MH i2c: F0 00 00 16 05 0A [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 16 05 00 D0 D6 18 67 21 48 4A 65 50 [10:58:23]GetLastDocTimeStamp 1729681040 [10:58:23]current date 1729681104 [10:58:23]FM_GetShiftState [10:58:23]SAM_PROTO_GetShiftState [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 13 01 00 [10:58:23]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 64 [10:58:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_GetShiftState done [10:58:23]FM_GetShiftState done [10:58:23]opened in 1729643772 [10:58:23]opened+sec_in_day 1729730172 [10:58:23]quantity*price = 40068 [10:58:23]sum+1 = 40069 [10:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 77 23.10.2024 10:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166662 ФПД: 47226267129388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166662&fm=47226267129388&tin=02508201610067®Number=0000000000091764&sum=40000 [10:58:24]StoreToDocumentArchive [10:58:24]shift 537 fd 166662 [10:58:24]save to /storage/0537/doc_00166662 [10:58:24]save last doc name /storage/0537/doc_00166662 to /storage/kkm_last_doc_name [10:58:24]save OK [10:58:24]Clear old archive folders... [10:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:24]tlvbuf is 01F63EC0 [10:58:24]SAM_PROTO_ClearQueue [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 09 00 00 [10:58:24]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_ClearQueue done [10:58:24]KKMCreateOFDPacket [10:58:24]OFDProtocolAddRootSTLVToBuf [10:58:24]FM_MakeSignedData [10:58:24]FM_MakeSignedData [10:58:24]SAM_PROTO_SignData [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 01 02 [10:58:24]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [10:58:25]RAPDU: 90 00 [10:58:25]wFMCommunicate OK [10:58:25]wFMCommunicate request_size=255 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D0 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8B 02 00 35 04 06 00 2A [10:58:25]Write to MH i2c: E2 02 01 26 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D0 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8B 02 00 35 04 06 00 2A 00 00 32 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [10:58:25]RAPDU: 90 00 [10:58:25]wFMCommunicate OK [10:58:25]wFMCommunicate request_size=10 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 0D 02 02 05 F3 B8 E0 56 2C [10:58:25]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 F3 B8 E0 56 2C 00 00 BD [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [10:58:25]RAPDU: 90 00 [10:58:25]wFMCommunicate OK [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 0D 03 02 [10:58:25]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0B 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0B 00 28 05 00 82 F5 36 1E F3 23 9B 81 90 00 A6 [10:58:25]RAPDU: 82 F5 36 1E F3 23 9B 81 90 00 [10:58:25]wFMCommunicate OK [10:58:25]SAM_PROTO_SignData done [10:58:25]FM_MakeSignedData done [10:58:25]CreateOFDProtocolMessage [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 11 00 00 [10:58:25]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [10:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:25]wFMCommunicate OK [10:58:25]CreateOFDProtocolMessage done [10:58:25]OFDSenderStorePacket 166662 [10:58:25]StoreOFDPacket docnum=166662 [10:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 E3 07 01 2D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D0 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8B 02 00 35 04 06 00 2A F3 B8 E0 56 2C 82 F5 36 1E F3 23 9B 81 [10:58:25]CheckFolder [10:58:25]dirname=/storage/ofd_packets [10:58:25]CheckFolder done [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00166662 [10:58:25]NVStorageSaveData ofd_packets/00166662 [10:58:25]File name is /storage/ofd_packets/00166662 [10:58:25]Write 301 bytes [10:58:25]NVStorageSaveData done [10:58:25]OFDSenderStorePacket done [10:58:25]KKMCreateOFDPacket done [10:58:25]NVStorageSaveData kkm_last_timestamp [10:58:25]File name is /storage/kkm_last_timestamp [10:58:25]Write 4 bytes [10:58:25]NVStorageSaveData done [10:58:25]ExternCall_PrintAddStr [10:58:25]wPrintStart [10:58:25]Write to MH i2c: 01 00 00 2A 05 2F [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [10:58:25]RasterBufferAndPrint [10:58:25]line Счет N : (1)221244 [10:58:25]line ИНН: 02508201610067 [10:58:25]line Контрольно-Кассовый Чек [10:58:25]line ПРОДАЖА [10:58:25]line ТРК (МРК, ГНК) : 34 [10:58:25]line Товар: 2710124500 [10:58:25]line Аи-95-К-5 [10:58:25]line 5.400 * 74.20 [10:58:25]line = 400.68 [10:58:25]line НДС 12% НСП 1% [10:58:25]line > о реализуемом товаре [10:58:25]line ОКРУГЛЕНИЕ: -0.68 [10:58:25]line ИТОГО: 400.00 [10:58:25]line Внесено: 400.00 [10:58:25]line СДАЧА: 0.00 [10:58:25]line НСП 1% : 3.55 [10:58:25]line НДС 12% : 42.55 [10:58:25]line Наличными: 400.00 [10:58:25]line Безнал.: 0.00 [10:58:25]line Место: АЗС № 161 "Партнер Нефть" [10:58:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:25]line СНО: Общий режим [10:58:25]line Чек 77 23.10.2024 10:58 [10:58:25]line Смена: 537 ФФД: 1.0 [10:58:25]line ЗНМ: 0300000104 [10:58:25]line РНМ: 0000000000091764 [10:58:25]line Версия ККМ: 001 [10:58:25]line ФМ: 0000000000871759 [10:58:25]line ФД: 166662 [10:58:25]line ФПД: 47226267129388 [10:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166662&fm=47226267129388&tin=02508201610067®Number=0000000000091764&sum=40000 [10:58:25]OFD Sender: Processing packet 166662 [packets to send 48, broken 47] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00166662 [10:58:25]OFD Sender: To server: pG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]written 0, free lines is 4095 [10:58:25]Connected sock=10 [10:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 E3 07 01 2D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D0 D6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8B 02 00 35 04 06 00 2A F3 B8 E0 56 2C 82 F5 36 1E F3 23 9B 81 [10:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 67 47 00 93 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8B 02 00 F4 03 04 00 38 7D 18 67 B6 04 01 00 00 A2 B7 D7 A0 02 11 D5 D9 [10:58:26]CommunicateWithHost err = 0 [10:58:26]CheckOFDResponse [10:58:26]1017 (14) - 77093643461234 [10:58:26]1041 (16) - 0000000000871759 [10:58:26]1040 (4) - 166662 [10:58:26]1012 (4) - 23.10.2024 04:36 [10:58:26]1206 (1) - 0 [10:58:26]OFD Sender: Remove packet 166662 [10:58:26]ProducePacketName [10:58:26]name=ofd_packets/00166662 [10:58:26]NVStorageDeleteData [10:58:26]Write to MH i2c: 01 00 00 55 05 5A [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 B0 0C 1D [10:58:26]RasterBufferAndPrint [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]written 0, free lines is 3254 [10:58:26]MH_Cut [10:58:26]Write to MH i2c: D1 01 00 5C 05 01 33 [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 01 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 01 00 5C 05 00 32 [10:58:26]Write to MH i2c: 01 00 00 5D 05 62 [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]OFD Sender: No OFD packet to send [10:58:27]*** Cut start [10:58:27]*** Partial cut [10:58:27]*** CUTSNS_PIN = 1 [10:58:27]*** CUTSNS_PIN = 0 [10:58:27]*** Brake cut motor [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]*** Stop cut motor [10:58:27]*** Cut end [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [10:58:27]process_action close_receipt done [10:58:27]requested_data is exist [10:58:27]produce_requested_data [10:58:27]requested_item fm.sn is exist - process it [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 11 00 00 [10:58:27]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:27]Read from MH i2c: E2 17 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [10:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:27]wFMCommunicate OK [10:58:27]requested_item fd.num is exist - process it [10:58:27]SAM_PROTO_GetFieldsCounters [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 00 00 [10:58:27]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 5F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [10:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetFieldsCounters done [10:58:27]requested_item shift.num is exist - process it [10:58:27]requested_item shift.opened is exist - process it [10:58:27]req_shift_opened [10:58:27]FM_GetShiftState [10:58:27]SAM_PROTO_GetShiftState [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 01 00 [10:58:27]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AD [10:58:27]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetShiftState done [10:58:27]FM_GetShiftState done [10:58:27]req_shift_opened done [10:58:27]requested_item shift.open_date is exist - process it [10:58:27]req_shift_open_date [10:58:27]req_shift_open_date done [10:58:27]produce_requested_data done [10:58:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166662,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:58:27]process_action_free close_receipt [10:58:27]json_value_free [10:58:27]json_value_free done [10:58:27]process_json_proto returns [10:58:27]Send response to host [10:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166662,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:58:27]free response buf [10:58:27]execute_script done [10:58:27]execute_script returns [10:58:27]free content buf [10:58:27]Sock 9.Close socket [10:58:27]Sock 9.Thread stoped [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:17]accept exits with 8 [10:59:17]New connection [10:59:17]New thread 3067178340 created [10:59:17]Thread 3067034980 joined [10:59:17]Waiting for new connection... [10:59:17] Sock 8.Parse request [10:59:17]Sock 8.Check first char [10:59:17]Sock 8.First char is OK [10:59:17]request: POST /json_proto HTTP/1.0 [10:59:17]Method: POST [10:59:17]URL: /json_proto [10:59:17]Method is POST - this is cgi request [10:59:17]url: /json_proto [10:59:17]query_string will be loaded in cgi processing [10:59:17]execute_cgi json_proto POST (null) [10:59:17]execute_cgi path=json_proto method=POST [10:59:17]POST find Content-Length [10:59:17]Host: 172.17.53.195:8080 [10:59:17]Content-Length: 679 [10:59:17]Content-Type: application/json [10:59:17] [10:59:17]POST finish read [10:59:17]Found Content-Length = 679 [10:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:17]execute_script... [10:59: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)221245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:17]POST & json_proto [10:59:17]process_json_proto [10:59:17]json parsed OK: [10:59:17]protocol is kg_v1.0 [10:59:17]action value=close_receipt [10:59:17]process_action close_receipt [10:59:17]cmd_close_receipt [10:59:17]MH_GetDate [10:59:17]Write to MH i2c: F0 00 00 61 05 55 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 09 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 09 00 61 05 00 06 D7 18 67 21 48 4A 65 D2 [10:59:17]GetLastDocTimeStamp 1729681104 [10:59:17]current date 1729681158 [10:59:17]FM_GetShiftState [10:59:17]SAM_PROTO_GetShiftState [10:59:17]wFMCommunicate request_size=4 [10:59:17]MH_SAM_APDU [10:59:17]CAPDU: 80 13 01 00 [10:59:17]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AF [10:59:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:59:17]wFMCommunicate OK [10:59:17]SAM_PROTO_GetShiftState done [10:59:17]FM_GetShiftState done [10:59:17]opened in 1729643772 [10:59:17]opened+sec_in_day 1729730172 [10:59:17]quantity*price = 99947 [10:59:17]sum+1 = 99948 [10:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 78 23.10.2024 10:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166663 ФПД: 68779975705145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166663&fm=68779975705145&tin=02508201610067®Number=0000000000091764&sum=99900 [10:59:18]StoreToDocumentArchive [10:59:18]shift 537 fd 166663 [10:59:18]save to /storage/0537/doc_00166663 [10:59:18]save last doc name /storage/0537/doc_00166663 to /storage/kkm_last_doc_name [10:59:18]save OK [10:59:18]Clear old archive folders... [10:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:18]tlvbuf is 01F695A0 [10:59:18]SAM_PROTO_ClearQueue [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 09 00 00 [10:59:18]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_ClearQueue done [10:59:18]KKMCreateOFDPacket [10:59:18]OFDProtocolAddRootSTLVToBuf [10:59:18]FM_MakeSignedData [10:59:18]FM_MakeSignedData [10:59:18]SAM_PROTO_SignData [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 01 02 [10:59:18]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=255 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 D7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8B 02 00 35 04 06 00 3E [10:59:18]Write to MH i2c: E2 02 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 D7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8B 02 00 35 04 06 00 3E 00 00 12 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 03 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [10:59:19]RAPDU: 90 00 [10:59:19]wFMCommunicate OK [10:59:19]wFMCommunicate request_size=10 [10:59:19]MH_SAM_APDU [10:59:19]CAPDU: 80 0D 02 02 05 8E 16 05 02 39 [10:59:19]Write to MH i2c: E2 0D 00 72 05 80 0D 02 02 05 00 8E 16 05 02 39 00 00 DF [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 03 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [10:59:19]RAPDU: 90 00 [10:59:19]wFMCommunicate OK [10:59:19]wFMCommunicate request_size=4 [10:59:19]MH_SAM_APDU [10:59:19]CAPDU: 80 0D 03 02 [10:59:19]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 0B 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 0B 00 73 05 00 01 3E 5D 54 76 CE 84 10 90 00 BC [10:59:19]RAPDU: 01 3E 5D 54 76 CE 84 10 90 00 [10:59:19]wFMCommunicate OK [10:59:19]SAM_PROTO_SignData done [10:59:19]FM_MakeSignedData done [10:59:19]CreateOFDProtocolMessage [10:59:19]wFMCommunicate request_size=4 [10:59:19]MH_SAM_APDU [10:59:19]CAPDU: 80 11 00 00 [10:59:19]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 17 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [10:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:59:19]wFMCommunicate OK [10:59:19]CreateOFDProtocolMessage done [10:59:19]OFDSenderStorePacket 166663 [10:59:19]StoreOFDPacket docnum=166663 [10:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3C 03 07 01 39 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 D7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8B 02 00 35 04 06 00 3E 8E 16 05 02 39 01 3E 5D 54 76 CE 84 10 [10:59:19]CheckFolder [10:59:19]dirname=/storage/ofd_packets [10:59:19]CheckFolder done [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00166663 [10:59:19]NVStorageSaveData ofd_packets/00166663 [10:59:19]File name is /storage/ofd_packets/00166663 [10:59:19]Write 301 bytes [10:59:19]NVStorageSaveData done [10:59:19]OFDSenderStorePacket done [10:59:19]KKMCreateOFDPacket done [10:59:19]NVStorageSaveData kkm_last_timestamp [10:59:19]File name is /storage/kkm_last_timestamp [10:59:19]Write 4 bytes [10:59:19]NVStorageSaveData done [10:59:19]ExternCall_PrintAddStr [10:59:19]wPrintStart [10:59:19]Write to MH i2c: 01 00 00 75 05 7A [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [10:59:19]RasterBufferAndPrint [10:59:19]line Счет N : (1)221245 [10:59:19]line ИНН: 02508201610067 [10:59:19]line Контрольно-Кассовый Чек [10:59:19]line ПРОДАЖА [10:59:19]line ТРК (МРК, ГНК) : 14 [10:59:19]line Товар: 2710124500 [10:59:19]line Аи-95-К-5 [10:59:19]line 13.470 * 74.20 [10:59:19]line = 999.47 [10:59:19]line НДС 12% НСП 1% [10:59:19]line > о реализуемом товаре [10:59:19]line ОКРУГЛЕНИЕ: -0.47 [10:59:19]line ИТОГО: 999.00 [10:59:19]line Внесено: 1000.00 [10:59:19]line СДАЧА: 1.00 [10:59:19]line НСП 1% : 8.84 [10:59:19]line НДС 12% : 106.14 [10:59:19]line Наличными: 999.00 [10:59:19]line Безнал.: 0.00 [10:59:19]line Место: АЗС № 161 "Партнер Нефть" [10:59:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:59:19]line СНО: Общий режим [10:59:19]line Чек 78 23.10.2024 10:59 [10:59:19]line Смена: 537 ФФД: 1.0 [10:59:19]line ЗНМ: 0300000104 [10:59:19]line РНМ: 0000000000091764 [10:59:19]line Версия ККМ: 001 [10:59:19]line ФМ: 0000000000871759 [10:59:19]line ФД: 166663 [10:59:19]line ФПД: 68779975705145 [10:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166663&fm=68779975705145&tin=02508201610067®Number=0000000000091764&sum=99900 [10:59:19]OFD Sender: Processing packet 166663 [packets to send 48, broken 47] [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00166663 [10:59:19]OFD Sender: To server: pG, [10:59:19]CommunicateWithHost lk.salyk.kg:30040 [10:59:19]ConnectInit lk.salyk.kg [10:59:19]written 0, free lines is 4095 [10:59:19]Connected sock=9 [10:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3C 03 07 01 39 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 D7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8B 02 00 35 04 06 00 3E 8E 16 05 02 39 01 3E 5D 54 76 CE 84 10 [10:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 C8 47 00 51 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8B 02 00 F4 03 04 00 6E 7D 18 67 B6 04 01 00 00 2C 59 83 D9 8E 7B 28 20 [10:59:19]CommunicateWithHost err = 0 [10:59:19]CheckOFDResponse [10:59:19]1017 (14) - 77093643461234 [10:59:19]1041 (16) - 0000000000871759 [10:59:19]1040 (4) - 166663 [10:59:19]1012 (4) - 23.10.2024 04:37 [10:59:19]1206 (1) - 0 [10:59:19]OFD Sender: Remove packet 166663 [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00166663 [10:59:19]NVStorageDeleteData [10:59:20]Write to MH i2c: 01 00 00 A0 05 A5 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 07 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 BB 0C 73 [10:59:20]RasterBufferAndPrint [10:59:20]line [10:59:20]line [10:59:20]line [10:59:20]line [10:59:20]line [10:59:20]written 0, free lines is 3266 [10:59:20]MH_Cut [10:59:20]Write to MH i2c: D1 01 00 A7 05 01 7E [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: D1 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: D1 01 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: D1 01 00 A7 05 00 7D [10:59:20]Write to MH i2c: 01 00 00 A8 05 AD [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]OFD Sender: No OFD packet to send [10:59:20]*** Cut start [10:59:20]*** Partial cut [10:59:20]*** CUTSNS_PIN = 1 [10:59:20]*** CUTSNS_PIN = 0 [10:59:21]*** Brake cut motor [10:59:21]Read from MH i2c: 01 [10:59:21]MH_I2C_Read... [10:59:21]*** Stop cut motor [10:59:21]*** Cut end [10:59:21]Read from MH i2c: 01 07 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [10:59:21]process_action close_receipt done [10:59:21]requested_data is exist [10:59:21]produce_requested_data [10:59:21]requested_item fm.sn is exist - process it [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 11 00 00 [10:59:21]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 17 00 [10:59:21]MH_I2C_Read... [10:59:21]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 31 37 35 39 90 00 80 [10:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:59:21]wFMCommunicate OK [10:59:21]requested_item fd.num is exist - process it [10:59:21]SAM_PROTO_GetFieldsCounters [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 13 00 00 [10:59:21]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 62 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [10:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:21]wFMCommunicate OK [10:59:21]SAM_PROTO_GetFieldsCounters done [10:59:21]requested_item shift.num is exist - process it [10:59:21]requested_item shift.opened is exist - process it [10:59:21]req_shift_opened [10:59:21]FM_GetShiftState [10:59:21]SAM_PROTO_GetShiftState [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 13 01 00 [10:59:21]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 0E 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F8 [10:59:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [10:59:21]wFMCommunicate OK [10:59:21]SAM_PROTO_GetShiftState done [10:59:21]FM_GetShiftState done [10:59:21]req_shift_opened done [10:59:21]requested_item shift.open_date is exist - process it [10:59:21]req_shift_open_date [10:59:21]req_shift_open_date done [10:59:21]produce_requested_data done [10:59:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166663,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [10:59:21]process_action_free close_receipt [10:59:21]json_value_free [10:59:21]json_value_free done [10:59:21]process_json_proto returns [10:59:21]Send response to host [10:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166663,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [10:59:21]free response buf [10:59:21]execute_script done [10:59:21]execute_script returns [10:59:21]free content buf [10:59:21]Sock 8.Close socket [10:59:21]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [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:13]accept exits with 10 [11:05:13]New connection [11:05:13]New thread 3067034980 created [11:05:13]Thread 3067178340 joined [11:05:13]Waiting for new connection... [11:05:13] Sock 10.Parse request [11:05:13]Sock 10.Check first char [11:05:13]Sock 10.First char is OK [11:05:13]request: POST /json_proto HTTP/1.0 [11:05:13]Method: POST [11:05:13]URL: /json_proto [11:05:13]Method is POST - this is cgi request [11:05:13]url: /json_proto [11:05:13]query_string will be loaded in cgi processing [11:05:13]execute_cgi json_proto POST (null) [11:05:13]execute_cgi path=json_proto method=POST [11:05:13]POST find Content-Length [11:05:13]Host: 172.17.53.195:8080 [11:05:13]Content-Length: 682 [11:05:13]Content-Type: application/json [11:05:13] [11:05:13]POST finish read [11:05:13]Found Content-Length = 682 [11:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:13]execute_script... [11:05:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:13]POST & json_proto [11:05:13]process_json_proto [11:05:13]json parsed OK: [11:05:13]protocol is kg_v1.0 [11:05:13]action value=close_receipt [11:05:13]process_action close_receipt [11:05:13]cmd_close_receipt [11:05:13]MH_GetDate [11:05:13]Write to MH i2c: F0 00 00 AC 05 A0 [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: F0 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: F0 09 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: F0 09 00 AC 05 00 69 D8 18 67 21 48 4A 65 81 [11:05:13]GetLastDocTimeStamp 1729681158 [11:05:13]current date 1729681513 [11:05:13]FM_GetShiftState [11:05:13]SAM_PROTO_GetShiftState [11:05:13]wFMCommunicate request_size=4 [11:05:13]MH_SAM_APDU [11:05:13]CAPDU: 80 13 01 00 [11:05:13]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0E 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FA [11:05:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:05:13]wFMCommunicate OK [11:05:13]SAM_PROTO_GetShiftState done [11:05:13]FM_GetShiftState done [11:05:13]opened in 1729643772 [11:05:13]opened+sec_in_day 1729730172 [11:05:13]quantity*price = 100015 [11:05:13]sum+1 = 100017 [11:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 79 23.10.2024 11:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166664 ФПД: 135823363463110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110513&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166664&fm=135823363463110&tin=02508201610067®Number=0000000000091764&sum=100000 [11:05:14]StoreToDocumentArchive [11:05:14]shift 537 fd 166664 [11:05:14]save to /storage/0537/doc_00166664 [11:05:14]save last doc name /storage/0537/doc_00166664 to /storage/kkm_last_doc_name [11:05:14]save OK [11:05:14]Clear old archive folders... [11:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:14]tlvbuf is B6EF8D60 [11:05:14]SAM_PROTO_ClearQueue [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 09 00 00 [11:05:14]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [11:05:14]RAPDU: 90 00 [11:05:14]wFMCommunicate OK [11:05:14]SAM_PROTO_ClearQueue done [11:05:14]KKMCreateOFDPacket [11:05:14]OFDProtocolAddRootSTLVToBuf [11:05:14]FM_MakeSignedData [11:05:14]FM_MakeSignedData [11:05:14]SAM_PROTO_SignData [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 0D 01 02 [11:05:14]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [11:05:14]RAPDU: 90 00 [11:05:14]wFMCommunicate OK [11:05:14]wFMCommunicate request_size=255 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8B 02 00 35 04 06 00 7B [11:05:14]Write to MH i2c: E2 02 01 BC 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8B 02 00 35 04 06 00 7B 00 00 03 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [11:05:14]RAPDU: 90 00 [11:05:14]wFMCommunicate OK [11:05:14]wFMCommunicate request_size=10 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 0D 02 02 05 87 D7 54 D7 C6 [11:05:14]Write to MH i2c: E2 0D 00 BD 05 80 0D 02 02 05 00 87 D7 54 D7 C6 00 00 95 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [11:05:14]RAPDU: 90 00 [11:05:14]wFMCommunicate OK [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 0D 03 02 [11:05:14]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0B 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0B 00 BE 05 00 FB F7 9B 3D 1B 21 37 18 90 00 94 [11:05:14]RAPDU: FB F7 9B 3D 1B 21 37 18 90 00 [11:05:14]wFMCommunicate OK [11:05:14]SAM_PROTO_SignData done [11:05:14]FM_MakeSignedData done [11:05:14]CreateOFDProtocolMessage [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 11 00 00 [11:05:14]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 17 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [11:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:05:14]wFMCommunicate OK [11:05:14]CreateOFDProtocolMessage done [11:05:14]OFDSenderStorePacket 166664 [11:05:14]StoreOFDPacket docnum=166664 [11:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 DF 07 01 BD 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8B 02 00 35 04 06 00 7B 87 D7 54 D7 C6 FB F7 9B 3D 1B 21 37 18 [11:05:14]CheckFolder [11:05:14]dirname=/storage/ofd_packets [11:05:14]CheckFolder done [11:05:14]ProducePacketName [11:05:14]name=ofd_packets/00166664 [11:05:14]NVStorageSaveData ofd_packets/00166664 [11:05:14]File name is /storage/ofd_packets/00166664 [11:05:14]Write 301 bytes [11:05:14]NVStorageSaveData done [11:05:14]OFDSenderStorePacket done [11:05:14]KKMCreateOFDPacket done [11:05:14]NVStorageSaveData kkm_last_timestamp [11:05:14]File name is /storage/kkm_last_timestamp [11:05:14]Write 4 bytes [11:05:14]NVStorageSaveData done [11:05:14]ExternCall_PrintAddStr [11:05:14]wPrintStart [11:05:14]Write to MH i2c: 01 00 00 C0 05 C5 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 07 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [11:05:14]RasterBufferAndPrint [11:05:14]line Счет N : (1)221246 [11:05:14]line ИНН: 02508201610067 [11:05:14]line Контрольно-Кассовый Чек [11:05:14]line ПРОДАЖА [11:05:14]line ТРК (МРК, ГНК) : 23 [11:05:14]line Товар: 2710124130 [11:05:14]line Аи-92-К-5 [11:05:14]line 14.950 * 66.90 [11:05:14]line = 1000.16 [11:05:14]line НДС 12% НСП 1% [11:05:14]line > о реализуемом товаре [11:05:14]line ОКРУГЛЕНИЕ: -0.16 [11:05:14]line ИТОГО: 1000.00 [11:05:14]line Внесено: 1000.00 [11:05:14]line СДАЧА: 0.00 [11:05:14]line НСП 1% : 8.85 [11:05:14]line НДС 12% : 106.21 [11:05:14]line Наличными: 1000.00 [11:05:14]line Безнал.: 0.00 [11:05:14]line Место: АЗС № 161 "Партнер Нефть" [11:05:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:05:14]line СНО: Общий режим [11:05:14]line Чек 79 23.10.2024 11:05 [11:05:14]line Смена: 537 ФФД: 1.0 [11:05:14]line ЗНМ: 0300000104 [11:05:14]line РНМ: 0000000000091764 [11:05:14]line Версия ККМ: 001 [11:05:14]line ФМ: 0000000000871759 [11:05:14]line ФД: 166664 [11:05:14]line ФПД: 135823363463110 [11:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110513&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166664&fm=135823363463110&tin=02508201610067®Number=0000000000091764&sum=100000 [11:05:15]OFD Sender: Processing packet 166664 [packets to send 48, broken 47] [11:05:15]ProducePacketName [11:05:15]name=ofd_packets/00166664 [11:05:15]OFD Sender: To server: pG, [11:05:15]CommunicateWithHost lk.salyk.kg:30040 [11:05:15]ConnectInit lk.salyk.kg [11:05:15]written 0, free lines is 4095 [11:05:15]Connected sock=9 [11:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 DF 07 01 BD 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8B 02 00 35 04 06 00 7B 87 D7 54 D7 C6 FB F7 9B 3D 1B 21 37 18 [11:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD D6 47 00 DF B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8B 02 00 F4 03 04 00 D1 7E 18 67 B6 04 01 00 00 90 82 17 58 07 0F DF 8D [11:05:15]CommunicateWithHost err = 0 [11:05:15]CheckOFDResponse [11:05:15]1017 (14) - 77093643461234 [11:05:15]1041 (16) - 0000000000871759 [11:05:15]1040 (4) - 166664 [11:05:15]1012 (4) - 23.10.2024 04:42 [11:05:15]1206 (1) - 0 [11:05:15]OFD Sender: Remove packet 166664 [11:05:15]ProducePacketName [11:05:15]name=ofd_packets/00166664 [11:05:15]NVStorageDeleteData [11:05:15]Write to MH i2c: 01 00 00 EB 05 F0 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 BA 0C BD [11:05:15]RasterBufferAndPrint [11:05:15]line [11:05:15]line [11:05:15]line [11:05:15]line [11:05:15]line [11:05:15]written 0, free lines is 3264 [11:05:15]MH_Cut [11:05:15]Write to MH i2c: D1 01 00 F2 05 01 C9 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D1 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D1 01 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D1 01 00 F2 05 00 C8 [11:05:15]Write to MH i2c: 01 00 00 F3 05 F8 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]OFD Sender: No OFD packet to send [11:05:16]*** Cut start [11:05:16]*** Partial cut [11:05:16]*** CUTSNS_PIN = 1 [11:05:16]*** CUTSNS_PIN = 0 [11:05:16]*** Brake cut motor [11:05:17]Read from MH i2c: 01 [11:05:17]MH_I2C_Read... [11:05:17]*** Stop cut motor [11:05:17]*** Cut end [11:05:17]Read from MH i2c: 01 07 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [11:05:17]process_action close_receipt done [11:05:17]requested_data is exist [11:05:17]produce_requested_data [11:05:17]requested_item fm.sn is exist - process it [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 11 00 00 [11:05:17]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 17 00 [11:05:17]MH_I2C_Read... [11:05:17]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 31 37 35 39 90 00 CB [11:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:05:17]wFMCommunicate OK [11:05:17]requested_item fd.num is exist - process it [11:05:17]SAM_PROTO_GetFieldsCounters [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 13 00 00 [11:05:17]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 62 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_GetFieldsCounters done [11:05:17]requested_item shift.num is exist - process it [11:05:17]requested_item shift.opened is exist - process it [11:05:17]req_shift_opened [11:05:17]FM_GetShiftState [11:05:17]SAM_PROTO_GetShiftState [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 13 01 00 [11:05:17]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 43 [11:05:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_GetShiftState done [11:05:17]FM_GetShiftState done [11:05:17]req_shift_opened done [11:05:17]requested_item shift.open_date is exist - process it [11:05:17]req_shift_open_date [11:05:17]req_shift_open_date done [11:05:17]produce_requested_data done [11:05:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166664,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:05:17]process_action_free close_receipt [11:05:17]json_value_free [11:05:17]json_value_free done [11:05:17]process_json_proto returns [11:05:17]Send response to host [11:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166664,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:05:17]free response buf [11:05:17]execute_script done [11:05:17]execute_script returns [11:05:17]free content buf [11:05:17]Sock 10.Close socket [11:05:17]Sock 10.Thread stoped [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:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:53]accept exits with 8 [11:05:53]New connection [11:05:53]New thread 3067178340 created [11:05:53]Thread 3067034980 joined [11:05:53]Waiting for new connection... [11:05:53] Sock 8.Parse request [11:05:53]Sock 8.Check first char [11:05:53]Sock 8.First char is OK [11:05:53]request: POST /json_proto HTTP/1.0 [11:05:53]Method: POST [11:05:53]URL: /json_proto [11:05:53]Method is POST - this is cgi request [11:05:53]url: /json_proto [11:05:53]query_string will be loaded in cgi processing [11:05:53]execute_cgi json_proto POST (null) [11:05:53]execute_cgi path=json_proto method=POST [11:05:53]POST find Content-Length [11:05:53]Host: 172.17.53.195:8080 [11:05:53]Content-Length: 677 [11:05:53]Content-Type: application/json [11:05:53] [11:05:53]POST finish read [11:05:53]Found Content-Length = 677 [11:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:53]execute_script... [11:05:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:53]POST & json_proto [11:05:53]process_json_proto [11:05:53]json parsed OK: [11:05:53]protocol is kg_v1.0 [11:05:53]action value=close_receipt [11:05:53]process_action close_receipt [11:05:53]cmd_close_receipt [11:05:53]MH_GetDate [11:05:53]Write to MH i2c: F0 00 00 F7 05 EB [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: F0 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: F0 09 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: F0 09 00 F7 05 00 91 D8 18 67 21 48 4A 65 F4 [11:05:53]GetLastDocTimeStamp 1729681513 [11:05:53]current date 1729681553 [11:05:53]FM_GetShiftState [11:05:53]SAM_PROTO_GetShiftState [11:05:53]wFMCommunicate request_size=4 [11:05:53]MH_SAM_APDU [11:05:53]CAPDU: 80 13 01 00 [11:05:53]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 45 [11:05:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:05:53]wFMCommunicate OK [11:05:53]SAM_PROTO_GetShiftState done [11:05:53]FM_GetShiftState done [11:05:53]opened in 1729643772 [11:05:53]opened+sec_in_day 1729730172 [11:05:53]quantity*price = 50041 [11:05:53]sum+1 = 50042 [11:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 80 23.10.2024 11:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166665 ФПД: 160863756825292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166665&fm=160863756825292&tin=02508201610067®Number=0000000000091764&sum=50000 [11:05:54]StoreToDocumentArchive [11:05:54]shift 537 fd 166665 [11:05:54]save to /storage/0537/doc_00166665 [11:05:54]save last doc name /storage/0537/doc_00166665 to /storage/kkm_last_doc_name [11:05:54]save OK [11:05:54]Clear old archive folders... [11:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:54]tlvbuf is 01FB3E00 [11:05:54]SAM_PROTO_ClearQueue [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 09 00 00 [11:05:54]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_ClearQueue done [11:05:54]KKMCreateOFDPacket [11:05:54]OFDProtocolAddRootSTLVToBuf [11:05:54]FM_MakeSignedData [11:05:54]FM_MakeSignedData [11:05:54]SAM_PROTO_SignData [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 01 02 [11:05:54]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=255 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 91 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8B 02 00 35 04 06 00 92 [11:05:54]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 91 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8B 02 00 35 04 06 00 92 00 00 96 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=10 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 02 02 05 4E 03 15 32 CC [11:05:54]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 4E 03 15 32 CC 00 00 F6 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 03 02 [11:05:54]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0B 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0B 00 09 06 00 52 72 D1 24 C1 88 9B F4 90 00 1C [11:05:54]RAPDU: 52 72 D1 24 C1 88 9B F4 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_SignData done [11:05:54]FM_MakeSignedData done [11:05:54]CreateOFDProtocolMessage [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 11 00 00 [11:05:54]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 17 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [11:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:05:54]wFMCommunicate OK [11:05:54]CreateOFDProtocolMessage done [11:05:54]OFDSenderStorePacket 166665 [11:05:54]StoreOFDPacket docnum=166665 [11:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4C 26 07 01 AB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 91 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8B 02 00 35 04 06 00 92 4E 03 15 32 CC 52 72 D1 24 C1 88 9B F4 [11:05:54]CheckFolder [11:05:54]dirname=/storage/ofd_packets [11:05:54]CheckFolder done [11:05:54]ProducePacketName [11:05:54]name=ofd_packets/00166665 [11:05:54]NVStorageSaveData ofd_packets/00166665 [11:05:54]File name is /storage/ofd_packets/00166665 [11:05:54]Write 301 bytes [11:05:54]NVStorageSaveData done [11:05:54]OFDSenderStorePacket done [11:05:54]KKMCreateOFDPacket done [11:05:54]NVStorageSaveData kkm_last_timestamp [11:05:54]File name is /storage/kkm_last_timestamp [11:05:54]Write 4 bytes [11:05:54]NVStorageSaveData done [11:05:54]ExternCall_PrintAddStr [11:05:54]wPrintStart [11:05:54]Write to MH i2c: 01 00 00 0B 06 11 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [11:05:54]RasterBufferAndPrint [11:05:54]line Счет N : (1)221248 [11:05:54]line ИНН: 02508201610067 [11:05:54]line Контрольно-Кассовый Чек [11:05:54]line ПРОДАЖА [11:05:54]line ТРК (МРК, ГНК) : 33 [11:05:54]line Товар: 2710124130 [11:05:54]line Аи-92-К-5 [11:05:54]line 7.480 * 66.90 [11:05:54]line = 500.41 [11:05:54]line НДС 12% НСП 1% [11:05:54]line > о реализуемом товаре [11:05:54]line ОКРУГЛЕНИЕ: -0.41 [11:05:54]line ИТОГО: 500.00 [11:05:54]line Внесено: 500.00 [11:05:54]line СДАЧА: 0.00 [11:05:54]line НСП 1% : 4.43 [11:05:54]line НДС 12% : 53.14 [11:05:54]line Наличными: 500.00 [11:05:54]line Безнал.: 0.00 [11:05:54]line Место: АЗС № 161 "Партнер Нефть" [11:05:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:05:54]line СНО: Общий режим [11:05:54]line Чек 80 23.10.2024 11:05 [11:05:54]line Смена: 537 ФФД: 1.0 [11:05:54]line ЗНМ: 0300000104 [11:05:54]line РНМ: 0000000000091764 [11:05:54]line Версия ККМ: 001 [11:05:54]line ФМ: 0000000000871759 [11:05:54]line ФД: 166665 [11:05:54]line ФПД: 160863756825292 [11:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166665&fm=160863756825292&tin=02508201610067®Number=0000000000091764&sum=50000 [11:05:54]written 0, free lines is 4095 [11:05:54]OFD Sender: Processing packet 166665 [packets to send 48, broken 47] [11:05:54]ProducePacketName [11:05:54]name=ofd_packets/00166665 [11:05:54]OFD Sender: To server: pG, [11:05:54]CommunicateWithHost lk.salyk.kg:30040 [11:05:54]ConnectInit lk.salyk.kg [11:05:54]Connected sock=10 [11:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4C 26 07 01 AB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 91 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8B 02 00 35 04 06 00 92 4E 03 15 32 CC 52 72 D1 24 C1 88 9B F4 [11:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5D 0D 47 00 2D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8B 02 00 F4 03 04 00 F9 7E 18 67 B6 04 01 00 00 F3 FC 26 F3 EE 75 1A F8 [11:05:55]CommunicateWithHost err = 0 [11:05:55]CheckOFDResponse [11:05:55]1017 (14) - 77093643461234 [11:05:55]1041 (16) - 0000000000871759 [11:05:55]1040 (4) - 166665 [11:05:55]1012 (4) - 23.10.2024 04:43 [11:05:55]1206 (1) - 0 [11:05:55]OFD Sender: Remove packet 166665 [11:05:55]ProducePacketName [11:05:55]name=ofd_packets/00166665 [11:05:55]NVStorageDeleteData [11:05:55]Write to MH i2c: 01 00 00 36 06 3C [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 B0 0C FF [11:05:55]RasterBufferAndPrint [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]written 0, free lines is 3256 [11:05:55]MH_Cut [11:05:55]Write to MH i2c: D1 01 00 3D 06 01 15 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 3D 06 00 14 [11:05:55]Write to MH i2c: 01 00 00 3E 06 44 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]OFD Sender: No OFD packet to send [11:05:56]*** Cut start [11:05:56]*** Partial cut [11:05:56]*** CUTSNS_PIN = 1 [11:05:56]*** CUTSNS_PIN = 0 [11:05:56]*** Brake cut motor [11:05:56]Read from MH i2c: 01 [11:05:56]MH_I2C_Read... [11:05:56]*** Stop cut motor [11:05:56]*** Cut end [11:05:56]Read from MH i2c: 01 07 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [11:05:56]process_action close_receipt done [11:05:56]requested_data is exist [11:05:56]produce_requested_data [11:05:56]requested_item fm.sn is exist - process it [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 11 00 00 [11:05:56]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 17 00 [11:05:56]MH_I2C_Read... [11:05:56]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 31 37 35 39 90 00 17 [11:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:05:56]wFMCommunicate OK [11:05:56]requested_item fd.num is exist - process it [11:05:56]SAM_PROTO_GetFieldsCounters [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 13 00 00 [11:05:56]Write to MH i2c: E2 08 00 40 06 80 13 00 00 00 00 00 00 C2 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 62 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 62 00 40 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_GetFieldsCounters done [11:05:57]requested_item shift.num is exist - process it [11:05:57]requested_item shift.opened is exist - process it [11:05:57]req_shift_opened [11:05:57]FM_GetShiftState [11:05:57]SAM_PROTO_GetShiftState [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 13 01 00 [11:05:57]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8F [11:05:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_GetShiftState done [11:05:57]FM_GetShiftState done [11:05:57]req_shift_opened done [11:05:57]requested_item shift.open_date is exist - process it [11:05:57]req_shift_open_date [11:05:57]req_shift_open_date done [11:05:57]produce_requested_data done [11:05:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166665,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:05:57]process_action_free close_receipt [11:05:57]json_value_free [11:05:57]json_value_free done [11:05:57]process_json_proto returns [11:05:57]Send response to host [11:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166665,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:05:57]free response buf [11:05:57]execute_script done [11:05:57]execute_script returns [11:05:57]free content buf [11:05:57]Sock 8.Close socket [11:05:57]Sock 8.Thread stoped [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:41]accept exits with 9 [11:06:41]New connection [11:06:41]New thread 3067034980 created [11:06:41]Thread 3067178340 joined [11:06:41]Waiting for new connection... [11:06:41] Sock 9.Parse request [11:06:41]Sock 9.Check first char [11:06:41]Sock 9.First char is OK [11:06:41]request: POST /json_proto HTTP/1.0 [11:06:41]Method: POST [11:06:41]URL: /json_proto [11:06:41]Method is POST - this is cgi request [11:06:41]url: /json_proto [11:06:41]query_string will be loaded in cgi processing [11:06:41]execute_cgi json_proto POST (null) [11:06:41]execute_cgi path=json_proto method=POST [11:06:41]POST find Content-Length [11:06:41]Host: 172.17.53.195:8080 [11:06:41]Content-Length: 677 [11:06:41]Content-Type: application/json [11:06:41] [11:06:41]POST finish read [11:06:41]Found Content-Length = 677 [11:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:41]execute_script... [11:06: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)221249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:41]POST & json_proto [11:06:41]process_json_proto [11:06:41]json parsed OK: [11:06:41]protocol is kg_v1.0 [11:06:41]action value=close_receipt [11:06:41]process_action close_receipt [11:06:41]cmd_close_receipt [11:06:41]MH_GetDate [11:06:41]Write to MH i2c: F0 00 00 42 06 37 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: F0 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: F0 09 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: F0 09 00 42 06 00 C2 D8 18 67 21 48 4A 65 71 [11:06:41]GetLastDocTimeStamp 1729681553 [11:06:41]current date 1729681602 [11:06:41]FM_GetShiftState [11:06:41]SAM_PROTO_GetShiftState [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 13 01 00 [11:06:41]Write to MH i2c: E2 08 00 43 06 80 13 01 00 00 00 00 00 C6 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:41]Read from MH i2c: E2 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 0E 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 0E 00 43 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 91 [11:06:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:06:41]wFMCommunicate OK [11:06:41]SAM_PROTO_GetShiftState done [11:06:41]FM_GetShiftState done [11:06:41]opened in 1729643772 [11:06:41]opened+sec_in_day 1729730172 [11:06:41]quantity*price = 50041 [11:06:41]sum+1 = 50042 [11:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 81 23.10.2024 11:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166666 ФПД: 235636974094229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166666&fm=235636974094229&tin=02508201610067®Number=0000000000091764&sum=50000 [11:06:42]StoreToDocumentArchive [11:06:42]shift 537 fd 166666 [11:06:42]save to /storage/0537/doc_00166666 [11:06:42]save last doc name /storage/0537/doc_00166666 to /storage/kkm_last_doc_name [11:06:42]save OK [11:06:42]Clear old archive folders... [11:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:42]tlvbuf is 01F5BA80 [11:06:42]SAM_PROTO_ClearQueue [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 09 00 00 [11:06:42]Write to MH i2c: E2 08 00 50 06 80 09 00 00 00 00 00 00 C8 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_ClearQueue done [11:06:42]KKMCreateOFDPacket [11:06:42]OFDProtocolAddRootSTLVToBuf [11:06:42]FM_MakeSignedData [11:06:42]FM_MakeSignedData [11:06:42]SAM_PROTO_SignData [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 01 02 [11:06:42]Write to MH i2c: E2 08 00 51 06 80 0D 01 02 00 00 00 00 D0 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=255 [11:06:42]MH_SAM_APDU [11:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8B 02 00 35 04 06 00 D6 [11:06:42]Write to MH i2c: E2 02 01 52 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 C2 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8B 02 00 35 04 06 00 D6 00 00 58 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]wFMCommunicate request_size=10 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 02 02 05 4F 82 23 07 95 [11:06:43]Write to MH i2c: E2 0D 00 53 06 80 0D 02 02 05 00 4F 82 23 07 95 00 00 6D [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 03 02 [11:06:43]Write to MH i2c: E2 08 00 54 06 80 0D 03 02 00 00 00 00 D5 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0B 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0B 00 54 06 00 2D 98 BC C9 2E F6 C3 84 90 00 8B [11:06:43]RAPDU: 2D 98 BC C9 2E F6 C3 84 90 00 [11:06:43]wFMCommunicate OK [11:06:43]SAM_PROTO_SignData done [11:06:43]FM_MakeSignedData done [11:06:43]CreateOFDProtocolMessage [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 11 00 00 [11:06:43]Write to MH i2c: E2 08 00 55 06 80 11 00 00 00 00 00 00 D5 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [11:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:06:43]wFMCommunicate OK [11:06:43]CreateOFDProtocolMessage done [11:06:43]OFDSenderStorePacket 166666 [11:06:43]StoreOFDPacket docnum=166666 [11:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 59 07 01 F5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 C2 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8B 02 00 35 04 06 00 D6 4F 82 23 07 95 2D 98 BC C9 2E F6 C3 84 [11:06:43]CheckFolder [11:06:43]dirname=/storage/ofd_packets [11:06:43]CheckFolder done [11:06:43]ProducePacketName [11:06:43]name=ofd_packets/00166666 [11:06:43]NVStorageSaveData ofd_packets/00166666 [11:06:43]File name is /storage/ofd_packets/00166666 [11:06:43]Write 301 bytes [11:06:43]NVStorageSaveData done [11:06:43]OFDSenderStorePacket done [11:06:43]KKMCreateOFDPacket done [11:06:43]NVStorageSaveData kkm_last_timestamp [11:06:43]File name is /storage/kkm_last_timestamp [11:06:43]Write 4 bytes [11:06:43]NVStorageSaveData done [11:06:43]ExternCall_PrintAddStr [11:06:43]wPrintStart [11:06:43]Write to MH i2c: 01 00 00 56 06 5C [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [11:06:43]RasterBufferAndPrint [11:06:43]line Счет N : (1)221249 [11:06:43]line ИНН: 02508201610067 [11:06:43]line Контрольно-Кассовый Чек [11:06:43]line ПРОДАЖА [11:06:43]line ТРК (МРК, ГНК) : 23 [11:06:43]line Товар: 2710124130 [11:06:43]line Аи-92-К-5 [11:06:43]line 7.480 * 66.90 [11:06:43]line = 500.41 [11:06:43]line НДС 12% НСП 1% [11:06:43]line > о реализуемом товаре [11:06:43]line ОКРУГЛЕНИЕ: -0.41 [11:06:43]line ИТОГО: 500.00 [11:06:43]line Внесено: 500.00 [11:06:43]line СДАЧА: 0.00 [11:06:43]line НСП 1% : 4.43 [11:06:43]line НДС 12% : 53.14 [11:06:43]line Наличными: 500.00 [11:06:43]line Безнал.: 0.00 [11:06:43]line Место: АЗС № 161 "Партнер Нефть" [11:06:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:06:43]line СНО: Общий режим [11:06:43]line Чек 81 23.10.2024 11:06 [11:06:43]line Смена: 537 ФФД: 1.0 [11:06:43]line ЗНМ: 0300000104 [11:06:43]line РНМ: 0000000000091764 [11:06:43]line Версия ККМ: 001 [11:06:43]line ФМ: 0000000000871759 [11:06:43]line ФД: 166666 [11:06:43]line ФПД: 235636974094229 [11:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166666&fm=235636974094229&tin=02508201610067®Number=0000000000091764&sum=50000 [11:06:43]OFD Sender: Processing packet 166666 [packets to send 48, broken 47] [11:06:43]ProducePacketName [11:06:43]name=ofd_packets/00166666 [11:06:43]OFD Sender: To server: pG, [11:06:43]CommunicateWithHost lk.salyk.kg:30040 [11:06:43]ConnectInit lk.salyk.kg [11:06:43]written 0, free lines is 4095 [11:06:43]Connected sock=10 [11:06:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 59 07 01 F5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 C2 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8B 02 00 35 04 06 00 D6 4F 82 23 07 95 2D 98 BC C9 2E F6 C3 84 [11:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 82 47 00 A0 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8B 02 00 F4 03 04 00 2A 7F 18 67 B6 04 01 00 00 73 47 2C 94 36 C5 08 52 [11:06:44]CommunicateWithHost err = 0 [11:06:44]CheckOFDResponse [11:06:44]1017 (14) - 77093643461234 [11:06:44]1041 (16) - 0000000000871759 [11:06:44]1040 (4) - 166666 [11:06:44]1012 (4) - 23.10.2024 04:44 [11:06:44]1206 (1) - 0 [11:06:44]OFD Sender: Remove packet 166666 [11:06:44]ProducePacketName [11:06:44]name=ofd_packets/00166666 [11:06:44]NVStorageDeleteData [11:06:44]Write to MH i2c: 01 00 00 81 06 87 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 C3 0C 5D [11:06:44]RasterBufferAndPrint [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]written 0, free lines is 3273 [11:06:44]MH_Cut [11:06:44]Write to MH i2c: D1 01 00 88 06 01 60 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: D1 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: D1 01 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: D1 01 00 88 06 00 5F [11:06:44]Write to MH i2c: 01 00 00 89 06 8F [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]OFD Sender: No OFD packet to send [11:06:44]*** Cut start [11:06:44]*** Partial cut [11:06:44]*** CUTSNS_PIN = 1 [11:06:45]*** CUTSNS_PIN = 0 [11:06:45]*** Brake cut motor [11:06:45]Read from MH i2c: 01 [11:06:45]MH_I2C_Read... [11:06:45]*** Stop cut motor [11:06:45]*** Cut end [11:06:45]Read from MH i2c: 01 07 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [11:06:45]process_action close_receipt done [11:06:45]requested_data is exist [11:06:45]produce_requested_data [11:06:45]requested_item fm.sn is exist - process it [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 11 00 00 [11:06:45]Write to MH i2c: E2 08 00 8A 06 80 11 00 00 00 00 00 00 0A [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 17 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 17 00 8A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [11:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:06:45]wFMCommunicate OK [11:06:45]requested_item fd.num is exist - process it [11:06:45]SAM_PROTO_GetFieldsCounters [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 13 00 00 [11:06:45]Write to MH i2c: E2 08 00 8B 06 80 13 00 00 00 00 00 00 0D [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 62 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 62 00 8B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [11:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetFieldsCounters done [11:06:45]requested_item shift.num is exist - process it [11:06:45]requested_item shift.opened is exist - process it [11:06:45]req_shift_opened [11:06:45]FM_GetShiftState [11:06:45]SAM_PROTO_GetShiftState [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 13 01 00 [11:06:45]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DA [11:06:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetShiftState done [11:06:45]FM_GetShiftState done [11:06:45]req_shift_opened done [11:06:45]requested_item shift.open_date is exist - process it [11:06:45]req_shift_open_date [11:06:45]req_shift_open_date done [11:06:45]produce_requested_data done [11:06:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166666,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:06:45]process_action_free close_receipt [11:06:45]json_value_free [11:06:45]json_value_free done [11:06:45]process_json_proto returns [11:06:45]Send response to host [11:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166666,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:06:45]free response buf [11:06:45]execute_script done [11:06:45]execute_script returns [11:06:45]free content buf [11:06:45]Sock 9.Close socket [11:06:45]Sock 9.Thread stoped [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:11]accept exits with 8 [11:07:11]New connection [11:07:11]New thread 3067178340 created [11:07:11]Thread 3067034980 joined [11:07:11]Waiting for new connection... [11:07:11] Sock 8.Parse request [11:07:11]Sock 8.Check first char [11:07:11]Sock 8.First char is OK [11:07:11]request: POST /json_proto HTTP/1.0 [11:07:11]Method: POST [11:07:11]URL: /json_proto [11:07:11]Method is POST - this is cgi request [11:07:11]url: /json_proto [11:07:11]query_string will be loaded in cgi processing [11:07:11]execute_cgi json_proto POST (null) [11:07:11]execute_cgi path=json_proto method=POST [11:07:11]POST find Content-Length [11:07:11]Host: 172.17.53.195:8080 [11:07:11]Content-Length: 682 [11:07:11]Content-Type: application/json [11:07:11] [11:07:11]POST finish read [11:07:11]Found Content-Length = 682 [11:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:11]execute_script... [11:07: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)221247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:11]POST & json_proto [11:07:11]process_json_proto [11:07:11]json parsed OK: [11:07:11]protocol is kg_v1.0 [11:07:11]action value=close_receipt [11:07:11]process_action close_receipt [11:07:11]cmd_close_receipt [11:07:11]MH_GetDate [11:07:11]Write to MH i2c: F0 00 00 8D 06 82 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: F0 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: F0 09 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: F0 09 00 8D 06 00 E0 D8 18 67 21 48 4A 65 DA [11:07:11]GetLastDocTimeStamp 1729681602 [11:07:11]current date 1729681632 [11:07:11]FM_GetShiftState [11:07:11]SAM_PROTO_GetShiftState [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 13 01 00 [11:07:11]Write to MH i2c: E2 08 00 8E 06 80 13 01 00 00 00 00 00 11 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 0E 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 0E 00 8E 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DC [11:07:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:07:11]wFMCommunicate OK [11:07:11]SAM_PROTO_GetShiftState done [11:07:11]FM_GetShiftState done [11:07:11]opened in 1729643772 [11:07:11]opened+sec_in_day 1729730172 [11:07:11]quantity*price = 200043 [11:07:11]sum+1 = 200044 [11:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 82 23.10.2024 11:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166667 ФПД: 46660654452483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166667&fm=46660654452483&tin=02508201610067®Number=0000000000091764&sum=200000 [11:07:13]StoreToDocumentArchive [11:07:13]shift 537 fd 166667 [11:07:13]save to /storage/0537/doc_00166667 [11:07:13]save last doc name /storage/0537/doc_00166667 to /storage/kkm_last_doc_name [11:07:13]save OK [11:07:13]Clear old archive folders... [11:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:13]tlvbuf is 01FAE4F0 [11:07:13]SAM_PROTO_ClearQueue [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 09 00 00 [11:07:13]Write to MH i2c: E2 08 00 9B 06 80 09 00 00 00 00 00 00 13 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [11:07:13]RAPDU: 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_ClearQueue done [11:07:13]KKMCreateOFDPacket [11:07:13]OFDProtocolAddRootSTLVToBuf [11:07:13]FM_MakeSignedData [11:07:13]FM_MakeSignedData [11:07:13]SAM_PROTO_SignData [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 0D 01 02 [11:07:13]Write to MH i2c: E2 08 00 9C 06 80 0D 01 02 00 00 00 00 1B [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [11:07:13]RAPDU: 90 00 [11:07:13]wFMCommunicate OK [11:07:13]wFMCommunicate request_size=255 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E0 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8B 02 00 35 04 06 00 2A [11:07:13]Write to MH i2c: E2 02 01 9D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E0 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8B 02 00 35 04 06 00 2A 00 00 BF [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [11:07:13]RAPDU: 90 00 [11:07:13]wFMCommunicate OK [11:07:13]wFMCommunicate request_size=10 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 0D 02 02 05 70 07 BB CF 03 [11:07:13]Write to MH i2c: E2 0D 00 9E 06 80 0D 02 02 05 00 70 07 BB CF 03 00 00 2C [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [11:07:13]RAPDU: 90 00 [11:07:13]wFMCommunicate OK [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 0D 03 02 [11:07:13]Write to MH i2c: E2 08 00 9F 06 80 0D 03 02 00 00 00 00 20 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0B 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0B 00 9F 06 00 FA 84 7F BE B0 7E 2B B3 90 00 E8 [11:07:13]RAPDU: FA 84 7F BE B0 7E 2B B3 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_SignData done [11:07:13]FM_MakeSignedData done [11:07:13]CreateOFDProtocolMessage [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 11 00 00 [11:07:13]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [11:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:07:13]wFMCommunicate OK [11:07:13]CreateOFDProtocolMessage done [11:07:13]OFDSenderStorePacket 166667 [11:07:13]StoreOFDPacket docnum=166667 [11:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD 8F 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E0 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8B 02 00 35 04 06 00 2A 70 07 BB CF 03 FA 84 7F BE B0 7E 2B B3 [11:07:13]CheckFolder [11:07:13]dirname=/storage/ofd_packets [11:07:13]CheckFolder done [11:07:13]ProducePacketName [11:07:13]name=ofd_packets/00166667 [11:07:13]NVStorageSaveData ofd_packets/00166667 [11:07:13]File name is /storage/ofd_packets/00166667 [11:07:13]Write 301 bytes [11:07:13]NVStorageSaveData done [11:07:13]OFDSenderStorePacket done [11:07:13]KKMCreateOFDPacket done [11:07:13]NVStorageSaveData kkm_last_timestamp [11:07:13]File name is /storage/kkm_last_timestamp [11:07:13]Write 4 bytes [11:07:13]NVStorageSaveData done [11:07:13]ExternCall_PrintAddStr [11:07:13]wPrintStart [11:07:13]Write to MH i2c: 01 00 00 A1 06 A7 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 FF 0F BC [11:07:13]RasterBufferAndPrint [11:07:13]line Счет N : (1)221247 [11:07:13]line ИНН: 02508201610067 [11:07:13]line Контрольно-Кассовый Чек [11:07:13]line ПРОДАЖА [11:07:13]line ТРК (МРК, ГНК) : 44 [11:07:13]line Товар: 2710124500 [11:07:13]line Аи-95-К-5 [11:07:13]line 26.960 * 74.20 [11:07:13]line = 2000.43 [11:07:13]line НДС 12% НСП 1% [11:07:13]line > о реализуемом товаре [11:07:13]line ОКРУГЛЕНИЕ: -0.43 [11:07:13]line ИТОГО: 2000.00 [11:07:13]line Внесено: 2000.00 [11:07:13]line СДАЧА: 0.00 [11:07:13]line НСП 1% : 17.70 [11:07:13]line НДС 12% : 212.43 [11:07:13]line Наличными: 2000.00 [11:07:13]line Безнал.: 0.00 [11:07:13]line Место: АЗС № 161 "Партнер Нефть" [11:07:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:07:13]line СНО: Общий режим [11:07:13]line Чек 82 23.10.2024 11:07 [11:07:13]line Смена: 537 ФФД: 1.0 [11:07:13]line ЗНМ: 0300000104 [11:07:13]line РНМ: 0000000000091764 [11:07:13]line Версия ККМ: 001 [11:07:13]line ФМ: 0000000000871759 [11:07:13]line ФД: 166667 [11:07:13]line ФПД: 46660654452483 [11:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166667&fm=46660654452483&tin=02508201610067®Number=0000000000091764&sum=200000 [11:07:13]OFD Sender: Processing packet 166667 [packets to send 48, broken 47] [11:07:13]ProducePacketName [11:07:13]name=ofd_packets/00166667 [11:07:13]OFD Sender: To server: pG, [11:07:13]CommunicateWithHost lk.salyk.kg:30040 [11:07:13]ConnectInit lk.salyk.kg [11:07:13]written 0, free lines is 4095 [11:07:14]Connected sock=10 [11:07:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD 8F 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E0 D8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8B 02 00 35 04 06 00 2A 70 07 BB CF 03 FA 84 7F BE B0 7E 2B B3 [11:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 01 1F 47 00 FF 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8B 02 00 F4 03 04 00 48 7F 18 67 B6 04 01 00 00 8F 53 C6 A4 2B 18 2F 5D [11:07:14]CommunicateWithHost err = 0 [11:07:14]CheckOFDResponse [11:07:14]1017 (14) - 77093643461234 [11:07:14]1041 (16) - 0000000000871759 [11:07:14]1040 (4) - 166667 [11:07:14]1012 (4) - 23.10.2024 04:44 [11:07:14]1206 (1) - 0 [11:07:14]OFD Sender: Remove packet 166667 [11:07:14]ProducePacketName [11:07:14]name=ofd_packets/00166667 [11:07:14]NVStorageDeleteData [11:07:14]Write to MH i2c: 01 00 00 CC 06 D2 [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: 01 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: 01 07 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 C1 0C A6 [11:07:14]RasterBufferAndPrint [11:07:14]line [11:07:14]line [11:07:14]line [11:07:14]line [11:07:14]line [11:07:14]written 0, free lines is 3272 [11:07:14]MH_Cut [11:07:14]Write to MH i2c: D1 01 00 D3 06 01 AB [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: D1 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: D1 01 00 [11:07:14]MH_I2C_Read... [11:07:14]Read from MH i2c: D1 01 00 D3 06 00 AA [11:07:14]Write to MH i2c: 01 00 00 D4 06 DA [11:07:14]Write i2c OK [11:07:14]MH_I2C_Read... [11:07:14]OFD Sender: No OFD packet to send [11:07:15]*** Cut start [11:07:15]*** Partial cut [11:07:15]*** CUTSNS_PIN = 1 [11:07:15]*** CUTSNS_PIN = 0 [11:07:15]*** Brake cut motor [11:07:15]Read from MH i2c: 01 [11:07:15]MH_I2C_Read... [11:07:15]*** Stop cut motor [11:07:15]*** Cut end [11:07:15]Read from MH i2c: 01 07 00 [11:07:15]MH_I2C_Read... [11:07:15]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [11:07:15]process_action close_receipt done [11:07:15]requested_data is exist [11:07:15]produce_requested_data [11:07:15]requested_item fm.sn is exist - process it [11:07:15]wFMCommunicate request_size=4 [11:07:15]MH_SAM_APDU [11:07:15]CAPDU: 80 11 00 00 [11:07:15]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [11:07:15]Write i2c OK [11:07:15]MH_I2C_Read... [11:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:15]Read from MH i2c: E2 [11:07:15]MH_I2C_Read... [11:07:15]Read from MH i2c: E2 17 00 [11:07:15]MH_I2C_Read... [11:07:15]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [11:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:07:15]wFMCommunicate OK [11:07:15]requested_item fd.num is exist - process it [11:07:15]SAM_PROTO_GetFieldsCounters [11:07:15]wFMCommunicate request_size=4 [11:07:15]MH_SAM_APDU [11:07:15]CAPDU: 80 13 00 00 [11:07:15]Write to MH i2c: E2 08 00 D6 06 80 13 00 00 00 00 00 00 58 [11:07:15]Write i2c OK [11:07:15]MH_I2C_Read... [11:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:16]Read from MH i2c: E2 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 62 00 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 62 00 D6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11:07:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:16]wFMCommunicate OK [11:07:16]SAM_PROTO_GetFieldsCounters done [11:07:16]requested_item shift.num is exist - process it [11:07:16]requested_item shift.opened is exist - process it [11:07:16]req_shift_opened [11:07:16]FM_GetShiftState [11:07:16]SAM_PROTO_GetShiftState [11:07:16]wFMCommunicate request_size=4 [11:07:16]MH_SAM_APDU [11:07:16]CAPDU: 80 13 01 00 [11:07:16]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [11:07:16]Write i2c OK [11:07:16]MH_I2C_Read... [11:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:16]Read from MH i2c: E2 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 0E 00 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 25 [11:07:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:07:16]wFMCommunicate OK [11:07:16]SAM_PROTO_GetShiftState done [11:07:16]FM_GetShiftState done [11:07:16]req_shift_opened done [11:07:16]requested_item shift.open_date is exist - process it [11:07:16]req_shift_open_date [11:07:16]req_shift_open_date done [11:07:16]produce_requested_data done [11:07:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166667,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:07:16]process_action_free close_receipt [11:07:16]json_value_free [11:07:16]json_value_free done [11:07:16]process_json_proto returns [11:07:16]Send response to host [11:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166667,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:07:16]free response buf [11:07:16]execute_script done [11:07:16]execute_script returns [11:07:16]free content buf [11:07:16]Sock 8.Close socket [11:07:16]Sock 8.Thread stoped [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:03]accept exits with 9 [11:10:03]New connection [11:10:03]New thread 3067034980 created [11:10:03]Thread 3067178340 joined [11:10:03]Waiting for new connection... [11:10:03] Sock 9.Parse request [11:10:03]Sock 9.Check first char [11:10:03]Sock 9.First char is OK [11:10:03]request: POST /json_proto HTTP/1.0 [11:10:03]Method: POST [11:10:03]URL: /json_proto [11:10:03]Method is POST - this is cgi request [11:10:03]url: /json_proto [11:10:03]query_string will be loaded in cgi processing [11:10:03]execute_cgi json_proto POST (null) [11:10:03]execute_cgi path=json_proto method=POST [11:10:03]POST find Content-Length [11:10:03]Host: 172.17.53.195:8080 [11:10:03]Content-Length: 677 [11:10:03]Content-Type: application/json [11:10:03] [11:10:03]POST finish read [11:10:03]Found Content-Length = 677 [11:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:03]execute_script... [11:10: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)221250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:03]POST & json_proto [11:10:03]process_json_proto [11:10:03]json parsed OK: [11:10:03]protocol is kg_v1.0 [11:10:03]action value=close_receipt [11:10:03]process_action close_receipt [11:10:03]cmd_close_receipt [11:10:03]MH_GetDate [11:10:03]Write to MH i2c: F0 00 00 D8 06 CD [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 09 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 09 00 D8 06 00 8B D9 18 67 21 48 4A 65 D1 [11:10:03]GetLastDocTimeStamp 1729681632 [11:10:03]current date 1729681803 [11:10:03]FM_GetShiftState [11:10:03]SAM_PROTO_GetShiftState [11:10:03]wFMCommunicate request_size=4 [11:10:03]MH_SAM_APDU [11:10:03]CAPDU: 80 13 01 00 [11:10:03]Write to MH i2c: E2 08 00 D9 06 80 13 01 00 00 00 00 00 5C [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:03]Read from MH i2c: E2 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 D9 06 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 27 [11:10:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:10:03]wFMCommunicate OK [11:10:03]SAM_PROTO_GetShiftState done [11:10:03]FM_GetShiftState done [11:10:03]opened in 1729643772 [11:10:03]opened+sec_in_day 1729730172 [11:10:03]quantity*price = 50041 [11:10:03]sum+1 = 50042 [11:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 83 23.10.2024 11:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166668 ФПД: 24139290072335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166668&fm=24139290072335&tin=02508201610067®Number=0000000000091764&sum=50000 [11:10:04]StoreToDocumentArchive [11:10:04]shift 537 fd 166668 [11:10:04]save to /storage/0537/doc_00166668 [11:10:04]save last doc name /storage/0537/doc_00166668 to /storage/kkm_last_doc_name [11:10:04]save OK [11:10:04]Clear old archive folders... [11:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:04]tlvbuf is 01FA9A40 [11:10:04]SAM_PROTO_ClearQueue [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 09 00 00 [11:10:04]Write to MH i2c: E2 08 00 E6 06 80 09 00 00 00 00 00 00 5E [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]SAM_PROTO_ClearQueue done [11:10:04]KKMCreateOFDPacket [11:10:04]OFDProtocolAddRootSTLVToBuf [11:10:04]FM_MakeSignedData [11:10:04]FM_MakeSignedData [11:10:04]SAM_PROTO_SignData [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 01 02 [11:10:04]Write to MH i2c: E2 08 00 E7 06 80 0D 01 02 00 00 00 00 66 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]wFMCommunicate request_size=255 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8C D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8B 02 00 35 04 06 00 15 [11:10:04]Write to MH i2c: E2 02 01 E8 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8C D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8B 02 00 35 04 06 00 15 00 00 FC [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]OFD Sender: No OFD packet to send [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 E8 06 00 90 00 62 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]wFMCommunicate request_size=10 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 02 02 05 F4 5D CF 55 0F [11:10:04]Write to MH i2c: E2 0D 00 E9 06 80 0D 02 02 05 00 F4 5D CF 55 0F 00 00 F7 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:05]Read from MH i2c: E2 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 03 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [11:10:05]RAPDU: 90 00 [11:10:05]wFMCommunicate OK [11:10:05]wFMCommunicate request_size=4 [11:10:05]MH_SAM_APDU [11:10:05]CAPDU: 80 0D 03 02 [11:10:05]Write to MH i2c: E2 08 00 EA 06 80 0D 03 02 00 00 00 00 6B [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:05]Read from MH i2c: E2 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 0B 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 0B 00 EA 06 00 E6 7F 21 71 8A 4E CF 10 90 00 1A [11:10:05]RAPDU: E6 7F 21 71 8A 4E CF 10 90 00 [11:10:05]wFMCommunicate OK [11:10:05]SAM_PROTO_SignData done [11:10:05]FM_MakeSignedData done [11:10:05]CreateOFDProtocolMessage [11:10:05]wFMCommunicate request_size=4 [11:10:05]MH_SAM_APDU [11:10:05]CAPDU: 80 11 00 00 [11:10:05]Write to MH i2c: E2 08 00 EB 06 80 11 00 00 00 00 00 00 6B [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:05]Read from MH i2c: E2 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 17 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: E2 17 00 EB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [11:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:05]wFMCommunicate OK [11:10:05]CreateOFDProtocolMessage done [11:10:05]OFDSenderStorePacket 166668 [11:10:05]StoreOFDPacket docnum=166668 [11:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 4E 07 01 F7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8C D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8B 02 00 35 04 06 00 15 F4 5D CF 55 0F E6 7F 21 71 8A 4E CF 10 [11:10:05]CheckFolder [11:10:05]dirname=/storage/ofd_packets [11:10:05]CheckFolder done [11:10:05]ProducePacketName [11:10:05]name=ofd_packets/00166668 [11:10:05]NVStorageSaveData ofd_packets/00166668 [11:10:05]File name is /storage/ofd_packets/00166668 [11:10:05]Write 301 bytes [11:10:05]NVStorageSaveData done [11:10:05]OFDSenderStorePacket done [11:10:05]KKMCreateOFDPacket done [11:10:05]NVStorageSaveData kkm_last_timestamp [11:10:05]File name is /storage/kkm_last_timestamp [11:10:05]Write 4 bytes [11:10:05]NVStorageSaveData done [11:10:05]ExternCall_PrintAddStr [11:10:05]wPrintStart [11:10:05]Write to MH i2c: 01 00 00 EC 06 F2 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 FF 0F 07 [11:10:05]RasterBufferAndPrint [11:10:05]line Счет N : (1)221250 [11:10:05]line ИНН: 02508201610067 [11:10:05]line Контрольно-Кассовый Чек [11:10:05]line ПРОДАЖА [11:10:05]line ТРК (МРК, ГНК) : 23 [11:10:05]line Товар: 2710124130 [11:10:05]line Аи-92-К-5 [11:10:05]line 7.480 * 66.90 [11:10:05]line = 500.41 [11:10:05]line НДС 12% НСП 1% [11:10:05]line > о реализуемом товаре [11:10:05]line ОКРУГЛЕНИЕ: -0.41 [11:10:05]line ИТОГО: 500.00 [11:10:05]line Внесено: 500.00 [11:10:05]line СДАЧА: 0.00 [11:10:05]line НСП 1% : 4.43 [11:10:05]line НДС 12% : 53.14 [11:10:05]line Наличными: 500.00 [11:10:05]line Безнал.: 0.00 [11:10:05]line Место: АЗС № 161 "Партнер Нефть" [11:10:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:10:05]line СНО: Общий режим [11:10:05]line Чек 83 23.10.2024 11:10 [11:10:05]line Смена: 537 ФФД: 1.0 [11:10:05]line ЗНМ: 0300000104 [11:10:05]line РНМ: 0000000000091764 [11:10:05]line Версия ККМ: 001 [11:10:05]line ФМ: 0000000000871759 [11:10:05]line ФД: 166668 [11:10:05]line ФПД: 24139290072335 [11:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166668&fm=24139290072335&tin=02508201610067®Number=0000000000091764&sum=50000 [11:10:05]OFD Sender: Processing packet 166668 [packets to send 48, broken 47] [11:10:05]ProducePacketName [11:10:05]name=ofd_packets/00166668 [11:10:05]OFD Sender: To server: pG, [11:10:05]CommunicateWithHost lk.salyk.kg:30040 [11:10:05]ConnectInit lk.salyk.kg [11:10:05]written 0, free lines is 4095 [11:10:05]Connected sock=10 [11:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 4E 07 01 F7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8C D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8B 02 00 35 04 06 00 15 F4 5D CF 55 0F E6 7F 21 71 8A 4E CF 10 [11:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6E 07 47 00 41 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8B 02 00 F4 03 04 00 F3 7F 18 67 B6 04 01 00 00 F8 0D 66 03 CE CE 2C 0D [11:10:05]CommunicateWithHost err = 0 [11:10:05]CheckOFDResponse [11:10:05]1017 (14) - 77093643461234 [11:10:05]1041 (16) - 0000000000871759 [11:10:05]1040 (4) - 166668 [11:10:05]1012 (4) - 23.10.2024 04:47 [11:10:05]1206 (1) - 0 [11:10:05]OFD Sender: Remove packet 166668 [11:10:05]ProducePacketName [11:10:05]name=ofd_packets/00166668 [11:10:05]NVStorageDeleteData [11:10:05]Write to MH i2c: 01 00 00 17 07 1E [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 B4 0C E5 [11:10:05]RasterBufferAndPrint [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]written 0, free lines is 3258 [11:10:05]MH_Cut [11:10:05]Write to MH i2c: D1 01 00 1E 07 01 F7 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 01 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 01 00 1E 07 00 F6 [11:10:05]Write to MH i2c: 01 00 00 1F 07 26 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:06]OFD Sender: No OFD packet to send [11:10:06]*** Cut start [11:10:06]*** Partial cut [11:10:06]*** CUTSNS_PIN = 1 [11:10:06]*** CUTSNS_PIN = 0 [11:10:07]*** Brake cut motor [11:10:07]Read from MH i2c: 01 [11:10:07]MH_I2C_Read... [11:10:07]*** Stop cut motor [11:10:07]*** Cut end [11:10:07]Read from MH i2c: 01 07 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [11:10:07]process_action close_receipt done [11:10:07]requested_data is exist [11:10:07]produce_requested_data [11:10:07]requested_item fm.sn is exist - process it [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 11 00 00 [11:10:07]Write to MH i2c: E2 08 00 20 07 80 11 00 00 00 00 00 00 A1 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 20 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [11:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:07]wFMCommunicate OK [11:10:07]requested_item fd.num is exist - process it [11:10:07]SAM_PROTO_GetFieldsCounters [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 00 00 [11:10:07]Write to MH i2c: E2 08 00 21 07 80 13 00 00 00 00 00 00 A4 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 21 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetFieldsCounters done [11:10:07]requested_item shift.num is exist - process it [11:10:07]requested_item shift.opened is exist - process it [11:10:07]req_shift_opened [11:10:07]FM_GetShiftState [11:10:07]SAM_PROTO_GetShiftState [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 01 00 [11:10:07]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 71 [11:10:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetShiftState done [11:10:07]FM_GetShiftState done [11:10:07]req_shift_opened done [11:10:07]requested_item shift.open_date is exist - process it [11:10:07]req_shift_open_date [11:10:07]req_shift_open_date done [11:10:07]produce_requested_data done [11:10:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166668,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:10:07]process_action_free close_receipt [11:10:07]json_value_free [11:10:07]json_value_free done [11:10:07]process_json_proto returns [11:10:07]Send response to host [11:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166668,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:10:07]free response buf [11:10:07]execute_script done [11:10:07]execute_script returns [11:10:07]free content buf [11:10:07]Sock 9.Close socket [11:10:07]Sock 9.Thread stoped [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:24]accept exits with 8 [11:10:24]New connection [11:10:24]New thread 3067178340 created [11:10:24]Thread 3067034980 joined [11:10:24]Waiting for new connection... [11:10:24] Sock 8.Parse request [11:10:24]Sock 8.Check first char [11:10:24]Sock 8.First char is OK [11:10:24]request: POST /json_proto HTTP/1.0 [11:10:24]Method: POST [11:10:24]URL: /json_proto [11:10:24]Method is POST - this is cgi request [11:10:24]url: /json_proto [11:10:24]query_string will be loaded in cgi processing [11:10:24]execute_cgi json_proto POST (null) [11:10:24]execute_cgi path=json_proto method=POST [11:10:24]POST find Content-Length [11:10:24]Host: 172.17.53.195:8080 [11:10:24]Content-Length: 679 [11:10:24]Content-Type: application/json [11:10:24] [11:10:24]POST finish read [11:10:24]Found Content-Length = 679 [11:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:24]execute_script... [11:10: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)221251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:24]POST & json_proto [11:10:24]process_json_proto [11:10:24]json parsed OK: [11:10:24]protocol is kg_v1.0 [11:10:24]action value=close_receipt [11:10:24]process_action close_receipt [11:10:24]cmd_close_receipt [11:10:24]MH_GetDate [11:10:24]Write to MH i2c: F0 00 00 23 07 19 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 09 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 09 00 23 07 00 A0 D9 18 67 21 48 4A 65 32 [11:10:24]GetLastDocTimeStamp 1729681804 [11:10:24]current date 1729681824 [11:10:24]FM_GetShiftState [11:10:24]SAM_PROTO_GetShiftState [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 13 01 00 [11:10:24]Write to MH i2c: E2 08 00 24 07 80 13 01 00 00 00 00 00 A8 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 24 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 73 [11:10:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:10:24]wFMCommunicate OK [11:10:24]SAM_PROTO_GetShiftState done [11:10:24]FM_GetShiftState done [11:10:24]opened in 1729643772 [11:10:24]opened+sec_in_day 1729730172 [11:10:24]quantity*price = 100050 [11:10:24]sum+1 = 100052 [11:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 84 23.10.2024 11:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166669 ФПД: 148970204300974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111024&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166669&fm=148970204300974&tin=02508201610067®Number=0000000000091764&sum=100000 [11:10:25]StoreToDocumentArchive [11:10:25]shift 537 fd 166669 [11:10:25]save to /storage/0537/doc_00166669 [11:10:25]save last doc name /storage/0537/doc_00166669 to /storage/kkm_last_doc_name [11:10:25]save OK [11:10:25]Clear old archive folders... [11:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:25]tlvbuf is 01F9C380 [11:10:25]SAM_PROTO_ClearQueue [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 09 00 00 [11:10:25]Write to MH i2c: E2 08 00 31 07 80 09 00 00 00 00 00 00 AA [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]SAM_PROTO_ClearQueue done [11:10:25]KKMCreateOFDPacket [11:10:25]OFDProtocolAddRootSTLVToBuf [11:10:25]FM_MakeSignedData [11:10:25]FM_MakeSignedData [11:10:25]SAM_PROTO_SignData [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 01 02 [11:10:25]Write to MH i2c: E2 08 00 32 07 80 0D 01 02 00 00 00 00 B2 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=255 [11:10:25]MH_SAM_APDU [11:10: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A0 D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8B 02 00 35 04 06 00 87 7C D4 1C [11:10:25]Write to MH i2c: E2 02 01 33 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A0 D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8B 02 00 35 04 06 00 87 7C D4 1C 00 00 32 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=7 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 02 02 02 06 AE [11:10:25]Write to MH i2c: E2 0A 00 34 07 80 0D 02 02 02 00 06 AE 00 00 6D [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 03 02 [11:10:25]Write to MH i2c: E2 08 00 35 07 80 0D 03 02 00 00 00 00 B7 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 0B 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 0B 00 35 07 00 F2 98 69 55 85 59 2B 25 90 00 2E [11:10:25]RAPDU: F2 98 69 55 85 59 2B 25 90 00 [11:10:25]wFMCommunicate OK [11:10:25]SAM_PROTO_SignData done [11:10:25]FM_MakeSignedData done [11:10:25]CreateOFDProtocolMessage [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 11 00 00 [11:10:25]Write to MH i2c: E2 08 00 36 07 80 11 00 00 00 00 00 00 B7 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 17 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 17 00 36 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [11:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:25]wFMCommunicate OK [11:10:25]CreateOFDProtocolMessage done [11:10:25]OFDSenderStorePacket 166669 [11:10:25]StoreOFDPacket docnum=166669 [11:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B5 CE 04 01 DB 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A0 D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8B 02 00 35 04 06 00 87 7C D4 1C 06 AE F2 98 69 55 85 59 2B 25 [11:10:25]CheckFolder [11:10:25]dirname=/storage/ofd_packets [11:10:25]CheckFolder done [11:10:25]ProducePacketName [11:10:25]name=ofd_packets/00166669 [11:10:25]NVStorageSaveData ofd_packets/00166669 [11:10:25]File name is /storage/ofd_packets/00166669 [11:10:25]Write 298 bytes [11:10:25]NVStorageSaveData done [11:10:25]OFDSenderStorePacket done [11:10:25]KKMCreateOFDPacket done [11:10:25]NVStorageSaveData kkm_last_timestamp [11:10:25]File name is /storage/kkm_last_timestamp [11:10:25]Write 4 bytes [11:10:25]NVStorageSaveData done [11:10:25]ExternCall_PrintAddStr [11:10:25]wPrintStart [11:10:25]Write to MH i2c: 01 00 00 37 07 3E [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: 01 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: 01 07 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FF 0F 53 [11:10:25]RasterBufferAndPrint [11:10:25]line Счет N : (1)221251 [11:10:25]line ИНН: 02508201610067 [11:10:25]line Контрольно-Кассовый Чек [11:10:25]line ПРОДАЖА [11:10:25]line ТРК (МРК, ГНК) : 31 [11:10:25]line Товар: 2710194210 [11:10:25]line ДТ-К-5 [11:10:25]line 13.130 * 76.20 [11:10:25]line = 1000.51 [11:10:25]line НДС 12% НСП 1% [11:10:25]line > о реализуемом товаре [11:10:25]line ОКРУГЛЕНИЕ: -0.51 [11:10:25]line ИТОГО: 1000.00 [11:10:25]line Внесено: 1000.00 [11:10:25]line СДАЧА: 0.00 [11:10:25]line НСП 1% : 8.85 [11:10:25]line НДС 12% : 106.25 [11:10:25]line Наличными: 1000.00 [11:10:25]line Безнал.: 0.00 [11:10:25]line Место: АЗС № 161 "Партнер Нефть" [11:10:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:10:25]line СНО: Общий режим [11:10:25]line Чек 84 23.10.2024 11:10 [11:10:25]line Смена: 537 ФФД: 1.0 [11:10:25]line ЗНМ: 0300000104 [11:10:25]line РНМ: 0000000000091764 [11:10:25]line Версия ККМ: 001 [11:10:25]line ФМ: 0000000000871759 [11:10:25]line ФД: 166669 [11:10:25]line ФПД: 148970204300974 [11:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111024&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166669&fm=148970204300974&tin=02508201610067®Number=0000000000091764&sum=100000 [11:10:26]OFD Sender: Processing packet 166669 [packets to send 48, broken 47] [11:10:26]ProducePacketName [11:10:26]name=ofd_packets/00166669 [11:10:26]OFD Sender: To server: pG, [11:10:26]CommunicateWithHost lk.salyk.kg:30040 [11:10:26]ConnectInit lk.salyk.kg [11:10:26]written 0, free lines is 4095 [11:10:26]Write to MH i2c: 01 00 00 62 07 69 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 AB 0C 27 [11:10:26]RasterBufferAndPrint [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]written 0, free lines is 3250 [11:10:26]MH_Cut [11:10:26]Write to MH i2c: D1 01 00 69 07 01 42 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 01 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 01 00 69 07 00 41 [11:10:26]Write to MH i2c: 01 00 00 6A 07 71 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:27]*** Cut start [11:10:27]*** Partial cut [11:10:27]*** CUTSNS_PIN = 1 [11:10:27]*** CUTSNS_PIN = 0 [11:10:27]*** Brake cut motor [11:10:28]Read from MH i2c: 01 [11:10:28]MH_I2C_Read... [11:10:28]*** Stop cut motor [11:10:28]*** Cut end [11:10:28]Read from MH i2c: 01 07 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [11:10:28]process_action close_receipt done [11:10:28]requested_data is exist [11:10:28]produce_requested_data [11:10:28]requested_item fm.sn is exist - process it [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 11 00 00 [11:10:28]Write to MH i2c: E2 08 00 6B 07 80 11 00 00 00 00 00 00 EC [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 17 00 [11:10:28]MH_I2C_Read... [11:10:28]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 31 37 35 39 90 00 44 [11:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:28]wFMCommunicate OK [11:10:28]requested_item fd.num is exist - process it [11:10:28]SAM_PROTO_GetFieldsCounters [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 13 00 00 [11:10:28]Write to MH i2c: E2 08 00 6C 07 80 13 00 00 00 00 00 00 EF [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 62 00 [11:10:28]MH_I2C_Read... [11:10:28]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [11:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:28]wFMCommunicate OK [11:10:28]SAM_PROTO_GetFieldsCounters done [11:10:28]requested_item shift.num is exist - process it [11:10:28]requested_item shift.opened is exist - process it [11:10:28]req_shift_opened [11:10:28]FM_GetShiftState [11:10:28]SAM_PROTO_GetShiftState [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 13 01 00 [11:10:28]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [11:10:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:10:28]wFMCommunicate OK [11:10:28]SAM_PROTO_GetShiftState done [11:10:28]FM_GetShiftState done [11:10:28]req_shift_opened done [11:10:28]requested_item shift.open_date is exist - process it [11:10:28]req_shift_open_date [11:10:28]req_shift_open_date done [11:10:28]produce_requested_data done [11:10:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166669,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:10:28]process_action_free close_receipt [11:10:28]json_value_free [11:10:28]json_value_free done [11:10:28]process_json_proto returns [11:10:28]Send response to host [11:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166669,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:10:28]free response buf [11:10:28]execute_script done [11:10:28]execute_script returns [11:10:28]free content buf [11:10:28]Sock 8.Close socket [11:10:28]Sock 8.Thread stoped [11:12:39]ConnectInit Can't connect to host [11:12:39]CommunicateWithHost connect error [11:12:39]CommunicateWithHost err = -1 [11:12:39]OFD Sender: Server communicate error [11:12:44]OFD Sender: Processing packet 166669 [packets to send 48, broken 47] [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00166669 [11:12:44]OFD Sender: To server: pG, [11:12:44]CommunicateWithHost lk.salyk.kg:30040 [11:12:44]ConnectInit lk.salyk.kg [11:12:44]Connected sock=8 [11:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B5 CE 04 01 DB 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A0 D9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8B 02 00 35 04 06 00 87 7C D4 1C 06 AE F2 98 69 55 85 59 2B 25 [11:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F9 81 47 00 7C 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8B 02 00 F4 03 04 00 93 80 18 67 B6 04 01 00 00 16 2B 54 6E 44 17 3E 4D [11:12:44]CommunicateWithHost err = 0 [11:12:44]CheckOFDResponse [11:12:44]1017 (14) - 77093643461234 [11:12:44]1041 (16) - 0000000000871759 [11:12:44]1040 (4) - 166669 [11:12:44]1012 (4) - 23.10.2024 04:50 [11:12:44]1206 (1) - 0 [11:12:44]OFD Sender: Remove packet 166669 [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00166669 [11:12:44]NVStorageDeleteData [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]accept exits with 9 [11:17:25]New connection [11:17:25]New thread 3067034980 created [11:17:25]Thread 3067178340 joined [11:17:25]Waiting for new connection... [11:17:25] Sock 9.Parse request [11:17:25]Sock 9.Check first char [11:17:25]Sock 9.First char is OK [11:17:25]request: POST /json_proto HTTP/1.0 [11:17:25]Method: POST [11:17:25]URL: /json_proto [11:17:25]Method is POST - this is cgi request [11:17:25]url: /json_proto [11:17:25]query_string will be loaded in cgi processing [11:17:25]execute_cgi json_proto POST (null) [11:17:25]execute_cgi path=json_proto method=POST [11:17:25]POST find Content-Length [11:17:25]Host: 172.17.53.195:8080 [11:17:25]Content-Length: 769 [11:17:25]Content-Type: application/json [11:17:25] [11:17:25]POST finish read [11:17:25]Found Content-Length = 769 [11:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:25]execute_script... [11:17: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)221252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:25]POST & json_proto [11:17:25]process_json_proto [11:17:25]json parsed OK: [11:17:25]protocol is kg_v1.0 [11:17:25]action value=close_receipt [11:17:25]process_action close_receipt [11:17:25]cmd_close_receipt [11:17:25]MH_GetDate [11:17:25]Write to MH i2c: F0 00 00 6E 07 64 [11:17:25]Write i2c OK [11:17:25]MH_I2C_Read... [11:17:25]Read from MH i2c: F0 [11:17:25]MH_I2C_Read... [11:17:25]Read from MH i2c: F0 09 00 [11:17:25]MH_I2C_Read... [11:17:25]Read from MH i2c: F0 09 00 6E 07 00 46 DB 18 67 21 48 4A 65 25 [11:17:25]GetLastDocTimeStamp 1729681824 [11:17:25]current date 1729682246 [11:17:25]FM_GetShiftState [11:17:25]SAM_PROTO_GetShiftState [11:17:25]wFMCommunicate request_size=4 [11:17:25]MH_SAM_APDU [11:17:25]CAPDU: 80 13 01 00 [11:17:25]Write to MH i2c: E2 08 00 6F 07 80 13 01 00 00 00 00 00 F3 [11:17:25]Write i2c OK [11:17:25]MH_I2C_Read... [11:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:25]Read from MH i2c: E2 [11:17:25]MH_I2C_Read... [11:17:25]Read from MH i2c: E2 0E 00 [11:17:25]MH_I2C_Read... [11:17:25]Read from MH i2c: E2 0E 00 6F 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BE [11:17:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:17:25]wFMCommunicate OK [11:17:25]SAM_PROTO_GetShiftState done [11:17:25]FM_GetShiftState done [11:17:25]opened in 1729643772 [11:17:25]opened+sec_in_day 1729730172 [11:17:25]quantity*price = 100021 [11:17:25]sum+1 = 100023 [11:17:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 85 23.10.2024 11:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166670 ФПД: 188450262731712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166670&fm=188450262731712&tin=02508201610067®Number=0000000000091764&sum=100022 [11:17:26]StoreToDocumentArchive [11:17:26]shift 537 fd 166670 [11:17:26]save to /storage/0537/doc_00166670 [11:17:26]save last doc name /storage/0537/doc_00166670 to /storage/kkm_last_doc_name [11:17:26]save OK [11:17:26]Clear old archive folders... [11:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:26]tlvbuf is 01FAA430 [11:17:26]SAM_PROTO_ClearQueue [11:17:26]wFMCommunicate request_size=4 [11:17:26]MH_SAM_APDU [11:17:26]CAPDU: 80 09 00 00 [11:17:26]Write to MH i2c: E2 08 00 7C 07 80 09 00 00 00 00 00 00 F5 [11:17:26]Write i2c OK [11:17:26]MH_I2C_Read... [11:17:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:26]Read from MH i2c: E2 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [11:17:26]RAPDU: 90 00 [11:17:26]wFMCommunicate OK [11:17:26]SAM_PROTO_ClearQueue done [11:17:26]KKMCreateOFDPacket [11:17:26]OFDProtocolAddRootSTLVToBuf [11:17:26]FM_MakeSignedData [11:17:26]FM_MakeSignedData [11:17:26]SAM_PROTO_SignData [11:17:26]wFMCommunicate request_size=4 [11:17:26]MH_SAM_APDU [11:17:26]CAPDU: 80 0D 01 02 [11:17:26]Write to MH i2c: E2 08 00 7D 07 80 0D 01 02 00 00 00 00 FD [11:17:26]Write i2c OK [11:17:26]MH_I2C_Read... [11:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:26]Read from MH i2c: E2 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [11:17:26]RAPDU: 90 00 [11:17:26]wFMCommunicate OK [11:17:26]wFMCommunicate request_size=255 [11:17:26]MH_SAM_APDU [11:17:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 46 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8B 02 00 35 04 06 00 AB [11:17:26]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 46 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8B 02 00 35 04 06 00 AB 00 00 32 [11:17:26]Write i2c OK [11:17:26]MH_I2C_Read... [11:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:26]Read from MH i2c: E2 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 [11:17:26]MH_I2C_Read... [11:17:26]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [11:17:26]RAPDU: 90 00 [11:17:26]wFMCommunicate OK [11:17:26]wFMCommunicate request_size=10 [11:17:26]MH_SAM_APDU [11:17:26]CAPDU: 80 0D 02 02 05 64 FE F7 CB C0 [11:17:26]Write to MH i2c: E2 0D 00 7F 07 80 0D 02 02 05 00 64 FE F7 CB C0 00 00 EE [11:17:26]Write i2c OK [11:17:26]MH_I2C_Read... [11:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:27]Read from MH i2c: E2 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 03 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [11:17:27]RAPDU: 90 00 [11:17:27]wFMCommunicate OK [11:17:27]wFMCommunicate request_size=4 [11:17:27]MH_SAM_APDU [11:17:27]CAPDU: 80 0D 03 02 [11:17:27]Write to MH i2c: E2 08 00 80 07 80 0D 03 02 00 00 00 00 02 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:27]Read from MH i2c: E2 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 0B 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 0B 00 80 07 00 4B 23 21 89 04 E9 5B 37 90 00 9A [11:17:27]RAPDU: 4B 23 21 89 04 E9 5B 37 90 00 [11:17:27]wFMCommunicate OK [11:17:27]SAM_PROTO_SignData done [11:17:27]FM_MakeSignedData done [11:17:27]CreateOFDProtocolMessage [11:17:27]wFMCommunicate request_size=4 [11:17:27]MH_SAM_APDU [11:17:27]CAPDU: 80 11 00 00 [11:17:27]Write to MH i2c: E2 08 00 81 07 80 11 00 00 00 00 00 00 02 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:27]Read from MH i2c: E2 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 17 00 [11:17:27]MH_I2C_Read... [11:17:27]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 31 37 35 39 90 00 5A [11:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:17:27]wFMCommunicate OK [11:17:27]CreateOFDProtocolMessage done [11:17:27]OFDSenderStorePacket 166670 [11:17:27]StoreOFDPacket docnum=166670 [11:17:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 73 07 01 6F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 46 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8B 02 00 35 04 06 00 AB 64 FE F7 CB C0 4B 23 21 89 04 E9 5B 37 [11:17:27]CheckFolder [11:17:27]dirname=/storage/ofd_packets [11:17:27]CheckFolder done [11:17:27]ProducePacketName [11:17:27]name=ofd_packets/00166670 [11:17:27]NVStorageSaveData ofd_packets/00166670 [11:17:27]File name is /storage/ofd_packets/00166670 [11:17:27]Write 301 bytes [11:17:27]NVStorageSaveData done [11:17:27]OFDSenderStorePacket done [11:17:27]KKMCreateOFDPacket done [11:17:27]NVStorageSaveData kkm_last_timestamp [11:17:27]File name is /storage/kkm_last_timestamp [11:17:27]Write 4 bytes [11:17:27]NVStorageSaveData done [11:17:27]ExternCall_PrintAddStr [11:17:27]wPrintStart [11:17:27]Write to MH i2c: 01 00 00 82 07 89 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 07 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [11:17:27]RasterBufferAndPrint [11:17:27]line Счет N : (1)221252 [11:17:27]line ИНН: 02508201610067 [11:17:27]line Контрольно-Кассовый Чек [11:17:27]line ПРОДАЖА [11:17:27]line ТРК (МРК, ГНК) : 34 [11:17:27]line Товар: 2710124500 [11:17:27]line Аи-95-К-5 [11:17:27]line 13.480 * 74.20 [11:17:27]line = 1000.22 [11:17:27]line НДС 12% НСП 1% [11:17:27]line > о реализуемом товаре [11:17:27]line ИТОГО: 1000.22 [11:17:27]line НСП 1% : 8.85 [11:17:27]line НДС 12% : 106.22 [11:17:27]line Наличными: 0.00 [11:17:27]line Безнал.: 1000.22 [11:17:27]line Место: АЗС № 161 "Партнер Нефть" [11:17:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:17:27]line СНО: Общий режим [11:17:27]line Чек 85 23.10.2024 11:17 [11:17:27]line Смена: 537 ФФД: 1.0 [11:17:27]line ЗНМ: 0300000104 [11:17:27]line РНМ: 0000000000091764 [11:17:27]line Версия ККМ: 001 [11:17:27]line Платежная система: Mbank [11:17:27]line ФМ: 0000000000871759 [11:17:27]line ФД: 166670 [11:17:27]line ФПД: 188450262731712 [11:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166670&fm=188450262731712&tin=02508201610067®Number=0000000000091764&sum=100022 [11:17:27]written 0, free lines is 4095 [11:17:27]OFD Sender: Processing packet 166670 [packets to send 48, broken 47] [11:17:27]ProducePacketName [11:17:27]name=ofd_packets/00166670 [11:17:27]OFD Sender: To server: pG, [11:17:27]CommunicateWithHost lk.salyk.kg:30040 [11:17:27]ConnectInit lk.salyk.kg [11:17:27]Connected sock=10 [11:17:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 73 07 01 6F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 46 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8B 02 00 35 04 06 00 AB 64 FE F7 CB C0 4B 23 21 89 04 E9 5B 37 [11:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 5F 47 00 3F C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8B 02 00 F4 03 04 00 AD 81 18 67 B6 04 01 00 00 B4 BC E2 52 50 86 C3 86 [11:17:27]CommunicateWithHost err = 0 [11:17:27]CheckOFDResponse [11:17:27]1017 (14) - 77093643461234 [11:17:27]1041 (16) - 0000000000871759 [11:17:27]1040 (4) - 166670 [11:17:27]1012 (4) - 23.10.2024 04:55 [11:17:27]1206 (1) - 0 [11:17:27]OFD Sender: Remove packet 166670 [11:17:27]ProducePacketName [11:17:27]name=ofd_packets/00166670 [11:17:27]NVStorageDeleteData [11:17:27]Write to MH i2c: 01 00 00 AB 07 B2 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 07 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 E7 0C AC [11:17:27]RasterBufferAndPrint [11:17:27]line [11:17:27]line [11:17:27]line [11:17:27]line [11:17:27]line [11:17:27]written 0, free lines is 3310 [11:17:27]MH_Cut [11:17:27]Write to MH i2c: D1 01 00 B2 07 01 8B [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: D1 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: D1 01 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: D1 01 00 B2 07 00 8A [11:17:27]Write to MH i2c: 01 00 00 B3 07 BA [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:28]OFD Sender: No OFD packet to send [11:17:28]*** Cut start [11:17:28]*** Partial cut [11:17:28]*** CUTSNS_PIN = 1 [11:17:28]*** CUTSNS_PIN = 0 [11:17:29]*** Brake cut motor [11:17:29]Read from MH i2c: 01 [11:17:29]MH_I2C_Read... [11:17:29]*** Stop cut motor [11:17:29]*** Cut end [11:17:29]Read from MH i2c: 01 07 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 FF 0F CF [11:17:29]process_action close_receipt done [11:17:29]requested_data is exist [11:17:29]produce_requested_data [11:17:29]requested_item fm.sn is exist - process it [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 11 00 00 [11:17:29]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 17 00 [11:17:29]MH_I2C_Read... [11:17:29]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 31 37 35 39 90 00 8D [11:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:17:29]wFMCommunicate OK [11:17:29]requested_item fd.num is exist - process it [11:17:29]SAM_PROTO_GetFieldsCounters [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 13 00 00 [11:17:29]Write to MH i2c: E2 08 00 B5 07 80 13 00 00 00 00 00 00 38 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 62 00 [11:17:29]MH_I2C_Read... [11:17:29]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:17:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:29]wFMCommunicate OK [11:17:29]SAM_PROTO_GetFieldsCounters done [11:17:29]requested_item shift.num is exist - process it [11:17:29]requested_item shift.opened is exist - process it [11:17:29]req_shift_opened [11:17:29]FM_GetShiftState [11:17:29]SAM_PROTO_GetShiftState [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 13 01 00 [11:17:29]Write to MH i2c: E2 08 00 B6 07 80 13 01 00 00 00 00 00 3A [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:29]Read from MH i2c: E2 0E 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 0E 00 B6 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [11:17:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:17:29]wFMCommunicate OK [11:17:29]SAM_PROTO_GetShiftState done [11:17:29]FM_GetShiftState done [11:17:29]req_shift_opened done [11:17:29]requested_item shift.open_date is exist - process it [11:17:29]req_shift_open_date [11:17:29]req_shift_open_date done [11:17:29]produce_requested_data done [11:17:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166670,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:17:29]process_action_free close_receipt [11:17:29]json_value_free [11:17:29]json_value_free done [11:17:29]process_json_proto returns [11:17:29]Send response to host [11:17:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166670,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:17:29]free response buf [11:17:29]execute_script done [11:17:29]execute_script returns [11:17:29]free content buf [11:17:29]Sock 9.Close socket [11:17:29]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:20]accept exits with 8 [11:19:20]New connection [11:19:20]New thread 3067178340 created [11:19:20]Thread 3067034980 joined [11:19:20]Waiting for new connection... [11:19:20] Sock 8.Parse request [11:19:20]Sock 8.Check first char [11:19:20]Sock 8.First char is OK [11:19:20]request: POST /json_proto HTTP/1.0 [11:19:20]Method: POST [11:19:20]URL: /json_proto [11:19:20]Method is POST - this is cgi request [11:19:20]url: /json_proto [11:19:20]query_string will be loaded in cgi processing [11:19:20]execute_cgi json_proto POST (null) [11:19:20]execute_cgi path=json_proto method=POST [11:19:20]POST find Content-Length [11:19:20]Host: 172.17.53.195:8080 [11:19:20]Content-Length: 678 [11:19:20]Content-Type: application/json [11:19:20] [11:19:20]POST finish read [11:19:20]Found Content-Length = 678 [11:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.730, "sum" : 870.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:20]execute_script... [11:19: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)221253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.730, "sum" : 870.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:20]POST & json_proto [11:19:20]process_json_proto [11:19:20]json parsed OK: [11:19:20]protocol is kg_v1.0 [11:19:20]action value=close_receipt [11:19:20]process_action close_receipt [11:19:20]cmd_close_receipt [11:19:20]MH_GetDate [11:19:20]Write to MH i2c: F0 00 00 B7 07 AD [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: F0 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: F0 09 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: F0 09 00 B7 07 00 B9 DB 18 67 21 48 4A 65 E1 [11:19:20]GetLastDocTimeStamp 1729682246 [11:19:20]current date 1729682361 [11:19:20]FM_GetShiftState [11:19:20]SAM_PROTO_GetShiftState [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 01 00 [11:19:20]Write to MH i2c: E2 08 00 B8 07 80 13 01 00 00 00 00 00 3C [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 B8 07 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 07 [11:19:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetShiftState done [11:19:20]FM_GetShiftState done [11:19:20]opened in 1729643772 [11:19:20]opened+sec_in_day 1729730172 [11:19:20]quantity*price = 87036 [11:19:20]sum+1 = 87038 [11:19:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.43 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 86 23.10.2024 11:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166671 ФПД: 33364636686654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166671&fm=33364636686654&tin=02508201610067®Number=0000000000091764&sum=87000 [11:19:21]StoreToDocumentArchive [11:19:21]shift 537 fd 166671 [11:19:21]save to /storage/0537/doc_00166671 [11:19:21]save last doc name /storage/0537/doc_00166671 to /storage/kkm_last_doc_name [11:19:21]save OK [11:19:21]Clear old archive folders... [11:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:21]tlvbuf is 01FA29A0 [11:19:21]SAM_PROTO_ClearQueue [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 09 00 00 [11:19:21]Write to MH i2c: E2 08 00 C5 07 80 09 00 00 00 00 00 00 3E [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]SAM_PROTO_ClearQueue done [11:19:21]KKMCreateOFDPacket [11:19:21]OFDProtocolAddRootSTLVToBuf [11:19:21]FM_MakeSignedData [11:19:21]FM_MakeSignedData [11:19:21]SAM_PROTO_SignData [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 01 02 [11:19:21]Write to MH i2c: E2 08 00 C6 07 80 0D 01 02 00 00 00 00 46 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]wFMCommunicate request_size=255 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 00 00 00 F4 03 04 00 B9 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8B 02 00 35 04 06 00 1E [11:19:21]Write to MH i2c: E2 02 01 C7 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 00 00 00 F4 03 04 00 B9 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8B 02 00 35 04 06 00 1E 00 00 9D [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]wFMCommunicate request_size=10 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 02 02 05 58 4F 51 59 3E [11:19:22]Write to MH i2c: E2 0D 00 C8 07 80 0D 02 02 05 00 58 4F 51 59 3E 00 00 E2 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 03 02 [11:19:22]Write to MH i2c: E2 08 00 C9 07 80 0D 03 02 00 00 00 00 4B [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0B 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0B 00 C9 07 00 16 68 42 CD 92 24 E4 2F 90 00 A2 [11:19:22]RAPDU: 16 68 42 CD 92 24 E4 2F 90 00 [11:19:22]wFMCommunicate OK [11:19:22]SAM_PROTO_SignData done [11:19:22]FM_MakeSignedData done [11:19:22]CreateOFDProtocolMessage [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 11 00 00 [11:19:22]Write to MH i2c: E2 08 00 CA 07 80 11 00 00 00 00 00 00 4B [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 17 00 [11:19:22]MH_I2C_Read... [11:19:22]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 31 37 35 39 90 00 A3 [11:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:19:22]wFMCommunicate OK [11:19:22]CreateOFDProtocolMessage done [11:19:22]OFDSenderStorePacket 166671 [11:19:22]StoreOFDPacket docnum=166671 [11:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 98 6B 07 01 42 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 00 00 00 F4 03 04 00 B9 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8B 02 00 35 04 06 00 1E 58 4F 51 59 3E 16 68 42 CD 92 24 E4 2F [11:19:22]CheckFolder [11:19:22]dirname=/storage/ofd_packets [11:19:22]CheckFolder done [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00166671 [11:19:22]NVStorageSaveData ofd_packets/00166671 [11:19:22]File name is /storage/ofd_packets/00166671 [11:19:22]Write 301 bytes [11:19:22]NVStorageSaveData done [11:19:22]OFDSenderStorePacket done [11:19:22]KKMCreateOFDPacket done [11:19:22]NVStorageSaveData kkm_last_timestamp [11:19:22]File name is /storage/kkm_last_timestamp [11:19:22]Write 4 bytes [11:19:22]NVStorageSaveData done [11:19:22]ExternCall_PrintAddStr [11:19:22]wPrintStart [11:19:22]Write to MH i2c: 01 00 00 CB 07 D2 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 CB 07 00 00 00 00 00 FF 0F E7 [11:19:22]RasterBufferAndPrint [11:19:22]line Счет N : (1)221253 [11:19:22]line ИНН: 02508201610067 [11:19:22]line Контрольно-Кассовый Чек [11:19:22]line ПРОДАЖА [11:19:22]line ТРК (МРК, ГНК) : 24 [11:19:22]line Товар: 2710124500 [11:19:22]line Аи-95-К-5 [11:19:22]line 11.730 * 74.20 [11:19:22]line = 870.37 [11:19:22]line НДС 12% НСП 1% [11:19:22]line > о реализуемом товаре [11:19:22]line ОКРУГЛЕНИЕ: -0.37 [11:19:22]line ИТОГО: 870.00 [11:19:22]line Внесено: 870.00 [11:19:22]line СДАЧА: 0.00 [11:19:22]line НСП 1% : 7.70 [11:19:22]line НДС 12% : 92.43 [11:19:22]line Наличными: 870.00 [11:19:22]line Безнал.: 0.00 [11:19:22]line Место: АЗС № 161 "Партнер Нефть" [11:19:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:19:22]line СНО: Общий режим [11:19:22]line Чек 86 23.10.2024 11:19 [11:19:22]line Смена: 537 ФФД: 1.0 [11:19:22]line ЗНМ: 0300000104 [11:19:22]line РНМ: 0000000000091764 [11:19:22]line Версия ККМ: 001 [11:19:22]line ФМ: 0000000000871759 [11:19:22]line ФД: 166671 [11:19:22]line ФПД: 33364636686654 [11:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166671&fm=33364636686654&tin=02508201610067®Number=0000000000091764&sum=87000 [11:19:22]OFD Sender: Processing packet 166671 [packets to send 48, broken 47] [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00166671 [11:19:22]OFD Sender: To server: pG, [11:19:22]CommunicateWithHost lk.salyk.kg:30040 [11:19:22]ConnectInit lk.salyk.kg [11:19:22]written 0, free lines is 4095 [11:19:22]Connected sock=10 [11:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 98 6B 07 01 42 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 FD 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 00 00 00 F4 03 04 00 B9 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8B 02 00 35 04 06 00 1E 58 4F 51 59 3E 16 68 42 CD 92 24 E4 2F [11:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC 3A 47 00 BC 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8B 02 00 F4 03 04 00 21 82 18 67 B6 04 01 00 00 9E 87 09 65 B8 88 CE 06 [11:19:22]CommunicateWithHost err = 0 [11:19:22]CheckOFDResponse [11:19:22]1017 (14) - 77093643461234 [11:19:22]1041 (16) - 0000000000871759 [11:19:22]1040 (4) - 166671 [11:19:22]1012 (4) - 23.10.2024 04:57 [11:19:22]1206 (1) - 0 [11:19:22]OFD Sender: Remove packet 166671 [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00166671 [11:19:22]NVStorageDeleteData [11:19:22]Write to MH i2c: 01 00 00 F6 07 FD [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 B3 0C C3 [11:19:23]RasterBufferAndPrint [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]written 0, free lines is 3258 [11:19:23]MH_Cut [11:19:23]Write to MH i2c: D1 01 00 FD 07 01 D6 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 01 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 01 00 FD 07 00 D5 [11:19:23]Write to MH i2c: 01 00 00 FE 07 05 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]OFD Sender: No OFD packet to send [11:19:23]*** Cut start [11:19:23]*** Partial cut [11:19:23]*** CUTSNS_PIN = 1 [11:19:23]*** CUTSNS_PIN = 0 [11:19:24]*** Brake cut motor [11:19:24]Read from MH i2c: 01 [11:19:24]MH_I2C_Read... [11:19:24]*** Stop cut motor [11:19:24]*** Cut end [11:19:24]Read from MH i2c: 01 07 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 FF 0F 1A [11:19:24]process_action close_receipt done [11:19:24]requested_data is exist [11:19:24]produce_requested_data [11:19:24]requested_item fm.sn is exist - process it [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 11 00 00 [11:19:24]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [11:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:19:24]wFMCommunicate OK [11:19:24]requested_item fd.num is exist - process it [11:19:24]SAM_PROTO_GetFieldsCounters [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 00 00 [11:19:24]Write to MH i2c: E2 08 00 00 08 80 13 00 00 00 00 00 00 84 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 62 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 62 00 00 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [11:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_GetFieldsCounters done [11:19:24]requested_item shift.num is exist - process it [11:19:24]requested_item shift.opened is exist - process it [11:19:24]req_shift_opened [11:19:24]FM_GetShiftState [11:19:24]SAM_PROTO_GetShiftState [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 01 00 [11:19:24]Write to MH i2c: E2 08 00 01 08 80 13 01 00 00 00 00 00 86 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 01 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 51 [11:19:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_GetShiftState done [11:19:24]FM_GetShiftState done [11:19:24]req_shift_opened done [11:19:24]requested_item shift.open_date is exist - process it [11:19:24]req_shift_open_date [11:19:24]req_shift_open_date done [11:19:24]produce_requested_data done [11:19:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166671,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:19:24]process_action_free close_receipt [11:19:24]json_value_free [11:19:24]json_value_free done [11:19:24]process_json_proto returns [11:19:24]Send response to host [11:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166671,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:19:24]free response buf [11:19:24]execute_script done [11:19:24]execute_script returns [11:19:24]free content buf [11:19:24]Sock 8.Close socket [11:19:24]Sock 8.Thread stoped [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:21]accept exits with 9 [11:20:21]New connection [11:20:21]New thread 3067034980 created [11:20:21]Thread 3067178340 joined [11:20:21]Waiting for new connection... [11:20:21] Sock 9.Parse request [11:20:21]Sock 9.Check first char [11:20:21]Sock 9.First char is OK [11:20:21]request: POST /json_proto HTTP/1.0 [11:20:21]Method: POST [11:20:21]URL: /json_proto [11:20:21]Method is POST - this is cgi request [11:20:21]url: /json_proto [11:20:21]query_string will be loaded in cgi processing [11:20:21]execute_cgi json_proto POST (null) [11:20:21]execute_cgi path=json_proto method=POST [11:20:21]POST find Content-Length [11:20:21]Host: 172.17.53.195:8080 [11:20:21]Content-Length: 674 [11:20:21]Content-Type: application/json [11:20:21] [11:20:21]POST finish read [11:20:21]Found Content-Length = 674 [11:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:21]execute_script... [11:20: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)221254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:21]POST & json_proto [11:20:21]process_json_proto [11:20:21]json parsed OK: [11:20:21]protocol is kg_v1.0 [11:20:21]action value=close_receipt [11:20:21]process_action close_receipt [11:20:21]cmd_close_receipt [11:20:21]MH_GetDate [11:20:21]Write to MH i2c: F0 00 00 02 08 F9 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 09 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: F0 09 00 02 08 00 F6 DB 18 67 21 48 4A 65 6A [11:20:21]GetLastDocTimeStamp 1729682361 [11:20:21]current date 1729682422 [11:20:21]FM_GetShiftState [11:20:21]SAM_PROTO_GetShiftState [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 13 01 00 [11:20:21]Write to MH i2c: E2 08 00 03 08 80 13 01 00 00 00 00 00 88 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 03 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 53 [11:20:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:20:21]wFMCommunicate OK [11:20:21]SAM_PROTO_GetShiftState done [11:20:21]FM_GetShiftState done [11:20:21]opened in 1729643772 [11:20:21]opened+sec_in_day 1729730172 [11:20:21]quantity*price = 50063 [11:20:21]sum+1 = 50064 [11:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 87 23.10.2024 11:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166672 ФПД: 122292558364097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166672&fm=122292558364097&tin=02508201610067®Number=0000000000091764&sum=50000 [11:20:22]StoreToDocumentArchive [11:20:22]shift 537 fd 166672 [11:20:22]save to /storage/0537/doc_00166672 [11:20:22]save last doc name /storage/0537/doc_00166672 to /storage/kkm_last_doc_name [11:20:22]save OK [11:20:22]Clear old archive folders... [11:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:22]tlvbuf is 01FA6AA0 [11:20:22]SAM_PROTO_ClearQueue [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 09 00 00 [11:20:22]Write to MH i2c: E2 08 00 10 08 80 09 00 00 00 00 00 00 8A [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [11:20:23]RAPDU: 90 00 [11:20:23]wFMCommunicate OK [11:20:23]SAM_PROTO_ClearQueue done [11:20:23]KKMCreateOFDPacket [11:20:23]OFDProtocolAddRootSTLVToBuf [11:20:23]FM_MakeSignedData [11:20:23]FM_MakeSignedData [11:20:23]SAM_PROTO_SignData [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 0D 01 02 [11:20:23]Write to MH i2c: E2 08 00 11 08 80 0D 01 02 00 00 00 00 92 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [11:20:23]RAPDU: 90 00 [11:20:23]wFMCommunicate OK [11:20:23]wFMCommunicate request_size=255 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8B 02 00 35 04 06 00 6F 39 74 7F [11:20:23]Write to MH i2c: E2 02 01 12 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8B 02 00 35 04 06 00 6F 39 74 7F 00 00 A0 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [11:20:23]RAPDU: 90 00 [11:20:23]wFMCommunicate OK [11:20:23]wFMCommunicate request_size=7 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 0D 02 02 02 FD C1 [11:20:23]Write to MH i2c: E2 0A 00 13 08 80 0D 02 02 02 00 FD C1 00 00 57 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [11:20:23]RAPDU: 90 00 [11:20:23]wFMCommunicate OK [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 0D 03 02 [11:20:23]Write to MH i2c: E2 08 00 14 08 80 0D 03 02 00 00 00 00 97 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 0B 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 0B 00 14 08 00 CB 18 91 79 D2 1F 97 4E 90 00 5B [11:20:23]RAPDU: CB 18 91 79 D2 1F 97 4E 90 00 [11:20:23]wFMCommunicate OK [11:20:23]SAM_PROTO_SignData done [11:20:23]FM_MakeSignedData done [11:20:23]CreateOFDProtocolMessage [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 11 00 00 [11:20:23]Write to MH i2c: E2 08 00 15 08 80 11 00 00 00 00 00 00 97 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]OFD Sender: No OFD packet to send [11:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 17 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 17 00 15 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [11:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:23]wFMCommunicate OK [11:20:23]CreateOFDProtocolMessage done [11:20:23]OFDSenderStorePacket 166672 [11:20:23]StoreOFDPacket docnum=166672 [11:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC 46 04 01 29 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8B 02 00 35 04 06 00 6F 39 74 7F FD C1 CB 18 91 79 D2 1F 97 4E [11:20:23]CheckFolder [11:20:23]dirname=/storage/ofd_packets [11:20:23]CheckFolder done [11:20:23]ProducePacketName [11:20:23]name=ofd_packets/00166672 [11:20:23]NVStorageSaveData ofd_packets/00166672 [11:20:23]File name is /storage/ofd_packets/00166672 [11:20:23]Write 298 bytes [11:20:23]NVStorageSaveData done [11:20:23]OFDSenderStorePacket done [11:20:23]KKMCreateOFDPacket done [11:20:23]NVStorageSaveData kkm_last_timestamp [11:20:23]File name is /storage/kkm_last_timestamp [11:20:23]Write 4 bytes [11:20:23]NVStorageSaveData done [11:20:23]ExternCall_PrintAddStr [11:20:23]wPrintStart [11:20:23]Write to MH i2c: 01 00 00 16 08 1E [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 16 08 00 00 00 00 00 FF 0F 33 [11:20:23]RasterBufferAndPrint [11:20:23]line Счет N : (1)221254 [11:20:23]line ИНН: 02508201610067 [11:20:23]line Контрольно-Кассовый Чек [11:20:23]line ПРОДАЖА [11:20:23]line ТРК (МРК, ГНК) : 41 [11:20:23]line Товар: 2710194210 [11:20:23]line ДТ-К-5 [11:20:23]line 6.570 * 76.20 [11:20:23]line = 500.63 [11:20:23]line НДС 12% НСП 1% [11:20:23]line > о реализуемом товаре [11:20:23]line ОКРУГЛЕНИЕ: -0.63 [11:20:23]line ИТОГО: 500.00 [11:20:23]line Внесено: 500.00 [11:20:23]line СДАЧА: 0.00 [11:20:23]line НСП 1% : 4.43 [11:20:23]line НДС 12% : 53.16 [11:20:23]line Наличными: 500.00 [11:20:23]line Безнал.: 0.00 [11:20:23]line Место: АЗС № 161 "Партнер Нефть" [11:20:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:20:23]line СНО: Общий режим [11:20:23]line Чек 87 23.10.2024 11:20 [11:20:23]line Смена: 537 ФФД: 1.0 [11:20:23]line ЗНМ: 0300000104 [11:20:23]line РНМ: 0000000000091764 [11:20:23]line Версия ККМ: 001 [11:20:23]line ФМ: 0000000000871759 [11:20:23]line ФД: 166672 [11:20:23]line ФПД: 122292558364097 [11:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166672&fm=122292558364097&tin=02508201610067®Number=0000000000091764&sum=50000 [11:20:23]OFD Sender: Processing packet 166672 [packets to send 48, broken 47] [11:20:23]ProducePacketName [11:20:23]name=ofd_packets/00166672 [11:20:23]OFD Sender: To server: pG, [11:20:23]CommunicateWithHost lk.salyk.kg:30040 [11:20:23]ConnectInit lk.salyk.kg [11:20:23]written 0, free lines is 4095 [11:20:23]Connected sock=10 [11:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC 46 04 01 29 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 DB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8B 02 00 35 04 06 00 6F 39 74 7F FD C1 CB 18 91 79 D2 1F 97 4E [11:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF E5 47 00 31 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8B 02 00 F4 03 04 00 5E 82 18 67 B6 04 01 00 00 8E B3 9B F8 94 47 33 9C [11:20:24]CommunicateWithHost err = 0 [11:20:24]CheckOFDResponse [11:20:24]1017 (14) - 77093643461234 [11:20:24]1041 (16) - 0000000000871759 [11:20:24]1040 (4) - 166672 [11:20:24]1012 (4) - 23.10.2024 04:58 [11:20:24]1206 (1) - 0 [11:20:24]OFD Sender: Remove packet 166672 [11:20:24]ProducePacketName [11:20:24]name=ofd_packets/00166672 [11:20:24]NVStorageDeleteData [11:20:24]Write to MH i2c: 01 00 00 41 08 49 [11:20:24]Write i2c OK [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: 01 [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: 01 07 00 [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 BB 0C 17 [11:20:24]RasterBufferAndPrint [11:20:24]line [11:20:24]line [11:20:24]line [11:20:24]line [11:20:24]line [11:20:24]written 0, free lines is 3268 [11:20:24]MH_Cut [11:20:24]Write to MH i2c: D1 01 00 48 08 01 22 [11:20:24]Write i2c OK [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: D1 [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: D1 01 00 [11:20:24]MH_I2C_Read... [11:20:24]Read from MH i2c: D1 01 00 48 08 00 21 [11:20:24]Write to MH i2c: 01 00 00 49 08 51 [11:20:24]Write i2c OK [11:20:24]MH_I2C_Read... [11:20:24]OFD Sender: No OFD packet to send [11:20:25]*** Cut start [11:20:25]*** Partial cut [11:20:25]*** CUTSNS_PIN = 1 [11:20:25]*** CUTSNS_PIN = 0 [11:20:25]*** Brake cut motor [11:20:25]Read from MH i2c: 01 [11:20:25]MH_I2C_Read... [11:20:25]*** Stop cut motor [11:20:25]*** Cut end [11:20:25]Read from MH i2c: 01 07 00 [11:20:25]MH_I2C_Read... [11:20:25]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [11:20:25]process_action close_receipt done [11:20:25]requested_data is exist [11:20:25]produce_requested_data [11:20:25]requested_item fm.sn is exist - process it [11:20:25]wFMCommunicate request_size=4 [11:20:25]MH_SAM_APDU [11:20:25]CAPDU: 80 11 00 00 [11:20:25]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [11:20:25]Write i2c OK [11:20:25]MH_I2C_Read... [11:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:25]Read from MH i2c: E2 [11:20:25]MH_I2C_Read... [11:20:25]Read from MH i2c: E2 17 00 [11:20:25]MH_I2C_Read... [11:20:25]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [11:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:25]wFMCommunicate OK [11:20:25]requested_item fd.num is exist - process it [11:20:25]SAM_PROTO_GetFieldsCounters [11:20:25]wFMCommunicate request_size=4 [11:20:25]MH_SAM_APDU [11:20:25]CAPDU: 80 13 00 00 [11:20:25]Write to MH i2c: E2 08 00 4B 08 80 13 00 00 00 00 00 00 CF [11:20:25]Write i2c OK [11:20:25]MH_I2C_Read... [11:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:25]Read from MH i2c: E2 [11:20:25]MH_I2C_Read... [11:20:25]Read from MH i2c: E2 62 00 [11:20:25]MH_I2C_Read... [11:20:25]Read from MH i2c: E2 62 00 4B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:25]wFMCommunicate OK [11:20:25]SAM_PROTO_GetFieldsCounters done [11:20:25]requested_item shift.num is exist - process it [11:20:25]requested_item shift.opened is exist - process it [11:20:25]req_shift_opened [11:20:25]FM_GetShiftState [11:20:25]SAM_PROTO_GetShiftState [11:20:25]wFMCommunicate request_size=4 [11:20:25]MH_SAM_APDU [11:20:25]CAPDU: 80 13 01 00 [11:20:25]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [11:20:25]Write i2c OK [11:20:25]MH_I2C_Read... [11:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:26]Read from MH i2c: E2 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 0E 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9C [11:20:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:20:26]wFMCommunicate OK [11:20:26]SAM_PROTO_GetShiftState done [11:20:26]FM_GetShiftState done [11:20:26]req_shift_opened done [11:20:26]requested_item shift.open_date is exist - process it [11:20:26]req_shift_open_date [11:20:26]req_shift_open_date done [11:20:26]produce_requested_data done [11:20:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166672,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:20:26]process_action_free close_receipt [11:20:26]json_value_free [11:20:26]json_value_free done [11:20:26]process_json_proto returns [11:20:26]Send response to host [11:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166672,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:20:26]free response buf [11:20:26]execute_script done [11:20:26]execute_script returns [11:20:26]free content buf [11:20:26]Sock 9.Close socket [11:20:26]Sock 9.Thread stoped [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:31]accept exits with 8 [11:26:31]New connection [11:26:31]New thread 3067178340 created [11:26:31]Thread 3067034980 joined [11:26:31]Waiting for new connection... [11:26:31] Sock 8.Parse request [11:26:31]Sock 8.Check first char [11:26:31]Sock 8.First char is OK [11:26:31]request: POST /json_proto HTTP/1.0 [11:26:31]Method: POST [11:26:31]URL: /json_proto [11:26:31]Method is POST - this is cgi request [11:26:31]url: /json_proto [11:26:31]query_string will be loaded in cgi processing [11:26:31]execute_cgi json_proto POST (null) [11:26:31]execute_cgi path=json_proto method=POST [11:26:31]POST find Content-Length [11:26:31]Host: 172.17.53.195:8080 [11:26:31]Content-Length: 766 [11:26:31]Content-Type: application/json [11:26:31] [11:26:31]POST finish read [11:26:31]Found Content-Length = 766 [11:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:31]execute_script... [11:26: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)221255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:31]POST & json_proto [11:26:31]process_json_proto [11:26:31]json parsed OK: [11:26:31]protocol is kg_v1.0 [11:26:31]action value=close_receipt [11:26:31]process_action close_receipt [11:26:31]cmd_close_receipt [11:26:31]MH_GetDate [11:26:31]Write to MH i2c: F0 00 00 4D 08 44 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: F0 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: F0 09 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: F0 09 00 4D 08 00 68 DD 18 67 21 48 4A 65 29 [11:26:31]GetLastDocTimeStamp 1729682422 [11:26:31]current date 1729682792 [11:26:31]FM_GetShiftState [11:26:31]SAM_PROTO_GetShiftState [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 13 01 00 [11:26:31]Write to MH i2c: E2 08 00 4E 08 80 13 01 00 00 00 00 00 D3 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 4E 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9E [11:26:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_GetShiftState done [11:26:31]FM_GetShiftState done [11:26:31]opened in 1729643772 [11:26:31]opened+sec_in_day 1729730172 [11:26:31]quantity*price = 200025 [11:26:31]sum+1 = 200026 [11:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 88 23.10.2024 11:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166673 ФПД: 241121236936443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112632&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166673&fm=241121236936443&tin=02508201610067®Number=0000000000091764&sum=200025 [11:26:32]StoreToDocumentArchive [11:26:32]shift 537 fd 166673 [11:26:32]save to /storage/0537/doc_00166673 [11:26:32]save last doc name /storage/0537/doc_00166673 to /storage/kkm_last_doc_name [11:26:32]save OK [11:26:32]Clear old archive folders... [11:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:32]tlvbuf is 01FA03A0 [11:26:32]SAM_PROTO_ClearQueue [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 09 00 00 [11:26:32]Write to MH i2c: E2 08 00 5B 08 80 09 00 00 00 00 00 00 D5 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_ClearQueue done [11:26:32]KKMCreateOFDPacket [11:26:32]OFDProtocolAddRootSTLVToBuf [11:26:32]FM_MakeSignedData [11:26:32]FM_MakeSignedData [11:26:32]SAM_PROTO_SignData [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 01 02 [11:26:32]Write to MH i2c: E2 08 00 5C 08 80 0D 01 02 00 00 00 00 DD [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [11:26:32]RAPDU: 90 00 [11:26:32]wFMCommunicate OK [11:26:32]wFMCommunicate request_size=255 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 68 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8B 02 00 35 04 06 00 DB 4C 69 AC [11:26:32]Write to MH i2c: E2 02 01 5D 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 68 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8B 02 00 35 04 06 00 DB 4C 69 AC 00 00 9A [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [11:26:33]RAPDU: 90 00 [11:26:33]wFMCommunicate OK [11:26:33]wFMCommunicate request_size=7 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 0D 02 02 02 E6 FB [11:26:33]Write to MH i2c: E2 0A 00 5E 08 80 0D 02 02 02 00 E6 FB 00 00 C5 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [11:26:33]RAPDU: 90 00 [11:26:33]wFMCommunicate OK [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 0D 03 02 [11:26:33]Write to MH i2c: E2 08 00 5F 08 80 0D 03 02 00 00 00 00 E2 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0B 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0B 00 5F 08 00 7A 7A 49 3B 3F A8 19 43 90 00 9E [11:26:33]RAPDU: 7A 7A 49 3B 3F A8 19 43 90 00 [11:26:33]wFMCommunicate OK [11:26:33]SAM_PROTO_SignData done [11:26:33]FM_MakeSignedData done [11:26:33]CreateOFDProtocolMessage [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 11 00 00 [11:26:33]Write to MH i2c: E2 08 00 60 08 80 11 00 00 00 00 00 00 E2 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 17 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 17 00 60 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [11:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:33]wFMCommunicate OK [11:26:33]CreateOFDProtocolMessage done [11:26:33]OFDSenderStorePacket 166673 [11:26:33]StoreOFDPacket docnum=166673 [11:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FE 70 04 01 16 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 68 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8B 02 00 35 04 06 00 DB 4C 69 AC E6 FB 7A 7A 49 3B 3F A8 19 43 [11:26:33]CheckFolder [11:26:33]dirname=/storage/ofd_packets [11:26:33]CheckFolder done [11:26:33]ProducePacketName [11:26:33]name=ofd_packets/00166673 [11:26:33]NVStorageSaveData ofd_packets/00166673 [11:26:33]File name is /storage/ofd_packets/00166673 [11:26:33]Write 298 bytes [11:26:33]NVStorageSaveData done [11:26:33]OFDSenderStorePacket done [11:26:33]KKMCreateOFDPacket done [11:26:33]NVStorageSaveData kkm_last_timestamp [11:26:33]File name is /storage/kkm_last_timestamp [11:26:33]Write 4 bytes [11:26:33]NVStorageSaveData done [11:26:33]ExternCall_PrintAddStr [11:26:33]wPrintStart [11:26:33]Write to MH i2c: 01 00 00 61 08 69 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 07 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 07 00 61 08 00 00 00 00 00 FF 0F 7E [11:26:33]RasterBufferAndPrint [11:26:33]line Счет N : (1)221255 [11:26:33]line ИНН: 02508201610067 [11:26:33]line Контрольно-Кассовый Чек [11:26:33]line ПРОДАЖА [11:26:33]line ТРК (МРК, ГНК) : 21 [11:26:33]line Товар: 2710194210 [11:26:33]line ДТ-К-5 [11:26:33]line 26.250 * 76.20 [11:26:33]line = 2000.25 [11:26:33]line НДС 12% НСП 1% [11:26:33]line > о реализуемом товаре [11:26:33]line ИТОГО: 2000.25 [11:26:33]line НСП 1% : 17.70 [11:26:33]line НДС 12% : 212.42 [11:26:33]line Наличными: 0.00 [11:26:33]line Безнал.: 2000.25 [11:26:33]line Место: АЗС № 161 "Партнер Нефть" [11:26:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:26:33]line СНО: Общий режим [11:26:33]line Чек 88 23.10.2024 11:26 [11:26:33]line Смена: 537 ФФД: 1.0 [11:26:33]line ЗНМ: 0300000104 [11:26:33]line РНМ: 0000000000091764 [11:26:33]line Версия ККМ: 001 [11:26:33]line Платежная система: Mbank [11:26:33]line ФМ: 0000000000871759 [11:26:33]line ФД: 166673 [11:26:33]line ФПД: 241121236936443 [11:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112632&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166673&fm=241121236936443&tin=02508201610067®Number=0000000000091764&sum=200025 [11:26:33]OFD Sender: Processing packet 166673 [packets to send 48, broken 47] [11:26:33]ProducePacketName [11:26:33]name=ofd_packets/00166673 [11:26:33]OFD Sender: To server: pG, [11:26:33]CommunicateWithHost lk.salyk.kg:30040 [11:26:33]ConnectInit lk.salyk.kg [11:26:33]written 0, free lines is 4095 [11:26:33]Connected sock=10 [11:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FE 70 04 01 16 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 68 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8B 02 00 35 04 06 00 DB 4C 69 AC E6 FB 7A 7A 49 3B 3F A8 19 43 [11:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 B8 47 00 68 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8B 02 00 F4 03 04 00 D0 83 18 67 B6 04 01 00 00 F6 50 F2 13 BB 5F 00 FD [11:26:33]CommunicateWithHost err = 0 [11:26:33]CheckOFDResponse [11:26:33]1017 (14) - 77093643461234 [11:26:33]1041 (16) - 0000000000871759 [11:26:33]1040 (4) - 166673 [11:26:33]1012 (4) - 23.10.2024 05:04 [11:26:33]1206 (1) - 0 [11:26:33]OFD Sender: Remove packet 166673 [11:26:33]ProducePacketName [11:26:33]name=ofd_packets/00166673 [11:26:33]NVStorageDeleteData [11:26:34]Write to MH i2c: 01 00 00 8A 08 92 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 E6 0C 8B [11:26:34]RasterBufferAndPrint [11:26:34]line [11:26:34]line [11:26:34]line [11:26:34]line [11:26:34]line [11:26:34]written 0, free lines is 3308 [11:26:34]MH_Cut [11:26:34]Write to MH i2c: D1 01 00 91 08 01 6B [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: D1 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: D1 01 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: D1 01 00 91 08 00 6A [11:26:34]Write to MH i2c: 01 00 00 92 08 9A [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]OFD Sender: No OFD packet to send [11:26:34]*** Cut start [11:26:34]*** Partial cut [11:26:34]*** CUTSNS_PIN = 1 [11:26:34]*** CUTSNS_PIN = 0 [11:26:35]*** Brake cut motor [11:26:35]Read from MH i2c: 01 [11:26:35]MH_I2C_Read... [11:26:35]*** Stop cut motor [11:26:35]*** Cut end [11:26:35]Read from MH i2c: 01 07 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 FF 0F AF [11:26:35]process_action close_receipt done [11:26:35]requested_data is exist [11:26:35]produce_requested_data [11:26:35]requested_item fm.sn is exist - process it [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 11 00 00 [11:26:35]Write to MH i2c: E2 08 00 93 08 80 11 00 00 00 00 00 00 15 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 17 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 17 00 93 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [11:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:35]wFMCommunicate OK [11:26:35]requested_item fd.num is exist - process it [11:26:35]SAM_PROTO_GetFieldsCounters [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 13 00 00 [11:26:35]Write to MH i2c: E2 08 00 94 08 80 13 00 00 00 00 00 00 18 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 62 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 62 00 94 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [11:26:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_GetFieldsCounters done [11:26:35]requested_item shift.num is exist - process it [11:26:35]requested_item shift.opened is exist - process it [11:26:35]req_shift_opened [11:26:35]FM_GetShiftState [11:26:35]SAM_PROTO_GetShiftState [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 13 01 00 [11:26:35]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0E 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E5 [11:26:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_GetShiftState done [11:26:35]FM_GetShiftState done [11:26:35]req_shift_opened done [11:26:35]requested_item shift.open_date is exist - process it [11:26:35]req_shift_open_date [11:26:35]req_shift_open_date done [11:26:35]produce_requested_data done [11:26:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166673,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:26:35]process_action_free close_receipt [11:26:35]json_value_free [11:26:35]json_value_free done [11:26:35]process_json_proto returns [11:26:35]Send response to host [11:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166673,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:26:35]free response buf [11:26:35]execute_script done [11:26:35]execute_script returns [11:26:35]free content buf [11:26:35]Sock 8.Close socket [11:26:35]Sock 8.Thread stoped [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:45]accept exits with 9 [11:26:45]New connection [11:26:45]New thread 3067034980 created [11:26:45]Thread 3067178340 joined [11:26:45]Waiting for new connection... [11:26:45] Sock 9.Parse request [11:26:45]Sock 9.Check first char [11:26:45]Sock 9.First char is OK [11:26:45]request: POST /json_proto HTTP/1.0 [11:26:45]Method: POST [11:26:45]URL: /json_proto [11:26:45]Method is POST - this is cgi request [11:26:45]url: /json_proto [11:26:45]query_string will be loaded in cgi processing [11:26:45]execute_cgi json_proto POST (null) [11:26:45]execute_cgi path=json_proto method=POST [11:26:45]POST find Content-Length [11:26:45]Host: 172.17.53.195:8080 [11:26:45]Content-Length: 679 [11:26:45]Content-Type: application/json [11:26:45] [11:26:45]POST finish read [11:26:45]Found Content-Length = 679 [11:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:45]execute_script... [11:26: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)221256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:45]POST & json_proto [11:26:45]process_json_proto [11:26:45]json parsed OK: [11:26:45]protocol is kg_v1.0 [11:26:45]action value=close_receipt [11:26:45]process_action close_receipt [11:26:45]cmd_close_receipt [11:26:45]MH_GetDate [11:26:45]Write to MH i2c: F0 00 00 96 08 8D [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: F0 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: F0 09 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: F0 09 00 96 08 00 76 DD 18 67 21 48 4A 65 80 [11:26:45]GetLastDocTimeStamp 1729682792 [11:26:45]current date 1729682806 [11:26:45]FM_GetShiftState [11:26:45]SAM_PROTO_GetShiftState [11:26:45]wFMCommunicate request_size=4 [11:26:45]MH_SAM_APDU [11:26:45]CAPDU: 80 13 01 00 [11:26:45]Write to MH i2c: E2 08 00 97 08 80 13 01 00 00 00 00 00 1C [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:45]Read from MH i2c: E2 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: E2 0E 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: E2 0E 00 97 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E7 [11:26:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:26:45]wFMCommunicate OK [11:26:45]SAM_PROTO_GetShiftState done [11:26:45]FM_GetShiftState done [11:26:45]opened in 1729643772 [11:26:45]opened+sec_in_day 1729730172 [11:26:45]quantity*price = 199948 [11:26:45]sum+1 = 199950 [11:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 89 23.10.2024 11:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166674 ФПД: 109636520644615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166674&fm=109636520644615&tin=02508201610067®Number=0000000000091764&sum=199900 [11:26:46]StoreToDocumentArchive [11:26:46]shift 537 fd 166674 [11:26:46]save to /storage/0537/doc_00166674 [11:26:46]save last doc name /storage/0537/doc_00166674 to /storage/kkm_last_doc_name [11:26:46]save OK [11:26:46]Clear old archive folders... [11:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:47]tlvbuf is 01FA5A40 [11:26:47]SAM_PROTO_ClearQueue [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 09 00 00 [11:26:47]Write to MH i2c: E2 08 00 A4 08 80 09 00 00 00 00 00 00 1E [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [11:26:47]RAPDU: 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_ClearQueue done [11:26:47]KKMCreateOFDPacket [11:26:47]OFDProtocolAddRootSTLVToBuf [11:26:47]FM_MakeSignedData [11:26:47]FM_MakeSignedData [11:26:47]SAM_PROTO_SignData [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 0D 01 02 [11:26:47]Write to MH i2c: E2 08 00 A5 08 80 0D 01 02 00 00 00 00 26 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [11:26:47]RAPDU: 90 00 [11:26:47]wFMCommunicate OK [11:26:47]wFMCommunicate request_size=255 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 76 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8B 02 00 35 04 06 00 63 B6 BD DE [11:26:47]Write to MH i2c: E2 02 01 A6 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 76 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8B 02 00 35 04 06 00 63 B6 BD DE 00 00 0F [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [11:26:47]RAPDU: 90 00 [11:26:47]wFMCommunicate OK [11:26:47]wFMCommunicate request_size=7 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 0D 02 02 02 10 07 [11:26:47]Write to MH i2c: E2 0A 00 A7 08 80 0D 02 02 02 00 10 07 00 00 44 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [11:26:47]RAPDU: 90 00 [11:26:47]wFMCommunicate OK [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 0D 03 02 [11:26:47]Write to MH i2c: E2 08 00 A8 08 80 0D 03 02 00 00 00 00 2B [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0B 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0B 00 A8 08 00 89 7F 4F 9A 10 AD B2 E4 90 00 70 [11:26:47]RAPDU: 89 7F 4F 9A 10 AD B2 E4 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_SignData done [11:26:47]FM_MakeSignedData done [11:26:47]CreateOFDProtocolMessage [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 11 00 00 [11:26:47]Write to MH i2c: E2 08 00 A9 08 80 11 00 00 00 00 00 00 2B [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 A9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [11:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:47]wFMCommunicate OK [11:26:47]CreateOFDProtocolMessage done [11:26:47]OFDSenderStorePacket 166674 [11:26:47]StoreOFDPacket docnum=166674 [11:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E8 18 04 01 AA 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 76 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8B 02 00 35 04 06 00 63 B6 BD DE 10 07 89 7F 4F 9A 10 AD B2 E4 [11:26:47]CheckFolder [11:26:47]dirname=/storage/ofd_packets [11:26:47]CheckFolder done [11:26:47]ProducePacketName [11:26:47]name=ofd_packets/00166674 [11:26:47]NVStorageSaveData ofd_packets/00166674 [11:26:47]File name is /storage/ofd_packets/00166674 [11:26:47]Write 298 bytes [11:26:47]NVStorageSaveData done [11:26:47]OFDSenderStorePacket done [11:26:47]KKMCreateOFDPacket done [11:26:47]NVStorageSaveData kkm_last_timestamp [11:26:47]File name is /storage/kkm_last_timestamp [11:26:47]Write 4 bytes [11:26:47]NVStorageSaveData done [11:26:47]ExternCall_PrintAddStr [11:26:47]wPrintStart [11:26:47]Write to MH i2c: 01 00 00 AA 08 B2 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 FF 0F C7 [11:26:47]RasterBufferAndPrint [11:26:47]line Счет N : (1)221256 [11:26:47]line ИНН: 02508201610067 [11:26:47]line Контрольно-Кассовый Чек [11:26:47]line ПРОДАЖА [11:26:47]line ТРК (МРК, ГНК) : 41 [11:26:47]line Товар: 2710194210 [11:26:47]line ДТ-К-5 [11:26:47]line 26.240 * 76.20 [11:26:47]line = 1999.49 [11:26:47]line НДС 12% НСП 1% [11:26:47]line > о реализуемом товаре [11:26:47]line ОКРУГЛЕНИЕ: -0.49 [11:26:47]line ИТОГО: 1999.00 [11:26:47]line Внесено: 2000.00 [11:26:47]line СДАЧА: 1.00 [11:26:47]line НСП 1% : 17.69 [11:26:47]line НДС 12% : 212.33 [11:26:47]line Наличными: 1999.00 [11:26:47]line Безнал.: 0.00 [11:26:47]line Место: АЗС № 161 "Партнер Нефть" [11:26:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:26:47]line СНО: Общий режим [11:26:47]line Чек 89 23.10.2024 11:26 [11:26:47]line Смена: 537 ФФД: 1.0 [11:26:47]line ЗНМ: 0300000104 [11:26:47]line РНМ: 0000000000091764 [11:26:47]line Версия ККМ: 001 [11:26:47]line ФМ: 0000000000871759 [11:26:47]line ФД: 166674 [11:26:47]line ФПД: 109636520644615 [11:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166674&fm=109636520644615&tin=02508201610067®Number=0000000000091764&sum=199900 [11:26:47]OFD Sender: Processing packet 166674 [packets to send 48, broken 47] [11:26:47]ProducePacketName [11:26:47]name=ofd_packets/00166674 [11:26:47]OFD Sender: To server: pG, [11:26:47]CommunicateWithHost lk.salyk.kg:30040 [11:26:47]ConnectInit lk.salyk.kg [11:26:47]written 0, free lines is 4095 [11:26:47]Connected sock=10 [11:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E8 18 04 01 AA 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 76 DD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8B 02 00 35 04 06 00 63 B6 BD DE 10 07 89 7F 4F 9A 10 AD B2 E4 [11:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD 66 47 00 87 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8B 02 00 F4 03 04 00 DE 83 18 67 B6 04 01 00 00 D1 FB A2 54 6F FE 89 92 [11:26:48]CommunicateWithHost err = 0 [11:26:48]CheckOFDResponse [11:26:48]1017 (14) - 77093643461234 [11:26:48]1041 (16) - 0000000000871759 [11:26:48]1040 (4) - 166674 [11:26:48]1012 (4) - 23.10.2024 05:04 [11:26:48]1206 (1) - 0 [11:26:48]OFD Sender: Remove packet 166674 [11:26:48]ProducePacketName [11:26:48]name=ofd_packets/00166674 [11:26:48]NVStorageDeleteData [11:26:48]Write to MH i2c: 01 00 00 D5 08 DD [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: 01 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: 01 07 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 C3 0C B3 [11:26:48]RasterBufferAndPrint [11:26:48]line [11:26:48]line [11:26:48]line [11:26:48]line [11:26:48]line [11:26:48]written 0, free lines is 3273 [11:26:48]MH_Cut [11:26:48]Write to MH i2c: D1 01 00 DC 08 01 B6 [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: D1 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: D1 01 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: D1 01 00 DC 08 00 B5 [11:26:48]Write to MH i2c: 01 00 00 DD 08 E5 [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]OFD Sender: No OFD packet to send [11:26:49]*** Cut start [11:26:49]*** Partial cut [11:26:49]*** CUTSNS_PIN = 1 [11:26:49]*** CUTSNS_PIN = 0 [11:26:49]*** Brake cut motor [11:26:49]Read from MH i2c: 01 [11:26:49]MH_I2C_Read... [11:26:49]*** Stop cut motor [11:26:49]*** Cut end [11:26:49]Read from MH i2c: 01 07 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 07 00 DD 08 00 00 00 00 00 FF 0F FA [11:26:49]process_action close_receipt done [11:26:49]requested_data is exist [11:26:49]produce_requested_data [11:26:49]requested_item fm.sn is exist - process it [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 11 00 00 [11:26:49]Write to MH i2c: E2 08 00 DE 08 80 11 00 00 00 00 00 00 60 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 DE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [11:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:49]wFMCommunicate OK [11:26:49]requested_item fd.num is exist - process it [11:26:49]SAM_PROTO_GetFieldsCounters [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 13 00 00 [11:26:49]Write to MH i2c: E2 08 00 DF 08 80 13 00 00 00 00 00 00 63 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 62 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 62 00 DF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_GetFieldsCounters done [11:26:50]requested_item shift.num is exist - process it [11:26:50]requested_item shift.opened is exist - process it [11:26:50]req_shift_opened [11:26:50]FM_GetShiftState [11:26:50]SAM_PROTO_GetShiftState [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 13 01 00 [11:26:50]Write to MH i2c: E2 08 00 E0 08 80 13 01 00 00 00 00 00 65 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0E 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0E 00 E0 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 30 [11:26:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_GetShiftState done [11:26:50]FM_GetShiftState done [11:26:50]req_shift_opened done [11:26:50]requested_item shift.open_date is exist - process it [11:26:50]req_shift_open_date [11:26:50]req_shift_open_date done [11:26:50]produce_requested_data done [11:26:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166674,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:26:50]process_action_free close_receipt [11:26:50]json_value_free [11:26:50]json_value_free done [11:26:50]process_json_proto returns [11:26:50]Send response to host [11:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166674,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:26:50]free response buf [11:26:50]execute_script done [11:26:50]execute_script returns [11:26:50]free content buf [11:26:50]Sock 9.Close socket [11:26:50]Sock 9.Thread stoped [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]accept exits with 8 [11:30:48]New connection [11:30:48]New thread 3067178340 created [11:30:48]Thread 3067034980 joined [11:30:48]Waiting for new connection... [11:30:48] Sock 8.Parse request [11:30:48]Sock 8.Check first char [11:30:48]Sock 8.First char is OK [11:30:48]request: POST /json_proto HTTP/1.0 [11:30:48]Method: POST [11:30:48]URL: /json_proto [11:30:48]Method is POST - this is cgi request [11:30:48]url: /json_proto [11:30:48]query_string will be loaded in cgi processing [11:30:48]execute_cgi json_proto POST (null) [11:30:48]execute_cgi path=json_proto method=POST [11:30:48]POST find Content-Length [11:30:48]Host: 172.17.53.195:8080 [11:30:48]Content-Length: 677 [11:30:48]Content-Type: application/json [11:30:48] [11:30:48]POST finish read [11:30:48]Found Content-Length = 677 [11:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:48]execute_script... [11:30:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:48]POST & json_proto [11:30:48]process_json_proto [11:30:48]json parsed OK: [11:30:48]protocol is kg_v1.0 [11:30:48]action value=close_receipt [11:30:48]process_action close_receipt [11:30:48]cmd_close_receipt [11:30:48]MH_GetDate [11:30:48]Write to MH i2c: F0 00 00 E1 08 D8 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: F0 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: F0 09 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: F0 09 00 E1 08 00 68 DE 18 67 21 48 4A 65 BE [11:30:48]GetLastDocTimeStamp 1729682806 [11:30:48]current date 1729683048 [11:30:48]FM_GetShiftState [11:30:48]SAM_PROTO_GetShiftState [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 13 01 00 [11:30:48]Write to MH i2c: E2 08 00 E2 08 80 13 01 00 00 00 00 00 67 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 0E 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 0E 00 E2 08 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 32 [11:30:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:30:48]wFMCommunicate OK [11:30:48]SAM_PROTO_GetShiftState done [11:30:48]FM_GetShiftState done [11:30:48]opened in 1729643772 [11:30:48]opened+sec_in_day 1729730172 [11:30:48]quantity*price = 30038 [11:30:48]sum+1 = 30039 [11:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 90 23.10.2024 11:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166675 ФПД: 206010292721192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166675&fm=206010292721192&tin=02508201610067®Number=0000000000091764&sum=30000 [11:30:49]StoreToDocumentArchive [11:30:49]shift 537 fd 166675 [11:30:49]save to /storage/0537/doc_00166675 [11:30:49]save last doc name /storage/0537/doc_00166675 to /storage/kkm_last_doc_name [11:30:49]save OK [11:30:49]Clear old archive folders... [11:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:49]tlvbuf is 01F63D90 [11:30:49]SAM_PROTO_ClearQueue [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 09 00 00 [11:30:49]Write to MH i2c: E2 08 00 EF 08 80 09 00 00 00 00 00 00 69 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_ClearQueue done [11:30:49]KKMCreateOFDPacket [11:30:49]OFDProtocolAddRootSTLVToBuf [11:30:49]FM_MakeSignedData [11:30:49]FM_MakeSignedData [11:30:49]SAM_PROTO_SignData [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 01 02 [11:30:49]Write to MH i2c: E2 08 00 F0 08 80 0D 01 02 00 00 00 00 71 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=255 [11:30:49]MH_SAM_APDU [11:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 68 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8B 02 00 35 04 06 00 BB [11:30:49]Write to MH i2c: E2 02 01 F1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 68 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8B 02 00 35 04 06 00 BB 00 00 90 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=10 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 05 5D 82 51 56 28 [11:30:49]Write to MH i2c: E2 0D 00 F2 08 80 0D 02 02 05 00 5D 82 51 56 28 00 00 2C [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 03 02 [11:30:49]Write to MH i2c: E2 08 00 F3 08 80 0D 03 02 00 00 00 00 76 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 F3 08 00 4F 28 F0 BE CF DE C2 F6 90 00 01 [11:30:49]RAPDU: 4F 28 F0 BE CF DE C2 F6 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_SignData done [11:30:49]FM_MakeSignedData done [11:30:49]CreateOFDProtocolMessage [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 11 00 00 [11:30:49]Write to MH i2c: E2 08 00 F4 08 80 11 00 00 00 00 00 00 76 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 F4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:49]wFMCommunicate OK [11:30:49]CreateOFDProtocolMessage done [11:30:49]OFDSenderStorePacket 166675 [11:30:49]StoreOFDPacket docnum=166675 [11:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 95 07 01 3F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 68 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8B 02 00 35 04 06 00 BB 5D 82 51 56 28 4F 28 F0 BE CF DE C2 F6 [11:30:49]CheckFolder [11:30:49]dirname=/storage/ofd_packets [11:30:49]CheckFolder done [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00166675 [11:30:49]NVStorageSaveData ofd_packets/00166675 [11:30:49]File name is /storage/ofd_packets/00166675 [11:30:49]Write 301 bytes [11:30:49]NVStorageSaveData done [11:30:49]OFDSenderStorePacket done [11:30:49]KKMCreateOFDPacket done [11:30:49]NVStorageSaveData kkm_last_timestamp [11:30:49]File name is /storage/kkm_last_timestamp [11:30:49]Write 4 bytes [11:30:49]NVStorageSaveData done [11:30:49]OFD Sender: Processing packet 166675 [packets to send 48, broken 47] [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00166675 [11:30:49]OFD Sender: To server: pG, [11:30:49]CommunicateWithHost lk.salyk.kg:30040 [11:30:49]ConnectInit lk.salyk.kg [11:30:49]ExternCall_PrintAddStr [11:30:49]wPrintStart [11:30:49]Write to MH i2c: 01 00 00 F5 08 FD [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 F5 08 00 00 00 00 00 FF 0F 12 [11:30:49]RasterBufferAndPrint [11:30:49]line Счет N : (1)221258 [11:30:49]line ИНН: 02508201610067 [11:30:49]line Контрольно-Кассовый Чек [11:30:49]line ПРОДАЖА [11:30:49]line ТРК (МРК, ГНК) : 43 [11:30:49]line Товар: 2710124130 [11:30:49]line Аи-92-К-5 [11:30:49]line 4.490 * 66.90 [11:30:49]line = 300.38 [11:30:49]line НДС 12% НСП 1% [11:30:49]line > о реализуемом товаре [11:30:49]line ОКРУГЛЕНИЕ: -0.38 [11:30:49]line ИТОГО: 300.00 [11:30:49]line Внесено: 300.00 [11:30:49]line СДАЧА: 0.00 [11:30:49]line НСП 1% : 2.66 [11:30:49]line НДС 12% : 31.90 [11:30:49]line Наличными: 300.00 [11:30:49]line Безнал.: 0.00 [11:30:49]line Место: АЗС № 161 "Партнер Нефть" [11:30:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:30:49]line СНО: Общий режим [11:30:49]line Чек 90 23.10.2024 11:30 [11:30:49]line Смена: 537 ФФД: 1.0 [11:30:49]line ЗНМ: 0300000104 [11:30:49]line РНМ: 0000000000091764 [11:30:49]line Версия ККМ: 001 [11:30:49]line ФМ: 0000000000871759 [11:30:49]line ФД: 166675 [11:30:49]line ФПД: 206010292721192 [11:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166675&fm=206010292721192&tin=02508201610067®Number=0000000000091764&sum=30000 [11:30:50]Connected sock=11 [11:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 95 07 01 3F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 68 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8B 02 00 35 04 06 00 BB 5D 82 51 56 28 4F 28 F0 BE CF DE C2 F6 [11:30:50]written 0, free lines is 4095 [11:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 75 47 00 86 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8B 02 00 F4 03 04 00 D0 84 18 67 B6 04 01 00 00 87 20 06 5F 5F 21 35 18 [11:30:50]CommunicateWithHost err = 0 [11:30:50]CheckOFDResponse [11:30:50]1017 (14) - 77093643461234 [11:30:50]1041 (16) - 0000000000871759 [11:30:50]1040 (4) - 166675 [11:30:50]1012 (4) - 23.10.2024 05:08 [11:30:50]1206 (1) - 0 [11:30:50]OFD Sender: Remove packet 166675 [11:30:50]ProducePacketName [11:30:50]name=ofd_packets/00166675 [11:30:50]NVStorageDeleteData [11:30:50]Write to MH i2c: 01 00 00 20 09 29 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 BB 0C F7 [11:30:50]RasterBufferAndPrint [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]written 0, free lines is 3266 [11:30:50]MH_Cut [11:30:50]Write to MH i2c: D1 01 00 27 09 01 02 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 27 09 00 01 [11:30:50]Write to MH i2c: 01 00 00 28 09 31 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]OFD Sender: No OFD packet to send [11:30:51]*** Cut start [11:30:51]*** Partial cut [11:30:51]*** CUTSNS_PIN = 1 [11:30:51]*** CUTSNS_PIN = 0 [11:30:51]*** Brake cut motor [11:30:52]Read from MH i2c: 01 [11:30:52]MH_I2C_Read... [11:30:52]*** Stop cut motor [11:30:52]*** Cut end [11:30:52]Read from MH i2c: 01 07 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 07 00 28 09 00 00 00 00 00 FF 0F 46 [11:30:52]process_action close_receipt done [11:30:52]requested_data is exist [11:30:52]produce_requested_data [11:30:52]requested_item fm.sn is exist - process it [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 11 00 00 [11:30:52]Write to MH i2c: E2 08 00 29 09 80 11 00 00 00 00 00 00 AC [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 17 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 17 00 29 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [11:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:52]wFMCommunicate OK [11:30:52]requested_item fd.num is exist - process it [11:30:52]SAM_PROTO_GetFieldsCounters [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 13 00 00 [11:30:52]Write to MH i2c: E2 08 00 2A 09 80 13 00 00 00 00 00 00 AF [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 62 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 62 00 2A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [11:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetFieldsCounters done [11:30:52]requested_item shift.num is exist - process it [11:30:52]requested_item shift.opened is exist - process it [11:30:52]req_shift_opened [11:30:52]FM_GetShiftState [11:30:52]SAM_PROTO_GetShiftState [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 13 01 00 [11:30:52]Write to MH i2c: E2 08 00 2B 09 80 13 01 00 00 00 00 00 B1 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:52]Read from MH i2c: E2 0E 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 2B 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7C [11:30:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetShiftState done [11:30:52]FM_GetShiftState done [11:30:52]req_shift_opened done [11:30:52]requested_item shift.open_date is exist - process it [11:30:52]req_shift_open_date [11:30:52]req_shift_open_date done [11:30:52]produce_requested_data done [11:30:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166675,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:30:52]process_action_free close_receipt [11:30:52]json_value_free [11:30:52]json_value_free done [11:30:52]process_json_proto returns [11:30:52]Send response to host [11:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166675,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:30:52]free response buf [11:30:52]execute_script done [11:30:52]execute_script returns [11:30:52]free content buf [11:30:52]Sock 8.Close socket [11:30:52]Sock 8.Thread stoped [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:05]accept exits with 9 [11:33:05]New connection [11:33:05]New thread 3067034980 created [11:33:05]Thread 3067178340 joined [11:33:05]Waiting for new connection... [11:33:05] Sock 9.Parse request [11:33:05]Sock 9.Check first char [11:33:05]Sock 9.First char is OK [11:33:05]request: POST /json_proto HTTP/1.0 [11:33:05]Method: POST [11:33:05]URL: /json_proto [11:33:05]Method is POST - this is cgi request [11:33:05]url: /json_proto [11:33:05]query_string will be loaded in cgi processing [11:33:05]execute_cgi json_proto POST (null) [11:33:05]execute_cgi path=json_proto method=POST [11:33:05]POST find Content-Length [11:33:05]Host: 172.17.53.195:8080 [11:33:05]Content-Length: 678 [11:33:05]Content-Type: application/json [11:33:05] [11:33:05]POST finish read [11:33:05]Found Content-Length = 678 [11:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:05]execute_script... [11:33: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)221259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:05]POST & json_proto [11:33:05]process_json_proto [11:33:05]json parsed OK: [11:33:05]protocol is kg_v1.0 [11:33:05]action value=close_receipt [11:33:05]process_action close_receipt [11:33:05]cmd_close_receipt [11:33:05]MH_GetDate [11:33:05]Write to MH i2c: F0 00 00 2C 09 24 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 2C 09 00 F1 DE 18 67 21 48 4A 65 93 [11:33:05]GetLastDocTimeStamp 1729683048 [11:33:05]current date 1729683185 [11:33:05]FM_GetShiftState [11:33:05]SAM_PROTO_GetShiftState [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 01 00 [11:33:05]Write to MH i2c: E2 08 00 2D 09 80 13 01 00 00 00 00 00 B3 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 2D 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [11:33:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetShiftState done [11:33:05]FM_GetShiftState done [11:33:05]opened in 1729643772 [11:33:05]opened+sec_in_day 1729730172 [11:33:05]quantity*price = 75016 [11:33:05]sum+1 = 75017 [11:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 91 23.10.2024 11:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166676 ФПД: 174059229296910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113305&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166676&fm=174059229296910&tin=02508201610067®Number=0000000000091764&sum=75000 [11:33:06]StoreToDocumentArchive [11:33:06]shift 537 fd 166676 [11:33:06]save to /storage/0537/doc_00166676 [11:33:06]save last doc name /storage/0537/doc_00166676 to /storage/kkm_last_doc_name [11:33:06]save OK [11:33:06]Clear old archive folders... [11:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:06]tlvbuf is 01FA3830 [11:33:06]SAM_PROTO_ClearQueue [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 09 00 00 [11:33:06]Write to MH i2c: E2 08 00 3A 09 80 09 00 00 00 00 00 00 B5 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_ClearQueue done [11:33:06]KKMCreateOFDPacket [11:33:06]OFDProtocolAddRootSTLVToBuf [11:33:06]FM_MakeSignedData [11:33:06]FM_MakeSignedData [11:33:06]SAM_PROTO_SignData [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 01 02 [11:33:06]Write to MH i2c: E2 08 00 3B 09 80 0D 01 02 00 00 00 00 BD [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=255 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F1 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8B 02 00 35 04 06 00 9E [11:33:06]Write to MH i2c: E2 02 01 3C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F1 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8B 02 00 35 04 06 00 9E 00 00 D1 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=10 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 02 02 05 4E 52 88 39 0E [11:33:06]Write to MH i2c: E2 0D 00 3D 09 80 0D 02 02 05 00 4E 52 88 39 0E 00 00 39 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 03 02 [11:33:06]Write to MH i2c: E2 08 00 3E 09 80 0D 03 02 00 00 00 00 C2 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0B 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0B 00 3E 09 00 45 E7 30 9F 15 5B C7 72 90 00 67 [11:33:06]RAPDU: 45 E7 30 9F 15 5B C7 72 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_SignData done [11:33:06]FM_MakeSignedData done [11:33:06]CreateOFDProtocolMessage [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 11 00 00 [11:33:06]Write to MH i2c: E2 08 00 3F 09 80 11 00 00 00 00 00 00 C2 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 3F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [11:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:33:06]wFMCommunicate OK [11:33:06]CreateOFDProtocolMessage done [11:33:06]OFDSenderStorePacket 166676 [11:33:06]StoreOFDPacket docnum=166676 [11:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 7B 07 01 F4 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F1 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8B 02 00 35 04 06 00 9E 4E 52 88 39 0E 45 E7 30 9F 15 5B C7 72 [11:33:06]CheckFolder [11:33:06]dirname=/storage/ofd_packets [11:33:06]CheckFolder done [11:33:06]ProducePacketName [11:33:06]name=ofd_packets/00166676 [11:33:06]NVStorageSaveData ofd_packets/00166676 [11:33:06]File name is /storage/ofd_packets/00166676 [11:33:06]Write 301 bytes [11:33:06]NVStorageSaveData done [11:33:06]OFDSenderStorePacket done [11:33:06]KKMCreateOFDPacket done [11:33:06]NVStorageSaveData kkm_last_timestamp [11:33:06]File name is /storage/kkm_last_timestamp [11:33:06]Write 4 bytes [11:33:06]NVStorageSaveData done [11:33:06]ExternCall_PrintAddStr [11:33:06]wPrintStart [11:33:06]Write to MH i2c: 01 00 00 40 09 49 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: 01 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: 01 07 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: 01 07 00 40 09 00 00 00 00 00 FF 0F 5E [11:33:06]RasterBufferAndPrint [11:33:06]line Счет N : (1)221259 [11:33:06]line ИНН: 02508201610067 [11:33:06]line Контрольно-Кассовый Чек [11:33:06]line ПРОДАЖА [11:33:06]line ТРК (МРК, ГНК) : 44 [11:33:06]line Товар: 2710124500 [11:33:06]line Аи-95-К-5 [11:33:06]line 10.110 * 74.20 [11:33:06]line = 750.16 [11:33:06]line НДС 12% НСП 1% [11:33:06]line > о реализуемом товаре [11:33:06]line ОКРУГЛЕНИЕ: -0.16 [11:33:06]line ИТОГО: 750.00 [11:33:06]line Внесено: 750.00 [11:33:06]line СДАЧА: 0.00 [11:33:06]line НСП 1% : 6.64 [11:33:06]line НДС 12% : 79.66 [11:33:06]line Наличными: 750.00 [11:33:06]line Безнал.: 0.00 [11:33:06]line Место: АЗС № 161 "Партнер Нефть" [11:33:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:33:06]line СНО: Общий режим [11:33:06]line Чек 91 23.10.2024 11:33 [11:33:06]line Смена: 537 ФФД: 1.0 [11:33:06]line ЗНМ: 0300000104 [11:33:06]line РНМ: 0000000000091764 [11:33:06]line Версия ККМ: 001 [11:33:06]line ФМ: 0000000000871759 [11:33:06]line ФД: 166676 [11:33:06]line ФПД: 174059229296910 [11:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113305&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166676&fm=174059229296910&tin=02508201610067®Number=0000000000091764&sum=75000 [11:33:07]OFD Sender: Processing packet 166676 [packets to send 48, broken 47] [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00166676 [11:33:07]OFD Sender: To server: pG, [11:33:07]CommunicateWithHost lk.salyk.kg:30040 [11:33:07]ConnectInit lk.salyk.kg [11:33:07]written 0, free lines is 4095 [11:33:07]Connected sock=10 [11:33:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 7B 07 01 F4 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F1 DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8B 02 00 35 04 06 00 9E 4E 52 88 39 0E 45 E7 30 9F 15 5B C7 72 [11:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 62 FB 47 00 51 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8B 02 00 F4 03 04 00 59 85 18 67 B6 04 01 00 00 79 EE DD 7E BD 0E BB A7 [11:33:07]CommunicateWithHost err = 0 [11:33:07]CheckOFDResponse [11:33:07]1017 (14) - 77093643461234 [11:33:07]1041 (16) - 0000000000871759 [11:33:07]1040 (4) - 166676 [11:33:07]1012 (4) - 23.10.2024 05:10 [11:33:07]1206 (1) - 0 [11:33:07]OFD Sender: Remove packet 166676 [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00166676 [11:33:07]NVStorageDeleteData [11:33:07]Write to MH i2c: 01 00 00 6B 09 74 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 AE 0C 35 [11:33:07]RasterBufferAndPrint [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]written 0, free lines is 3253 [11:33:07]MH_Cut [11:33:07]Write to MH i2c: D1 01 00 72 09 01 4D [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 01 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 01 00 72 09 00 4C [11:33:07]Write to MH i2c: 01 00 00 73 09 7C [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]OFD Sender: No OFD packet to send [11:33:08]*** Cut start [11:33:08]*** Partial cut [11:33:08]*** CUTSNS_PIN = 1 [11:33:08]*** CUTSNS_PIN = 0 [11:33:08]*** Brake cut motor [11:33:09]Read from MH i2c: 01 [11:33:09]MH_I2C_Read... [11:33:09]*** Stop cut motor [11:33:09]*** Cut end [11:33:09]Read from MH i2c: 01 07 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [11:33:09]process_action close_receipt done [11:33:09]requested_data is exist [11:33:09]produce_requested_data [11:33:09]requested_item fm.sn is exist - process it [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 11 00 00 [11:33:09]Write to MH i2c: E2 08 00 74 09 80 11 00 00 00 00 00 00 F7 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 74 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [11:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:33:09]wFMCommunicate OK [11:33:09]requested_item fd.num is exist - process it [11:33:09]SAM_PROTO_GetFieldsCounters [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 00 00 [11:33:09]Write to MH i2c: E2 08 00 75 09 80 13 00 00 00 00 00 00 FA [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 75 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetFieldsCounters done [11:33:09]requested_item shift.num is exist - process it [11:33:09]requested_item shift.opened is exist - process it [11:33:09]req_shift_opened [11:33:09]FM_GetShiftState [11:33:09]SAM_PROTO_GetShiftState [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 01 00 [11:33:09]Write to MH i2c: E2 08 00 76 09 80 13 01 00 00 00 00 00 FC [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 76 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C7 [11:33:09]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetShiftState done [11:33:09]FM_GetShiftState done [11:33:09]req_shift_opened done [11:33:09]requested_item shift.open_date is exist - process it [11:33:09]req_shift_open_date [11:33:09]req_shift_open_date done [11:33:09]produce_requested_data done [11:33:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166676,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:33:09]process_action_free close_receipt [11:33:09]json_value_free [11:33:09]json_value_free done [11:33:09]process_json_proto returns [11:33:09]Send response to host [11:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166676,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:33:09]free response buf [11:33:09]execute_script done [11:33:09]execute_script returns [11:33:09]free content buf [11:33:09]Sock 9.Close socket [11:33:09]Sock 9.Thread stoped [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:18]accept exits with 8 [11:33:18]New connection [11:33:18]New thread 3067178340 created [11:33:18]Thread 3067034980 joined [11:33:18]Waiting for new connection... [11:33:18] Sock 8.Parse request [11:33:18]Sock 8.Check first char [11:33:18]Sock 8.First char is OK [11:33:18]request: POST /json_proto HTTP/1.0 [11:33:18]Method: POST [11:33:18]URL: /json_proto [11:33:18]Method is POST - this is cgi request [11:33:18]url: /json_proto [11:33:18]query_string will be loaded in cgi processing [11:33:18]execute_cgi json_proto POST (null) [11:33:18]execute_cgi path=json_proto method=POST [11:33:18]POST find Content-Length [11:33:18]Host: 172.17.53.195:8080 [11:33:18]Content-Length: 790 [11:33:18]Content-Type: application/json [11:33:18] [11:33:18]POST finish read [11:33:18]Found Content-Length = 790 [11:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 200.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:18]execute_script... [11:33: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)221257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 200.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:18]POST & json_proto [11:33:18]process_json_proto [11:33:18]json parsed OK: [11:33:18]protocol is kg_v1.0 [11:33:18]action value=close_receipt [11:33:18]process_action close_receipt [11:33:18]cmd_close_receipt [11:33:18]MH_GetDate [11:33:18]Write to MH i2c: F0 00 00 77 09 6F [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 09 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 09 00 77 09 00 FE DE 18 67 21 48 4A 65 EB [11:33:18]GetLastDocTimeStamp 1729683185 [11:33:18]current date 1729683198 [11:33:18]FM_GetShiftState [11:33:18]SAM_PROTO_GetShiftState [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 13 01 00 [11:33:18]Write to MH i2c: E2 08 00 78 09 80 13 01 00 00 00 00 00 FE [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 0E 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 0E 00 78 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C9 [11:33:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:33:18]wFMCommunicate OK [11:33:18]SAM_PROTO_GetShiftState done [11:33:18]FM_GetShiftState done [11:33:18]opened in 1729643772 [11:33:18]opened+sec_in_day 1729730172 [11:33:18]quantity*price = 0 [11:33:18]sum+1 = 1 [11:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 92 23.10.2024 11:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 53517 ФМ: 0000000000871759 ФД: 166677 ФПД: 82096174407679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166677&fm=82096174407679&tin=02508201610067®Number=0000000000091764&sum=0 [11:33:19]StoreToDocumentArchive [11:33:19]shift 537 fd 166677 [11:33:19]save to /storage/0537/doc_00166677 [11:33:19]save last doc name /storage/0537/doc_00166677 to /storage/kkm_last_doc_name [11:33:19]save OK [11:33:19]Clear old archive folders... [11:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:19]tlvbuf is 01F691C0 [11:33:19]SAM_PROTO_ClearQueue [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 09 00 00 [11:33:19]Write to MH i2c: E2 08 00 85 09 80 09 00 00 00 00 00 00 00 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_ClearQueue done [11:33:19]KKMCreateOFDPacket [11:33:19]OFDProtocolAddRootSTLVToBuf [11:33:19]FM_MakeSignedData [11:33:19]FM_MakeSignedData [11:33:19]SAM_PROTO_SignData [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 0D 01 02 [11:33:19]Write to MH i2c: E2 08 00 86 09 80 0D 01 02 00 00 00 00 08 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=255 [11:33:19]MH_SAM_APDU [11:33: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 40 0D 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8B 02 00 35 04 06 00 4A AA 81 50 [11:33:19]Write to MH i2c: E2 02 01 87 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 0D 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8B 02 00 35 04 06 00 4A AA 81 50 00 00 F6 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=7 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 0D 02 02 02 1F FF [11:33:19]Write to MH i2c: E2 0A 00 88 09 80 0D 02 02 02 00 1F FF 00 00 2D [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 0D 03 02 [11:33:19]Write to MH i2c: E2 08 00 89 09 80 0D 03 02 00 00 00 00 0D [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0B 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0B 00 89 09 00 EC 14 DC 9A CF F5 42 33 90 00 BD [11:33:19]RAPDU: EC 14 DC 9A CF F5 42 33 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_SignData done [11:33:19]FM_MakeSignedData done [11:33:19]CreateOFDProtocolMessage [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 11 00 00 [11:33:19]Write to MH i2c: E2 08 00 8A 09 80 11 00 00 00 00 00 00 0D [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 17 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 17 00 8A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [11:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:33:19]wFMCommunicate OK [11:33:19]CreateOFDProtocolMessage done [11:33:19]OFDSenderStorePacket 166677 [11:33:19]StoreOFDPacket docnum=166677 [11:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2B C6 04 01 17 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 40 0D 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8B 02 00 35 04 06 00 4A AA 81 50 1F FF EC 14 DC 9A CF F5 42 33 [11:33:19]CheckFolder [11:33:19]dirname=/storage/ofd_packets [11:33:19]CheckFolder done [11:33:19]ProducePacketName [11:33:19]name=ofd_packets/00166677 [11:33:19]NVStorageSaveData ofd_packets/00166677 [11:33:19]File name is /storage/ofd_packets/00166677 [11:33:19]Write 298 bytes [11:33:19]NVStorageSaveData done [11:33:19]OFDSenderStorePacket done [11:33:19]KKMCreateOFDPacket done [11:33:19]NVStorageSaveData kkm_last_timestamp [11:33:19]File name is /storage/kkm_last_timestamp [11:33:19]Write 4 bytes [11:33:19]NVStorageSaveData done [11:33:19]ExternCall_PrintAddStr [11:33:19]wPrintStart [11:33:19]Write to MH i2c: 01 00 00 8B 09 94 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: 01 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: 01 07 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [11:33:19]RasterBufferAndPrint [11:33:19]line Счет N : (1)221257 [11:33:19]line ИНН: 02508201610067 [11:33:19]line Контрольно-Кассовый Чек [11:33:19]line ПРОДАЖА [11:33:19]line ТРК (МРК, ГНК) : 21 [11:33:19]line Товар: 2710194210 [11:33:19]line ДТ-К-5 [11:33:19]line 200.000 * 0.00 [11:33:19]line = 0.00 [11:33:19]line НДС 12% НСП 1% [11:33:19]line > о реализуемом товаре [11:33:19]line ИТОГО: 0.00 [11:33:19]line НСП 1% : 0.00 [11:33:19]line НДС 12% : 0.00 [11:33:19]line Наличными: 0.00 [11:33:19]line Безнал.: 0.00 [11:33:19]line Место: АЗС № 161 "Партнер Нефть" [11:33:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:33:19]line СНО: Общий режим [11:33:19]line Чек 92 23.10.2024 11:33 [11:33:19]line Смена: 537 ФФД: 1.0 [11:33:19]line ЗНМ: 0300000104 [11:33:19]line РНМ: 0000000000091764 [11:33:19]line Версия ККМ: 001 [11:33:19]line Талоны: Топливная Карта [11:33:19]line 53517 [11:33:19]line ФМ: 0000000000871759 [11:33:19]line ФД: 166677 [11:33:19]line ФПД: 82096174407679 [11:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166677&fm=82096174407679&tin=02508201610067®Number=0000000000091764&sum=0 [11:33:20]OFD Sender: Processing packet 166677 [packets to send 48, broken 47] [11:33:20]ProducePacketName [11:33:20]name=ofd_packets/00166677 [11:33:20]OFD Sender: To server: pG, [11:33:20]CommunicateWithHost lk.salyk.kg:30040 [11:33:20]ConnectInit lk.salyk.kg [11:33:20]written 0, free lines is 4095 [11:33:20]Connected sock=10 [11:33:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2B C6 04 01 17 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 40 0D 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8B 02 00 35 04 06 00 4A AA 81 50 1F FF EC 14 DC 9A CF F5 42 33 [11:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 D8 47 00 A2 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8B 02 00 F4 03 04 00 66 85 18 67 B6 04 01 00 00 1E FB 86 FA 6C 9C 68 DC [11:33:20]CommunicateWithHost err = 0 [11:33:20]CheckOFDResponse [11:33:20]1017 (14) - 77093643461234 [11:33:20]1041 (16) - 0000000000871759 [11:33:20]1040 (4) - 166677 [11:33:20]1012 (4) - 23.10.2024 05:11 [11:33:20]1206 (1) - 0 [11:33:20]OFD Sender: Remove packet 166677 [11:33:20]ProducePacketName [11:33:20]name=ofd_packets/00166677 [11:33:20]NVStorageDeleteData [11:33:20]Write to MH i2c: 01 00 00 B5 09 BE [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 B5 09 00 00 00 00 00 CB 0C 9C [11:33:20]RasterBufferAndPrint [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]written 0, free lines is 3281 [11:33:20]MH_Cut [11:33:20]Write to MH i2c: D1 01 00 BC 09 01 97 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 01 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 01 00 BC 09 00 96 [11:33:20]Write to MH i2c: 01 00 00 BD 09 C6 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:21]OFD Sender: No OFD packet to send [11:33:21]*** Cut start [11:33:21]*** Partial cut [11:33:21]*** CUTSNS_PIN = 1 [11:33:21]*** CUTSNS_PIN = 0 [11:33:21]*** Brake cut motor [11:33:22]Read from MH i2c: 01 [11:33:22]MH_I2C_Read... [11:33:22]*** Stop cut motor [11:33:22]*** Cut end [11:33:22]Read from MH i2c: 01 07 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 FF 0F DB [11:33:22]process_action close_receipt done [11:33:22]requested_data is exist [11:33:22]produce_requested_data [11:33:22]requested_item fm.sn is exist - process it [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 11 00 00 [11:33:22]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [11:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:33:22]wFMCommunicate OK [11:33:22]requested_item fd.num is exist - process it [11:33:22]SAM_PROTO_GetFieldsCounters [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 13 00 00 [11:33:22]Write to MH i2c: E2 08 00 BF 09 80 13 00 00 00 00 00 00 44 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 62 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 62 00 BF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:33:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_GetFieldsCounters done [11:33:22]requested_item shift.num is exist - process it [11:33:22]requested_item shift.opened is exist - process it [11:33:22]req_shift_opened [11:33:22]FM_GetShiftState [11:33:22]SAM_PROTO_GetShiftState [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 13 01 00 [11:33:22]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0E 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 11 [11:33:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_GetShiftState done [11:33:22]FM_GetShiftState done [11:33:22]req_shift_opened done [11:33:22]requested_item shift.open_date is exist - process it [11:33:22]req_shift_open_date [11:33:22]req_shift_open_date done [11:33:22]produce_requested_data done [11:33:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166677,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:33:22]process_action_free close_receipt [11:33:22]json_value_free [11:33:22]json_value_free done [11:33:22]process_json_proto returns [11:33:22]Send response to host [11:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166677,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:33:22]free response buf [11:33:22]execute_script done [11:33:22]execute_script returns [11:33:22]free content buf [11:33:22]Sock 8.Close socket [11:33:22]Sock 8.Thread stoped [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:13]accept exits with 9 [11:35:13]New connection [11:35:13]New thread 3067034980 created [11:35:13]Thread 3067178340 joined [11:35:13]Waiting for new connection... [11:35:13] Sock 9.Parse request [11:35:13]Sock 9.Check first char [11:35:13]Sock 9.First char is OK [11:35:13]request: POST /json_proto HTTP/1.0 [11:35:13]Method: POST [11:35:13]URL: /json_proto [11:35:13]Method is POST - this is cgi request [11:35:13]url: /json_proto [11:35:13]query_string will be loaded in cgi processing [11:35:13]execute_cgi json_proto POST (null) [11:35:13]execute_cgi path=json_proto method=POST [11:35:13]POST find Content-Length [11:35:13]Host: 172.17.53.195:8080 [11:35:13]Content-Length: 677 [11:35:13]Content-Type: application/json [11:35:13] [11:35:13]POST finish read [11:35:13]Found Content-Length = 677 [11:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:13]execute_script... [11:35: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)221260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:13]POST & json_proto [11:35:13]process_json_proto [11:35:13]json parsed OK: [11:35:13]protocol is kg_v1.0 [11:35:13]action value=close_receipt [11:35:13]process_action close_receipt [11:35:13]cmd_close_receipt [11:35:13]MH_GetDate [11:35:13]Write to MH i2c: F0 00 00 C1 09 B9 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 C1 09 00 72 DF 18 67 21 48 4A 65 AA [11:35:13]GetLastDocTimeStamp 1729683199 [11:35:13]current date 1729683314 [11:35:13]FM_GetShiftState [11:35:13]SAM_PROTO_GetShiftState [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 13 01 00 [11:35:13]Write to MH i2c: E2 08 00 C2 09 80 13 01 00 00 00 00 00 48 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0E 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0E 00 C2 09 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [11:35:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:35:14]wFMCommunicate OK [11:35:14]SAM_PROTO_GetShiftState done [11:35:14]FM_GetShiftState done [11:35:14]opened in 1729643772 [11:35:14]opened+sec_in_day 1729730172 [11:35:14]quantity*price = 12042 [11:35:14]sum+1 = 12043 [11:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 93 23.10.2024 11:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166678 ФПД: 231068899562446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113514&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166678&fm=231068899562446&tin=02508201610067®Number=0000000000091764&sum=12000 [11:35:15]StoreToDocumentArchive [11:35:15]shift 537 fd 166678 [11:35:15]save to /storage/0537/doc_00166678 [11:35:15]save last doc name /storage/0537/doc_00166678 to /storage/kkm_last_doc_name [11:35:15]save OK [11:35:15]Clear old archive folders... [11:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:15]tlvbuf is 01F9FA20 [11:35:15]SAM_PROTO_ClearQueue [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 09 00 00 [11:35:15]Write to MH i2c: E2 08 00 CF 09 80 09 00 00 00 00 00 00 4A [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]SAM_PROTO_ClearQueue done [11:35:15]KKMCreateOFDPacket [11:35:15]OFDProtocolAddRootSTLVToBuf [11:35:15]FM_MakeSignedData [11:35:15]FM_MakeSignedData [11:35:15]SAM_PROTO_SignData [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 0D 01 02 [11:35:15]Write to MH i2c: E2 08 00 D0 09 80 0D 01 02 00 00 00 00 52 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]wFMCommunicate request_size=255 [11:35:15]MH_SAM_APDU [11:35: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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 72 DF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8B 02 00 35 04 06 00 D2 [11:35:15]Write to MH i2c: E2 02 01 D1 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 72 DF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8B 02 00 35 04 06 00 D2 00 00 2E [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]wFMCommunicate request_size=10 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 0D 02 02 05 27 EB AD 53 CE [11:35:15]Write to MH i2c: E2 0D 00 D2 09 80 0D 02 02 05 00 27 EB AD 53 CE 00 00 3F [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 0D 03 02 [11:35:15]Write to MH i2c: E2 08 00 D3 09 80 0D 03 02 00 00 00 00 57 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0B 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0B 00 D3 09 00 9B DF 77 65 DD 20 18 CA 90 00 8D [11:35:15]RAPDU: 9B DF 77 65 DD 20 18 CA 90 00 [11:35:15]wFMCommunicate OK [11:35:15]SAM_PROTO_SignData done [11:35:15]FM_MakeSignedData done [11:35:15]CreateOFDProtocolMessage [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 11 00 00 [11:35:15]Write to MH i2c: E2 08 00 D4 09 80 11 00 00 00 00 00 00 57 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 D4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [11:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:35:15]wFMCommunicate OK [11:35:15]CreateOFDProtocolMessage done [11:35:15]OFDSenderStorePacket 166678 [11:35:15]StoreOFDPacket docnum=166678 [11:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 8F 07 01 F3 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 72 DF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8B 02 00 35 04 06 00 D2 27 EB AD 53 CE 9B DF 77 65 DD 20 18 CA [11:35:15]CheckFolder [11:35:15]dirname=/storage/ofd_packets [11:35:15]CheckFolder done [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00166678 [11:35:15]NVStorageSaveData ofd_packets/00166678 [11:35:15]File name is /storage/ofd_packets/00166678 [11:35:15]Write 301 bytes [11:35:15]NVStorageSaveData done [11:35:15]OFDSenderStorePacket done [11:35:15]KKMCreateOFDPacket done [11:35:15]NVStorageSaveData kkm_last_timestamp [11:35:15]File name is /storage/kkm_last_timestamp [11:35:15]Write 4 bytes [11:35:15]NVStorageSaveData done [11:35:15]ExternCall_PrintAddStr [11:35:15]wPrintStart [11:35:15]Write to MH i2c: 01 00 00 D5 09 DE [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [11:35:15]RasterBufferAndPrint [11:35:15]line Счет N : (1)221260 [11:35:15]line ИНН: 02508201610067 [11:35:15]line Контрольно-Кассовый Чек [11:35:15]line ПРОДАЖА [11:35:15]line ТРК (МРК, ГНК) : 33 [11:35:15]line Товар: 2710124130 [11:35:15]line Аи-92-К-5 [11:35:15]line 1.800 * 66.90 [11:35:15]line = 120.42 [11:35:15]line НДС 12% НСП 1% [11:35:15]line > о реализуемом товаре [11:35:15]line ОКРУГЛЕНИЕ: -0.42 [11:35:15]line ИТОГО: 120.00 [11:35:15]line Внесено: 120.00 [11:35:15]line СДАЧА: 0.00 [11:35:15]line НСП 1% : 1.07 [11:35:15]line НДС 12% : 12.79 [11:35:15]line Наличными: 120.00 [11:35:15]line Безнал.: 0.00 [11:35:15]line Место: АЗС № 161 "Партнер Нефть" [11:35:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:35:15]line СНО: Общий режим [11:35:15]line Чек 93 23.10.2024 11:35 [11:35:15]line Смена: 537 ФФД: 1.0 [11:35:15]line ЗНМ: 0300000104 [11:35:15]line РНМ: 0000000000091764 [11:35:15]line Версия ККМ: 001 [11:35:15]line ФМ: 0000000000871759 [11:35:15]line ФД: 166678 [11:35:15]line ФПД: 231068899562446 [11:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113514&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166678&fm=231068899562446&tin=02508201610067®Number=0000000000091764&sum=12000 [11:35:16]OFD Sender: Processing packet 166678 [packets to send 48, broken 47] [11:35:16]ProducePacketName [11:35:16]name=ofd_packets/00166678 [11:35:16]OFD Sender: To server: pG, [11:35:16]CommunicateWithHost lk.salyk.kg:30040 [11:35:16]ConnectInit lk.salyk.kg [11:35:16]written 0, free lines is 4095 [11:35:16]Connected sock=8 [11:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 8F 07 01 F3 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 72 DF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8B 02 00 35 04 06 00 D2 27 EB AD 53 CE 9B DF 77 65 DD 20 18 CA [11:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 78 F5 47 00 C3 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8B 02 00 F4 03 04 00 DA 85 18 67 B6 04 01 00 00 49 BC AB F7 CA B0 6F 41 [11:35:16]CommunicateWithHost err = 0 [11:35:16]CheckOFDResponse [11:35:16]1017 (14) - 77093643461234 [11:35:16]1041 (16) - 0000000000871759 [11:35:16]1040 (4) - 166678 [11:35:16]1012 (4) - 23.10.2024 05:12 [11:35:16]1206 (1) - 0 [11:35:16]OFD Sender: Remove packet 166678 [11:35:16]ProducePacketName [11:35:16]name=ofd_packets/00166678 [11:35:16]NVStorageDeleteData [11:35:16]Write to MH i2c: 01 00 00 00 0A 0A [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 07 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 BA 0C D7 [11:35:16]RasterBufferAndPrint [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]written 0, free lines is 3265 [11:35:16]MH_Cut [11:35:16]Write to MH i2c: D1 01 00 07 0A 01 E3 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 01 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 01 00 07 0A 00 E2 [11:35:16]Write to MH i2c: 01 00 00 08 0A 12 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]OFD Sender: No OFD packet to send [11:35:17]*** Cut start [11:35:17]*** Partial cut [11:35:17]*** CUTSNS_PIN = 1 [11:35:17]*** CUTSNS_PIN = 0 [11:35:17]*** Brake cut motor [11:35:17]Read from MH i2c: 01 [11:35:17]MH_I2C_Read... [11:35:17]*** Stop cut motor [11:35:17]*** Cut end [11:35:17]Read from MH i2c: 01 07 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [11:35:17]process_action close_receipt done [11:35:17]requested_data is exist [11:35:17]produce_requested_data [11:35:17]requested_item fm.sn is exist - process it [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 11 00 00 [11:35:17]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 09 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [11:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:35:18]wFMCommunicate OK [11:35:18]requested_item fd.num is exist - process it [11:35:18]SAM_PROTO_GetFieldsCounters [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 13 00 00 [11:35:18]Write to MH i2c: E2 08 00 0A 0A 80 13 00 00 00 00 00 00 90 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 62 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 62 00 0A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_GetFieldsCounters done [11:35:18]requested_item shift.num is exist - process it [11:35:18]requested_item shift.opened is exist - process it [11:35:18]req_shift_opened [11:35:18]FM_GetShiftState [11:35:18]SAM_PROTO_GetShiftState [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 13 01 00 [11:35:18]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5D [11:35:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_GetShiftState done [11:35:18]FM_GetShiftState done [11:35:18]req_shift_opened done [11:35:18]requested_item shift.open_date is exist - process it [11:35:18]req_shift_open_date [11:35:18]req_shift_open_date done [11:35:18]produce_requested_data done [11:35:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166678,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:35:18]process_action_free close_receipt [11:35:18]json_value_free [11:35:18]json_value_free done [11:35:18]process_json_proto returns [11:35:18]Send response to host [11:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166678,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:35:18]free response buf [11:35:18]execute_script done [11:35:18]execute_script returns [11:35:18]free content buf [11:35:18]Sock 9.Close socket [11:35:18]Sock 9.Thread stoped [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:11]accept exits with 10 [11:42:11]New connection [11:42:11]New thread 3067178340 created [11:42:11]Thread 3067034980 joined [11:42:11]Waiting for new connection... [11:42:11] Sock 10.Parse request [11:42:11]Sock 10.Check first char [11:42:11]Sock 10.First char is OK [11:42:11]request: POST /json_proto HTTP/1.0 [11:42:11]Method: POST [11:42:11]URL: /json_proto [11:42:11]Method is POST - this is cgi request [11:42:11]url: /json_proto [11:42:11]query_string will be loaded in cgi processing [11:42:11]execute_cgi json_proto POST (null) [11:42:11]execute_cgi path=json_proto method=POST [11:42:11]POST find Content-Length [11:42:11]Host: 172.17.53.195:8080 [11:42:11]Content-Length: 682 [11:42:11]Content-Type: application/json [11:42:11] [11:42:11]POST finish read [11:42:11]Found Content-Length = 682 [11:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:11]execute_script... [11:42: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)221261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:11]POST & json_proto [11:42:11]process_json_proto [11:42:11]json parsed OK: [11:42:11]protocol is kg_v1.0 [11:42:11]action value=close_receipt [11:42:11]process_action close_receipt [11:42:11]cmd_close_receipt [11:42:11]MH_GetDate [11:42:11]Write to MH i2c: F0 00 00 0C 0A 05 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 09 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 09 00 0C 0A 00 13 E1 18 67 21 48 4A 65 99 [11:42:11]GetLastDocTimeStamp 1729683314 [11:42:11]current date 1729683731 [11:42:11]FM_GetShiftState [11:42:11]SAM_PROTO_GetShiftState [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 01 00 [11:42:11]Write to MH i2c: E2 08 00 0D 0A 80 13 01 00 00 00 00 00 94 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 0D 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5F [11:42:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetShiftState done [11:42:11]FM_GetShiftState done [11:42:11]opened in 1729643772 [11:42:11]opened+sec_in_day 1729730172 [11:42:11]quantity*price = 100015 [11:42:11]sum+1 = 100017 [11:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 94 23.10.2024 11:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166679 ФПД: 72065363681647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166679&fm=72065363681647&tin=02508201610067®Number=0000000000091764&sum=100000 [11:42:12]StoreToDocumentArchive [11:42:12]shift 537 fd 166679 [11:42:12]save to /storage/0537/doc_00166679 [11:42:12]save last doc name /storage/0537/doc_00166679 to /storage/kkm_last_doc_name [11:42:12]save OK [11:42:12]Clear old archive folders... [11:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:12]tlvbuf is 01FA5650 [11:42:12]SAM_PROTO_ClearQueue [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 09 00 00 [11:42:12]Write to MH i2c: E2 08 00 1A 0A 80 09 00 00 00 00 00 00 96 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:12]OFD Sender: No OFD packet to send [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [11:42:12]RAPDU: 90 00 [11:42:12]wFMCommunicate OK [11:42:12]SAM_PROTO_ClearQueue done [11:42:12]KKMCreateOFDPacket [11:42:12]OFDProtocolAddRootSTLVToBuf [11:42:12]FM_MakeSignedData [11:42:12]FM_MakeSignedData [11:42:12]SAM_PROTO_SignData [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 0D 01 02 [11:42:12]Write to MH i2c: E2 08 00 1B 0A 80 0D 01 02 00 00 00 00 9E [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [11:42:12]RAPDU: 90 00 [11:42:12]wFMCommunicate OK [11:42:12]wFMCommunicate request_size=255 [11:42:12]MH_SAM_APDU [11:42: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 13 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8B 02 00 35 04 06 00 41 [11:42:12]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 13 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8B 02 00 35 04 06 00 41 00 00 FF [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [11:42:12]RAPDU: 90 00 [11:42:12]wFMCommunicate OK [11:42:12]wFMCommunicate request_size=10 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 0D 02 02 05 8B 06 67 21 6F [11:42:12]Write to MH i2c: E2 0D 00 1D 0A 80 0D 02 02 05 00 8B 06 67 21 6F 00 00 33 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [11:42:12]RAPDU: 90 00 [11:42:12]wFMCommunicate OK [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 0D 03 02 [11:42:12]Write to MH i2c: E2 08 00 1E 0A 80 0D 03 02 00 00 00 00 A3 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 0B 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 0B 00 1E 0A 00 11 DD 8B 9A 2B 64 5A 12 90 00 B2 [11:42:12]RAPDU: 11 DD 8B 9A 2B 64 5A 12 90 00 [11:42:12]wFMCommunicate OK [11:42:12]SAM_PROTO_SignData done [11:42:12]FM_MakeSignedData done [11:42:12]CreateOFDProtocolMessage [11:42:12]wFMCommunicate request_size=4 [11:42:12]MH_SAM_APDU [11:42:12]CAPDU: 80 11 00 00 [11:42:12]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:12]Read from MH i2c: E2 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 17 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [11:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:42:12]wFMCommunicate OK [11:42:12]CreateOFDProtocolMessage done [11:42:12]OFDSenderStorePacket 166679 [11:42:12]StoreOFDPacket docnum=166679 [11:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D CD 07 01 80 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 13 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8B 02 00 35 04 06 00 41 8B 06 67 21 6F 11 DD 8B 9A 2B 64 5A 12 [11:42:12]CheckFolder [11:42:12]dirname=/storage/ofd_packets [11:42:12]CheckFolder done [11:42:12]ProducePacketName [11:42:12]name=ofd_packets/00166679 [11:42:12]NVStorageSaveData ofd_packets/00166679 [11:42:12]File name is /storage/ofd_packets/00166679 [11:42:12]Write 301 bytes [11:42:12]NVStorageSaveData done [11:42:12]OFDSenderStorePacket done [11:42:12]KKMCreateOFDPacket done [11:42:12]NVStorageSaveData kkm_last_timestamp [11:42:12]File name is /storage/kkm_last_timestamp [11:42:12]Write 4 bytes [11:42:12]NVStorageSaveData done [11:42:12]ExternCall_PrintAddStr [11:42:12]wPrintStart [11:42:12]Write to MH i2c: 01 00 00 20 0A 2A [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [11:42:12]RasterBufferAndPrint [11:42:12]line Счет N : (1)221261 [11:42:12]line ИНН: 02508201610067 [11:42:12]line Контрольно-Кассовый Чек [11:42:12]line ПРОДАЖА [11:42:12]line ТРК (МРК, ГНК) : 13 [11:42:12]line Товар: 2710124130 [11:42:12]line Аи-92-К-5 [11:42:12]line 14.950 * 66.90 [11:42:12]line = 1000.16 [11:42:12]line НДС 12% НСП 1% [11:42:12]line > о реализуемом товаре [11:42:12]line ОКРУГЛЕНИЕ: -0.16 [11:42:12]line ИТОГО: 1000.00 [11:42:12]line Внесено: 1000.00 [11:42:12]line СДАЧА: 0.00 [11:42:12]line НСП 1% : 8.85 [11:42:12]line НДС 12% : 106.21 [11:42:12]line Наличными: 1000.00 [11:42:12]line Безнал.: 0.00 [11:42:12]line Место: АЗС № 161 "Партнер Нефть" [11:42:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:42:12]line СНО: Общий режим [11:42:12]line Чек 94 23.10.2024 11:42 [11:42:12]line Смена: 537 ФФД: 1.0 [11:42:12]line ЗНМ: 0300000104 [11:42:12]line РНМ: 0000000000091764 [11:42:12]line Версия ККМ: 001 [11:42:12]line ФМ: 0000000000871759 [11:42:12]line ФД: 166679 [11:42:12]line ФПД: 72065363681647 [11:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166679&fm=72065363681647&tin=02508201610067®Number=0000000000091764&sum=100000 [11:42:13]OFD Sender: Processing packet 166679 [packets to send 48, broken 47] [11:42:13]ProducePacketName [11:42:13]name=ofd_packets/00166679 [11:42:13]OFD Sender: To server: pG, [11:42:13]CommunicateWithHost lk.salyk.kg:30040 [11:42:13]ConnectInit lk.salyk.kg [11:42:13]written 0, free lines is 4095 [11:42:13]Connected sock=9 [11:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D CD 07 01 80 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 13 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8B 02 00 35 04 06 00 41 8B 06 67 21 6F 11 DD 8B 9A 2B 64 5A 12 [11:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B1 30 47 00 69 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8B 02 00 F4 03 04 00 7B 87 18 67 B6 04 01 00 00 87 97 84 A2 B4 89 A8 FA [11:42:13]CommunicateWithHost err = 0 [11:42:13]CheckOFDResponse [11:42:13]1017 (14) - 77093643461234 [11:42:13]1041 (16) - 0000000000871759 [11:42:13]1040 (4) - 166679 [11:42:13]1012 (4) - 23.10.2024 05:19 [11:42:13]1206 (1) - 0 [11:42:13]OFD Sender: Remove packet 166679 [11:42:13]ProducePacketName [11:42:13]name=ofd_packets/00166679 [11:42:13]NVStorageDeleteData [11:42:13]Write to MH i2c: 01 00 00 4B 0A 55 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 B1 0C 19 [11:42:13]RasterBufferAndPrint [11:42:13]line [11:42:13]line [11:42:13]line [11:42:13]line [11:42:13]line [11:42:13]written 0, free lines is 3254 [11:42:13]MH_Cut [11:42:13]Write to MH i2c: D1 01 00 52 0A 01 2E [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: D1 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: D1 01 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: D1 01 00 52 0A 00 2D [11:42:13]Write to MH i2c: 01 00 00 53 0A 5D [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]OFD Sender: No OFD packet to send [11:42:14]*** Cut start [11:42:14]*** Partial cut [11:42:14]*** CUTSNS_PIN = 1 [11:42:14]*** CUTSNS_PIN = 0 [11:42:14]*** Brake cut motor [11:42:15]Read from MH i2c: 01 [11:42:15]MH_I2C_Read... [11:42:15]*** Stop cut motor [11:42:15]*** Cut end [11:42:15]Read from MH i2c: 01 07 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 FF 0F 72 [11:42:15]process_action close_receipt done [11:42:15]requested_data is exist [11:42:15]produce_requested_data [11:42:15]requested_item fm.sn is exist - process it [11:42:15]wFMCommunicate request_size=4 [11:42:15]MH_SAM_APDU [11:42:15]CAPDU: 80 11 00 00 [11:42:15]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:15]Read from MH i2c: E2 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 17 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [11:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:42:15]wFMCommunicate OK [11:42:15]requested_item fd.num is exist - process it [11:42:15]SAM_PROTO_GetFieldsCounters [11:42:15]wFMCommunicate request_size=4 [11:42:15]MH_SAM_APDU [11:42:15]CAPDU: 80 13 00 00 [11:42:15]Write to MH i2c: E2 08 00 55 0A 80 13 00 00 00 00 00 00 DB [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:15]Read from MH i2c: E2 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 62 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 62 00 55 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:15]wFMCommunicate OK [11:42:15]SAM_PROTO_GetFieldsCounters done [11:42:15]requested_item shift.num is exist - process it [11:42:15]requested_item shift.opened is exist - process it [11:42:15]req_shift_opened [11:42:15]FM_GetShiftState [11:42:15]SAM_PROTO_GetShiftState [11:42:15]wFMCommunicate request_size=4 [11:42:15]MH_SAM_APDU [11:42:15]CAPDU: 80 13 01 00 [11:42:15]Write to MH i2c: E2 08 00 56 0A 80 13 01 00 00 00 00 00 DD [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:15]Read from MH i2c: E2 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 0E 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 0E 00 56 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [11:42:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:42:15]wFMCommunicate OK [11:42:15]SAM_PROTO_GetShiftState done [11:42:15]FM_GetShiftState done [11:42:15]req_shift_opened done [11:42:15]requested_item shift.open_date is exist - process it [11:42:15]req_shift_open_date [11:42:15]req_shift_open_date done [11:42:15]produce_requested_data done [11:42:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166679,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:42:15]process_action_free close_receipt [11:42:15]json_value_free [11:42:15]json_value_free done [11:42:15]process_json_proto returns [11:42:15]Send response to host [11:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166679,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:42:15]free response buf [11:42:15]execute_script done [11:42:15]execute_script returns [11:42:15]free content buf [11:42:15]Sock 10.Close socket [11:42:15]Sock 10.Thread stoped [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:39]accept exits with 8 [11:43:39]New connection [11:43:39]New thread 3067034980 created [11:43:39]Thread 3067178340 joined [11:43:39]Waiting for new connection... [11:43:39] Sock 8.Parse request [11:43:39]Sock 8.Check first char [11:43:39]Sock 8.First char is OK [11:43:39]request: POST /json_proto HTTP/1.0 [11:43:39]Method: POST [11:43:39]URL: /json_proto [11:43:39]Method is POST - this is cgi request [11:43:39]url: /json_proto [11:43:39]query_string will be loaded in cgi processing [11:43:39]execute_cgi json_proto POST (null) [11:43:39]execute_cgi path=json_proto method=POST [11:43:39]POST find Content-Length [11:43:39]Host: 172.17.53.195:8080 [11:43:39]Content-Length: 682 [11:43:39]Content-Type: application/json [11:43:39] [11:43:39]POST finish read [11:43:39]Found Content-Length = 682 [11:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:39]execute_script... [11:43: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)221262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:39]POST & json_proto [11:43:39]process_json_proto [11:43:39]json parsed OK: [11:43:39]protocol is kg_v1.0 [11:43:39]action value=close_receipt [11:43:39]process_action close_receipt [11:43:39]cmd_close_receipt [11:43:39]MH_GetDate [11:43:39]Write to MH i2c: F0 00 00 57 0A 50 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: F0 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: F0 09 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: F0 09 00 57 0A 00 6C E1 18 67 21 48 4A 65 3D [11:43:39]GetLastDocTimeStamp 1729683731 [11:43:39]current date 1729683820 [11:43:39]FM_GetShiftState [11:43:39]SAM_PROTO_GetShiftState [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 13 01 00 [11:43:39]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AA [11:43:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_GetShiftState done [11:43:39]FM_GetShiftState done [11:43:39]opened in 1729643772 [11:43:39]opened+sec_in_day 1729730172 [11:43:39]quantity*price = 100015 [11:43:39]sum+1 = 100017 [11:43: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 95 23.10.2024 11:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166680 ФПД: 98339366898685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166680&fm=98339366898685&tin=02508201610067®Number=0000000000091764&sum=100000 [11:43:40]StoreToDocumentArchive [11:43:40]shift 537 fd 166680 [11:43:40]save to /storage/0537/doc_00166680 [11:43:40]save last doc name /storage/0537/doc_00166680 to /storage/kkm_last_doc_name [11:43:40]save OK [11:43:40]Clear old archive folders... [11:43:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:40]tlvbuf is 01FA21D0 [11:43:40]SAM_PROTO_ClearQueue [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 09 00 00 [11:43:40]Write to MH i2c: E2 08 00 65 0A 80 09 00 00 00 00 00 00 E1 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 03 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [11:43:40]RAPDU: 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_ClearQueue done [11:43:40]KKMCreateOFDPacket [11:43:40]OFDProtocolAddRootSTLVToBuf [11:43:40]FM_MakeSignedData [11:43:40]FM_MakeSignedData [11:43:40]SAM_PROTO_SignData [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 0D 01 02 [11:43:40]Write to MH i2c: E2 08 00 66 0A 80 0D 01 02 00 00 00 00 E9 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 03 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [11:43:40]RAPDU: 90 00 [11:43:40]wFMCommunicate OK [11:43:40]wFMCommunicate request_size=255 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8B 02 00 35 04 06 00 59 [11:43:40]Write to MH i2c: E2 02 01 67 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8B 02 00 35 04 06 00 59 00 00 BD [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 03 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [11:43:41]RAPDU: 90 00 [11:43:41]wFMCommunicate OK [11:43:41]wFMCommunicate request_size=10 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 0D 02 02 05 70 6B 08 0B FD [11:43:41]Write to MH i2c: E2 0D 00 68 0A 80 0D 02 02 05 00 70 6B 08 0B FD 00 00 E1 [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 03 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [11:43:41]RAPDU: 90 00 [11:43:41]wFMCommunicate OK [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 0D 03 02 [11:43:41]Write to MH i2c: E2 08 00 69 0A 80 0D 03 02 00 00 00 00 EE [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0B 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0B 00 69 0A 00 D3 D3 D9 C0 A2 26 D9 94 90 00 63 [11:43:41]RAPDU: D3 D3 D9 C0 A2 26 D9 94 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_SignData done [11:43:41]FM_MakeSignedData done [11:43:41]CreateOFDProtocolMessage [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 11 00 00 [11:43:41]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 17 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [11:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:41]wFMCommunicate OK [11:43:41]CreateOFDProtocolMessage done [11:43:41]OFDSenderStorePacket 166680 [11:43:41]StoreOFDPacket docnum=166680 [11:43:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 1B 07 01 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8B 02 00 35 04 06 00 59 70 6B 08 0B FD D3 D3 D9 C0 A2 26 D9 94 [11:43:41]CheckFolder [11:43:41]dirname=/storage/ofd_packets [11:43:41]CheckFolder done [11:43:41]ProducePacketName [11:43:41]name=ofd_packets/00166680 [11:43:41]NVStorageSaveData ofd_packets/00166680 [11:43:41]File name is /storage/ofd_packets/00166680 [11:43:41]Write 301 bytes [11:43:41]NVStorageSaveData done [11:43:41]OFDSenderStorePacket done [11:43:41]KKMCreateOFDPacket done [11:43:41]NVStorageSaveData kkm_last_timestamp [11:43:41]File name is /storage/kkm_last_timestamp [11:43:41]Write 4 bytes [11:43:41]NVStorageSaveData done [11:43:41]ExternCall_PrintAddStr [11:43:41]wPrintStart [11:43:41]Write to MH i2c: 01 00 00 6B 0A 75 [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: 01 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: 01 07 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [11:43:41]RasterBufferAndPrint [11:43:41]line Счет N : (1)221262 [11:43:41]line ИНН: 02508201610067 [11:43:41]line Контрольно-Кассовый Чек [11:43:41]line ПРОДАЖА [11:43:41]line ТРК (МРК, ГНК) : 33 [11:43:41]line Товар: 2710124130 [11:43:41]line Аи-92-К-5 [11:43:41]line 14.950 * 66.90 [11:43:41]line = 1000.16 [11:43:41]line НДС 12% НСП 1% [11:43:41]line > о реализуемом товаре [11:43:41]line ОКРУГЛЕНИЕ: -0.16 [11:43:41]line ИТОГО: 1000.00 [11:43:41]line Внесено: 1000.00 [11:43:41]line СДАЧА: 0.00 [11:43:41]line НСП 1% : 8.85 [11:43:41]line НДС 12% : 106.21 [11:43:41]line Наличными: 1000.00 [11:43:41]line Безнал.: 0.00 [11:43:41]line Место: АЗС № 161 "Партнер Нефть" [11:43:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:43:41]line СНО: Общий режим [11:43:41]line Чек 95 23.10.2024 11:43 [11:43:41]line Смена: 537 ФФД: 1.0 [11:43:41]line ЗНМ: 0300000104 [11:43:41]line РНМ: 0000000000091764 [11:43:41]line Версия ККМ: 001 [11:43:41]line ФМ: 0000000000871759 [11:43:41]line ФД: 166680 [11:43:41]line ФПД: 98339366898685 [11:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166680&fm=98339366898685&tin=02508201610067®Number=0000000000091764&sum=100000 [11:43:41]OFD Sender: Processing packet 166680 [packets to send 48, broken 47] [11:43:41]ProducePacketName [11:43:41]name=ofd_packets/00166680 [11:43:41]OFD Sender: To server: pG, [11:43:41]CommunicateWithHost lk.salyk.kg:30040 [11:43:41]ConnectInit lk.salyk.kg [11:43:41]written 0, free lines is 4095 [11:43:41]Connected sock=10 [11:43:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 1B 07 01 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8B 02 00 35 04 06 00 59 70 6B 08 0B FD D3 D3 D9 C0 A2 26 D9 94 [11:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 74 47 00 A7 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8B 02 00 F4 03 04 00 D4 87 18 67 B6 04 01 00 00 01 12 93 FA 4F 53 B5 CA [11:43:41]CommunicateWithHost err = 0 [11:43:41]CheckOFDResponse [11:43:41]1017 (14) - 77093643461234 [11:43:41]1041 (16) - 0000000000871759 [11:43:41]1040 (4) - 166680 [11:43:41]1012 (4) - 23.10.2024 05:21 [11:43:41]1206 (1) - 0 [11:43:41]OFD Sender: Remove packet 166680 [11:43:41]ProducePacketName [11:43:41]name=ofd_packets/00166680 [11:43:41]NVStorageDeleteData [11:43:42]Write to MH i2c: 01 00 00 96 0A A0 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 07 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 C3 0C 76 [11:43:42]RasterBufferAndPrint [11:43:42]line [11:43:42]line [11:43:42]line [11:43:42]line [11:43:42]line [11:43:42]written 0, free lines is 3273 [11:43:42]MH_Cut [11:43:42]Write to MH i2c: D1 01 00 9D 0A 01 79 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: D1 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: D1 01 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: D1 01 00 9D 0A 00 78 [11:43:42]Write to MH i2c: 01 00 00 9E 0A A8 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]OFD Sender: No OFD packet to send [11:43:42]*** Cut start [11:43:42]*** Partial cut [11:43:42]*** CUTSNS_PIN = 1 [11:43:42]*** CUTSNS_PIN = 0 [11:43:43]*** Brake cut motor [11:43:43]Read from MH i2c: 01 [11:43:43]MH_I2C_Read... [11:43:43]*** Stop cut motor [11:43:43]*** Cut end [11:43:43]Read from MH i2c: 01 07 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [11:43:43]process_action close_receipt done [11:43:43]requested_data is exist [11:43:43]produce_requested_data [11:43:43]requested_item fm.sn is exist - process it [11:43:43]wFMCommunicate request_size=4 [11:43:43]MH_SAM_APDU [11:43:43]CAPDU: 80 11 00 00 [11:43:43]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:43]Read from MH i2c: E2 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 17 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [11:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:43]wFMCommunicate OK [11:43:43]requested_item fd.num is exist - process it [11:43:43]SAM_PROTO_GetFieldsCounters [11:43:43]wFMCommunicate request_size=4 [11:43:43]MH_SAM_APDU [11:43:43]CAPDU: 80 13 00 00 [11:43:43]Write to MH i2c: E2 08 00 A0 0A 80 13 00 00 00 00 00 00 26 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:43]Read from MH i2c: E2 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 62 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 62 00 A0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:43:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:43]wFMCommunicate OK [11:43:43]SAM_PROTO_GetFieldsCounters done [11:43:43]requested_item shift.num is exist - process it [11:43:43]requested_item shift.opened is exist - process it [11:43:43]req_shift_opened [11:43:43]FM_GetShiftState [11:43:43]SAM_PROTO_GetShiftState [11:43:43]wFMCommunicate request_size=4 [11:43:43]MH_SAM_APDU [11:43:43]CAPDU: 80 13 01 00 [11:43:43]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:43]Read from MH i2c: E2 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F3 [11:43:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:43:43]wFMCommunicate OK [11:43:43]SAM_PROTO_GetShiftState done [11:43:43]FM_GetShiftState done [11:43:43]req_shift_opened done [11:43:43]requested_item shift.open_date is exist - process it [11:43:43]req_shift_open_date [11:43:43]req_shift_open_date done [11:43:43]produce_requested_data done [11:43:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166680,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:43:43]process_action_free close_receipt [11:43:43]json_value_free [11:43:43]json_value_free done [11:43:43]process_json_proto returns [11:43:43]Send response to host [11:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166680,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:43:43]free response buf [11:43:43]execute_script done [11:43:43]execute_script returns [11:43:43]free content buf [11:43:43]Sock 8.Close socket [11:43:43]Sock 8.Thread stoped [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:10]accept exits with 9 [11:44:10]New connection [11:44:10]New thread 3067178340 created [11:44:10]Thread 3067034980 joined [11:44:10]Waiting for new connection... [11:44:10] Sock 9.Parse request [11:44:10]Sock 9.Check first char [11:44:10]Sock 9.First char is OK [11:44:10]request: POST /json_proto HTTP/1.0 [11:44:10]Method: POST [11:44:10]URL: /json_proto [11:44:10]Method is POST - this is cgi request [11:44:10]url: /json_proto [11:44:10]query_string will be loaded in cgi processing [11:44:10]execute_cgi json_proto POST (null) [11:44:10]execute_cgi path=json_proto method=POST [11:44:10]POST find Content-Length [11:44:10]Host: 172.17.53.195:8080 [11:44:10]Content-Length: 677 [11:44:10]Content-Type: application/json [11:44:10] [11:44:10]POST finish read [11:44:10]Found Content-Length = 677 [11:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:10]execute_script... [11:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:10]POST & json_proto [11:44:10]process_json_proto [11:44:10]json parsed OK: [11:44:10]protocol is kg_v1.0 [11:44:10]action value=close_receipt [11:44:10]process_action close_receipt [11:44:10]cmd_close_receipt [11:44:10]MH_GetDate [11:44:10]Write to MH i2c: F0 00 00 A2 0A 9B [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 09 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 09 00 A2 0A 00 8B E1 18 67 21 48 4A 65 A7 [11:44:10]GetLastDocTimeStamp 1729683820 [11:44:10]current date 1729683851 [11:44:10]FM_GetShiftState [11:44:10]SAM_PROTO_GetShiftState [11:44:10]wFMCommunicate request_size=4 [11:44:10]MH_SAM_APDU [11:44:10]CAPDU: 80 13 01 00 [11:44:10]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:10]Read from MH i2c: E2 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: E2 0E 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F5 [11:44:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:44:10]wFMCommunicate OK [11:44:10]SAM_PROTO_GetShiftState done [11:44:10]FM_GetShiftState done [11:44:10]opened in 1729643772 [11:44:10]opened+sec_in_day 1729730172 [11:44:10]quantity*price = 29971 [11:44:10]sum+1 = 29972 [11:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 96 23.10.2024 11:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166681 ФПД: 262076632491700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166681&fm=262076632491700&tin=02508201610067®Number=0000000000091764&sum=29900 [11:44:11]StoreToDocumentArchive [11:44:11]shift 537 fd 166681 [11:44:11]save to /storage/0537/doc_00166681 [11:44:11]save last doc name /storage/0537/doc_00166681 to /storage/kkm_last_doc_name [11:44:11]save OK [11:44:11]Clear old archive folders... [11:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:11]tlvbuf is 01F643C0 [11:44:11]SAM_PROTO_ClearQueue [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 09 00 00 [11:44:11]Write to MH i2c: E2 08 00 B0 0A 80 09 00 00 00 00 00 00 2C [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:11]Read from MH i2c: E2 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 03 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [11:44:11]RAPDU: 90 00 [11:44:11]wFMCommunicate OK [11:44:11]SAM_PROTO_ClearQueue done [11:44:11]KKMCreateOFDPacket [11:44:11]OFDProtocolAddRootSTLVToBuf [11:44:11]FM_MakeSignedData [11:44:11]FM_MakeSignedData [11:44:11]SAM_PROTO_SignData [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 0D 01 02 [11:44:11]Write to MH i2c: E2 08 00 B1 0A 80 0D 01 02 00 00 00 00 34 [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:11]Read from MH i2c: E2 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 03 00 [11:44:11]MH_I2C_Read... [11:44:11]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [11:44:11]RAPDU: 90 00 [11:44:11]wFMCommunicate OK [11:44:11]wFMCommunicate request_size=255 [11:44:11]MH_SAM_APDU [11:44: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 8B E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8B 02 00 35 04 06 00 EE [11:44:11]Write to MH i2c: E2 02 01 B2 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 8B E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8B 02 00 35 04 06 00 EE 00 00 99 [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]wFMCommunicate request_size=10 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 02 02 05 5B 78 95 66 B4 [11:44:12]Write to MH i2c: E2 0D 00 B3 0A 80 0D 02 02 05 00 5B 78 95 66 B4 00 00 C3 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 03 02 [11:44:12]Write to MH i2c: E2 08 00 B4 0A 80 0D 03 02 00 00 00 00 39 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0B 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0B 00 B4 0A 00 EA 39 71 4D A8 CB 11 B9 90 00 58 [11:44:12]RAPDU: EA 39 71 4D A8 CB 11 B9 90 00 [11:44:12]wFMCommunicate OK [11:44:12]SAM_PROTO_SignData done [11:44:12]FM_MakeSignedData done [11:44:12]CreateOFDProtocolMessage [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 11 00 00 [11:44:12]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 17 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [11:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:12]wFMCommunicate OK [11:44:12]CreateOFDProtocolMessage done [11:44:12]OFDSenderStorePacket 166681 [11:44:12]StoreOFDPacket docnum=166681 [11:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 F0 07 01 2B 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 8B E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8B 02 00 35 04 06 00 EE 5B 78 95 66 B4 EA 39 71 4D A8 CB 11 B9 [11:44:12]CheckFolder [11:44:12]dirname=/storage/ofd_packets [11:44:12]CheckFolder done [11:44:12]ProducePacketName [11:44:12]name=ofd_packets/00166681 [11:44:12]NVStorageSaveData ofd_packets/00166681 [11:44:12]File name is /storage/ofd_packets/00166681 [11:44:12]Write 301 bytes [11:44:12]NVStorageSaveData done [11:44:12]OFDSenderStorePacket done [11:44:12]KKMCreateOFDPacket done [11:44:12]NVStorageSaveData kkm_last_timestamp [11:44:12]File name is /storage/kkm_last_timestamp [11:44:12]Write 4 bytes [11:44:12]NVStorageSaveData done [11:44:12]ExternCall_PrintAddStr [11:44:12]wPrintStart [11:44:12]Write to MH i2c: 01 00 00 B6 0A C0 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 07 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [11:44:12]RasterBufferAndPrint [11:44:12]line Счет N : (1)221263 [11:44:12]line ИНН: 02508201610067 [11:44:12]line Контрольно-Кассовый Чек [11:44:12]line ПРОДАЖА [11:44:12]line ТРК (МРК, ГНК) : 13 [11:44:12]line Товар: 2710124130 [11:44:12]line Аи-92-К-5 [11:44:12]line 4.480 * 66.90 [11:44:12]line = 299.71 [11:44:12]line НДС 12% НСП 1% [11:44:12]line > о реализуемом товаре [11:44:12]line ОКРУГЛЕНИЕ: -0.71 [11:44:12]line ИТОГО: 299.00 [11:44:12]line Внесено: 300.00 [11:44:12]line СДАЧА: 1.00 [11:44:12]line НСП 1% : 2.65 [11:44:12]line НДС 12% : 31.83 [11:44:12]line Наличными: 299.00 [11:44:12]line Безнал.: 0.00 [11:44:12]line Место: АЗС № 161 "Партнер Нефть" [11:44:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:44:12]line СНО: Общий режим [11:44:12]line Чек 96 23.10.2024 11:44 [11:44:12]line Смена: 537 ФФД: 1.0 [11:44:12]line ЗНМ: 0300000104 [11:44:12]line РНМ: 0000000000091764 [11:44:12]line Версия ККМ: 001 [11:44:12]line ФМ: 0000000000871759 [11:44:12]line ФД: 166681 [11:44:12]line ФПД: 262076632491700 [11:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166681&fm=262076632491700&tin=02508201610067®Number=0000000000091764&sum=29900 [11:44:12]OFD Sender: Processing packet 166681 [packets to send 48, broken 47] [11:44:12]ProducePacketName [11:44:12]name=ofd_packets/00166681 [11:44:12]OFD Sender: To server: pG, [11:44:12]CommunicateWithHost lk.salyk.kg:30040 [11:44:12]ConnectInit lk.salyk.kg [11:44:12]written 0, free lines is 4095 [11:44:12]Connected sock=10 [11:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 F0 07 01 2B 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 8B E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8B 02 00 35 04 06 00 EE 5B 78 95 66 B4 EA 39 71 4D A8 CB 11 B9 [11:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4D 8E 47 00 2D 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8B 02 00 F4 03 04 00 F3 87 18 67 B6 04 01 00 00 AF 6B 75 F8 3B 99 55 F4 [11:44:12]CommunicateWithHost err = 0 [11:44:12]CheckOFDResponse [11:44:12]1017 (14) - 77093643461234 [11:44:12]1041 (16) - 0000000000871759 [11:44:12]1040 (4) - 166681 [11:44:12]1012 (4) - 23.10.2024 05:21 [11:44:12]1206 (1) - 0 [11:44:12]OFD Sender: Remove packet 166681 [11:44:12]ProducePacketName [11:44:12]name=ofd_packets/00166681 [11:44:12]NVStorageDeleteData [11:44:13]Write to MH i2c: 01 00 00 E1 0A EB [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 07 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 A5 0C A3 [11:44:13]RasterBufferAndPrint [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]written 0, free lines is 3242 [11:44:13]MH_Cut [11:44:13]Write to MH i2c: D1 01 00 E8 0A 01 C4 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 01 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 01 00 E8 0A 00 C3 [11:44:13]Write to MH i2c: 01 00 00 E9 0A F3 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]OFD Sender: No OFD packet to send [11:44:13]*** Cut start [11:44:13]*** Partial cut [11:44:13]*** CUTSNS_PIN = 1 [11:44:13]*** CUTSNS_PIN = 0 [11:44:14]*** Brake cut motor [11:44:14]Read from MH i2c: 01 [11:44:14]MH_I2C_Read... [11:44:14]*** Stop cut motor [11:44:14]*** Cut end [11:44:14]Read from MH i2c: 01 07 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [11:44:14]process_action close_receipt done [11:44:14]requested_data is exist [11:44:14]produce_requested_data [11:44:14]requested_item fm.sn is exist - process it [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 11 00 00 [11:44:14]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [11:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:14]wFMCommunicate OK [11:44:14]requested_item fd.num is exist - process it [11:44:14]SAM_PROTO_GetFieldsCounters [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 13 00 00 [11:44:14]Write to MH i2c: E2 08 00 EB 0A 80 13 00 00 00 00 00 00 71 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 62 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 62 00 EB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_GetFieldsCounters done [11:44:14]requested_item shift.num is exist - process it [11:44:14]requested_item shift.opened is exist - process it [11:44:14]req_shift_opened [11:44:14]FM_GetShiftState [11:44:14]SAM_PROTO_GetShiftState [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 13 01 00 [11:44:14]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3E [11:44:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_GetShiftState done [11:44:14]FM_GetShiftState done [11:44:14]req_shift_opened done [11:44:14]requested_item shift.open_date is exist - process it [11:44:14]req_shift_open_date [11:44:14]req_shift_open_date done [11:44:14]produce_requested_data done [11:44:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166681,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:44:14]process_action_free close_receipt [11:44:14]json_value_free [11:44:14]json_value_free done [11:44:14]process_json_proto returns [11:44:14]Send response to host [11:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166681,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:44:14]free response buf [11:44:14]execute_script done [11:44:14]execute_script returns [11:44:14]free content buf [11:44:14]Sock 9.Close socket [11:44:14]Sock 9.Thread stoped [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:50]accept exits with 8 [11:44:50]New connection [11:44:50]New thread 3067034980 created [11:44:50]Thread 3067178340 joined [11:44:50]Waiting for new connection... [11:44:50] Sock 8.Parse request [11:44:50]Sock 8.Check first char [11:44:50]Sock 8.First char is OK [11:44:50]request: POST /json_proto HTTP/1.0 [11:44:50]Method: POST [11:44:50]URL: /json_proto [11:44:50]Method is POST - this is cgi request [11:44:50]url: /json_proto [11:44:50]query_string will be loaded in cgi processing [11:44:50]execute_cgi json_proto POST (null) [11:44:50]execute_cgi path=json_proto method=POST [11:44:50]POST find Content-Length [11:44:50]Host: 172.17.53.195:8080 [11:44:50]Content-Length: 682 [11:44:50]Content-Type: application/json [11:44:50] [11:44:50]POST finish read [11:44:50]Found Content-Length = 682 [11:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:50]execute_script... [11:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:50]POST & json_proto [11:44:50]process_json_proto [11:44:50]json parsed OK: [11:44:50]protocol is kg_v1.0 [11:44:50]action value=close_receipt [11:44:50]process_action close_receipt [11:44:50]cmd_close_receipt [11:44:50]MH_GetDate [11:44:50]Write to MH i2c: F0 00 00 ED 0A E6 [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: F0 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: F0 09 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: F0 09 00 ED 0A 00 B3 E1 18 67 21 48 4A 65 1A [11:44:50]GetLastDocTimeStamp 1729683851 [11:44:50]current date 1729683891 [11:44:50]FM_GetShiftState [11:44:50]SAM_PROTO_GetShiftState [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 13 01 00 [11:44:50]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:50]Read from MH i2c: E2 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 0E 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 40 [11:44:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:44:50]wFMCommunicate OK [11:44:50]SAM_PROTO_GetShiftState done [11:44:50]FM_GetShiftState done [11:44:50]opened in 1729643772 [11:44:50]opened+sec_in_day 1729730172 [11:44:50]quantity*price = 200031 [11:44:50]sum+1 = 200032 [11:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 97 23.10.2024 11:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166682 ФПД: 196403565542895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166682&fm=196403565542895&tin=02508201610067®Number=0000000000091764&sum=200000 [11:44:51]StoreToDocumentArchive [11:44:51]shift 537 fd 166682 [11:44:51]save to /storage/0537/doc_00166682 [11:44:51]save last doc name /storage/0537/doc_00166682 to /storage/kkm_last_doc_name [11:44:51]save OK [11:44:51]Clear old archive folders... [11:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:51]tlvbuf is 01FCBA70 [11:44:51]SAM_PROTO_ClearQueue [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 09 00 00 [11:44:51]Write to MH i2c: E2 08 00 FB 0A 80 09 00 00 00 00 00 00 77 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]SAM_PROTO_ClearQueue done [11:44:51]KKMCreateOFDPacket [11:44:51]OFDProtocolAddRootSTLVToBuf [11:44:51]FM_MakeSignedData [11:44:51]FM_MakeSignedData [11:44:51]SAM_PROTO_SignData [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 0D 01 02 [11:44:51]Write to MH i2c: E2 08 00 FC 0A 80 0D 01 02 00 00 00 00 7F [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]wFMCommunicate request_size=255 [11:44:51]MH_SAM_APDU [11:44: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8B 02 00 35 04 06 00 B2 [11:44:51]Write to MH i2c: E2 02 01 FD 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8B 02 00 35 04 06 00 B2 00 00 3F [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 03 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [11:44:52]RAPDU: 90 00 [11:44:52]wFMCommunicate OK [11:44:52]wFMCommunicate request_size=10 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 0D 02 02 05 A0 C4 C1 BD EF [11:44:52]Write to MH i2c: E2 0D 00 FE 0A 80 0D 02 02 05 00 A0 C4 C1 BD EF 00 00 5D [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 03 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [11:44:52]RAPDU: 90 00 [11:44:52]wFMCommunicate OK [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 0D 03 02 [11:44:52]Write to MH i2c: E2 08 00 FF 0A 80 0D 03 02 00 00 00 00 84 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 0B 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 0B 00 FF 0A 00 B9 20 39 34 90 6C 44 F8 90 00 03 [11:44:52]RAPDU: B9 20 39 34 90 6C 44 F8 90 00 [11:44:52]wFMCommunicate OK [11:44:52]SAM_PROTO_SignData done [11:44:52]FM_MakeSignedData done [11:44:52]CreateOFDProtocolMessage [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 11 00 00 [11:44:52]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 17 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [11:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:52]wFMCommunicate OK [11:44:52]CreateOFDProtocolMessage done [11:44:52]OFDSenderStorePacket 166682 [11:44:52]StoreOFDPacket docnum=166682 [11:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 8B 07 01 B3 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8B 02 00 35 04 06 00 B2 A0 C4 C1 BD EF B9 20 39 34 90 6C 44 F8 [11:44:52]CheckFolder [11:44:52]dirname=/storage/ofd_packets [11:44:52]CheckFolder done [11:44:52]ProducePacketName [11:44:52]name=ofd_packets/00166682 [11:44:52]NVStorageSaveData ofd_packets/00166682 [11:44:52]File name is /storage/ofd_packets/00166682 [11:44:52]Write 301 bytes [11:44:52]NVStorageSaveData done [11:44:52]OFDSenderStorePacket done [11:44:52]KKMCreateOFDPacket done [11:44:52]NVStorageSaveData kkm_last_timestamp [11:44:52]File name is /storage/kkm_last_timestamp [11:44:52]Write 4 bytes [11:44:52]NVStorageSaveData done [11:44:52]ExternCall_PrintAddStr [11:44:52]wPrintStart [11:44:52]Write to MH i2c: 01 00 00 01 0B 0C [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 07 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 FF 0F 21 [11:44:52]RasterBufferAndPrint [11:44:52]line Счет N : (1)221264 [11:44:52]line ИНН: 02508201610067 [11:44:52]line Контрольно-Кассовый Чек [11:44:52]line ПРОДАЖА [11:44:52]line ТРК (МРК, ГНК) : 43 [11:44:52]line Товар: 2710124130 [11:44:52]line Аи-92-К-5 [11:44:52]line 29.900 * 66.90 [11:44:52]line = 2000.31 [11:44:52]line НДС 12% НСП 1% [11:44:52]line > о реализуемом товаре [11:44:52]line ОКРУГЛЕНИЕ: -0.31 [11:44:52]line ИТОГО: 2000.00 [11:44:52]line Внесено: 2000.00 [11:44:52]line СДАЧА: 0.00 [11:44:52]line НСП 1% : 17.70 [11:44:52]line НДС 12% : 212.42 [11:44:52]line Наличными: 2000.00 [11:44:52]line Безнал.: 0.00 [11:44:52]line Место: АЗС № 161 "Партнер Нефть" [11:44:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:44:52]line СНО: Общий режим [11:44:52]line Чек 97 23.10.2024 11:44 [11:44:52]line Смена: 537 ФФД: 1.0 [11:44:52]line ЗНМ: 0300000104 [11:44:52]line РНМ: 0000000000091764 [11:44:52]line Версия ККМ: 001 [11:44:52]line ФМ: 0000000000871759 [11:44:52]line ФД: 166682 [11:44:52]line ФПД: 196403565542895 [11:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166682&fm=196403565542895&tin=02508201610067®Number=0000000000091764&sum=200000 [11:44:52]OFD Sender: Processing packet 166682 [packets to send 48, broken 47] [11:44:52]ProducePacketName [11:44:52]name=ofd_packets/00166682 [11:44:52]OFD Sender: To server: pG, [11:44:52]CommunicateWithHost lk.salyk.kg:30040 [11:44:52]ConnectInit lk.salyk.kg [11:44:52]written 0, free lines is 4095 [11:44:52]Connected sock=10 [11:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 8B 07 01 B3 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8B 02 00 35 04 06 00 B2 A0 C4 C1 BD EF B9 20 39 34 90 6C 44 F8 [11:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 70 47 00 CC 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8B 02 00 F4 03 04 00 1B 88 18 67 B6 04 01 00 00 5C B3 66 82 7C 6E FF 74 [11:44:53]CommunicateWithHost err = 0 [11:44:53]CheckOFDResponse [11:44:53]1017 (14) - 77093643461234 [11:44:53]1041 (16) - 0000000000871759 [11:44:53]1040 (4) - 166682 [11:44:53]1012 (4) - 23.10.2024 05:22 [11:44:53]1206 (1) - 0 [11:44:53]OFD Sender: Remove packet 166682 [11:44:53]ProducePacketName [11:44:53]name=ofd_packets/00166682 [11:44:53]NVStorageDeleteData [11:44:53]Write to MH i2c: 01 00 00 2C 0B 37 [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: 01 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: 01 07 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 BF 0C 09 [11:44:53]RasterBufferAndPrint [11:44:53]line [11:44:53]line [11:44:53]line [11:44:53]line [11:44:53]line [11:44:53]written 0, free lines is 3268 [11:44:53]MH_Cut [11:44:53]Write to MH i2c: D1 01 00 33 0B 01 10 [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: D1 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: D1 01 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: D1 01 00 33 0B 00 0F [11:44:53]Write to MH i2c: 01 00 00 34 0B 3F [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]OFD Sender: No OFD packet to send [11:44:54]*** Cut start [11:44:54]*** Partial cut [11:44:54]*** CUTSNS_PIN = 1 [11:44:54]*** CUTSNS_PIN = 0 [11:44:54]*** Brake cut motor [11:44:54]Read from MH i2c: 01 [11:44:54]MH_I2C_Read... [11:44:54]*** Stop cut motor [11:44:54]*** Cut end [11:44:54]Read from MH i2c: 01 07 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: 01 07 00 34 0B 00 00 00 00 00 FF 0F 54 [11:44:54]process_action close_receipt done [11:44:54]requested_data is exist [11:44:54]produce_requested_data [11:44:54]requested_item fm.sn is exist - process it [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 11 00 00 [11:44:54]Write to MH i2c: E2 08 00 35 0B 80 11 00 00 00 00 00 00 BA [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 17 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 17 00 35 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [11:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:54]wFMCommunicate OK [11:44:54]requested_item fd.num is exist - process it [11:44:54]SAM_PROTO_GetFieldsCounters [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 13 00 00 [11:44:54]Write to MH i2c: E2 08 00 36 0B 80 13 00 00 00 00 00 00 BD [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 62 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 62 00 36 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [11:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:54]wFMCommunicate OK [11:44:54]SAM_PROTO_GetFieldsCounters done [11:44:54]requested_item shift.num is exist - process it [11:44:54]requested_item shift.opened is exist - process it [11:44:54]req_shift_opened [11:44:54]FM_GetShiftState [11:44:54]SAM_PROTO_GetShiftState [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 13 01 00 [11:44:54]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 0E 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8A [11:44:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:44:54]wFMCommunicate OK [11:44:54]SAM_PROTO_GetShiftState done [11:44:54]FM_GetShiftState done [11:44:54]req_shift_opened done [11:44:54]requested_item shift.open_date is exist - process it [11:44:54]req_shift_open_date [11:44:54]req_shift_open_date done [11:44:54]produce_requested_data done [11:44:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166682,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:44:54]process_action_free close_receipt [11:44:54]json_value_free [11:44:54]json_value_free done [11:44:54]process_json_proto returns [11:44:54]Send response to host [11:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166682,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:44:54]free response buf [11:44:54]execute_script done [11:44:54]execute_script returns [11:44:54]free content buf [11:44:54]Sock 8.Close socket [11:44:54]Sock 8.Thread stoped [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:20]accept exits with 9 [11:45:20]New connection [11:45:20]New thread 3067178340 created [11:45:20]Thread 3067034980 joined [11:45:20]Waiting for new connection... [11:45:20] Sock 9.Parse request [11:45:20]Sock 9.Check first char [11:45:20]Sock 9.First char is OK [11:45:20]request: POST /json_proto HTTP/1.0 [11:45:20]Method: POST [11:45:20]URL: /json_proto [11:45:20]Method is POST - this is cgi request [11:45:20]url: /json_proto [11:45:20]query_string will be loaded in cgi processing [11:45:20]execute_cgi json_proto POST (null) [11:45:20]execute_cgi path=json_proto method=POST [11:45:20]POST find Content-Length [11:45:20]Host: 172.17.53.195:8080 [11:45:20]Content-Length: 668 [11:45:20]Content-Type: application/json [11:45:20] [11:45:20]POST finish read [11:45:20]Found Content-Length = 668 [11:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 0.020, "sum" : 1.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:20]execute_script... [11:45: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)221265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 0.020, "sum" : 1.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:20]POST & json_proto [11:45:20]process_json_proto [11:45:20]json parsed OK: [11:45:20]protocol is kg_v1.0 [11:45:20]action value=close_receipt [11:45:20]process_action close_receipt [11:45:20]cmd_close_receipt [11:45:20]MH_GetDate [11:45:20]Write to MH i2c: F0 00 00 38 0B 32 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: F0 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: F0 09 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: F0 09 00 38 0B 00 D1 E1 18 67 21 48 4A 65 84 [11:45:20]GetLastDocTimeStamp 1729683891 [11:45:20]current date 1729683921 [11:45:20]FM_GetShiftState [11:45:20]SAM_PROTO_GetShiftState [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 13 01 00 [11:45:20]Write to MH i2c: E2 08 00 39 0B 80 13 01 00 00 00 00 00 C1 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 0E 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 0E 00 39 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8C [11:45:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:45:20]wFMCommunicate OK [11:45:20]SAM_PROTO_GetShiftState done [11:45:20]FM_GetShiftState done [11:45:20]opened in 1729643772 [11:45:20]opened+sec_in_day 1729730172 [11:45:20]quantity*price = 152 [11:45:20]sum+1 = 153 [11:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1.00 Внесено: 800.00 СДАЧА: 799.00 НСП 1% : 0.01 НДС 12% : 0.16 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 98 23.10.2024 11:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166683 ФПД: 261593039662755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114521&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166683&fm=261593039662755&tin=02508201610067®Number=0000000000091764&sum=100 [11:45:21]StoreToDocumentArchive [11:45:21]shift 537 fd 166683 [11:45:21]save to /storage/0537/doc_00166683 [11:45:21]save last doc name /storage/0537/doc_00166683 to /storage/kkm_last_doc_name [11:45:21]save OK [11:45:21]Clear old archive folders... [11:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:21]tlvbuf is 01FB3CF0 [11:45:21]SAM_PROTO_ClearQueue [11:45:21]wFMCommunicate request_size=4 [11:45:21]MH_SAM_APDU [11:45:21]CAPDU: 80 09 00 00 [11:45:21]Write to MH i2c: E2 08 00 46 0B 80 09 00 00 00 00 00 00 C3 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:21]Read from MH i2c: E2 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 03 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [11:45:21]RAPDU: 90 00 [11:45:21]wFMCommunicate OK [11:45:21]SAM_PROTO_ClearQueue done [11:45:21]KKMCreateOFDPacket [11:45:21]OFDProtocolAddRootSTLVToBuf [11:45:21]FM_MakeSignedData [11:45:21]FM_MakeSignedData [11:45:21]SAM_PROTO_SignData [11:45:21]wFMCommunicate request_size=4 [11:45:21]MH_SAM_APDU [11:45:21]CAPDU: 80 0D 01 02 [11:45:21]Write to MH i2c: E2 08 00 47 0B 80 0D 01 02 00 00 00 00 CB [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:21]Read from MH i2c: E2 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 03 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [11:45:21]RAPDU: 90 00 [11:45:21]wFMCommunicate OK [11:45:21]wFMCommunicate request_size=255 [11:45:21]MH_SAM_APDU [11:45: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 14 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 98 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 00 00 00 00 00 07 04 06 00 64 00 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 D1 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8B 02 00 35 04 06 00 ED EA E0 34 [11:45:21]Write to MH i2c: E2 02 01 48 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 14 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 98 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 00 00 00 00 00 07 04 06 00 64 00 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 D1 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8B 02 00 35 04 06 00 ED EA E0 34 00 00 D6 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 03 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [11:45:22]RAPDU: 90 00 [11:45:22]wFMCommunicate OK [11:45:22]wFMCommunicate request_size=7 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 0D 02 02 02 6E A3 [11:45:22]Write to MH i2c: E2 0A 00 49 0B 80 0D 02 02 02 00 6E A3 00 00 E3 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 03 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [11:45:22]RAPDU: 90 00 [11:45:22]wFMCommunicate OK [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 0D 03 02 [11:45:22]Write to MH i2c: E2 08 00 4A 0B 80 0D 03 02 00 00 00 00 D0 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0B 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0B 00 4A 0B 00 78 01 21 91 8A 46 51 0E 90 00 2B [11:45:22]RAPDU: 78 01 21 91 8A 46 51 0E 90 00 [11:45:22]wFMCommunicate OK [11:45:22]SAM_PROTO_SignData done [11:45:22]FM_MakeSignedData done [11:45:22]CreateOFDProtocolMessage [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 11 00 00 [11:45:22]Write to MH i2c: E2 08 00 4B 0B 80 11 00 00 00 00 00 00 D0 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 4B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [11:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:22]wFMCommunicate OK [11:45:22]CreateOFDProtocolMessage done [11:45:22]OFDSenderStorePacket 166683 [11:45:22]StoreOFDPacket docnum=166683 [11:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 37 07 04 01 4E 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 14 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 98 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 00 00 00 00 00 07 04 06 00 64 00 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 D1 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8B 02 00 35 04 06 00 ED EA E0 34 6E A3 78 01 21 91 8A 46 51 0E [11:45:22]CheckFolder [11:45:22]dirname=/storage/ofd_packets [11:45:22]CheckFolder done [11:45:22]ProducePacketName [11:45:22]name=ofd_packets/00166683 [11:45:22]NVStorageSaveData ofd_packets/00166683 [11:45:22]File name is /storage/ofd_packets/00166683 [11:45:22]Write 298 bytes [11:45:22]NVStorageSaveData done [11:45:22]OFDSenderStorePacket done [11:45:22]KKMCreateOFDPacket done [11:45:22]NVStorageSaveData kkm_last_timestamp [11:45:22]File name is /storage/kkm_last_timestamp [11:45:22]Write 4 bytes [11:45:22]NVStorageSaveData done [11:45:22]ExternCall_PrintAddStr [11:45:22]wPrintStart [11:45:22]Write to MH i2c: 01 00 00 4C 0B 57 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: 01 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: 01 07 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: 01 07 00 4C 0B 00 00 00 00 00 FF 0F 6C [11:45:22]RasterBufferAndPrint [11:45:22]line Счет N : (1)221265 [11:45:22]line ИНН: 02508201610067 [11:45:22]line Контрольно-Кассовый Чек [11:45:22]line ПРОДАЖА [11:45:22]line ТРК (МРК, ГНК) : 21 [11:45:22]line Товар: 2710194210 [11:45:22]line ДТ-К-5 [11:45:22]line 0.020 * 76.20 [11:45:22]line = 1.52 [11:45:22]line НДС 12% НСП 1% [11:45:22]line > о реализуемом товаре [11:45:22]line ОКРУГЛЕНИЕ: -0.52 [11:45:22]line ИТОГО: 1.00 [11:45:22]line Внесено: 800.00 [11:45:22]line СДАЧА: 799.00 [11:45:22]line НСП 1% : 0.01 [11:45:22]line НДС 12% : 0.16 [11:45:22]line Наличными: 1.00 [11:45:22]line Безнал.: 0.00 [11:45:22]line Место: АЗС № 161 "Партнер Нефть" [11:45:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:45:22]line СНО: Общий режим [11:45:22]line Чек 98 23.10.2024 11:45 [11:45:22]line Смена: 537 ФФД: 1.0 [11:45:22]line ЗНМ: 0300000104 [11:45:22]line РНМ: 0000000000091764 [11:45:22]line Версия ККМ: 001 [11:45:22]line ФМ: 0000000000871759 [11:45:22]line ФД: 166683 [11:45:22]line ФПД: 261593039662755 [11:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114521&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166683&fm=261593039662755&tin=02508201610067®Number=0000000000091764&sum=100 [11:45:22]OFD Sender: Processing packet 166683 [packets to send 48, broken 47] [11:45:22]ProducePacketName [11:45:22]name=ofd_packets/00166683 [11:45:22]OFD Sender: To server: pG, [11:45:22]CommunicateWithHost lk.salyk.kg:30040 [11:45:22]ConnectInit lk.salyk.kg [11:45:22]written 0, free lines is 4095 [11:45:22]Connected sock=10 [11:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 37 07 04 01 4E 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 14 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 98 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 00 00 00 00 00 07 04 06 00 64 00 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 D1 E1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8B 02 00 35 04 06 00 ED EA E0 34 6E A3 78 01 21 91 8A 46 51 0E [11:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BA F7 47 00 9E 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8B 02 00 F4 03 04 00 39 88 18 67 B6 04 01 00 00 41 7A 1F 83 4B 5A 13 0B [11:45:23]CommunicateWithHost err = 0 [11:45:23]CheckOFDResponse [11:45:23]1017 (14) - 77093643461234 [11:45:23]1041 (16) - 0000000000871759 [11:45:23]1040 (4) - 166683 [11:45:23]1012 (4) - 23.10.2024 05:23 [11:45:23]1206 (1) - 0 [11:45:23]OFD Sender: Remove packet 166683 [11:45:23]ProducePacketName [11:45:23]name=ofd_packets/00166683 [11:45:23]NVStorageDeleteData [11:45:23]Write to MH i2c: 01 00 00 77 0B 82 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: 01 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: 01 07 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 A8 0C 3D [11:45:23]RasterBufferAndPrint [11:45:23]line [11:45:23]line [11:45:23]line [11:45:23]line [11:45:23]line [11:45:23]written 0, free lines is 3246 [11:45:23]MH_Cut [11:45:23]Write to MH i2c: D1 01 00 7E 0B 01 5B [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: D1 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: D1 01 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: D1 01 00 7E 0B 00 5A [11:45:23]Write to MH i2c: 01 00 00 7F 0B 8A [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]OFD Sender: No OFD packet to send [11:45:24]*** Cut start [11:45:24]*** Partial cut [11:45:24]*** CUTSNS_PIN = 1 [11:45:24]*** CUTSNS_PIN = 0 [11:45:24]*** Brake cut motor [11:45:24]Read from MH i2c: 01 [11:45:24]MH_I2C_Read... [11:45:24]*** Stop cut motor [11:45:24]*** Cut end [11:45:24]Read from MH i2c: 01 07 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [11:45:24]process_action close_receipt done [11:45:24]requested_data is exist [11:45:24]produce_requested_data [11:45:24]requested_item fm.sn is exist - process it [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 11 00 00 [11:45:24]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 17 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [11:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:24]wFMCommunicate OK [11:45:24]requested_item fd.num is exist - process it [11:45:24]SAM_PROTO_GetFieldsCounters [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 13 00 00 [11:45:24]Write to MH i2c: E2 08 00 81 0B 80 13 00 00 00 00 00 00 08 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 62 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 62 00 81 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:24]wFMCommunicate OK [11:45:24]SAM_PROTO_GetFieldsCounters done [11:45:24]requested_item shift.num is exist - process it [11:45:24]requested_item shift.opened is exist - process it [11:45:24]req_shift_opened [11:45:24]FM_GetShiftState [11:45:24]SAM_PROTO_GetShiftState [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 13 01 00 [11:45:24]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0E 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D5 [11:45:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:45:24]wFMCommunicate OK [11:45:24]SAM_PROTO_GetShiftState done [11:45:24]FM_GetShiftState done [11:45:24]req_shift_opened done [11:45:24]requested_item shift.open_date is exist - process it [11:45:24]req_shift_open_date [11:45:24]req_shift_open_date done [11:45:24]produce_requested_data done [11:45:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166683,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:45:24]process_action_free close_receipt [11:45:24]json_value_free [11:45:24]json_value_free done [11:45:24]process_json_proto returns [11:45:24]Send response to host [11:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166683,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:45:24]free response buf [11:45:24]execute_script done [11:45:24]execute_script returns [11:45:24]free content buf [11:45:24]Sock 9.Close socket [11:45:24]Sock 9.Thread stoped [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [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:22]accept exits with 8 [11:47:22]New connection [11:47:22]New thread 3067034980 created [11:47:22]Thread 3067178340 joined [11:47:22]Waiting for new connection... [11:47:22] Sock 8.Parse request [11:47:22]Sock 8.Check first char [11:47:22]Sock 8.First char is OK [11:47:22]request: POST /json_proto HTTP/1.0 [11:47:22]Method: POST [11:47:22]URL: /json_proto [11:47:22]Method is POST - this is cgi request [11:47:22]url: /json_proto [11:47:22]query_string will be loaded in cgi processing [11:47:22]execute_cgi json_proto POST (null) [11:47:22]execute_cgi path=json_proto method=POST [11:47:22]POST find Content-Length [11:47:22]Host: 172.17.53.195:8080 [11:47:22]Content-Length: 677 [11:47:22]Content-Type: application/json [11:47:22] [11:47:22]POST finish read [11:47:22]Found Content-Length = 677 [11:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:22]execute_script... [11: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)221267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:22]POST & json_proto [11:47:22]process_json_proto [11:47:22]json parsed OK: [11:47:22]protocol is kg_v1.0 [11:47:22]action value=close_receipt [11:47:22]process_action close_receipt [11:47:22]cmd_close_receipt [11:47:22]MH_GetDate [11:47:22]Write to MH i2c: F0 00 00 83 0B 7D [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: F0 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: F0 09 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: F0 09 00 83 0B 00 4B E2 18 67 21 48 4A 65 4A [11:47:22]GetLastDocTimeStamp 1729683921 [11:47:22]current date 1729684043 [11:47:22]FM_GetShiftState [11:47:22]SAM_PROTO_GetShiftState [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 13 01 00 [11:47:22]Write to MH i2c: E2 08 00 84 0B 80 13 01 00 00 00 00 00 0C [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0E 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0E 00 84 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D7 [11:47:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:47:22]wFMCommunicate OK [11:47:22]SAM_PROTO_GetShiftState done [11:47:22]FM_GetShiftState done [11:47:22]opened in 1729643772 [11:47:22]opened+sec_in_day 1729730172 [11:47:22]quantity*price = 20003 [11:47:22]sum+1 = 20004 [11:47: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 99 23.10.2024 11:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166684 ФПД: 189993958655518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166684&fm=189993958655518&tin=02508201610067®Number=0000000000091764&sum=20000 [11:47:23]StoreToDocumentArchive [11:47:23]shift 537 fd 166684 [11:47:23]save to /storage/0537/doc_00166684 [11:47:23]save last doc name /storage/0537/doc_00166684 to /storage/kkm_last_doc_name [11:47:23]save OK [11:47:23]Clear old archive folders... [11:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:23]tlvbuf is 01F9FD60 [11:47:23]SAM_PROTO_ClearQueue [11:47:23]wFMCommunicate request_size=4 [11:47:23]MH_SAM_APDU [11:47:23]CAPDU: 80 09 00 00 [11:47:23]Write to MH i2c: E2 08 00 91 0B 80 09 00 00 00 00 00 00 0E [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:23]Read from MH i2c: E2 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 03 00 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [11:47:23]RAPDU: 90 00 [11:47:23]wFMCommunicate OK [11:47:23]SAM_PROTO_ClearQueue done [11:47:23]KKMCreateOFDPacket [11:47:23]OFDProtocolAddRootSTLVToBuf [11:47:23]FM_MakeSignedData [11:47:23]FM_MakeSignedData [11:47:23]SAM_PROTO_SignData [11:47:23]wFMCommunicate request_size=4 [11:47:23]MH_SAM_APDU [11:47:23]CAPDU: 80 0D 01 02 [11:47:23]Write to MH i2c: E2 08 00 92 0B 80 0D 01 02 00 00 00 00 16 [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:23]Read from MH i2c: E2 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 03 00 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [11:47:23]RAPDU: 90 00 [11:47:23]wFMCommunicate OK [11:47:23]wFMCommunicate request_size=255 [11:47:23]MH_SAM_APDU [11: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8B 02 00 35 04 06 00 AC [11:47:23]Write to MH i2c: E2 02 01 93 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8B 02 00 35 04 06 00 AC 00 00 ED [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 03 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [11:47:24]RAPDU: 90 00 [11:47:24]wFMCommunicate OK [11:47:24]wFMCommunicate request_size=10 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 0D 02 02 05 CC 6A 6A 46 1E [11:47:24]Write to MH i2c: E2 0D 00 94 0B 80 0D 02 02 05 00 CC 6A 6A 46 1E 00 00 27 [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 03 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [11:47:24]RAPDU: 90 00 [11:47:24]wFMCommunicate OK [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 0D 03 02 [11:47:24]Write to MH i2c: E2 08 00 95 0B 80 0D 03 02 00 00 00 00 1B [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0B 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0B 00 95 0B 00 1B CB 40 66 85 2C 83 3B 90 00 17 [11:47:24]RAPDU: 1B CB 40 66 85 2C 83 3B 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_SignData done [11:47:24]FM_MakeSignedData done [11:47:24]CreateOFDProtocolMessage [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 11 00 00 [11:47:24]Write to MH i2c: E2 08 00 96 0B 80 11 00 00 00 00 00 00 1B [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 17 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 17 00 96 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [11:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:24]wFMCommunicate OK [11:47:24]CreateOFDProtocolMessage done [11:47:24]OFDSenderStorePacket 166684 [11:47:24]StoreOFDPacket docnum=166684 [11:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 DD 07 01 01 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8B 02 00 35 04 06 00 AC CC 6A 6A 46 1E 1B CB 40 66 85 2C 83 3B [11:47:24]CheckFolder [11:47:24]dirname=/storage/ofd_packets [11:47:24]CheckFolder done [11:47:24]ProducePacketName [11:47:24]name=ofd_packets/00166684 [11:47:24]NVStorageSaveData ofd_packets/00166684 [11:47:24]File name is /storage/ofd_packets/00166684 [11:47:24]Write 301 bytes [11:47:24]NVStorageSaveData done [11:47:24]OFDSenderStorePacket done [11:47:24]KKMCreateOFDPacket done [11:47:24]NVStorageSaveData kkm_last_timestamp [11:47:24]File name is /storage/kkm_last_timestamp [11:47:24]Write 4 bytes [11:47:24]NVStorageSaveData done [11:47:24]ExternCall_PrintAddStr [11:47:24]wPrintStart [11:47:24]Write to MH i2c: 01 00 00 97 0B A2 [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: 01 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: 01 07 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: 01 07 00 97 0B 00 00 00 00 00 FF 0F B7 [11:47:24]RasterBufferAndPrint [11:47:24]line Счет N : (1)221267 [11:47:24]line ИНН: 02508201610067 [11:47:24]line Контрольно-Кассовый Чек [11:47:24]line ПРОДАЖА [11:47:24]line ТРК (МРК, ГНК) : 13 [11:47:24]line Товар: 2710124130 [11:47:24]line Аи-92-К-5 [11:47:24]line 2.990 * 66.90 [11:47:24]line = 200.03 [11:47:24]line НДС 12% НСП 1% [11:47:24]line > о реализуемом товаре [11:47:24]line ОКРУГЛЕНИЕ: -0.03 [11:47:24]line ИТОГО: 200.00 [11:47:24]line Внесено: 200.00 [11:47:24]line СДАЧА: 0.00 [11:47:24]line НСП 1% : 1.77 [11:47:24]line НДС 12% : 21.24 [11:47:24]line Наличными: 200.00 [11:47:24]line Безнал.: 0.00 [11:47:24]line Место: АЗС № 161 "Партнер Нефть" [11:47:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:47:24]line СНО: Общий режим [11:47:24]line Чек 99 23.10.2024 11:47 [11:47:24]line Смена: 537 ФФД: 1.0 [11:47:24]line ЗНМ: 0300000104 [11:47:24]line РНМ: 0000000000091764 [11:47:24]line Версия ККМ: 001 [11:47:24]line ФМ: 0000000000871759 [11:47:24]line ФД: 166684 [11:47:24]line ФПД: 189993958655518 [11:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166684&fm=189993958655518&tin=02508201610067®Number=0000000000091764&sum=20000 [11:47:24]OFD Sender: Processing packet 166684 [packets to send 48, broken 47] [11:47:24]ProducePacketName [11:47:24]name=ofd_packets/00166684 [11:47:24]OFD Sender: To server: pG, [11:47:24]CommunicateWithHost lk.salyk.kg:30040 [11:47:24]ConnectInit lk.salyk.kg [11:47:24]written 0, free lines is 4095 [11:47:24]Connected sock=10 [11: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 31 37 35 39 0F 01 00 00 71 DD 07 01 01 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8B 02 00 35 04 06 00 AC CC 6A 6A 46 1E 1B CB 40 66 85 2C 83 3B [11:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 80 47 00 C0 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8B 02 00 F4 03 04 00 B3 88 18 67 B6 04 01 00 00 9B D7 54 92 C8 EC 31 1F [11:47:24]CommunicateWithHost err = 0 [11:47:24]CheckOFDResponse [11:47:24]1017 (14) - 77093643461234 [11:47:24]1041 (16) - 0000000000871759 [11:47:24]1040 (4) - 166684 [11:47:24]1012 (4) - 23.10.2024 05:25 [11:47:24]1206 (1) - 0 [11:47:24]OFD Sender: Remove packet 166684 [11:47:24]ProducePacketName [11:47:24]name=ofd_packets/00166684 [11:47:24]NVStorageDeleteData [11:47:25]Write to MH i2c: 01 00 00 C2 0B CD [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 07 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: 01 07 00 C2 0B 00 00 00 00 00 AA 0C 8A [11:47:25]RasterBufferAndPrint [11:47:25]line [11:47:25]line [11:47:25]line [11:47:25]line [11:47:25]line [11:47:25]written 0, free lines is 3248 [11:47:25]MH_Cut [11:47:25]Write to MH i2c: D1 01 00 C9 0B 01 A6 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: D1 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: D1 01 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: D1 01 00 C9 0B 00 A5 [11:47:25]Write to MH i2c: 01 00 00 CA 0B D5 [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]OFD Sender: No OFD packet to send [11:47:26]*** Cut start [11:47:26]*** Partial cut [11:47:26]*** CUTSNS_PIN = 1 [11:47:26]*** CUTSNS_PIN = 0 [11:47:26]*** Brake cut motor [11:47:26]Read from MH i2c: 01 [11:47:26]MH_I2C_Read... [11:47:26]*** Stop cut motor [11:47:26]*** Cut end [11:47:26]Read from MH i2c: 01 07 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [11:47:26]process_action close_receipt done [11:47:26]requested_data is exist [11:47:26]produce_requested_data [11:47:26]requested_item fm.sn is exist - process it [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 11 00 00 [11:47:26]Write to MH i2c: E2 08 00 CB 0B 80 11 00 00 00 00 00 00 50 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 17 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 17 00 CB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [11:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:26]wFMCommunicate OK [11:47:26]requested_item fd.num is exist - process it [11:47:26]SAM_PROTO_GetFieldsCounters [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 13 00 00 [11:47:26]Write to MH i2c: E2 08 00 CC 0B 80 13 00 00 00 00 00 00 53 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 62 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 62 00 CC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:26]wFMCommunicate OK [11:47:26]SAM_PROTO_GetFieldsCounters done [11:47:26]requested_item shift.num is exist - process it [11:47:26]requested_item shift.opened is exist - process it [11:47:26]req_shift_opened [11:47:26]FM_GetShiftState [11:47:26]SAM_PROTO_GetShiftState [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 13 01 00 [11:47:26]Write to MH i2c: E2 08 00 CD 0B 80 13 01 00 00 00 00 00 55 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 0E 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 0E 00 CD 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [11:47:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:47:26]wFMCommunicate OK [11:47:26]SAM_PROTO_GetShiftState done [11:47:26]FM_GetShiftState done [11:47:26]req_shift_opened done [11:47:26]requested_item shift.open_date is exist - process it [11:47:26]req_shift_open_date [11:47:26]req_shift_open_date done [11:47:26]produce_requested_data done [11:47:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166684,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:47:26]process_action_free close_receipt [11:47:26]json_value_free [11:47:26]json_value_free done [11:47:26]process_json_proto returns [11:47:26]Send response to host [11:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166684,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:47:26]free response buf [11:47:26]execute_script done [11:47:26]execute_script returns [11:47:26]free content buf [11:47:26]Sock 8.Close socket [11:47:26]Sock 8.Thread stoped [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:48:59]accept exits with 9 [11:48:59]New connection [11:48:59]New thread 3067178340 created [11:48:59]Thread 3067034980 joined [11:48:59]Waiting for new connection... [11:48:59] Sock 9.Parse request [11:48:59]Sock 9.Check first char [11:48:59]Sock 9.First char is OK [11:48:59]request: POST /json_proto HTTP/1.0 [11:48:59]Method: POST [11:48:59]URL: /json_proto [11:48:59]Method is POST - this is cgi request [11:48:59]url: /json_proto [11:48:59]query_string will be loaded in cgi processing [11:48:59]execute_cgi json_proto POST (null) [11:48:59]execute_cgi path=json_proto method=POST [11:48:59]POST find Content-Length [11:48:59]Host: 172.17.53.195:8080 [11:48:59]Content-Length: 677 [11:48:59]Content-Type: application/json [11:48:59] [11:48:59]POST finish read [11:48:59]Found Content-Length = 677 [11:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:59]execute_script... [11:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:59]POST & json_proto [11:48:59]process_json_proto [11:48:59]json parsed OK: [11:48:59]protocol is kg_v1.0 [11:48:59]action value=close_receipt [11:48:59]process_action close_receipt [11:48:59]cmd_close_receipt [11:48:59]MH_GetDate [11:48:59]Write to MH i2c: F0 00 00 CE 0B C8 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 09 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 09 00 CE 0B 00 AC E2 18 67 21 48 4A 65 F6 [11:48:59]GetLastDocTimeStamp 1729684043 [11:48:59]current date 1729684140 [11:48:59]FM_GetShiftState [11:48:59]SAM_PROTO_GetShiftState [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 13 01 00 [11:48:59]Write to MH i2c: E2 08 00 CF 0B 80 13 01 00 00 00 00 00 57 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 CF 0B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 22 [11:48:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_GetShiftState done [11:48:59]FM_GetShiftState done [11:48:59]opened in 1729643772 [11:48:59]opened+sec_in_day 1729730172 [11:48:59]quantity*price = 50041 [11:48:59]sum+1 = 50042 [11:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 100 23.10.2024 11:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166685 ФПД: 36668405886807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166685&fm=36668405886807&tin=02508201610067®Number=0000000000091764&sum=50000 [11:49:01]StoreToDocumentArchive [11:49:01]shift 537 fd 166685 [11:49:01]save to /storage/0537/doc_00166685 [11:49:01]save last doc name /storage/0537/doc_00166685 to /storage/kkm_last_doc_name [11:49:01]save OK [11:49:01]Clear old archive folders... [11:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:01]tlvbuf is B6DDF330 [11:49:01]SAM_PROTO_ClearQueue [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 09 00 00 [11:49:01]Write to MH i2c: E2 08 00 DC 0B 80 09 00 00 00 00 00 00 59 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]SAM_PROTO_ClearQueue done [11:49:01]KKMCreateOFDPacket [11:49:01]OFDProtocolAddRootSTLVToBuf [11:49:01]FM_MakeSignedData [11:49:01]FM_MakeSignedData [11:49:01]SAM_PROTO_SignData [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 01 02 [11:49:01]Write to MH i2c: E2 08 00 DD 0B 80 0D 01 02 00 00 00 00 61 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=255 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AC E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8B 02 00 35 04 06 00 21 [11:49:01]Write to MH i2c: E2 02 01 DE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AC E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8B 02 00 35 04 06 00 21 00 00 4E [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=10 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 02 02 05 59 87 4E AF 57 [11:49:01]Write to MH i2c: E2 0D 00 DF 0B 80 0D 02 02 05 00 59 87 4E AF 57 00 00 A2 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 03 02 [11:49:01]Write to MH i2c: E2 08 00 E0 0B 80 0D 03 02 00 00 00 00 66 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 0B 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 0B 00 E0 0B 00 1A AA 39 46 4E 62 26 0C 90 00 8C [11:49:01]RAPDU: 1A AA 39 46 4E 62 26 0C 90 00 [11:49:01]wFMCommunicate OK [11:49:01]SAM_PROTO_SignData done [11:49:01]FM_MakeSignedData done [11:49:01]CreateOFDProtocolMessage [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 11 00 00 [11:49:01]Write to MH i2c: E2 08 00 E1 0B 80 11 00 00 00 00 00 00 66 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 17 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 17 00 E1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [11:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:01]wFMCommunicate OK [11:49:01]CreateOFDProtocolMessage done [11:49:01]OFDSenderStorePacket 166685 [11:49:01]StoreOFDPacket docnum=166685 [11:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 2A 07 01 E8 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AC E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8B 02 00 35 04 06 00 21 59 87 4E AF 57 1A AA 39 46 4E 62 26 0C [11:49:01]CheckFolder [11:49:01]dirname=/storage/ofd_packets [11:49:01]CheckFolder done [11:49:01]ProducePacketName [11:49:01]name=ofd_packets/00166685 [11:49:01]NVStorageSaveData ofd_packets/00166685 [11:49:01]File name is /storage/ofd_packets/00166685 [11:49:01]Write 301 bytes [11:49:01]NVStorageSaveData done [11:49:01]OFDSenderStorePacket done [11:49:01]KKMCreateOFDPacket done [11:49:01]NVStorageSaveData kkm_last_timestamp [11:49:01]File name is /storage/kkm_last_timestamp [11:49:01]Write 4 bytes [11:49:01]NVStorageSaveData done [11:49:01]ExternCall_PrintAddStr [11:49:01]wPrintStart [11:49:01]Write to MH i2c: 01 00 00 E2 0B ED [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 07 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 FF 0F 02 [11:49:01]RasterBufferAndPrint [11:49:01]line Счет N : (1)221270 [11:49:01]line ИНН: 02508201610067 [11:49:01]line Контрольно-Кассовый Чек [11:49:01]line ПРОДАЖА [11:49:01]line ТРК (МРК, ГНК) : 13 [11:49:01]line Товар: 2710124130 [11:49:01]line Аи-92-К-5 [11:49:01]line 7.480 * 66.90 [11:49:01]line = 500.41 [11:49:01]line НДС 12% НСП 1% [11:49:01]line > о реализуемом товаре [11:49:01]line ОКРУГЛЕНИЕ: -0.41 [11:49:01]line ИТОГО: 500.00 [11:49:01]line Внесено: 500.00 [11:49:01]line СДАЧА: 0.00 [11:49:01]line НСП 1% : 4.43 [11:49:01]line НДС 12% : 53.14 [11:49:01]line Наличными: 500.00 [11:49:01]line Безнал.: 0.00 [11:49:01]line Место: АЗС № 161 "Партнер Нефть" [11:49:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:49:01]line СНО: Общий режим [11:49:01]line Чек 100 23.10.2024 11:49 [11:49:01]line Смена: 537 ФФД: 1.0 [11:49:01]line ЗНМ: 0300000104 [11:49:01]line РНМ: 0000000000091764 [11:49:01]line Версия ККМ: 001 [11:49:01]line ФМ: 0000000000871759 [11:49:01]line ФД: 166685 [11:49:01]line ФПД: 36668405886807 [11:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166685&fm=36668405886807&tin=02508201610067®Number=0000000000091764&sum=50000 [11:49:01]OFD Sender: Processing packet 166685 [packets to send 48, broken 47] [11:49:01]ProducePacketName [11:49:01]name=ofd_packets/00166685 [11:49:01]OFD Sender: To server: pG, [11:49:01]CommunicateWithHost lk.salyk.kg:30040 [11:49:01]ConnectInit lk.salyk.kg [11:49:01]written 0, free lines is 4095 [11:49:02]Connected sock=10 [11:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 2A 07 01 E8 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AC E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8B 02 00 35 04 06 00 21 59 87 4E AF 57 1A AA 39 46 4E 62 26 0C [11:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 43 70 47 00 1B 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8B 02 00 F4 03 04 00 14 89 18 67 B6 04 01 00 00 36 89 71 42 64 FF 34 82 [11:49:02]CommunicateWithHost err = 0 [11:49:02]CheckOFDResponse [11:49:02]1017 (14) - 77093643461234 [11:49:02]1041 (16) - 0000000000871759 [11:49:02]1040 (4) - 166685 [11:49:02]1012 (4) - 23.10.2024 05:26 [11:49:02]1206 (1) - 0 [11:49:02]OFD Sender: Remove packet 166685 [11:49:02]ProducePacketName [11:49:02]name=ofd_packets/00166685 [11:49:02]NVStorageDeleteData [11:49:02]Write to MH i2c: 01 00 00 0D 0C 19 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 AF 0C DB [11:49:02]RasterBufferAndPrint [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]written 0, free lines is 3254 [11:49:02]MH_Cut [11:49:02]Write to MH i2c: D1 01 00 14 0C 01 F2 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 01 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 01 00 14 0C 00 F1 [11:49:02]Write to MH i2c: 01 00 00 15 0C 21 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]OFD Sender: No OFD packet to send [11:49:03]*** Cut start [11:49:03]*** Partial cut [11:49:03]*** CUTSNS_PIN = 1 [11:49:03]*** CUTSNS_PIN = 0 [11:49:03]*** Brake cut motor [11:49:03]Read from MH i2c: 01 [11:49:03]MH_I2C_Read... [11:49:03]*** Stop cut motor [11:49:03]*** Cut end [11:49:03]Read from MH i2c: 01 07 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [11:49:03]process_action close_receipt done [11:49:03]requested_data is exist [11:49:03]produce_requested_data [11:49:03]requested_item fm.sn is exist - process it [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 11 00 00 [11:49:03]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 17 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [11:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:03]wFMCommunicate OK [11:49:03]requested_item fd.num is exist - process it [11:49:03]SAM_PROTO_GetFieldsCounters [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 13 00 00 [11:49:03]Write to MH i2c: E2 08 00 17 0C 80 13 00 00 00 00 00 00 9F [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 62 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 62 00 17 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:04]wFMCommunicate OK [11:49:04]SAM_PROTO_GetFieldsCounters done [11:49:04]requested_item shift.num is exist - process it [11:49:04]requested_item shift.opened is exist - process it [11:49:04]req_shift_opened [11:49:04]FM_GetShiftState [11:49:04]SAM_PROTO_GetShiftState [11:49:04]wFMCommunicate request_size=4 [11:49:04]MH_SAM_APDU [11:49:04]CAPDU: 80 13 01 00 [11:49:04]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 0E 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 0E 00 18 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6C [11:49:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:49:04]wFMCommunicate OK [11:49:04]SAM_PROTO_GetShiftState done [11:49:04]FM_GetShiftState done [11:49:04]req_shift_opened done [11:49:04]requested_item shift.open_date is exist - process it [11:49:04]req_shift_open_date [11:49:04]req_shift_open_date done [11:49:04]produce_requested_data done [11:49:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166685,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:49:04]process_action_free close_receipt [11:49:04]json_value_free [11:49:04]json_value_free done [11:49:04]process_json_proto returns [11:49:04]Send response to host [11:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166685,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:49:04]free response buf [11:49:04]execute_script done [11:49:04]execute_script returns [11:49:04]free content buf [11:49:04]Sock 9.Close socket [11:49:04]Sock 9.Thread stoped [11:49:07]OFD Sender: No OFD packet to send [11:49:07]accept exits with 8 [11:49:07]New connection [11:49:07]New thread 3067034980 created [11:49:07]Thread 3067178340 joined [11:49:07]Waiting for new connection... [11:49:07] Sock 8.Parse request [11:49:07]Sock 8.Check first char [11:49:07]Sock 8.First char is OK [11:49:07]request: POST /json_proto HTTP/1.0 [11:49:07]Method: POST [11:49:07]URL: /json_proto [11:49:07]Method is POST - this is cgi request [11:49:07]url: /json_proto [11:49:07]query_string will be loaded in cgi processing [11:49:07]execute_cgi json_proto POST (null) [11:49:07]execute_cgi path=json_proto method=POST [11:49:07]POST find Content-Length [11:49:07]Host: 172.17.53.195:8080 [11:49:07]Content-Length: 789 [11:49:07]Content-Type: application/json [11:49:07] [11:49:07]POST finish read [11:49:07]Found Content-Length = 789 [11:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:07]execute_script... [11:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:07]POST & json_proto [11:49:07]process_json_proto [11:49:07]json parsed OK: [11:49:07]protocol is kg_v1.0 [11:49:07]action value=close_receipt [11:49:07]process_action close_receipt [11:49:07]cmd_close_receipt [11:49:07]MH_GetDate [11:49:07]Write to MH i2c: F0 00 00 19 0C 14 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: F0 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: F0 09 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: F0 09 00 19 0C 00 B4 E2 18 67 21 48 4A 65 4A [11:49:07]GetLastDocTimeStamp 1729684140 [11:49:07]current date 1729684148 [11:49:07]FM_GetShiftState [11:49:07]SAM_PROTO_GetShiftState [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 13 01 00 [11:49:07]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 0E 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6E [11:49:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:49:07]wFMCommunicate OK [11:49:07]SAM_PROTO_GetShiftState done [11:49:07]FM_GetShiftState done [11:49:07]opened in 1729643772 [11:49:07]opened+sec_in_day 1729730172 [11:49:07]quantity*price = 0 [11:49:07]sum+1 = 1 [11:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 101 23.10.2024 11:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 43393 ФМ: 0000000000871759 ФД: 166686 ФПД: 28125603668180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114908&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166686&fm=28125603668180&tin=02508201610067®Number=0000000000091764&sum=0 [11:49:09]StoreToDocumentArchive [11:49:09]shift 537 fd 166686 [11:49:09]save to /storage/0537/doc_00166686 [11:49:09]save last doc name /storage/0537/doc_00166686 to /storage/kkm_last_doc_name [11:49:09]save OK [11:49:09]Clear old archive folders... [11:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:49:09]tlvbuf is 01FB3BD0 [11:49:09]SAM_PROTO_ClearQueue [11:49:09]wFMCommunicate request_size=4 [11:49:09]MH_SAM_APDU [11:49:09]CAPDU: 80 09 00 00 [11:49:09]Write to MH i2c: E2 08 00 27 0C 80 09 00 00 00 00 00 00 A5 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [11:49:09]RAPDU: 90 00 [11:49:09]wFMCommunicate OK [11:49:09]SAM_PROTO_ClearQueue done [11:49:09]KKMCreateOFDPacket [11:49:09]OFDProtocolAddRootSTLVToBuf [11:49:09]FM_MakeSignedData [11:49:09]FM_MakeSignedData [11:49:09]SAM_PROTO_SignData [11:49:09]wFMCommunicate request_size=4 [11:49:09]MH_SAM_APDU [11:49:09]CAPDU: 80 0D 01 02 [11:49:09]Write to MH i2c: E2 08 00 28 0C 80 0D 01 02 00 00 00 00 AD [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [11:49:09]RAPDU: 90 00 [11:49:09]wFMCommunicate OK [11:49:09]wFMCommunicate request_size=255 [11:49:09]MH_SAM_APDU [11:49: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B4 E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8B 02 00 35 04 06 00 19 94 80 9D [11:49:09]Write to MH i2c: E2 02 01 29 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B4 E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8B 02 00 35 04 06 00 19 94 80 9D 00 00 89 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [11:49:09]RAPDU: 90 00 [11:49:09]wFMCommunicate OK [11:49:09]wFMCommunicate request_size=7 [11:49:09]MH_SAM_APDU [11:49:09]CAPDU: 80 0D 02 02 02 A0 D4 [11:49:09]Write to MH i2c: E2 0A 00 2A 0C 80 0D 02 02 02 00 A0 D4 00 00 28 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [11:49:09]RAPDU: 90 00 [11:49:09]wFMCommunicate OK [11:49:09]wFMCommunicate request_size=4 [11:49:09]MH_SAM_APDU [11:49:09]CAPDU: 80 0D 03 02 [11:49:09]Write to MH i2c: E2 08 00 2B 0C 80 0D 03 02 00 00 00 00 B2 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 0B 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 0B 00 2B 0C 00 D2 E7 17 C7 83 FD 1F 97 90 00 80 [11:49:09]RAPDU: D2 E7 17 C7 83 FD 1F 97 90 00 [11:49:09]wFMCommunicate OK [11:49:09]SAM_PROTO_SignData done [11:49:09]FM_MakeSignedData done [11:49:09]CreateOFDProtocolMessage [11:49:09]wFMCommunicate request_size=4 [11:49:09]MH_SAM_APDU [11:49:09]CAPDU: 80 11 00 00 [11:49:09]Write to MH i2c: E2 08 00 2C 0C 80 11 00 00 00 00 00 00 B2 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:09]Read from MH i2c: E2 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 17 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: E2 17 00 2C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [11:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:09]wFMCommunicate OK [11:49:09]CreateOFDProtocolMessage done [11:49:09]OFDSenderStorePacket 166686 [11:49:09]StoreOFDPacket docnum=166686 [11:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8B B1 04 01 8B 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B4 E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8B 02 00 35 04 06 00 19 94 80 9D A0 D4 D2 E7 17 C7 83 FD 1F 97 [11:49:09]CheckFolder [11:49:09]dirname=/storage/ofd_packets [11:49:09]CheckFolder done [11:49:09]ProducePacketName [11:49:09]name=ofd_packets/00166686 [11:49:09]NVStorageSaveData ofd_packets/00166686 [11:49:09]File name is /storage/ofd_packets/00166686 [11:49:09]Write 298 bytes [11:49:09]NVStorageSaveData done [11:49:09]OFDSenderStorePacket done [11:49:09]KKMCreateOFDPacket done [11:49:09]NVStorageSaveData kkm_last_timestamp [11:49:09]File name is /storage/kkm_last_timestamp [11:49:09]Write 4 bytes [11:49:09]NVStorageSaveData done [11:49:09]ExternCall_PrintAddStr [11:49:09]wPrintStart [11:49:09]Write to MH i2c: 01 00 00 2D 0C 39 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 07 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FF 0F 4E [11:49:09]RasterBufferAndPrint [11:49:09]line Счет N : (1)221269 [11:49:09]line ИНН: 02508201610067 [11:49:09]line Контрольно-Кассовый Чек [11:49:09]line ПРОДАЖА [11:49:09]line ТРК (МРК, ГНК) : 41 [11:49:09]line Товар: 2710194210 [11:49:09]line ДТ-К-5 [11:49:09]line 20.000 * 0.00 [11:49:09]line = 0.00 [11:49:09]line НДС 12% НСП 1% [11:49:09]line > о реализуемом товаре [11:49:09]line ИТОГО: 0.00 [11:49:09]line НСП 1% : 0.00 [11:49:09]line НДС 12% : 0.00 [11:49:09]line Наличными: 0.00 [11:49:09]line Безнал.: 0.00 [11:49:09]line Место: АЗС № 161 "Партнер Нефть" [11:49:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:49:09]line СНО: Общий режим [11:49:09]line Чек 101 23.10.2024 11:49 [11:49:09]line Смена: 537 ФФД: 1.0 [11:49:09]line ЗНМ: 0300000104 [11:49:09]line РНМ: 0000000000091764 [11:49:09]line Версия ККМ: 001 [11:49:09]line Талоны: Топливная Карта [11:49:09]line 43393 [11:49:09]line ФМ: 0000000000871759 [11:49:09]line ФД: 166686 [11:49:09]line ФПД: 28125603668180 [11:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114908&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166686&fm=28125603668180&tin=02508201610067®Number=0000000000091764&sum=0 [11:49:09]written 0, free lines is 4095 [11:49:09]OFD Sender: Processing packet 166686 [packets to send 48, broken 47] [11:49:09]ProducePacketName [11:49:09]name=ofd_packets/00166686 [11:49:09]OFD Sender: To server: pG, [11:49:09]CommunicateWithHost lk.salyk.kg:30040 [11:49:09]ConnectInit lk.salyk.kg [11:49:09]Connected sock=10 [11:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8B B1 04 01 8B 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B4 E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8B 02 00 35 04 06 00 19 94 80 9D A0 D4 D2 E7 17 C7 83 FD 1F 97 [11:49:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 65 E8 47 00 CF 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8B 02 00 F4 03 04 00 1C 89 18 67 B6 04 01 00 00 B7 12 27 AC 75 E2 07 7C [11:49:10]CommunicateWithHost err = 0 [11:49:10]CheckOFDResponse [11:49:10]1017 (14) - 77093643461234 [11:49:10]1041 (16) - 0000000000871759 [11:49:10]1040 (4) - 166686 [11:49:10]1012 (4) - 23.10.2024 05:26 [11:49:10]1206 (1) - 0 [11:49:10]OFD Sender: Remove packet 166686 [11:49:10]ProducePacketName [11:49:10]name=ofd_packets/00166686 [11:49:10]NVStorageDeleteData [11:49:10]Write to MH i2c: 01 00 00 57 0C 63 [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: 01 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: 01 07 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 D2 0C 48 [11:49:10]RasterBufferAndPrint [11:49:10]line [11:49:10]line [11:49:10]line [11:49:10]line [11:49:10]line [11:49:10]written 0, free lines is 3294 [11:49:10]MH_Cut [11:49:10]Write to MH i2c: D1 01 00 5E 0C 01 3C [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: D1 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: D1 01 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: D1 01 00 5E 0C 00 3B [11:49:10]Write to MH i2c: 01 00 00 5F 0C 6B [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]OFD Sender: No OFD packet to send [11:49:10]*** Cut start [11:49:10]*** Partial cut [11:49:10]*** CUTSNS_PIN = 1 [11:49:10]*** CUTSNS_PIN = 0 [11:49:11]*** Brake cut motor [11:49:11]Read from MH i2c: 01 [11:49:11]MH_I2C_Read... [11:49:11]*** Stop cut motor [11:49:11]*** Cut end [11:49:11]Read from MH i2c: 01 07 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 FF 0F 80 [11:49:11]process_action close_receipt done [11:49:11]requested_data is exist [11:49:11]produce_requested_data [11:49:11]requested_item fm.sn is exist - process it [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 11 00 00 [11:49:11]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 17 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [11:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:11]wFMCommunicate OK [11:49:11]requested_item fd.num is exist - process it [11:49:11]SAM_PROTO_GetFieldsCounters [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 13 00 00 [11:49:11]Write to MH i2c: E2 08 00 61 0C 80 13 00 00 00 00 00 00 E9 [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 62 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 62 00 61 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:11]wFMCommunicate OK [11:49:11]SAM_PROTO_GetFieldsCounters done [11:49:11]requested_item shift.num is exist - process it [11:49:11]requested_item shift.opened is exist - process it [11:49:11]req_shift_opened [11:49:11]FM_GetShiftState [11:49:11]SAM_PROTO_GetShiftState [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 13 01 00 [11:49:11]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 0E 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B6 [11:49:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:49:11]wFMCommunicate OK [11:49:11]SAM_PROTO_GetShiftState done [11:49:11]FM_GetShiftState done [11:49:11]req_shift_opened done [11:49:11]requested_item shift.open_date is exist - process it [11:49:11]req_shift_open_date [11:49:11]req_shift_open_date done [11:49:11]produce_requested_data done [11:49:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166686,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:49:11]process_action_free close_receipt [11:49:11]json_value_free [11:49:11]json_value_free done [11:49:11]process_json_proto returns [11:49:11]Send response to host [11:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166686,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:49:11]free response buf [11:49:11]execute_script done [11:49:11]execute_script returns [11:49:11]free content buf [11:49:11]Sock 8.Close socket [11:49:11]Sock 8.Thread stoped [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:29]accept exits with 9 [11:49:29]New connection [11:49:29]New thread 3067178340 created [11:49:29]Thread 3067034980 joined [11:49:29]Waiting for new connection... [11:49:29] Sock 9.Parse request [11:49:29]Sock 9.Check first char [11:49:29]Sock 9.First char is OK [11:49:29]request: POST /json_proto HTTP/1.0 [11:49:29]Method: POST [11:49:29]URL: /json_proto [11:49:29]Method is POST - this is cgi request [11:49:29]url: /json_proto [11:49:29]query_string will be loaded in cgi processing [11:49:29]execute_cgi json_proto POST (null) [11:49:29]execute_cgi path=json_proto method=POST [11:49:29]POST find Content-Length [11:49:29]Host: 172.17.53.195:8080 [11:49:29]Content-Length: 677 [11:49:29]Content-Type: application/json [11:49:29] [11:49:29]POST finish read [11:49:29]Found Content-Length = 677 [11:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]execute_script... [11:49: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)221271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]POST & json_proto [11:49:29]process_json_proto [11:49:29]json parsed OK: [11:49:29]protocol is kg_v1.0 [11:49:29]action value=close_receipt [11:49:29]process_action close_receipt [11:49:29]cmd_close_receipt [11:49:29]MH_GetDate [11:49:29]Write to MH i2c: F0 00 00 63 0C 5E [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 63 0C 00 CA E2 18 67 21 48 4A 65 AA [11:49:29]GetLastDocTimeStamp 1729684148 [11:49:29]current date 1729684170 [11:49:29]FM_GetShiftState [11:49:29]SAM_PROTO_GetShiftState [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 13 01 00 [11:49:29]Write to MH i2c: E2 08 00 64 0C 80 13 01 00 00 00 00 00 ED [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 64 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B8 [11:49:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:49:29]wFMCommunicate OK [11:49:29]SAM_PROTO_GetShiftState done [11:49:29]FM_GetShiftState done [11:49:29]opened in 1729643772 [11:49:29]opened+sec_in_day 1729730172 [11:49:29]quantity*price = 29034 [11:49:29]sum+1 = 29036 [11:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 102 23.10.2024 11:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166687 ФПД: 184400918911447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166687&fm=184400918911447&tin=02508201610067®Number=0000000000091764&sum=29000 [11:49:30]StoreToDocumentArchive [11:49:30]shift 537 fd 166687 [11:49:30]save to /storage/0537/doc_00166687 [11:49:30]save last doc name /storage/0537/doc_00166687 to /storage/kkm_last_doc_name [11:49:30]save OK [11:49:30]Clear old archive folders... [11:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:30]tlvbuf is 01F41C60 [11:49:30]SAM_PROTO_ClearQueue [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 09 00 00 [11:49:30]Write to MH i2c: E2 08 00 71 0C 80 09 00 00 00 00 00 00 EF [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]SAM_PROTO_ClearQueue done [11:49:30]KKMCreateOFDPacket [11:49:30]OFDProtocolAddRootSTLVToBuf [11:49:30]FM_MakeSignedData [11:49:30]FM_MakeSignedData [11:49:30]SAM_PROTO_SignData [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 0D 01 02 [11:49:30]Write to MH i2c: E2 08 00 72 0C 80 0D 01 02 00 00 00 00 F7 [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:30]OFD Sender: No OFD packet to send [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]wFMCommunicate request_size=255 [11:49:30]MH_SAM_APDU [11:49: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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CA E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8B 02 00 35 04 06 00 A7 [11:49:30]Write to MH i2c: E2 02 01 73 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CA E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8B 02 00 35 04 06 00 A7 00 00 AE [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]wFMCommunicate request_size=10 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 0D 02 02 05 B6 2F 44 99 D7 [11:49:30]Write to MH i2c: E2 0D 00 74 0C 80 0D 02 02 05 00 B6 2F 44 99 D7 00 00 9D [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 0D 03 02 [11:49:30]Write to MH i2c: E2 08 00 75 0C 80 0D 03 02 00 00 00 00 FC [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0B 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0B 00 75 0C 00 C0 38 21 71 FC 25 25 F1 90 00 BE [11:49:30]RAPDU: C0 38 21 71 FC 25 25 F1 90 00 [11:49:30]wFMCommunicate OK [11:49:30]SAM_PROTO_SignData done [11:49:30]FM_MakeSignedData done [11:49:30]CreateOFDProtocolMessage [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 11 00 00 [11:49:30]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [11:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:31]wFMCommunicate OK [11:49:31]CreateOFDProtocolMessage done [11:49:31]OFDSenderStorePacket 166687 [11:49:31]StoreOFDPacket docnum=166687 [11:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 99 07 01 78 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CA E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8B 02 00 35 04 06 00 A7 B6 2F 44 99 D7 C0 38 21 71 FC 25 25 F1 [11:49:31]CheckFolder [11:49:31]dirname=/storage/ofd_packets [11:49:31]CheckFolder done [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00166687 [11:49:31]NVStorageSaveData ofd_packets/00166687 [11:49:31]File name is /storage/ofd_packets/00166687 [11:49:31]Write 301 bytes [11:49:31]NVStorageSaveData done [11:49:31]OFDSenderStorePacket done [11:49:31]KKMCreateOFDPacket done [11:49:31]NVStorageSaveData kkm_last_timestamp [11:49:31]File name is /storage/kkm_last_timestamp [11:49:31]Write 4 bytes [11:49:31]NVStorageSaveData done [11:49:31]ExternCall_PrintAddStr [11:49:31]wPrintStart [11:49:31]Write to MH i2c: 01 00 00 77 0C 83 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 FF 0F 98 [11:49:31]RasterBufferAndPrint [11:49:31]line Счет N : (1)221271 [11:49:31]line ИНН: 02508201610067 [11:49:31]line Контрольно-Кассовый Чек [11:49:31]line ПРОДАЖА [11:49:31]line ТРК (МРК, ГНК) : 23 [11:49:31]line Товар: 2710124130 [11:49:31]line Аи-92-К-5 [11:49:31]line 4.340 * 66.90 [11:49:31]line = 290.35 [11:49:31]line НДС 12% НСП 1% [11:49:31]line > о реализуемом товаре [11:49:31]line ОКРУГЛЕНИЕ: -0.35 [11:49:31]line ИТОГО: 290.00 [11:49:31]line Внесено: 290.00 [11:49:31]line СДАЧА: 0.00 [11:49:31]line НСП 1% : 2.57 [11:49:31]line НДС 12% : 30.83 [11:49:31]line Наличными: 290.00 [11:49:31]line Безнал.: 0.00 [11:49:31]line Место: АЗС № 161 "Партнер Нефть" [11:49:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:49:31]line СНО: Общий режим [11:49:31]line Чек 102 23.10.2024 11:49 [11:49:31]line Смена: 537 ФФД: 1.0 [11:49:31]line ЗНМ: 0300000104 [11:49:31]line РНМ: 0000000000091764 [11:49:31]line Версия ККМ: 001 [11:49:31]line ФМ: 0000000000871759 [11:49:31]line ФД: 166687 [11:49:31]line ФПД: 184400918911447 [11:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166687&fm=184400918911447&tin=02508201610067®Number=0000000000091764&sum=29000 [11:49:31]OFD Sender: Processing packet 166687 [packets to send 48, broken 47] [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00166687 [11:49:31]OFD Sender: To server: pG, [11:49:31]CommunicateWithHost lk.salyk.kg:30040 [11:49:31]ConnectInit lk.salyk.kg [11:49:31]written 0, free lines is 4095 [11:49:31]Connected sock=10 [11:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 99 07 01 78 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CA E2 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8B 02 00 35 04 06 00 A7 B6 2F 44 99 D7 C0 38 21 71 FC 25 25 F1 [11:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 76 47 00 D9 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8B 02 00 F4 03 04 00 31 89 18 67 B6 04 01 00 00 FE 40 2A AF 74 B0 B5 80 [11:49:31]CommunicateWithHost err = 0 [11:49:31]CheckOFDResponse [11:49:31]1017 (14) - 77093643461234 [11:49:31]1041 (16) - 0000000000871759 [11:49:31]1040 (4) - 166687 [11:49:31]1012 (4) - 23.10.2024 05:27 [11:49:31]1206 (1) - 0 [11:49:31]OFD Sender: Remove packet 166687 [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00166687 [11:49:31]NVStorageDeleteData [11:49:31]Write to MH i2c: 01 00 00 A2 0C AE [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 A7 0C 68 [11:49:31]RasterBufferAndPrint [11:49:31]line [11:49:31]line [11:49:31]line [11:49:31]line [11:49:31]line [11:49:31]written 0, free lines is 3245 [11:49:31]MH_Cut [11:49:31]Write to MH i2c: D1 01 00 A9 0C 01 87 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: D1 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: D1 01 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: D1 01 00 A9 0C 00 86 [11:49:31]Write to MH i2c: 01 00 00 AA 0C B6 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:32]OFD Sender: No OFD packet to send [11:49:32]*** Cut start [11:49:32]*** Partial cut [11:49:32]*** CUTSNS_PIN = 1 [11:49:32]*** CUTSNS_PIN = 0 [11:49:32]*** Brake cut motor [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]*** Stop cut motor [11:49:33]*** Cut end [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [11:49:33]process_action close_receipt done [11:49:33]requested_data is exist [11:49:33]produce_requested_data [11:49:33]requested_item fm.sn is exist - process it [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 11 00 00 [11:49:33]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [11:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:33]wFMCommunicate OK [11:49:33]requested_item fd.num is exist - process it [11:49:33]SAM_PROTO_GetFieldsCounters [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 00 00 [11:49:33]Write to MH i2c: E2 08 00 AC 0C 80 13 00 00 00 00 00 00 34 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 AC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetFieldsCounters done [11:49:33]requested_item shift.num is exist - process it [11:49:33]requested_item shift.opened is exist - process it [11:49:33]req_shift_opened [11:49:33]FM_GetShiftState [11:49:33]SAM_PROTO_GetShiftState [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 01 00 [11:49:33]Write to MH i2c: E2 08 00 AD 0C 80 13 01 00 00 00 00 00 36 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 AD 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 01 [11:49:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetShiftState done [11:49:33]FM_GetShiftState done [11:49:33]req_shift_opened done [11:49:33]requested_item shift.open_date is exist - process it [11:49:33]req_shift_open_date [11:49:33]req_shift_open_date done [11:49:33]produce_requested_data done [11:49:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166687,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:49:33]process_action_free close_receipt [11:49:33]json_value_free [11:49:33]json_value_free done [11:49:33]process_json_proto returns [11:49:33]Send response to host [11:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166687,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:49:33]free response buf [11:49:33]execute_script done [11:49:33]execute_script returns [11:49:33]free content buf [11:49:33]Sock 9.Close socket [11:49:33]Sock 9.Thread stoped [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:36]accept exits with 8 [11:51:36]New connection [11:51:36]New thread 3067034980 created [11:51:36]Thread 3067178340 joined [11:51:36]Waiting for new connection... [11:51:36] Sock 8.Parse request [11:51:36]Sock 8.Check first char [11:51:36]Sock 8.First char is OK [11:51:36]request: POST /json_proto HTTP/1.0 [11:51:36]Method: POST [11:51:36]URL: /json_proto [11:51:36]Method is POST - this is cgi request [11:51:36]url: /json_proto [11:51:36]query_string will be loaded in cgi processing [11:51:36]execute_cgi json_proto POST (null) [11:51:36]execute_cgi path=json_proto method=POST [11:51:36]POST find Content-Length [11:51:36]Host: 172.17.53.195:8080 [11:51:36]Content-Length: 675 [11:51:36]Content-Type: application/json [11:51:36] [11:51:36]POST finish read [11:51:36]Found Content-Length = 675 [11:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:36]execute_script... [11:51: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)221268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:36]POST & json_proto [11:51:36]process_json_proto [11:51:36]json parsed OK: [11:51:36]protocol is kg_v1.0 [11:51:36]action value=close_receipt [11:51:36]process_action close_receipt [11:51:36]cmd_close_receipt [11:51:36]MH_GetDate [11:51:36]Write to MH i2c: F0 00 00 AE 0C A9 [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 09 00 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 09 00 AE 0C 00 49 E3 18 67 21 48 4A 65 75 [11:51:36]GetLastDocTimeStamp 1729684170 [11:51:36]current date 1729684297 [11:51:36]FM_GetShiftState [11:51:36]SAM_PROTO_GetShiftState [11:51:36]wFMCommunicate request_size=4 [11:51:36]MH_SAM_APDU [11:51:36]CAPDU: 80 13 01 00 [11:51:36]Write to MH i2c: E2 08 00 AF 0C 80 13 01 00 00 00 00 00 38 [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:37]Read from MH i2c: E2 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 AF 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 03 [11:51:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:51:37]wFMCommunicate OK [11:51:37]SAM_PROTO_GetShiftState done [11:51:37]FM_GetShiftState done [11:51:37]opened in 1729643772 [11:51:37]opened+sec_in_day 1729730172 [11:51:37]quantity*price = 80010 [11:51:37]sum+1 = 80011 [11:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 103 23.10.2024 11:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166688 ФПД: 60186418647906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115137&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166688&fm=60186418647906&tin=02508201610067®Number=0000000000091764&sum=80000 [11:51:38]StoreToDocumentArchive [11:51:38]shift 537 fd 166688 [11:51:38]save to /storage/0537/doc_00166688 [11:51:38]save last doc name /storage/0537/doc_00166688 to /storage/kkm_last_doc_name [11:51:38]save OK [11:51:38]Clear old archive folders... [11:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:38]tlvbuf is 01F428E0 [11:51:38]SAM_PROTO_ClearQueue [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 09 00 00 [11:51:38]Write to MH i2c: E2 08 00 BC 0C 80 09 00 00 00 00 00 00 3A [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_ClearQueue done [11:51:38]KKMCreateOFDPacket [11:51:38]OFDProtocolAddRootSTLVToBuf [11:51:38]FM_MakeSignedData [11:51:38]FM_MakeSignedData [11:51:38]SAM_PROTO_SignData [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 01 02 [11:51:38]Write to MH i2c: E2 08 00 BD 0C 80 0D 01 02 00 00 00 00 42 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=255 [11:51:38]MH_SAM_APDU [11:51: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 49 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8B 02 00 35 04 06 00 36 BD 3E 1A [11:51:38]Write to MH i2c: E2 02 01 BE 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 49 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8B 02 00 35 04 06 00 36 BD 3E 1A 00 00 26 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=7 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 02 02 02 93 62 [11:51:38]Write to MH i2c: E2 0A 00 BF 0C 80 0D 02 02 02 00 93 62 00 00 3E [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 03 02 [11:51:38]Write to MH i2c: E2 08 00 C0 0C 80 0D 03 02 00 00 00 00 47 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0B 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0B 00 C0 0C 00 35 A0 75 E6 EA 3D 7D 63 90 00 7F [11:51:38]RAPDU: 35 A0 75 E6 EA 3D 7D 63 90 00 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_SignData done [11:51:38]FM_MakeSignedData done [11:51:38]CreateOFDProtocolMessage [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 11 00 00 [11:51:38]Write to MH i2c: E2 08 00 C1 0C 80 11 00 00 00 00 00 00 47 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 C1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [11:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:38]wFMCommunicate OK [11:51:38]CreateOFDProtocolMessage done [11:51:38]OFDSenderStorePacket 166688 [11:51:38]StoreOFDPacket docnum=166688 [11:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5F C3 04 01 F3 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 49 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8B 02 00 35 04 06 00 36 BD 3E 1A 93 62 35 A0 75 E6 EA 3D 7D 63 [11:51:38]CheckFolder [11:51:38]dirname=/storage/ofd_packets [11:51:38]CheckFolder done [11:51:38]ProducePacketName [11:51:38]name=ofd_packets/00166688 [11:51:38]NVStorageSaveData ofd_packets/00166688 [11:51:38]File name is /storage/ofd_packets/00166688 [11:51:38]Write 298 bytes [11:51:38]NVStorageSaveData done [11:51:38]OFDSenderStorePacket done [11:51:38]KKMCreateOFDPacket done [11:51:38]NVStorageSaveData kkm_last_timestamp [11:51:38]File name is /storage/kkm_last_timestamp [11:51:38]Write 4 bytes [11:51:38]NVStorageSaveData done [11:51:38]ExternCall_PrintAddStr [11:51:38]wPrintStart [11:51:38]Write to MH i2c: 01 00 00 C2 0C CE [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 07 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 07 00 C2 0C 00 00 00 00 00 FF 0F E3 [11:51:38]RasterBufferAndPrint [11:51:38]line Счет N : (1)221268 [11:51:38]line ИНН: 02508201610067 [11:51:38]line Контрольно-Кассовый Чек [11:51:38]line ПРОДАЖА [11:51:38]line ТРК (МРК, ГНК) : 31 [11:51:38]line Товар: 2710194210 [11:51:38]line ДТ-К-5 [11:51:38]line 10.500 * 76.20 [11:51:38]line = 800.10 [11:51:38]line НДС 12% НСП 1% [11:51:38]line > о реализуемом товаре [11:51:38]line ОКРУГЛЕНИЕ: -0.10 [11:51:38]line ИТОГО: 800.00 [11:51:38]line Внесено: 800.00 [11:51:38]line СДАЧА: 0.00 [11:51:38]line НСП 1% : 7.08 [11:51:38]line НДС 12% : 84.97 [11:51:38]line Наличными: 800.00 [11:51:38]line Безнал.: 0.00 [11:51:38]line Место: АЗС № 161 "Партнер Нефть" [11:51:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:51:38]line СНО: Общий режим [11:51:38]line Чек 103 23.10.2024 11:51 [11:51:38]line Смена: 537 ФФД: 1.0 [11:51:38]line ЗНМ: 0300000104 [11:51:38]line РНМ: 0000000000091764 [11:51:38]line Версия ККМ: 001 [11:51:38]line ФМ: 0000000000871759 [11:51:38]line ФД: 166688 [11:51:38]line ФПД: 60186418647906 [11:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115137&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166688&fm=60186418647906&tin=02508201610067®Number=0000000000091764&sum=80000 [11:51:38]OFD Sender: Processing packet 166688 [packets to send 48, broken 47] [11:51:38]ProducePacketName [11:51:38]name=ofd_packets/00166688 [11:51:38]OFD Sender: To server: pG, [11:51:38]CommunicateWithHost lk.salyk.kg:30040 [11:51:38]ConnectInit lk.salyk.kg [11:51:38]written 0, free lines is 4095 [11:51:39]Connected sock=10 [11:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5F C3 04 01 F3 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 49 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8B 02 00 35 04 06 00 36 BD 3E 1A 93 62 35 A0 75 E6 EA 3D 7D 63 [11:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A8 7A 47 00 C6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8B 02 00 F4 03 04 00 B1 89 18 67 B6 04 01 00 00 15 A1 CF 11 D2 7F 1A 0E [11:51:39]CommunicateWithHost err = 0 [11:51:39]CheckOFDResponse [11:51:39]1017 (14) - 77093643461234 [11:51:39]1041 (16) - 0000000000871759 [11:51:39]1040 (4) - 166688 [11:51:39]1012 (4) - 23.10.2024 05:29 [11:51:39]1206 (1) - 0 [11:51:39]OFD Sender: Remove packet 166688 [11:51:39]ProducePacketName [11:51:39]name=ofd_packets/00166688 [11:51:39]NVStorageDeleteData [11:51:39]Write to MH i2c: 01 00 00 ED 0C F9 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 07 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 AA 0C B6 [11:51:39]RasterBufferAndPrint [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]written 0, free lines is 3248 [11:51:39]MH_Cut [11:51:39]Write to MH i2c: D1 01 00 F4 0C 01 D2 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 01 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 01 00 F4 0C 00 D1 [11:51:39]Write to MH i2c: 01 00 00 F5 0C 01 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]OFD Sender: No OFD packet to send [11:51:40]*** Cut start [11:51:40]*** Partial cut [11:51:40]*** CUTSNS_PIN = 1 [11:51:40]*** CUTSNS_PIN = 0 [11:51:40]*** Brake cut motor [11:51:40]Read from MH i2c: 01 [11:51:40]MH_I2C_Read... [11:51:40]*** Stop cut motor [11:51:40]*** Cut end [11:51:40]Read from MH i2c: 01 07 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [11:51:40]process_action close_receipt done [11:51:40]requested_data is exist [11:51:40]produce_requested_data [11:51:40]requested_item fm.sn is exist - process it [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 11 00 00 [11:51:40]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 17 00 [11:51:40]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [11:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:41]wFMCommunicate OK [11:51:41]requested_item fd.num is exist - process it [11:51:41]SAM_PROTO_GetFieldsCounters [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 13 00 00 [11:51:41]Write to MH i2c: E2 08 00 F7 0C 80 13 00 00 00 00 00 00 7F [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 62 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 62 00 F7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_GetFieldsCounters done [11:51:41]requested_item shift.num is exist - process it [11:51:41]requested_item shift.opened is exist - process it [11:51:41]req_shift_opened [11:51:41]FM_GetShiftState [11:51:41]SAM_PROTO_GetShiftState [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 13 01 00 [11:51:41]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0E 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4C [11:51:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_GetShiftState done [11:51:41]FM_GetShiftState done [11:51:41]req_shift_opened done [11:51:41]requested_item shift.open_date is exist - process it [11:51:41]req_shift_open_date [11:51:41]req_shift_open_date done [11:51:41]produce_requested_data done [11:51:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166688,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:51:41]process_action_free close_receipt [11:51:41]json_value_free [11:51:41]json_value_free done [11:51:41]process_json_proto returns [11:51:41]Send response to host [11:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166688,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:51:41]free response buf [11:51:41]execute_script done [11:51:41]execute_script returns [11:51:41]free content buf [11:51:41]Sock 8.Close socket [11:51:41]Sock 8.Thread stoped [11:51:44]OFD Sender: No OFD packet to send [11:51:49]accept exits with 9 [11:51:49]New connection [11:51:49]New thread 3067178340 created [11:51:49]Thread 3067034980 joined [11:51:49]Waiting for new connection... [11:51:49] Sock 9.Parse request [11:51:49]Sock 9.Check first char [11:51:49]Sock 9.First char is OK [11:51:49]request: POST /json_proto HTTP/1.0 [11:51:49]Method: POST [11:51:49]URL: /json_proto [11:51:49]Method is POST - this is cgi request [11:51:49]url: /json_proto [11:51:49]query_string will be loaded in cgi processing [11:51:49]execute_cgi json_proto POST (null) [11:51:49]execute_cgi path=json_proto method=POST [11:51:49]POST find Content-Length [11:51:49]Host: 172.17.53.195:8080 [11:51:49]Content-Length: 682 [11:51:49]Content-Type: application/json [11:51:49] [11:51:49]POST finish read [11:51:49]Found Content-Length = 682 [11:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:49]execute_script... [11:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:49]POST & json_proto [11:51:49]process_json_proto [11:51:49]json parsed OK: [11:51:49]protocol is kg_v1.0 [11:51:49]action value=close_receipt [11:51:49]process_action close_receipt [11:51:49]cmd_close_receipt [11:51:49]MH_GetDate [11:51:49]Write to MH i2c: F0 00 00 F9 0C F4 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 09 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 09 00 F9 0C 00 56 E3 18 67 21 48 4A 65 CD [11:51:49]GetLastDocTimeStamp 1729684297 [11:51:49]current date 1729684310 [11:51:49]FM_GetShiftState [11:51:49]SAM_PROTO_GetShiftState [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 13 01 00 [11:51:49]Write to MH i2c: E2 08 00 FA 0C 80 13 01 00 00 00 00 00 83 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0E 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0E 00 FA 0C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4E [11:51:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:51:49]wFMCommunicate OK [11:51:49]SAM_PROTO_GetShiftState done [11:51:49]FM_GetShiftState done [11:51:49]opened in 1729643772 [11:51:49]opened+sec_in_day 1729730172 [11:51:49]quantity*price = 200043 [11:51:49]sum+1 = 200044 [11:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 104 23.10.2024 11:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166689 ФПД: 172730870509339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115150&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166689&fm=172730870509339&tin=02508201610067®Number=0000000000091764&sum=200000 [11:51:50]StoreToDocumentArchive [11:51:50]shift 537 fd 166689 [11:51:50]save to /storage/0537/doc_00166689 [11:51:50]save last doc name /storage/0537/doc_00166689 to /storage/kkm_last_doc_name [11:51:50]save OK [11:51:50]Clear old archive folders... [11:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:50]tlvbuf is B6EF83B0 [11:51:50]SAM_PROTO_ClearQueue [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 09 00 00 [11:51:50]Write to MH i2c: E2 08 00 07 0D 80 09 00 00 00 00 00 00 86 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]SAM_PROTO_ClearQueue done [11:51:50]KKMCreateOFDPacket [11:51:50]OFDProtocolAddRootSTLVToBuf [11:51:50]FM_MakeSignedData [11:51:50]FM_MakeSignedData [11:51:50]SAM_PROTO_SignData [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 0D 01 02 [11:51:50]Write to MH i2c: E2 08 00 08 0D 80 0D 01 02 00 00 00 00 8E [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]wFMCommunicate request_size=255 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 56 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8B 02 00 35 04 06 00 9D [11:51:50]Write to MH i2c: E2 02 01 09 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 56 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8B 02 00 35 04 06 00 9D 00 00 52 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]wFMCommunicate request_size=10 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 02 02 05 19 0A 2D AF 1B [11:51:51]Write to MH i2c: E2 0D 00 0A 0D 80 0D 02 02 05 00 19 0A 2D AF 1B 00 00 B5 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 03 02 [11:51:51]Write to MH i2c: E2 08 00 0B 0D 80 0D 03 02 00 00 00 00 93 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0B 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0B 00 0B 0D 00 34 1B C1 FC 21 A3 29 35 90 00 C2 [11:51:51]RAPDU: 34 1B C1 FC 21 A3 29 35 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_SignData done [11:51:51]FM_MakeSignedData done [11:51:51]CreateOFDProtocolMessage [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 11 00 00 [11:51:51]Write to MH i2c: E2 08 00 0C 0D 80 11 00 00 00 00 00 00 93 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 0C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [11:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:51]wFMCommunicate OK [11:51:51]CreateOFDProtocolMessage done [11:51:51]OFDSenderStorePacket 166689 [11:51:51]StoreOFDPacket docnum=166689 [11:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 A8 07 01 8C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 56 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8B 02 00 35 04 06 00 9D 19 0A 2D AF 1B 34 1B C1 FC 21 A3 29 35 [11:51:51]CheckFolder [11:51:51]dirname=/storage/ofd_packets [11:51:51]CheckFolder done [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00166689 [11:51:51]NVStorageSaveData ofd_packets/00166689 [11:51:51]File name is /storage/ofd_packets/00166689 [11:51:51]Write 301 bytes [11:51:51]NVStorageSaveData done [11:51:51]OFDSenderStorePacket done [11:51:51]KKMCreateOFDPacket done [11:51:51]NVStorageSaveData kkm_last_timestamp [11:51:51]File name is /storage/kkm_last_timestamp [11:51:51]Write 4 bytes [11:51:51]NVStorageSaveData done [11:51:51]ExternCall_PrintAddStr [11:51:51]wPrintStart [11:51:51]Write to MH i2c: 01 00 00 0D 0D 1A [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 FF 0F 2F [11:51:51]RasterBufferAndPrint [11:51:51]line Счет N : (1)221272 [11:51:51]line ИНН: 02508201610067 [11:51:51]line Контрольно-Кассовый Чек [11:51:51]line ПРОДАЖА [11:51:51]line ТРК (МРК, ГНК) : 24 [11:51:51]line Товар: 2710124500 [11:51:51]line Аи-95-К-5 [11:51:51]line 26.960 * 74.20 [11:51:51]line = 2000.43 [11:51:51]line НДС 12% НСП 1% [11:51:51]line > о реализуемом товаре [11:51:51]line ОКРУГЛЕНИЕ: -0.43 [11:51:51]line ИТОГО: 2000.00 [11:51:51]line Внесено: 2000.00 [11:51:51]line СДАЧА: 0.00 [11:51:51]line НСП 1% : 17.70 [11:51:51]line НДС 12% : 212.43 [11:51:51]line Наличными: 2000.00 [11:51:51]line Безнал.: 0.00 [11:51:51]line Место: АЗС № 161 "Партнер Нефть" [11:51:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:51:51]line СНО: Общий режим [11:51:51]line Чек 104 23.10.2024 11:51 [11:51:51]line Смена: 537 ФФД: 1.0 [11:51:51]line ЗНМ: 0300000104 [11:51:51]line РНМ: 0000000000091764 [11:51:51]line Версия ККМ: 001 [11:51:51]line ФМ: 0000000000871759 [11:51:51]line ФД: 166689 [11:51:51]line ФПД: 172730870509339 [11:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115150&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166689&fm=172730870509339&tin=02508201610067®Number=0000000000091764&sum=200000 [11:51:51]OFD Sender: Processing packet 166689 [packets to send 48, broken 47] [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00166689 [11:51:51]OFD Sender: To server: pG, [11:51:51]CommunicateWithHost lk.salyk.kg:30040 [11:51:51]ConnectInit lk.salyk.kg [11:51:51]written 0, free lines is 4095 [11:51:51]Connected sock=10 [11:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 A8 07 01 8C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 56 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8B 02 00 35 04 06 00 9D 19 0A 2D AF 1B 34 1B C1 FC 21 A3 29 35 [11:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA 3F 47 00 28 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8B 02 00 F4 03 04 00 BE 89 18 67 B6 04 01 00 00 58 2B 67 C8 A8 AF 6E 4E [11:51:51]CommunicateWithHost err = 0 [11:51:51]CheckOFDResponse [11:51:51]1017 (14) - 77093643461234 [11:51:51]1041 (16) - 0000000000871759 [11:51:51]1040 (4) - 166689 [11:51:51]1012 (4) - 23.10.2024 05:29 [11:51:51]1206 (1) - 0 [11:51:51]OFD Sender: Remove packet 166689 [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00166689 [11:51:51]NVStorageDeleteData [11:51:52]Write to MH i2c: 01 00 00 38 0D 45 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 07 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 AB 0C 03 [11:51:52]RasterBufferAndPrint [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]written 0, free lines is 3250 [11:51:52]MH_Cut [11:51:52]Write to MH i2c: D1 01 00 3F 0D 01 1E [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 01 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 01 00 3F 0D 00 1D [11:51:52]Write to MH i2c: 01 00 00 40 0D 4D [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]OFD Sender: No OFD packet to send [11:51:52]*** Cut start [11:51:52]*** Partial cut [11:51:52]*** CUTSNS_PIN = 1 [11:51:52]*** CUTSNS_PIN = 0 [11:51:53]*** Brake cut motor [11:51:53]Read from MH i2c: 01 *** Stop cut motor [11:51:53]*** Cut end [11:51:53] [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 40 0D 00 00 00 00 00 FF 0F 62 [11:51:53]process_action close_receipt done [11:51:53]requested_data is exist [11:51:53]produce_requested_data [11:51:53]requested_item fm.sn is exist - process it [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 11 00 00 [11:51:53]Write to MH i2c: E2 08 00 41 0D 80 11 00 00 00 00 00 00 C8 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 41 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [11:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:53]wFMCommunicate OK [11:51:53]requested_item fd.num is exist - process it [11:51:53]SAM_PROTO_GetFieldsCounters [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 13 00 00 [11:51:53]Write to MH i2c: E2 08 00 42 0D 80 13 00 00 00 00 00 00 CB [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 62 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 62 00 42 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_GetFieldsCounters done [11:51:53]requested_item shift.num is exist - process it [11:51:53]requested_item shift.opened is exist - process it [11:51:53]req_shift_opened [11:51:53]FM_GetShiftState [11:51:53]SAM_PROTO_GetShiftState [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 13 01 00 [11:51:53]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0E 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 98 [11:51:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_GetShiftState done [11:51:53]FM_GetShiftState done [11:51:53]req_shift_opened done [11:51:53]requested_item shift.open_date is exist - process it [11:51:53]req_shift_open_date [11:51:53]req_shift_open_date done [11:51:53]produce_requested_data done [11:51:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166689,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:51:53]process_action_free close_receipt [11:51:53]json_value_free [11:51:53]json_value_free done [11:51:53]process_json_proto returns [11:51:53]Send response to host [11:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166689,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:51:53]free response buf [11:51:53]execute_script done [11:51:53]execute_script returns [11:51:53]free content buf [11:51:53]Sock 9.Close socket [11:51:53]Sock 9.Thread stoped [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:08]accept exits with 8 [11:52:08]New connection [11:52:08]New thread 3067034980 created [11:52:08]Thread 3067178340 joined [11:52:08]Waiting for new connection... [11:52:08] Sock 8.Parse request [11:52:08]Sock 8.Check first char [11:52:08]Sock 8.First char is OK [11:52:08]request: POST /json_proto HTTP/1.0 [11:52:08]Method: POST [11:52:08]URL: /json_proto [11:52:08]Method is POST - this is cgi request [11:52:08]url: /json_proto [11:52:08]query_string will be loaded in cgi processing [11:52:08]execute_cgi json_proto POST (null) [11:52:08]execute_cgi path=json_proto method=POST [11:52:08]POST find Content-Length [11:52:08]Host: 172.17.53.195:8080 [11:52:08]Content-Length: 682 [11:52:08]Content-Type: application/json [11:52:08] [11:52:08]POST finish read [11:52:08]Found Content-Length = 682 [11:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:08]execute_script... [11:52: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)221273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:08]POST & json_proto [11:52:08]process_json_proto [11:52:08]json parsed OK: [11:52:08]protocol is kg_v1.0 [11:52:08]action value=close_receipt [11:52:08]process_action close_receipt [11:52:08]cmd_close_receipt [11:52:08]MH_GetDate [11:52:08]Write to MH i2c: F0 00 00 44 0D 40 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 09 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 09 00 44 0D 00 69 E3 18 67 21 48 4A 65 2C [11:52:08]GetLastDocTimeStamp 1729684310 [11:52:08]current date 1729684329 [11:52:08]FM_GetShiftState [11:52:08]SAM_PROTO_GetShiftState [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 13 01 00 [11:52:08]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0E 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9A [11:52:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:52:08]wFMCommunicate OK [11:52:08]SAM_PROTO_GetShiftState done [11:52:08]FM_GetShiftState done [11:52:08]opened in 1729643772 [11:52:08]opened+sec_in_day 1729730172 [11:52:08]quantity*price = 100015 [11:52:08]sum+1 = 100017 [11:52: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 105 23.10.2024 11:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166690 ФПД: 12536981376105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166690&fm=12536981376105&tin=02508201610067®Number=0000000000091764&sum=100000 [11:52:09]StoreToDocumentArchive [11:52:09]shift 537 fd 166690 [11:52:09]save to /storage/0537/doc_00166690 [11:52:09]save last doc name /storage/0537/doc_00166690 to /storage/kkm_last_doc_name [11:52:09]save OK [11:52:09]Clear old archive folders... [11:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:09]tlvbuf is B6EDF4C0 [11:52:09]SAM_PROTO_ClearQueue [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 09 00 00 [11:52:09]Write to MH i2c: E2 08 00 52 0D 80 09 00 00 00 00 00 00 D1 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_ClearQueue done [11:52:09]KKMCreateOFDPacket [11:52:09]OFDProtocolAddRootSTLVToBuf [11:52:09]FM_MakeSignedData [11:52:09]FM_MakeSignedData [11:52:09]SAM_PROTO_SignData [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 0D 01 02 [11:52:09]Write to MH i2c: E2 08 00 53 0D 80 0D 01 02 00 00 00 00 D9 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]wFMCommunicate request_size=255 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 69 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8B 02 00 35 04 06 00 0B [11:52:09]Write to MH i2c: E2 02 01 54 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 69 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8B 02 00 35 04 06 00 0B 00 00 72 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 03 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [11:52:10]RAPDU: 90 00 [11:52:10]wFMCommunicate OK [11:52:10]wFMCommunicate request_size=10 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 0D 02 02 05 66 FE 52 4C 69 [11:52:10]Write to MH i2c: E2 0D 00 55 0D 80 0D 02 02 05 00 66 FE 52 4C 69 00 00 51 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 03 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [11:52:10]RAPDU: 90 00 [11:52:10]wFMCommunicate OK [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 0D 03 02 [11:52:10]Write to MH i2c: E2 08 00 56 0D 80 0D 03 02 00 00 00 00 DE [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0B 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0B 00 56 0D 00 BB F5 00 ED 5F 04 B2 EC 90 00 7D [11:52:10]RAPDU: BB F5 00 ED 5F 04 B2 EC 90 00 [11:52:10]wFMCommunicate OK [11:52:10]SAM_PROTO_SignData done [11:52:10]FM_MakeSignedData done [11:52:10]CreateOFDProtocolMessage [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 11 00 00 [11:52:10]Write to MH i2c: E2 08 00 57 0D 80 11 00 00 00 00 00 00 DE [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 57 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [11:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:10]wFMCommunicate OK [11:52:10]CreateOFDProtocolMessage done [11:52:10]OFDSenderStorePacket 166690 [11:52:10]StoreOFDPacket docnum=166690 [11:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 20 07 01 C2 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 69 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8B 02 00 35 04 06 00 0B 66 FE 52 4C 69 BB F5 00 ED 5F 04 B2 EC [11:52:10]CheckFolder [11:52:10]dirname=/storage/ofd_packets [11:52:10]CheckFolder done [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00166690 [11:52:10]NVStorageSaveData ofd_packets/00166690 [11:52:10]File name is /storage/ofd_packets/00166690 [11:52:10]Write 301 bytes [11:52:10]NVStorageSaveData done [11:52:10]OFDSenderStorePacket done [11:52:10]KKMCreateOFDPacket done [11:52:10]NVStorageSaveData kkm_last_timestamp [11:52:10]File name is /storage/kkm_last_timestamp [11:52:10]Write 4 bytes [11:52:10]NVStorageSaveData done [11:52:10]ExternCall_PrintAddStr [11:52:10]wPrintStart [11:52:10]Write to MH i2c: 01 00 00 58 0D 65 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 58 0D 00 00 00 00 00 FF 0F 7A [11:52:10]RasterBufferAndPrint [11:52:10]line Счет N : (1)221273 [11:52:10]line ИНН: 02508201610067 [11:52:10]line Контрольно-Кассовый Чек [11:52:10]line ПРОДАЖА [11:52:10]line ТРК (МРК, ГНК) : 13 [11:52:10]line Товар: 2710124130 [11:52:10]line Аи-92-К-5 [11:52:10]line 14.950 * 66.90 [11:52:10]line = 1000.16 [11:52:10]line НДС 12% НСП 1% [11:52:10]line > о реализуемом товаре [11:52:10]line ОКРУГЛЕНИЕ: -0.16 [11:52:10]line ИТОГО: 1000.00 [11:52:10]line Внесено: 1000.00 [11:52:10]line СДАЧА: 0.00 [11:52:10]line НСП 1% : 8.85 [11:52:10]line НДС 12% : 106.21 [11:52:10]line Наличными: 1000.00 [11:52:10]line Безнал.: 0.00 [11:52:10]line Место: АЗС № 161 "Партнер Нефть" [11:52:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:52:10]line СНО: Общий режим [11:52:10]line Чек 105 23.10.2024 11:52 [11:52:10]line Смена: 537 ФФД: 1.0 [11:52:10]line ЗНМ: 0300000104 [11:52:10]line РНМ: 0000000000091764 [11:52:10]line Версия ККМ: 001 [11:52:10]line ФМ: 0000000000871759 [11:52:10]line ФД: 166690 [11:52:10]line ФПД: 12536981376105 [11:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166690&fm=12536981376105&tin=02508201610067®Number=0000000000091764&sum=100000 [11:52:10]OFD Sender: Processing packet 166690 [packets to send 48, broken 47] [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00166690 [11:52:10]OFD Sender: To server: pG, [11:52:10]CommunicateWithHost lk.salyk.kg:30040 [11:52:10]ConnectInit lk.salyk.kg [11:52:10]written 0, free lines is 4095 [11:52:10]Connected sock=10 [11:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 20 07 01 C2 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 69 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8B 02 00 35 04 06 00 0B 66 FE 52 4C 69 BB F5 00 ED 5F 04 B2 EC [11:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 45 47 00 65 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8B 02 00 F4 03 04 00 D1 89 18 67 B6 04 01 00 00 CE 8B 00 28 09 0D AE 49 [11:52:10]CommunicateWithHost err = 0 [11:52:10]CheckOFDResponse [11:52:10]1017 (14) - 77093643461234 [11:52:10]1041 (16) - 0000000000871759 [11:52:10]1040 (4) - 166690 [11:52:10]1012 (4) - 23.10.2024 05:29 [11:52:10]1206 (1) - 0 [11:52:10]OFD Sender: Remove packet 166690 [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00166690 [11:52:10]NVStorageDeleteData [11:52:10]Write to MH i2c: 01 00 00 83 0D 90 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 B1 0C 54 [11:52:10]RasterBufferAndPrint [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]written 0, free lines is 3255 [11:52:10]MH_Cut [11:52:10]Write to MH i2c: D1 01 00 8A 0D 01 69 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 01 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 01 00 8A 0D 00 68 [11:52:10]Write to MH i2c: 01 00 00 8B 0D 98 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:11]OFD Sender: No OFD packet to send [11:52:11]*** Cut start [11:52:11]*** Partial cut [11:52:11]*** CUTSNS_PIN = 1 [11:52:11]*** CUTSNS_PIN = 0 [11:52:12]*** Brake cut motor [11:52:12]Read from MH i2c: 01 [11:52:12]MH_I2C_Read... [11:52:12]*** Stop cut motor [11:52:12]*** Cut end [11:52:12]Read from MH i2c: 01 07 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [11:52:12]process_action close_receipt done [11:52:12]requested_data is exist [11:52:12]produce_requested_data [11:52:12]requested_item fm.sn is exist - process it [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 11 00 00 [11:52:12]Write to MH i2c: E2 08 00 8C 0D 80 11 00 00 00 00 00 00 13 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 8C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [11:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:12]wFMCommunicate OK [11:52:12]requested_item fd.num is exist - process it [11:52:12]SAM_PROTO_GetFieldsCounters [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 00 00 [11:52:12]Write to MH i2c: E2 08 00 8D 0D 80 13 00 00 00 00 00 00 16 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 62 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 62 00 8D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetFieldsCounters done [11:52:12]requested_item shift.num is exist - process it [11:52:12]requested_item shift.opened is exist - process it [11:52:12]req_shift_opened [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 8E 0D 80 13 01 00 00 00 00 00 18 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 8E 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E3 [11:52:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]req_shift_opened done [11:52:12]requested_item shift.open_date is exist - process it [11:52:12]req_shift_open_date [11:52:12]req_shift_open_date done [11:52:12]produce_requested_data done [11:52:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166690,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:52:12]process_action_free close_receipt [11:52:12]json_value_free [11:52:12]json_value_free done [11:52:12]process_json_proto returns [11:52:12]Send response to host [11:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166690,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:52:12]free response buf [11:52:12]execute_script done [11:52:12]execute_script returns [11:52:12]free content buf [11:52:12]Sock 8.Close socket [11:52:12]Sock 8.Thread stoped [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]accept exits with 9 [11:52:56]New connection [11:52:56]New thread 3067178340 created [11:52:56]Thread 3067034980 joined [11:52:56]Waiting for new connection... [11:52:56] Sock 9.Parse request [11:52:56]Sock 9.Check first char [11:52:56]Sock 9.First char is OK [11:52:56]request: POST /json_proto HTTP/1.0 [11:52:56]Method: POST [11:52:56]URL: /json_proto [11:52:56]Method is POST - this is cgi request [11:52:56]url: /json_proto [11:52:56]query_string will be loaded in cgi processing [11:52:56]execute_cgi json_proto POST (null) [11:52:56]execute_cgi path=json_proto method=POST [11:52:56]POST find Content-Length [11:52:56]Host: 172.17.53.195:8080 [11:52:56]Content-Length: 677 [11:52:56]Content-Type: application/json [11:52:56] [11:52:56]POST finish read [11:52:56]Found Content-Length = 677 [11:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:56]execute_script... [11:52: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)221274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:56]POST & json_proto [11:52:56]process_json_proto [11:52:56]json parsed OK: [11:52:56]protocol is kg_v1.0 [11:52:56]action value=close_receipt [11:52:56]process_action close_receipt [11:52:56]cmd_close_receipt [11:52:56]MH_GetDate [11:52:56]Write to MH i2c: F0 00 00 8F 0D 8B [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 09 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 09 00 8F 0D 00 98 E3 18 67 21 48 4A 65 A6 [11:52:56]GetLastDocTimeStamp 1729684329 [11:52:56]current date 1729684376 [11:52:56]FM_GetShiftState [11:52:56]SAM_PROTO_GetShiftState [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 13 01 00 [11:52:56]Write to MH i2c: E2 08 00 90 0D 80 13 01 00 00 00 00 00 1A [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 90 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E5 [11:52:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_GetShiftState done [11:52:56]FM_GetShiftState done [11:52:56]opened in 1729643772 [11:52:56]opened+sec_in_day 1729730172 [11:52:56]quantity*price = 49974 [11:52:56]sum+1 = 49975 [11:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 106 23.10.2024 11:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166691 ФПД: 144206405380272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166691&fm=144206405380272&tin=02508201610067®Number=0000000000091764&sum=49900 [11:52:57]StoreToDocumentArchive [11:52:57]shift 537 fd 166691 [11:52:57]save to /storage/0537/doc_00166691 [11:52:57]save last doc name /storage/0537/doc_00166691 to /storage/kkm_last_doc_name [11:52:57]save OK [11:52:57]Clear old archive folders... [11:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:57]tlvbuf is 01FA5980 [11:52:57]SAM_PROTO_ClearQueue [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 09 00 00 [11:52:57]Write to MH i2c: E2 08 00 9D 0D 80 09 00 00 00 00 00 00 1C [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_ClearQueue done [11:52:57]KKMCreateOFDPacket [11:52:57]OFDProtocolAddRootSTLVToBuf [11:52:57]FM_MakeSignedData [11:52:57]FM_MakeSignedData [11:52:57]SAM_PROTO_SignData [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 01 02 [11:52:57]Write to MH i2c: E2 08 00 9E 0D 80 0D 01 02 00 00 00 00 24 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]wFMCommunicate request_size=255 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 98 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8B 02 00 35 04 06 00 83 [11:52:57]Write to MH i2c: E2 02 01 9F 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 98 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8B 02 00 35 04 06 00 83 00 00 4D [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]wFMCommunicate request_size=10 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 02 02 05 27 AB 91 28 B0 [11:52:57]Write to MH i2c: E2 0D 00 A0 0D 80 0D 02 02 05 00 27 AB 91 28 B0 00 00 6C [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 03 02 [11:52:57]Write to MH i2c: E2 08 00 A1 0D 80 0D 03 02 00 00 00 00 29 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0B 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0B 00 A1 0D 00 93 8E 15 C0 25 C4 43 F8 90 00 44 [11:52:57]RAPDU: 93 8E 15 C0 25 C4 43 F8 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_SignData done [11:52:57]FM_MakeSignedData done [11:52:57]CreateOFDProtocolMessage [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 11 00 00 [11:52:57]Write to MH i2c: E2 08 00 A2 0D 80 11 00 00 00 00 00 00 29 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 A2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [11:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:57]wFMCommunicate OK [11:52:57]CreateOFDProtocolMessage done [11:52:57]OFDSenderStorePacket 166691 [11:52:57]StoreOFDPacket docnum=166691 [11:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 16 07 01 48 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 98 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8B 02 00 35 04 06 00 83 27 AB 91 28 B0 93 8E 15 C0 25 C4 43 F8 [11:52:57]CheckFolder [11:52:57]dirname=/storage/ofd_packets [11:52:57]CheckFolder done [11:52:57]ProducePacketName [11:52:57]name=ofd_packets/00166691 [11:52:57]NVStorageSaveData ofd_packets/00166691 [11:52:57]File name is /storage/ofd_packets/00166691 [11:52:57]Write 301 bytes [11:52:57]NVStorageSaveData done [11:52:57]OFDSenderStorePacket done [11:52:57]KKMCreateOFDPacket done [11:52:57]NVStorageSaveData kkm_last_timestamp [11:52:57]File name is /storage/kkm_last_timestamp [11:52:57]Write 4 bytes [11:52:57]NVStorageSaveData done [11:52:57]ExternCall_PrintAddStr [11:52:57]wPrintStart [11:52:57]Write to MH i2c: 01 00 00 A3 0D B0 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 FF 0F C5 [11:52:57]RasterBufferAndPrint [11:52:57]line Счет N : (1)221274 [11:52:57]line ИНН: 02508201610067 [11:52:57]line Контрольно-Кассовый Чек [11:52:57]line ПРОДАЖА [11:52:57]line ТРК (МРК, ГНК) : 43 [11:52:57]line Товар: 2710124130 [11:52:57]line Аи-92-К-5 [11:52:57]line 7.470 * 66.90 [11:52:57]line = 499.74 [11:52:57]line НДС 12% НСП 1% [11:52:57]line > о реализуемом товаре [11:52:57]line ОКРУГЛЕНИЕ: -0.74 [11:52:57]line ИТОГО: 499.00 [11:52:57]line Внесено: 500.00 [11:52:57]line СДАЧА: 1.00 [11:52:57]line НСП 1% : 4.42 [11:52:57]line НДС 12% : 53.07 [11:52:57]line Наличными: 499.00 [11:52:57]line Безнал.: 0.00 [11:52:57]line Место: АЗС № 161 "Партнер Нефть" [11:52:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:52:57]line СНО: Общий режим [11:52:57]line Чек 106 23.10.2024 11:52 [11:52:57]line Смена: 537 ФФД: 1.0 [11:52:57]line ЗНМ: 0300000104 [11:52:57]line РНМ: 0000000000091764 [11:52:57]line Версия ККМ: 001 [11:52:57]line ФМ: 0000000000871759 [11:52:57]line ФД: 166691 [11:52:57]line ФПД: 144206405380272 [11:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166691&fm=144206405380272&tin=02508201610067®Number=0000000000091764&sum=49900 [11:52:58]OFD Sender: Processing packet 166691 [packets to send 48, broken 47] [11:52:58]ProducePacketName [11:52:58]name=ofd_packets/00166691 [11:52:58]OFD Sender: To server: pG, [11:52:58]CommunicateWithHost lk.salyk.kg:30040 [11:52:58]ConnectInit lk.salyk.kg [11:52:58]written 0, free lines is 4095 [11:52:58]Connected sock=10 [11:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 16 07 01 48 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 98 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8B 02 00 35 04 06 00 83 27 AB 91 28 B0 93 8E 15 C0 25 C4 43 F8 [11:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 DE 47 00 FE F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8B 02 00 F4 03 04 00 00 8A 18 67 B6 04 01 00 00 AE B0 4B 6B 74 83 F2 08 [11:52:58]CommunicateWithHost err = 0 [11:52:58]CheckOFDResponse [11:52:58]1017 (14) - 77093643461234 [11:52:58]1041 (16) - 0000000000871759 [11:52:58]1040 (4) - 166691 [11:52:58]1012 (4) - 23.10.2024 05:30 [11:52:58]1206 (1) - 0 [11:52:58]OFD Sender: Remove packet 166691 [11:52:58]ProducePacketName [11:52:58]name=ofd_packets/00166691 [11:52:58]NVStorageDeleteData [11:52:58]Write to MH i2c: 01 00 00 CE 0D DB [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 07 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 07 00 CE 0D 00 00 00 00 00 B6 0C A4 [11:52:58]RasterBufferAndPrint [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]written 0, free lines is 3262 [11:52:58]MH_Cut [11:52:58]Write to MH i2c: D1 01 00 D5 0D 01 B4 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 01 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 01 00 D5 0D 00 B3 [11:52:58]Write to MH i2c: 01 00 00 D6 0D E3 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:59]OFD Sender: No OFD packet to send [11:52:59]*** Cut start [11:52:59]*** Partial cut [11:52:59]*** CUTSNS_PIN = 1 [11:52:59]*** CUTSNS_PIN = 0 [11:52:59]*** Brake cut motor [11:53:00]Read from MH i2c: 01 [11:53:00]MH_I2C_Read... [11:53:00]*** Stop cut motor [11:53:00]*** Cut end [11:53:00]Read from MH i2c: 01 07 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 D6 0D 00 00 00 00 00 FF 0F F8 [11:53:00]process_action close_receipt done [11:53:00]requested_data is exist [11:53:00]produce_requested_data [11:53:00]requested_item fm.sn is exist - process it [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 11 00 00 [11:53:00]Write to MH i2c: E2 08 00 D7 0D 80 11 00 00 00 00 00 00 5E [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 17 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 17 00 D7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [11:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:00]wFMCommunicate OK [11:53:00]requested_item fd.num is exist - process it [11:53:00]SAM_PROTO_GetFieldsCounters [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 13 00 00 [11:53:00]Write to MH i2c: E2 08 00 D8 0D 80 13 00 00 00 00 00 00 61 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 62 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 62 00 D8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetFieldsCounters done [11:53:00]requested_item shift.num is exist - process it [11:53:00]requested_item shift.opened is exist - process it [11:53:00]req_shift_opened [11:53:00]FM_GetShiftState [11:53:00]SAM_PROTO_GetShiftState [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 13 01 00 [11:53:00]Write to MH i2c: E2 08 00 D9 0D 80 13 01 00 00 00 00 00 63 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 D9 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2E [11:53:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetShiftState done [11:53:00]FM_GetShiftState done [11:53:00]req_shift_opened done [11:53:00]requested_item shift.open_date is exist - process it [11:53:00]req_shift_open_date [11:53:00]req_shift_open_date done [11:53:00]produce_requested_data done [11:53:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166691,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:53:00]process_action_free close_receipt [11:53:00]json_value_free [11:53:00]json_value_free done [11:53:00]process_json_proto returns [11:53:00]Send response to host [11:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166691,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:53:00]free response buf [11:53:00]execute_script done [11:53:00]execute_script returns [11:53:00]free content buf [11:53:00]Sock 9.Close socket [11:53:00]Sock 9.Thread stoped [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:29]accept exits with 8 [11:54:29]New connection [11:54:29]New thread 3067034980 created [11:54:29]Thread 3067178340 joined [11:54:29]Waiting for new connection... [11:54:29] Sock 8.Parse request [11:54:29]Sock 8.Check first char [11:54:29]Sock 8.First char is OK [11:54:29]request: POST /json_proto HTTP/1.0 [11:54:29]Method: POST [11:54:29]URL: /json_proto [11:54:29]Method is POST - this is cgi request [11:54:29]url: /json_proto [11:54:29]query_string will be loaded in cgi processing [11:54:29]execute_cgi json_proto POST (null) [11:54:29]execute_cgi path=json_proto method=POST [11:54:29]POST find Content-Length [11:54:29]Host: 172.17.53.195:8080 [11:54:29]Content-Length: 679 [11:54:29]Content-Type: application/json [11:54:29] [11:54:29]POST finish read [11:54:29]Found Content-Length = 679 [11:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [11:54:29]execute_script... [11:54: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)221275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [11:54:29]POST & json_proto [11:54:29]process_json_proto [11:54:29]json parsed OK: [11:54:29]protocol is kg_v1.0 [11:54:29]action value=close_receipt [11:54:29]process_action close_receipt [11:54:29]cmd_close_receipt [11:54:29]MH_GetDate [11:54:29]Write to MH i2c: F0 00 00 DA 0D D6 [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 09 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 09 00 DA 0D 00 F6 E3 18 67 21 48 4A 65 4F [11:54:29]GetLastDocTimeStamp 1729684376 [11:54:29]current date 1729684470 [11:54:29]FM_GetShiftState [11:54:29]SAM_PROTO_GetShiftState [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 13 01 00 [11:54:29]Write to MH i2c: E2 08 00 DB 0D 80 13 01 00 00 00 00 00 65 [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 DB 0D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 30 [11:54:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:54:29]wFMCommunicate OK [11:54:29]SAM_PROTO_GetShiftState done [11:54:29]FM_GetShiftState done [11:54:29]opened in 1729643772 [11:54:29]opened+sec_in_day 1729730172 [11:54:29]quantity*price = 140055 [11:54:29]sum+1 = 140057 [11:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 107 23.10.2024 11:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166692 ФПД: 181016563435668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166692&fm=181016563435668&tin=02508201610067®Number=0000000000091764&sum=140000 [11:54:30]StoreToDocumentArchive [11:54:30]shift 537 fd 166692 [11:54:30]save to /storage/0537/doc_00166692 [11:54:30]save last doc name /storage/0537/doc_00166692 to /storage/kkm_last_doc_name [11:54:30]save OK [11:54:30]Clear old archive folders... [11:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:30]tlvbuf is 01FBE550 [11:54:30]SAM_PROTO_ClearQueue [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 09 00 00 [11:54:30]Write to MH i2c: E2 08 00 E8 0D 80 09 00 00 00 00 00 00 67 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_ClearQueue done [11:54:30]KKMCreateOFDPacket [11:54:30]OFDProtocolAddRootSTLVToBuf [11:54:30]FM_MakeSignedData [11:54:30]FM_MakeSignedData [11:54:30]SAM_PROTO_SignData [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 01 02 [11:54:30]Write to MH i2c: E2 08 00 E9 0D 80 0D 01 02 00 00 00 00 6F [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]wFMCommunicate request_size=255 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 6B 00 00 00 F4 03 04 00 F6 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8B 02 00 35 04 06 00 A4 A2 33 F6 [11:54:30]Write to MH i2c: E2 02 01 EA 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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 6B 00 00 00 F4 03 04 00 F6 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8B 02 00 35 04 06 00 A4 A2 33 F6 00 00 38 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]wFMCommunicate request_size=7 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 02 02 02 48 94 [11:54:31]Write to MH i2c: E2 0A 00 EB 0D 80 0D 02 02 02 00 48 94 00 00 52 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 03 02 [11:54:31]Write to MH i2c: E2 08 00 EC 0D 80 0D 03 02 00 00 00 00 74 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 0B 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 0B 00 EC 0D 00 A7 20 FE 4F D7 D7 BB 9A 90 00 8C [11:54:31]RAPDU: A7 20 FE 4F D7 D7 BB 9A 90 00 [11:54:31]wFMCommunicate OK [11:54:31]SAM_PROTO_SignData done [11:54:31]FM_MakeSignedData done [11:54:31]CreateOFDProtocolMessage [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 11 00 00 [11:54:31]Write to MH i2c: E2 08 00 ED 0D 80 11 00 00 00 00 00 00 74 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 17 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 17 00 ED 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [11:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:54:31]wFMCommunicate OK [11:54:31]CreateOFDProtocolMessage done [11:54:31]OFDSenderStorePacket 166692 [11:54:31]StoreOFDPacket docnum=166692 [11:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8B F6 04 01 19 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 6B 00 00 00 F4 03 04 00 F6 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8B 02 00 35 04 06 00 A4 A2 33 F6 48 94 A7 20 FE 4F D7 D7 BB 9A [11:54:31]CheckFolder [11:54:31]dirname=/storage/ofd_packets [11:54:31]CheckFolder done [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00166692 [11:54:31]NVStorageSaveData ofd_packets/00166692 [11:54:31]File name is /storage/ofd_packets/00166692 [11:54:31]Write 298 bytes [11:54:31]NVStorageSaveData done [11:54:31]OFDSenderStorePacket done [11:54:31]KKMCreateOFDPacket done [11:54:31]NVStorageSaveData kkm_last_timestamp [11:54:31]File name is /storage/kkm_last_timestamp [11:54:31]Write 4 bytes [11:54:31]NVStorageSaveData done [11:54:31]ExternCall_PrintAddStr [11:54:31]wPrintStart [11:54:31]Write to MH i2c: 01 00 00 EE 0D FB [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 EE 0D 00 00 00 00 00 FF 0F 10 [11:54:31]RasterBufferAndPrint [11:54:31]line Счет N : (1)221275 [11:54:31]line ИНН: 02508201610067 [11:54:31]line Контрольно-Кассовый Чек [11:54:31]line ПРОДАЖА [11:54:31]line ТРК (МРК, ГНК) : 21 [11:54:31]line Товар: 2710194210 [11:54:31]line ДТ-К-5 [11:54:31]line 18.380 * 76.20 [11:54:31]line = 1400.56 [11:54:31]line НДС 12% НСП 1% [11:54:31]line > о реализуемом товаре [11:54:31]line ОКРУГЛЕНИЕ: -0.56 [11:54:31]line ИТОГО: 1400.00 [11:54:31]line Внесено: 1400.00 [11:54:31]line СДАЧА: 0.00 [11:54:31]line НСП 1% : 12.39 [11:54:31]line НДС 12% : 148.73 [11:54:31]line Наличными: 1400.00 [11:54:31]line Безнал.: 0.00 [11:54:31]line Место: АЗС № 161 "Партнер Нефть" [11:54:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:54:31]line СНО: Общий режим [11:54:31]line Чек 107 23.10.2024 11:54 [11:54:31]line Смена: 537 ФФД: 1.0 [11:54:31]line ЗНМ: 0300000104 [11:54:31]line РНМ: 0000000000091764 [11:54:31]line Версия ККМ: 001 [11:54:31]line ФМ: 0000000000871759 [11:54:31]line ФД: 166692 [11:54:31]line ФПД: 181016563435668 [11:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166692&fm=181016563435668&tin=02508201610067®Number=0000000000091764&sum=140000 [11:54:31]written 0, free lines is 4095 [11:54:31]OFD Sender: Processing packet 166692 [packets to send 48, broken 47] [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00166692 [11:54:31]OFD Sender: To server: pG, [11:54:31]CommunicateWithHost lk.salyk.kg:30040 [11:54:31]ConnectInit lk.salyk.kg [11:54:31]Connected sock=10 [11:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8B F6 04 01 19 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 6B 00 00 00 F4 03 04 00 F6 E3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8B 02 00 35 04 06 00 A4 A2 33 F6 48 94 A7 20 FE 4F D7 D7 BB 9A [11:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 83 4C 47 00 72 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8B 02 00 F4 03 04 00 5E 8A 18 67 B6 04 01 00 00 33 2E E0 30 00 DF 22 EE [11:54:31]CommunicateWithHost err = 0 [11:54:31]CheckOFDResponse [11:54:31]1017 (14) - 77093643461234 [11:54:31]1041 (16) - 0000000000871759 [11:54:31]1040 (4) - 166692 [11:54:31]1012 (4) - 23.10.2024 05:32 [11:54:31]1206 (1) - 0 [11:54:31]OFD Sender: Remove packet 166692 [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00166692 [11:54:31]NVStorageDeleteData [11:54:32]Write to MH i2c: 01 00 00 19 0E 27 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 19 0E 00 00 00 00 00 A7 0C E1 [11:54:32]RasterBufferAndPrint [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]written 0, free lines is 3245 [11:54:32]MH_Cut [11:54:32]Write to MH i2c: D1 01 00 20 0E 01 00 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 20 0E 00 FF [11:54:32]Write to MH i2c: 01 00 00 21 0E 2F [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]OFD Sender: No OFD packet to send [11:54:32]*** Cut start [11:54:32]*** Partial cut [11:54:32]*** CUTSNS_PIN = 1 [11:54:32]*** CUTSNS_PIN = 0 [11:54:33]*** Brake cut motor [11:54:33]Read from MH i2c: 01 [11:54:33]MH_I2C_Read... [11:54:33]*** Stop cut motor [11:54:33]*** Cut end [11:54:33]Read from MH i2c: 01 07 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 FF 0F 44 [11:54:33]process_action close_receipt done [11:54:33]requested_data is exist [11:54:33]produce_requested_data [11:54:33]requested_item fm.sn is exist - process it [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 11 00 00 [11:54:33]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [11:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:54:33]wFMCommunicate OK [11:54:33]requested_item fd.num is exist - process it [11:54:33]SAM_PROTO_GetFieldsCounters [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 00 00 [11:54:33]Write to MH i2c: E2 08 00 23 0E 80 13 00 00 00 00 00 00 AD [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 23 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_GetFieldsCounters done [11:54:33]requested_item shift.num is exist - process it [11:54:33]requested_item shift.opened is exist - process it [11:54:33]req_shift_opened [11:54:33]FM_GetShiftState [11:54:33]SAM_PROTO_GetShiftState [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 01 00 [11:54:33]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0E 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7A [11:54:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_GetShiftState done [11:54:33]FM_GetShiftState done [11:54:33]req_shift_opened done [11:54:33]requested_item shift.open_date is exist - process it [11:54:33]req_shift_open_date [11:54:33]req_shift_open_date done [11:54:33]produce_requested_data done [11:54:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166692,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:54:33]process_action_free close_receipt [11:54:33]json_value_free [11:54:33]json_value_free done [11:54:33]process_json_proto returns [11:54:33]Send response to host [11:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166692,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:54:33]free response buf [11:54:33]execute_script done [11:54:33]execute_script returns [11:54:33]free content buf [11:54:33]Sock 8.Close socket [11:54:33]Sock 8.Thread stoped [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:19]accept exits with 9 [11:57:19]New connection [11:57:19]New thread 3067178340 created [11:57:19]Thread 3067034980 joined [11:57:19]Waiting for new connection... [11:57:19] Sock 9.Parse request [11:57:19]Sock 9.Check first char [11:57:19]Sock 9.First char is OK [11:57:19]request: POST /json_proto HTTP/1.0 [11:57:19]Method: POST [11:57:19]URL: /json_proto [11:57:19]Method is POST - this is cgi request [11:57:19]url: /json_proto [11:57:19]query_string will be loaded in cgi processing [11:57:19]execute_cgi json_proto POST (null) [11:57:19]execute_cgi path=json_proto method=POST [11:57:19]POST find Content-Length [11:57:19]Host: 172.17.53.195:8080 [11:57:19]Content-Length: 682 [11:57:19]Content-Type: application/json [11:57:19] [11:57:19]POST finish read [11:57:19]Found Content-Length = 682 [11:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:19]execute_script... [11:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:19]POST & json_proto [11:57:19]process_json_proto [11:57:19]json parsed OK: [11:57:19]protocol is kg_v1.0 [11:57:19]action value=close_receipt [11:57:19]process_action close_receipt [11:57:19]cmd_close_receipt [11:57:19]MH_GetDate [11:57:19]Write to MH i2c: F0 00 00 25 0E 22 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: F0 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: F0 09 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: F0 09 00 25 0E 00 A0 E4 18 67 21 48 4A 65 46 [11:57:19]GetLastDocTimeStamp 1729684470 [11:57:19]current date 1729684640 [11:57:19]FM_GetShiftState [11:57:19]SAM_PROTO_GetShiftState [11:57:19]wFMCommunicate request_size=4 [11:57:19]MH_SAM_APDU [11:57:19]CAPDU: 80 13 01 00 [11:57:19]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:19]Read from MH i2c: E2 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 0E 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7C [11:57:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:57:19]wFMCommunicate OK [11:57:19]SAM_PROTO_GetShiftState done [11:57:19]FM_GetShiftState done [11:57:19]opened in 1729643772 [11:57:19]opened+sec_in_day 1729730172 [11:57:19]quantity*price = 200043 [11:57:19]sum+1 = 200044 [11:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 108 23.10.2024 11:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166693 ФПД: 266646677289209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166693&fm=266646677289209&tin=02508201610067®Number=0000000000091764&sum=200000 [11:57:20]StoreToDocumentArchive [11:57:20]shift 537 fd 166693 [11:57:20]save to /storage/0537/doc_00166693 [11:57:20]save last doc name /storage/0537/doc_00166693 to /storage/kkm_last_doc_name [11:57:20]save OK [11:57:20]Clear old archive folders... [11:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:20]tlvbuf is 01FA6440 [11:57:20]SAM_PROTO_ClearQueue [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 09 00 00 [11:57:20]Write to MH i2c: E2 08 00 33 0E 80 09 00 00 00 00 00 00 B3 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [11:57:20]RAPDU: 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_ClearQueue done [11:57:20]KKMCreateOFDPacket [11:57:20]OFDProtocolAddRootSTLVToBuf [11:57:20]FM_MakeSignedData [11:57:20]FM_MakeSignedData [11:57:20]SAM_PROTO_SignData [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 0D 01 02 [11:57:20]Write to MH i2c: E2 08 00 34 0E 80 0D 01 02 00 00 00 00 BB [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [11:57:20]RAPDU: 90 00 [11:57:20]wFMCommunicate OK [11:57:20]wFMCommunicate request_size=255 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A0 E4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8B 02 00 35 04 06 00 F2 [11:57:20]Write to MH i2c: E2 02 01 35 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A0 E4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8B 02 00 35 04 06 00 F2 00 00 27 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [11:57:20]RAPDU: 90 00 [11:57:20]wFMCommunicate OK [11:57:20]wFMCommunicate request_size=10 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 0D 02 02 05 83 84 7A F8 F9 [11:57:20]Write to MH i2c: E2 0D 00 36 0E 80 0D 02 02 05 00 83 84 7A F8 F9 00 00 3A [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [11:57:20]RAPDU: 90 00 [11:57:20]wFMCommunicate OK [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 0D 03 02 [11:57:20]Write to MH i2c: E2 08 00 37 0E 80 0D 03 02 00 00 00 00 C0 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0B 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0B 00 37 0E 00 A9 E5 14 1C 05 84 13 9C 90 00 B7 [11:57:20]RAPDU: A9 E5 14 1C 05 84 13 9C 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_SignData done [11:57:20]FM_MakeSignedData done [11:57:20]CreateOFDProtocolMessage [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 11 00 00 [11:57:20]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [11:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:20]wFMCommunicate OK [11:57:20]CreateOFDProtocolMessage done [11:57:20]OFDSenderStorePacket 166693 [11:57:20]StoreOFDPacket docnum=166693 [11:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 99 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A0 E4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8B 02 00 35 04 06 00 F2 83 84 7A F8 F9 A9 E5 14 1C 05 84 13 9C [11:57:20]CheckFolder [11:57:20]dirname=/storage/ofd_packets [11:57:20]CheckFolder done [11:57:20]ProducePacketName [11:57:20]name=ofd_packets/00166693 [11:57:20]NVStorageSaveData ofd_packets/00166693 [11:57:20]File name is /storage/ofd_packets/00166693 [11:57:20]Write 301 bytes [11:57:20]NVStorageSaveData done [11:57:20]OFDSenderStorePacket done [11:57:20]KKMCreateOFDPacket done [11:57:20]NVStorageSaveData kkm_last_timestamp [11:57:20]File name is /storage/kkm_last_timestamp [11:57:20]Write 4 bytes [11:57:20]NVStorageSaveData done [11:57:20]ExternCall_PrintAddStr [11:57:20]wPrintStart [11:57:20]Write to MH i2c: 01 00 00 39 0E 47 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 07 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [11:57:20]RasterBufferAndPrint [11:57:20]line Счет N : (1)221276 [11:57:20]line ИНН: 02508201610067 [11:57:20]line Контрольно-Кассовый Чек [11:57:20]line ПРОДАЖА [11:57:20]line ТРК (МРК, ГНК) : 14 [11:57:20]line Товар: 2710124500 [11:57:20]line Аи-95-К-5 [11:57:20]line 26.960 * 74.20 [11:57:20]line = 2000.43 [11:57:20]line НДС 12% НСП 1% [11:57:20]line > о реализуемом товаре [11:57:20]line ОКРУГЛЕНИЕ: -0.43 [11:57:20]line ИТОГО: 2000.00 [11:57:20]line Внесено: 2000.00 [11:57:20]line СДАЧА: 0.00 [11:57:20]line НСП 1% : 17.70 [11:57:20]line НДС 12% : 212.43 [11:57:20]line Наличными: 2000.00 [11:57:20]line Безнал.: 0.00 [11:57:20]line Место: АЗС № 161 "Партнер Нефть" [11:57:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:57:20]line СНО: Общий режим [11:57:20]line Чек 108 23.10.2024 11:57 [11:57:20]line Смена: 537 ФФД: 1.0 [11:57:20]line ЗНМ: 0300000104 [11:57:20]line РНМ: 0000000000091764 [11:57:20]line Версия ККМ: 001 [11:57:20]line ФМ: 0000000000871759 [11:57:20]line ФД: 166693 [11:57:20]line ФПД: 266646677289209 [11:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166693&fm=266646677289209&tin=02508201610067®Number=0000000000091764&sum=200000 [11:57:21]OFD Sender: Processing packet 166693 [packets to send 48, broken 47] [11:57:21]ProducePacketName [11:57:21]name=ofd_packets/00166693 [11:57:21]OFD Sender: To server: pG, [11:57:21]CommunicateWithHost lk.salyk.kg:30040 [11:57:21]ConnectInit lk.salyk.kg [11:57:21]written 0, free lines is 4095 [11:57:21]Connected sock=10 [11:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 99 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A0 E4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8B 02 00 35 04 06 00 F2 83 84 7A F8 F9 A9 E5 14 1C 05 84 13 9C [11:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A 1F 47 00 2A 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8B 02 00 F4 03 04 00 07 8B 18 67 B6 04 01 00 00 00 87 6A 1C 87 EF F8 D9 [11:57:21]CommunicateWithHost err = 0 [11:57:21]CheckOFDResponse [11:57:21]1017 (14) - 77093643461234 [11:57:21]1041 (16) - 0000000000871759 [11:57:21]1040 (4) - 166693 [11:57:21]1012 (4) - 23.10.2024 05:35 [11:57:21]1206 (1) - 0 [11:57:21]OFD Sender: Remove packet 166693 [11:57:21]ProducePacketName [11:57:21]name=ofd_packets/00166693 [11:57:21]NVStorageDeleteData [11:57:21]Write to MH i2c: 01 00 00 64 0E 72 [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: 01 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: 01 07 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 B2 0C 37 [11:57:21]RasterBufferAndPrint [11:57:21]line [11:57:21]line [11:57:21]line [11:57:21]line [11:57:21]line [11:57:21]written 0, free lines is 3256 [11:57:21]MH_Cut [11:57:21]Write to MH i2c: D1 01 00 6B 0E 01 4B [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: D1 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: D1 01 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: D1 01 00 6B 0E 00 4A [11:57:21]Write to MH i2c: 01 00 00 6C 0E 7A [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:22]OFD Sender: No OFD packet to send [11:57:22]*** Cut start [11:57:22]*** Partial cut [11:57:22]*** CUTSNS_PIN = 1 [11:57:22]*** CUTSNS_PIN = 0 [11:57:22]*** Brake cut motor [11:57:23]Read from MH i2c: 01 [11:57:23]MH_I2C_Read... [11:57:23]*** Stop cut motor [11:57:23]*** Cut end [11:57:23]Read from MH i2c: 01 07 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [11:57:23]process_action close_receipt done [11:57:23]requested_data is exist [11:57:23]produce_requested_data [11:57:23]requested_item fm.sn is exist - process it [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 11 00 00 [11:57:23]Write to MH i2c: E2 08 00 6D 0E 80 11 00 00 00 00 00 00 F5 [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 17 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 17 00 6D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [11:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:23]wFMCommunicate OK [11:57:23]requested_item fd.num is exist - process it [11:57:23]SAM_PROTO_GetFieldsCounters [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 13 00 00 [11:57:23]Write to MH i2c: E2 08 00 6E 0E 80 13 00 00 00 00 00 00 F8 [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 62 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 62 00 6E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [11:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:23]wFMCommunicate OK [11:57:23]SAM_PROTO_GetFieldsCounters done [11:57:23]requested_item shift.num is exist - process it [11:57:23]requested_item shift.opened is exist - process it [11:57:23]req_shift_opened [11:57:23]FM_GetShiftState [11:57:23]SAM_PROTO_GetShiftState [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 13 01 00 [11:57:23]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C5 [11:57:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:57:23]wFMCommunicate OK [11:57:23]SAM_PROTO_GetShiftState done [11:57:23]FM_GetShiftState done [11:57:23]req_shift_opened done [11:57:23]requested_item shift.open_date is exist - process it [11:57:23]req_shift_open_date [11:57:23]req_shift_open_date done [11:57:23]produce_requested_data done [11:57:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166693,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:57:23]process_action_free close_receipt [11:57:23]json_value_free [11:57:23]json_value_free done [11:57:23]process_json_proto returns [11:57:23]Send response to host [11:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166693,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:57:23]free response buf [11:57:23]execute_script done [11:57:23]execute_script returns [11:57:23]free content buf [11:57:23]Sock 9.Close socket [11:57:23]Sock 9.Thread stoped [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:58:59]accept exits with 8 [11:58:59]New connection [11:58:59]New thread 3067034980 created [11:58:59]Thread 3067178340 joined [11:58:59]Waiting for new connection... [11:58:59] Sock 8.Parse request [11:58:59]Sock 8.Check first char [11:58:59]Sock 8.First char is OK [11:58:59]request: POST /json_proto HTTP/1.0 [11:58:59]Method: POST [11:58:59]URL: /json_proto [11:58:59]Method is POST - this is cgi request [11:58:59]url: /json_proto [11:58:59]query_string will be loaded in cgi processing [11:58:59]execute_cgi json_proto POST (null) [11:58:59]execute_cgi path=json_proto method=POST [11:58:59]POST find Content-Length [11:58:59]Host: 172.17.53.195:8080 [11:58:59]Content-Length: 677 [11:58:59]Content-Type: application/json [11:58:59] [11:58:59]POST finish read [11:58:59]Found Content-Length = 677 [11:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:59]execute_script... [11:58:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:59]POST & json_proto [11:58:59]process_json_proto [11:58:59]json parsed OK: [11:58:59]protocol is kg_v1.0 [11:58:59]action value=close_receipt [11:58:59]process_action close_receipt [11:58:59]cmd_close_receipt [11:58:59]MH_GetDate [11:58:59]Write to MH i2c: F0 00 00 70 0E 6D [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 09 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 09 00 70 0E 00 04 E5 18 67 21 48 4A 65 F6 [11:58:59]GetLastDocTimeStamp 1729684640 [11:58:59]current date 1729684740 [11:58:59]FM_GetShiftState [11:58:59]SAM_PROTO_GetShiftState [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 13 01 00 [11:58:59]Write to MH i2c: E2 08 00 71 0E 80 13 01 00 00 00 00 00 FC [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 71 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C7 [11:58:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:58:59]wFMCommunicate OK [11:58:59]SAM_PROTO_GetShiftState done [11:58:59]FM_GetShiftState done [11:58:59]opened in 1729643772 [11:58:59]opened+sec_in_day 1729730172 [11:58:59]quantity*price = 50041 [11:58:59]sum+1 = 50042 [11:58:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 109 23.10.2024 11:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166694 ФПД: 137272016135029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166694&fm=137272016135029&tin=02508201610067®Number=0000000000091764&sum=50000 [11:59:00]StoreToDocumentArchive [11:59:00]shift 537 fd 166694 [11:59:00]save to /storage/0537/doc_00166694 [11:59:00]save last doc name /storage/0537/doc_00166694 to /storage/kkm_last_doc_name [11:59:00]save OK [11:59:00]Clear old archive folders... [11:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:01]tlvbuf is 01FBE3F0 [11:59:01]SAM_PROTO_ClearQueue [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 09 00 00 [11:59:01]Write to MH i2c: E2 08 00 7E 0E 80 09 00 00 00 00 00 00 FE [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]SAM_PROTO_ClearQueue done [11:59:01]KKMCreateOFDPacket [11:59:01]OFDProtocolAddRootSTLVToBuf [11:59:01]FM_MakeSignedData [11:59:01]FM_MakeSignedData [11:59:01]SAM_PROTO_SignData [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 01 02 [11:59:01]Write to MH i2c: E2 08 00 7F 0E 80 0D 01 02 00 00 00 00 06 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=255 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 04 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8B 02 00 35 04 06 00 7C [11:59:01]Write to MH i2c: E2 02 01 80 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 04 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8B 02 00 35 04 06 00 7C 00 00 BB [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=10 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 02 02 05 D9 21 C2 63 75 [11:59:01]Write to MH i2c: E2 0D 00 81 0E 80 0D 02 02 05 00 D9 21 C2 63 75 00 00 A7 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 03 02 [11:59:01]Write to MH i2c: E2 08 00 82 0E 80 0D 03 02 00 00 00 00 0B [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 0B 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 0B 00 82 0E 00 39 31 AB 8B 25 4C 6C 58 90 00 E1 [11:59:01]RAPDU: 39 31 AB 8B 25 4C 6C 58 90 00 [11:59:01]wFMCommunicate OK [11:59:01]SAM_PROTO_SignData done [11:59:01]FM_MakeSignedData done [11:59:01]CreateOFDProtocolMessage [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 11 00 00 [11:59:01]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 17 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [11:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:59:01]wFMCommunicate OK [11:59:01]CreateOFDProtocolMessage done [11:59:01]OFDSenderStorePacket 166694 [11:59:01]StoreOFDPacket docnum=166694 [11:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 D7 07 01 D0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 04 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8B 02 00 35 04 06 00 7C D9 21 C2 63 75 39 31 AB 8B 25 4C 6C 58 [11:59:01]CheckFolder [11:59:01]dirname=/storage/ofd_packets [11:59:01]CheckFolder done [11:59:01]ProducePacketName [11:59:01]name=ofd_packets/00166694 [11:59:01]NVStorageSaveData ofd_packets/00166694 [11:59:01]File name is /storage/ofd_packets/00166694 [11:59:01]Write 301 bytes [11:59:01]NVStorageSaveData done [11:59:01]OFDSenderStorePacket done [11:59:01]KKMCreateOFDPacket done [11:59:01]NVStorageSaveData kkm_last_timestamp [11:59:01]File name is /storage/kkm_last_timestamp [11:59:01]Write 4 bytes [11:59:01]NVStorageSaveData done [11:59:01]ExternCall_PrintAddStr [11:59:01]wPrintStart [11:59:01]Write to MH i2c: 01 00 00 84 0E 92 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 07 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [11:59:01]RasterBufferAndPrint [11:59:01]line Счет N : (1)221277 [11:59:01]line ИНН: 02508201610067 [11:59:01]line Контрольно-Кассовый Чек [11:59:01]line ПРОДАЖА [11:59:01]line ТРК (МРК, ГНК) : 33 [11:59:01]line Товар: 2710124130 [11:59:01]line Аи-92-К-5 [11:59:01]line 7.480 * 66.90 [11:59:01]line = 500.41 [11:59:01]line НДС 12% НСП 1% [11:59:01]line > о реализуемом товаре [11:59:01]line ОКРУГЛЕНИЕ: -0.41 [11:59:01]line ИТОГО: 500.00 [11:59:01]line Внесено: 500.00 [11:59:01]line СДАЧА: 0.00 [11:59:01]line НСП 1% : 4.43 [11:59:01]line НДС 12% : 53.14 [11:59:01]line Наличными: 500.00 [11:59:01]line Безнал.: 0.00 [11:59:01]line Место: АЗС № 161 "Партнер Нефть" [11:59:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:59:01]line СНО: Общий режим [11:59:01]line Чек 109 23.10.2024 11:59 [11:59:01]line Смена: 537 ФФД: 1.0 [11:59:01]line ЗНМ: 0300000104 [11:59:01]line РНМ: 0000000000091764 [11:59:01]line Версия ККМ: 001 [11:59:01]line ФМ: 0000000000871759 [11:59:01]line ФД: 166694 [11:59:01]line ФПД: 137272016135029 [11:59:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166694&fm=137272016135029&tin=02508201610067®Number=0000000000091764&sum=50000 [11:59:01]OFD Sender: Processing packet 166694 [packets to send 48, broken 47] [11:59:01]ProducePacketName [11:59:01]name=ofd_packets/00166694 [11:59:01]OFD Sender: To server: pG, [11:59:01]CommunicateWithHost lk.salyk.kg:30040 [11:59:01]ConnectInit lk.salyk.kg [11:59:01]written 0, free lines is 4095 [11:59:01]Connected sock=10 [11:59:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 D7 07 01 D0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 04 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8B 02 00 35 04 06 00 7C D9 21 C2 63 75 39 31 AB 8B 25 4C 6C 58 [11:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5C B1 47 00 7C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8B 02 00 F4 03 04 00 6C 8B 18 67 B6 04 01 00 00 20 95 93 C1 C8 52 6E 6F [11:59:02]CommunicateWithHost err = 0 [11:59:02]CheckOFDResponse [11:59:02]1017 (14) - 77093643461234 [11:59:02]1041 (16) - 0000000000871759 [11:59:02]1040 (4) - 166694 [11:59:02]1012 (4) - 23.10.2024 05:36 [11:59:02]1206 (1) - 0 [11:59:02]OFD Sender: Remove packet 166694 [11:59:02]ProducePacketName [11:59:02]name=ofd_packets/00166694 [11:59:02]NVStorageDeleteData [11:59:02]Write to MH i2c: 01 00 00 AF 0E BD [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 AA 0C 7A [11:59:02]RasterBufferAndPrint [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]written 0, free lines is 3248 [11:59:02]MH_Cut [11:59:02]Write to MH i2c: D1 01 00 B6 0E 01 96 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 B6 0E 00 95 [11:59:02]Write to MH i2c: 01 00 00 B7 0E C5 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]OFD Sender: No OFD packet to send [11:59:03]*** Cut start [11:59:03]*** Partial cut [11:59:03]*** CUTSNS_PIN = 1 [11:59:03]*** CUTSNS_PIN = 0 [11:59:03]*** Brake cut motor [11:59:03]Read from MH i2c: 01 [11:59:03]MH_I2C_Read... [11:59:03]*** Stop cut motor [11:59:03]*** Cut end [11:59:03]Read from MH i2c: 01 07 00 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: 01 07 00 B7 0E 00 00 00 00 00 FF 0F DA [11:59:03]process_action close_receipt done [11:59:03]requested_data is exist [11:59:03]produce_requested_data [11:59:03]requested_item fm.sn is exist - process it [11:59:03]wFMCommunicate request_size=4 [11:59:03]MH_SAM_APDU [11:59:03]CAPDU: 80 11 00 00 [11:59:03]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [11:59:03]Write i2c OK [11:59:03]MH_I2C_Read... [11:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:03]Read from MH i2c: E2 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: E2 17 00 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 98 [11:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:59:03]wFMCommunicate OK [11:59:03]requested_item fd.num is exist - process it [11:59:03]SAM_PROTO_GetFieldsCounters [11:59:03]wFMCommunicate request_size=4 [11:59:03]MH_SAM_APDU [11:59:03]CAPDU: 80 13 00 00 [11:59:03]Write to MH i2c: E2 08 00 B9 0E 80 13 00 00 00 00 00 00 43 [11:59:03]Write i2c OK [11:59:03]MH_I2C_Read... [11:59:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:03]Read from MH i2c: E2 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: E2 62 00 [11:59:03]MH_I2C_Read... [11:59:03]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:59:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetFieldsCounters done [11:59:04]requested_item shift.num is exist - process it [11:59:04]requested_item shift.opened is exist - process it [11:59:04]req_shift_opened [11:59:04]FM_GetShiftState [11:59:04]SAM_PROTO_GetShiftState [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 01 00 [11:59:04]Write to MH i2c: E2 08 00 BA 0E 80 13 01 00 00 00 00 00 45 [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 BA 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 10 [11:59:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetShiftState done [11:59:04]FM_GetShiftState done [11:59:04]req_shift_opened done [11:59:04]requested_item shift.open_date is exist - process it [11:59:04]req_shift_open_date [11:59:04]req_shift_open_date done [11:59:04]produce_requested_data done [11:59:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166694,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [11:59:04]process_action_free close_receipt [11:59:04]json_value_free [11:59:04]json_value_free done [11:59:04]process_json_proto returns [11:59:04]Send response to host [11:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166694,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [11:59:04]free response buf [11:59:04]execute_script done [11:59:04]execute_script returns [11:59:04]free content buf [11:59:04]Sock 8.Close socket [11:59:04]Sock 8.Thread stoped [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]accept exits with 9 [12:00:32]New connection [12:00:32]New thread 3067178340 created [12:00:32]Thread 3067034980 joined [12:00:32]Waiting for new connection... [12:00:32] Sock 9.Parse request [12:00:32]Sock 9.Check first char [12:00:32]Sock 9.First char is OK [12:00:32]request: POST /json_proto HTTP/1.0 [12:00:32]Method: POST [12:00:32]URL: /json_proto [12:00:32]Method is POST - this is cgi request [12:00:32]url: /json_proto [12:00:32]query_string will be loaded in cgi processing [12:00:32]execute_cgi json_proto POST (null) [12:00:32]execute_cgi path=json_proto method=POST [12:00:32]POST find Content-Length [12:00:32]Host: 172.17.53.195:8080 [12:00:32]Content-Length: 677 [12:00:32]Content-Type: application/json [12:00:32] [12:00:32]POST finish read [12:00:32]Found Content-Length = 677 [12:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:32]execute_script... [12:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:32]POST & json_proto [12:00:32]process_json_proto [12:00:32]json parsed OK: [12:00:32]protocol is kg_v1.0 [12:00:32]action value=close_receipt [12:00:32]process_action close_receipt [12:00:32]cmd_close_receipt [12:00:32]MH_GetDate [12:00:32]Write to MH i2c: F0 00 00 BB 0E B8 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 09 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 09 00 BB 0E 00 61 E5 18 67 21 48 4A 65 9E [12:00:32]GetLastDocTimeStamp 1729684740 [12:00:32]current date 1729684833 [12:00:32]FM_GetShiftState [12:00:32]SAM_PROTO_GetShiftState [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 13 01 00 [12:00:32]Write to MH i2c: E2 08 00 BC 0E 80 13 01 00 00 00 00 00 47 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0E 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0E 00 BC 0E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 12 [12:00:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:00:32]wFMCommunicate OK [12:00:32]SAM_PROTO_GetShiftState done [12:00:32]FM_GetShiftState done [12:00:32]opened in 1729643772 [12:00:32]opened+sec_in_day 1729730172 [12:00:32]quantity*price = 50041 [12:00:32]sum+1 = 50042 [12:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 110 23.10.2024 12:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166695 ФПД: 93277321751682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166695&fm=93277321751682&tin=02508201610067®Number=0000000000091764&sum=50000 [12:00:33]StoreToDocumentArchive [12:00:33]shift 537 fd 166695 [12:00:33]save to /storage/0537/doc_00166695 [12:00:33]save last doc name /storage/0537/doc_00166695 to /storage/kkm_last_doc_name [12:00:33]save OK [12:00:33]Clear old archive folders... [12:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:33]tlvbuf is 01FCDEA0 [12:00:33]SAM_PROTO_ClearQueue [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 09 00 00 [12:00:33]Write to MH i2c: E2 08 00 C9 0E 80 09 00 00 00 00 00 00 49 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_ClearQueue done [12:00:33]KKMCreateOFDPacket [12:00:33]OFDProtocolAddRootSTLVToBuf [12:00:33]FM_MakeSignedData [12:00:33]FM_MakeSignedData [12:00:33]SAM_PROTO_SignData [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 0D 01 02 [12:00:33]Write to MH i2c: E2 08 00 CA 0E 80 0D 01 02 00 00 00 00 51 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]wFMCommunicate request_size=255 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 61 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8B 02 00 35 04 06 00 54 [12:00:33]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8B 02 00 35 04 06 00 54 00 00 3D [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]wFMCommunicate request_size=10 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 0D 02 02 05 D5 D1 A0 EC 82 [12:00:34]Write to MH i2c: E2 0D 00 CC 0E 80 0D 02 02 05 00 D5 D1 A0 EC 82 00 00 12 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 0D 03 02 [12:00:34]Write to MH i2c: E2 08 00 CD 0E 80 0D 03 02 00 00 00 00 56 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 0B 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 0B 00 CD 0E 00 88 41 17 3E 12 0E 34 E5 90 00 AE [12:00:34]RAPDU: 88 41 17 3E 12 0E 34 E5 90 00 [12:00:34]wFMCommunicate OK [12:00:34]SAM_PROTO_SignData done [12:00:34]FM_MakeSignedData done [12:00:34]CreateOFDProtocolMessage [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 11 00 00 [12:00:34]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 17 00 [12:00:34]MH_I2C_Read... [12:00:34]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 31 37 35 39 90 00 AE [12:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:34]wFMCommunicate OK [12:00:34]CreateOFDProtocolMessage done [12:00:34]OFDSenderStorePacket 166695 [12:00:34]StoreOFDPacket docnum=166695 [12:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 28 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8B 02 00 35 04 06 00 54 D5 D1 A0 EC 82 88 41 17 3E 12 0E 34 E5 [12:00:34]CheckFolder [12:00:34]dirname=/storage/ofd_packets [12:00:34]CheckFolder done [12:00:34]ProducePacketName [12:00:34]name=ofd_packets/00166695 [12:00:34]NVStorageSaveData ofd_packets/00166695 [12:00:34]File name is /storage/ofd_packets/00166695 [12:00:34]Write 301 bytes [12:00:34]NVStorageSaveData done [12:00:34]OFDSenderStorePacket done [12:00:34]KKMCreateOFDPacket done [12:00:34]NVStorageSaveData kkm_last_timestamp [12:00:34]File name is /storage/kkm_last_timestamp [12:00:34]Write 4 bytes [12:00:34]NVStorageSaveData done [12:00:34]ExternCall_PrintAddStr [12:00:34]wPrintStart [12:00:34]Write to MH i2c: 01 00 00 CF 0E DD [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [12:00:34]RasterBufferAndPrint [12:00:34]line Счет N : (1)221278 [12:00:34]line ИНН: 02508201610067 [12:00:34]line Контрольно-Кассовый Чек [12:00:34]line ПРОДАЖА [12:00:34]line ТРК (МРК, ГНК) : 23 [12:00:34]line Товар: 2710124130 [12:00:34]line Аи-92-К-5 [12:00:34]line 7.480 * 66.90 [12:00:34]line = 500.41 [12:00:34]line НДС 12% НСП 1% [12:00:34]line > о реализуемом товаре [12:00:34]line ОКРУГЛЕНИЕ: -0.41 [12:00:34]line ИТОГО: 500.00 [12:00:34]line Внесено: 500.00 [12:00:34]line СДАЧА: 0.00 [12:00:34]line НСП 1% : 4.43 [12:00:34]line НДС 12% : 53.14 [12:00:34]line Наличными: 500.00 [12:00:34]line Безнал.: 0.00 [12:00:34]line Место: АЗС № 161 "Партнер Нефть" [12:00:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:00:34]line СНО: Общий режим [12:00:34]line Чек 110 23.10.2024 12:00 [12:00:34]line Смена: 537 ФФД: 1.0 [12:00:34]line ЗНМ: 0300000104 [12:00:34]line РНМ: 0000000000091764 [12:00:34]line Версия ККМ: 001 [12:00:34]line ФМ: 0000000000871759 [12:00:34]line ФД: 166695 [12:00:34]line ФПД: 93277321751682 [12:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166695&fm=93277321751682&tin=02508201610067®Number=0000000000091764&sum=50000 [12:00:34]OFD Sender: Processing packet 166695 [packets to send 48, broken 47] [12:00:34]ProducePacketName [12:00:34]name=ofd_packets/00166695 [12:00:34]OFD Sender: To server: pG, [12:00:34]CommunicateWithHost lk.salyk.kg:30040 [12:00:34]ConnectInit lk.salyk.kg [12:00:34]written 0, free lines is 4095 [12:00:34]Connected sock=10 [12:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 28 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8B 02 00 35 04 06 00 54 D5 D1 A0 EC 82 88 41 17 3E 12 0E 34 E5 [12:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 91 47 00 11 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8B 02 00 F4 03 04 00 C9 8B 18 67 B6 04 01 00 00 05 85 1F FD 24 29 77 BA [12:00:35]CommunicateWithHost err = 0 [12:00:35]CheckOFDResponse [12:00:35]1017 (14) - 77093643461234 [12:00:35]1041 (16) - 0000000000871759 [12:00:35]1040 (4) - 166695 [12:00:35]1012 (4) - 23.10.2024 05:38 [12:00:35]1206 (1) - 0 [12:00:35]OFD Sender: Remove packet 166695 [12:00:35]ProducePacketName [12:00:35]name=ofd_packets/00166695 [12:00:35]NVStorageDeleteData [12:00:35]Write to MH i2c: 01 00 00 FA 0E 08 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 FA 0E 00 00 00 00 00 A8 0C C3 [12:00:35]RasterBufferAndPrint [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]written 0, free lines is 3245 [12:00:35]MH_Cut [12:00:35]Write to MH i2c: D1 01 00 01 0F 01 E2 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 01 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 01 00 01 0F 00 E1 [12:00:35]Write to MH i2c: 01 00 00 02 0F 11 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]OFD Sender: No OFD packet to send [12:00:36]*** Cut start [12:00:36]*** Partial cut [12:00:36]*** CUTSNS_PIN = 1 [12:00:36]*** CUTSNS_PIN = 0 [12:00:36]*** Brake cut motor [12:00:36]Read from MH i2c: 01 [12:00:36]MH_I2C_Read... [12:00:36]*** Stop cut motor [12:00:36]*** Cut end [12:00:36]Read from MH i2c: 01 07 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: 01 07 00 02 0F 00 00 00 00 00 FF 0F 26 [12:00:36]process_action close_receipt done [12:00:36]requested_data is exist [12:00:36]produce_requested_data [12:00:36]requested_item fm.sn is exist - process it [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 11 00 00 [12:00:36]Write to MH i2c: E2 08 00 03 0F 80 11 00 00 00 00 00 00 8C [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 03 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [12:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:36]wFMCommunicate OK [12:00:36]requested_item fd.num is exist - process it [12:00:36]SAM_PROTO_GetFieldsCounters [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 00 00 [12:00:36]Write to MH i2c: E2 08 00 04 0F 80 13 00 00 00 00 00 00 8F [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 04 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetFieldsCounters done [12:00:36]requested_item shift.num is exist - process it [12:00:36]requested_item shift.opened is exist - process it [12:00:36]req_shift_opened [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 05 0F 80 13 01 00 00 00 00 00 91 [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 05 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [12:00:36]RAPDU: 09 00 01 FC 44 18 67 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]req_shift_opened done [12:00:36]requested_item shift.open_date is exist - process it [12:00:36]req_shift_open_date [12:00:36]req_shift_open_date done [12:00:36]produce_requested_data done [12:00:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166695,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:00:36]process_action_free close_receipt [12:00:36]json_value_free [12:00:36]json_value_free done [12:00:36]process_json_proto returns [12:00:36]Send response to host [12:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166695,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:00:36]free response buf [12:00:36]execute_script done [12:00:36]execute_script returns [12:00:36]free content buf [12:00:36]Sock 9.Close socket [12:00:36]Sock 9.Thread stoped [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:04]accept exits with 8 [12:02:04]New connection [12:02:04]New thread 3067034980 created [12:02:04]Thread 3067178340 joined [12:02:04]Waiting for new connection... [12:02:04] Sock 8.Parse request [12:02:04]Sock 8.Check first char [12:02:04]Sock 8.First char is OK [12:02:04]request: POST /json_proto HTTP/1.0 [12:02:04]Method: POST [12:02:04]URL: /json_proto [12:02:04]Method is POST - this is cgi request [12:02:04]url: /json_proto [12:02:04]query_string will be loaded in cgi processing [12:02:04]execute_cgi json_proto POST (null) [12:02:04]execute_cgi path=json_proto method=POST [12:02:04]POST find Content-Length [12:02:04]Host: 172.17.53.195:8080 [12:02:04]Content-Length: 789 [12:02:04]Content-Type: application/json [12:02:04] [12:02:04]POST finish read [12:02:04]Found Content-Length = 789 [12:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:04]execute_script... [12: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)221279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:04]POST & json_proto [12:02:04]process_json_proto [12:02:04]json parsed OK: [12:02:04]protocol is kg_v1.0 [12:02:04]action value=close_receipt [12:02:04]process_action close_receipt [12:02:04]cmd_close_receipt [12:02:04]MH_GetDate [12:02:04]Write to MH i2c: F0 00 00 06 0F 04 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 06 0F 00 BD E5 18 67 21 48 4A 65 46 [12:02:04]GetLastDocTimeStamp 1729684833 [12:02:04]current date 1729684925 [12:02:04]FM_GetShiftState [12:02:04]SAM_PROTO_GetShiftState [12:02:04]wFMCommunicate request_size=4 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 13 01 00 [12:02:04]Write to MH i2c: E2 08 00 07 0F 80 13 01 00 00 00 00 00 93 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 07 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5E [12:02:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:02:04]wFMCommunicate OK [12:02:04]SAM_PROTO_GetShiftState done [12:02:04]FM_GetShiftState done [12:02:04]opened in 1729643772 [12:02:04]opened+sec_in_day 1729730172 [12:02:04]quantity*price = 0 [12:02:04]sum+1 = 1 [12:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 111 23.10.2024 12:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85742 ФМ: 0000000000871759 ФД: 166696 ФПД: 152968144816705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120205&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166696&fm=152968144816705&tin=02508201610067®Number=0000000000091764&sum=0 [12:02:05]StoreToDocumentArchive [12:02:05]shift 537 fd 166696 [12:02:05]save to /storage/0537/doc_00166696 [12:02:05]save last doc name /storage/0537/doc_00166696 to /storage/kkm_last_doc_name [12:02:05]save OK [12:02:05]Clear old archive folders... [12:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:05]tlvbuf is 01FCDEE0 [12:02:05]SAM_PROTO_ClearQueue [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 09 00 00 [12:02:05]Write to MH i2c: E2 08 00 14 0F 80 09 00 00 00 00 00 00 95 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]SAM_PROTO_ClearQueue done [12:02:05]KKMCreateOFDPacket [12:02:05]OFDProtocolAddRootSTLVToBuf [12:02:05]FM_MakeSignedData [12:02:05]FM_MakeSignedData [12:02:05]SAM_PROTO_SignData [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 01 02 [12:02:05]Write to MH i2c: E2 08 00 15 0F 80 0D 01 02 00 00 00 00 9D [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]OFD Sender: No OFD packet to send [12:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]wFMCommunicate request_size=255 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 BD E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8B 02 00 35 04 06 00 8B 1F AB EF [12:02:05]Write to MH i2c: E2 02 01 16 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 BD E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8B 02 00 35 04 06 00 8B 1F AB EF 00 00 12 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]wFMCommunicate request_size=7 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 02 02 02 0A 41 [12:02:05]Write to MH i2c: E2 0A 00 17 0F 80 0D 02 02 02 00 0A 41 00 00 EF [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 17 0F 00 90 00 9A [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 03 02 [12:02:06]Write to MH i2c: E2 08 00 18 0F 80 0D 03 02 00 00 00 00 A2 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0B 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0B 00 18 0F 00 43 7C 4B E9 AC 38 3C 87 90 00 3D [12:02:06]RAPDU: 43 7C 4B E9 AC 38 3C 87 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_SignData done [12:02:06]FM_MakeSignedData done [12:02:06]CreateOFDProtocolMessage [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 11 00 00 [12:02:06]Write to MH i2c: E2 08 00 19 0F 80 11 00 00 00 00 00 00 A2 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 19 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [12:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:06]wFMCommunicate OK [12:02:06]CreateOFDProtocolMessage done [12:02:06]OFDSenderStorePacket 166696 [12:02:06]StoreOFDPacket docnum=166696 [12:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B9 4C 04 01 BE 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 BD E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8B 02 00 35 04 06 00 8B 1F AB EF 0A 41 43 7C 4B E9 AC 38 3C 87 [12:02:06]CheckFolder [12:02:06]dirname=/storage/ofd_packets [12:02:06]CheckFolder done [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00166696 [12:02:06]NVStorageSaveData ofd_packets/00166696 [12:02:06]File name is /storage/ofd_packets/00166696 [12:02:06]Write 298 bytes [12:02:06]NVStorageSaveData done [12:02:06]OFDSenderStorePacket done [12:02:06]KKMCreateOFDPacket done [12:02:06]NVStorageSaveData kkm_last_timestamp [12:02:06]File name is /storage/kkm_last_timestamp [12:02:06]Write 4 bytes [12:02:06]NVStorageSaveData done [12:02:06]ExternCall_PrintAddStr [12:02:06]wPrintStart [12:02:06]Write to MH i2c: 01 00 00 1A 0F 29 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 1A 0F 00 00 00 00 00 FF 0F 3E [12:02:06]RasterBufferAndPrint [12:02:06]line Счет N : (1)221279 [12:02:06]line ИНН: 02508201610067 [12:02:06]line Контрольно-Кассовый Чек [12:02:06]line ПРОДАЖА [12:02:06]line ТРК (МРК, ГНК) : 41 [12:02:06]line Товар: 2710194210 [12:02:06]line ДТ-К-5 [12:02:06]line 39.380 * 0.00 [12:02:06]line = 0.00 [12:02:06]line НДС 12% НСП 1% [12:02:06]line > о реализуемом товаре [12:02:06]line ИТОГО: 0.00 [12:02:06]line НСП 1% : 0.00 [12:02:06]line НДС 12% : 0.00 [12:02:06]line Наличными: 0.00 [12:02:06]line Безнал.: 0.00 [12:02:06]line Место: АЗС № 161 "Партнер Нефть" [12:02:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:02:06]line СНО: Общий режим [12:02:06]line Чек 111 23.10.2024 12:02 [12:02:06]line Смена: 537 ФФД: 1.0 [12:02:06]line ЗНМ: 0300000104 [12:02:06]line РНМ: 0000000000091764 [12:02:06]line Версия ККМ: 001 [12:02:06]line Талоны: Топливная Карта [12:02:06]line 85742 [12:02:06]line ФМ: 0000000000871759 [12:02:06]line ФД: 166696 [12:02:06]line ФПД: 152968144816705 [12:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120205&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166696&fm=152968144816705&tin=02508201610067®Number=0000000000091764&sum=0 [12:02:06]OFD Sender: Processing packet 166696 [packets to send 48, broken 47] [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00166696 [12:02:06]OFD Sender: To server: pG, [12:02:06]CommunicateWithHost lk.salyk.kg:30040 [12:02:06]ConnectInit lk.salyk.kg [12:02:06]written 0, free lines is 4095 [12:02:06]Connected sock=9 [12: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 31 37 35 39 0C 01 00 00 B9 4C 04 01 BE 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 BD E5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8B 02 00 35 04 06 00 8B 1F AB EF 0A 41 43 7C 4B E9 AC 38 3C 87 [12:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DE F6 47 00 9A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8B 02 00 F4 03 04 00 24 8C 18 67 B6 04 01 00 00 87 E5 37 4B 44 2C 1A 60 [12:02:06]CommunicateWithHost err = 0 [12:02:06]CheckOFDResponse [12:02:06]1017 (14) - 77093643461234 [12:02:06]1041 (16) - 0000000000871759 [12:02:06]1040 (4) - 166696 [12:02:06]1012 (4) - 23.10.2024 05:39 [12:02:06]1206 (1) - 0 [12:02:06]OFD Sender: Remove packet 166696 [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00166696 [12:02:06]NVStorageDeleteData [12:02:06]Write to MH i2c: 01 00 00 44 0F 53 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 CD 0C 33 [12:02:06]RasterBufferAndPrint [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]written 0, free lines is 3283 [12:02:06]MH_Cut [12:02:06]Write to MH i2c: D1 01 00 4B 0F 01 2C [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 01 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 01 00 4B 0F 00 2B [12:02:06]Write to MH i2c: 01 00 00 4C 0F 5B [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:07]OFD Sender: No OFD packet to send [12:02:07]*** Cut start [12:02:07]*** Partial cut [12:02:07]*** CUTSNS_PIN = 1 [12:02:07]*** CUTSNS_PIN = 0 [12:02:08]*** Brake cut motor [12:02:08]Read from MH i2c: 01 [12:02:08]MH_I2C_Read... [12:02:08]*** Stop cut motor [12:02:08]*** Cut end [12:02:08]Read from MH i2c: 01 07 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 FF 0F 70 [12:02:08]process_action close_receipt done [12:02:08]requested_data is exist [12:02:08]produce_requested_data [12:02:08]requested_item fm.sn is exist - process it [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 11 00 00 [12:02:08]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 17 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [12:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:08]wFMCommunicate OK [12:02:08]requested_item fd.num is exist - process it [12:02:08]SAM_PROTO_GetFieldsCounters [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 00 00 [12:02:08]Write to MH i2c: E2 08 00 4E 0F 80 13 00 00 00 00 00 00 D9 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 4E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:02:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetFieldsCounters done [12:02:08]requested_item shift.num is exist - process it [12:02:08]requested_item shift.opened is exist - process it [12:02:08]req_shift_opened [12:02:08]FM_GetShiftState [12:02:08]SAM_PROTO_GetShiftState [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 01 00 [12:02:08]Write to MH i2c: E2 08 00 4F 0F 80 13 01 00 00 00 00 00 DB [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:08]Read from MH i2c: E2 0E 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 4F 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A6 [12:02:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetShiftState done [12:02:08]FM_GetShiftState done [12:02:08]req_shift_opened done [12:02:08]requested_item shift.open_date is exist - process it [12:02:08]req_shift_open_date [12:02:08]req_shift_open_date done [12:02:08]produce_requested_data done [12:02:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166696,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:02:08]process_action_free close_receipt [12:02:08]json_value_free [12:02:08]json_value_free done [12:02:08]process_json_proto returns [12:02:08]Send response to host [12:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166696,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:02:08]free response buf [12:02:08]execute_script done [12:02:08]execute_script returns [12:02:08]free content buf [12:02:08]Sock 8.Close socket [12:02:08]Sock 8.Thread stoped [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [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:46]accept exits with 10 [12:05:46]New connection [12:05:46]New thread 3067178340 created [12:05:46]Thread 3067034980 joined [12:05:46]Waiting for new connection... [12:05:46] Sock 10.Parse request [12:05:46]Sock 10.Check first char [12:05:46]Sock 10.First char is OK [12:05:46]request: POST /json_proto HTTP/1.0 [12:05:46]Method: POST [12:05:46]URL: /json_proto [12:05:46]Method is POST - this is cgi request [12:05:46]url: /json_proto [12:05:46]query_string will be loaded in cgi processing [12:05:46]execute_cgi json_proto POST (null) [12:05:46]execute_cgi path=json_proto method=POST [12:05:46]POST find Content-Length [12:05:46]Host: 172.17.53.195:8080 [12:05:46]Content-Length: 682 [12:05:46]Content-Type: application/json [12:05:46] [12:05:46]POST finish read [12:05:46]Found Content-Length = 682 [12:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:46]execute_script... [12:05: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)221280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:46]POST & json_proto [12:05:46]process_json_proto [12:05:46]json parsed OK: [12:05:46]protocol is kg_v1.0 [12:05:46]action value=close_receipt [12:05:46]process_action close_receipt [12:05:46]cmd_close_receipt [12:05:46]MH_GetDate [12:05:46]Write to MH i2c: F0 00 00 50 0F 4E [12:05:46]Write i2c OK [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: F0 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: F0 09 00 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: F0 09 00 50 0F 00 9B E6 18 67 21 48 4A 65 6F [12:05:46]GetLastDocTimeStamp 1729684925 [12:05:46]current date 1729685147 [12:05:46]FM_GetShiftState [12:05:46]SAM_PROTO_GetShiftState [12:05:46]wFMCommunicate request_size=4 [12:05:46]MH_SAM_APDU [12:05:46]CAPDU: 80 13 01 00 [12:05:46]Write to MH i2c: E2 08 00 51 0F 80 13 01 00 00 00 00 00 DD [12:05:46]Write i2c OK [12:05:46]MH_I2C_Read... [12:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:46]Read from MH i2c: E2 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: E2 0E 00 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: E2 0E 00 51 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [12:05:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:05:46]wFMCommunicate OK [12:05:46]SAM_PROTO_GetShiftState done [12:05:46]FM_GetShiftState done [12:05:46]opened in 1729643772 [12:05:46]opened+sec_in_day 1729730172 [12:05:46]quantity*price = 100015 [12:05:46]sum+1 = 100017 [12:05: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 112 23.10.2024 12:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166697 ФПД: 196420343939820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120547&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166697&fm=196420343939820&tin=02508201610067®Number=0000000000091764&sum=100000 [12:05:47]StoreToDocumentArchive [12:05:47]shift 537 fd 166697 [12:05:47]save to /storage/0537/doc_00166697 [12:05:47]save last doc name /storage/0537/doc_00166697 to /storage/kkm_last_doc_name [12:05:47]save OK [12:05:47]Clear old archive folders... [12:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:47]tlvbuf is 01FE0B00 [12:05:47]SAM_PROTO_ClearQueue [12:05:47]wFMCommunicate request_size=4 [12:05:47]MH_SAM_APDU [12:05:47]CAPDU: 80 09 00 00 [12:05:47]Write to MH i2c: E2 08 00 5E 0F 80 09 00 00 00 00 00 00 DF [12:05:47]Write i2c OK [12:05:47]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]SAM_PROTO_ClearQueue done [12:05:48]KKMCreateOFDPacket [12:05:48]OFDProtocolAddRootSTLVToBuf [12:05:48]FM_MakeSignedData [12:05:48]FM_MakeSignedData [12:05:48]SAM_PROTO_SignData [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 0D 01 02 [12:05:48]Write to MH i2c: E2 08 00 5F 0F 80 0D 01 02 00 00 00 00 E7 [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]wFMCommunicate request_size=255 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9B E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8B 02 00 35 04 06 00 B2 [12:05:48]Write to MH i2c: E2 02 01 60 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 9B E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8B 02 00 35 04 06 00 B2 00 00 6A [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]wFMCommunicate request_size=10 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 0D 02 02 05 A4 AC D3 C2 EC [12:05:48]Write to MH i2c: E2 0D 00 61 0F 80 0D 02 02 05 00 A4 AC D3 C2 EC 00 00 C5 [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 0D 03 02 [12:05:48]Write to MH i2c: E2 08 00 62 0F 80 0D 03 02 00 00 00 00 EC [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 0B 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 0B 00 62 0F 00 EF CD AA 42 DD 5A 7E 84 90 00 CE [12:05:48]RAPDU: EF CD AA 42 DD 5A 7E 84 90 00 [12:05:48]wFMCommunicate OK [12:05:48]SAM_PROTO_SignData done [12:05:48]FM_MakeSignedData done [12:05:48]CreateOFDProtocolMessage [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 11 00 00 [12:05:48]Write to MH i2c: E2 08 00 63 0F 80 11 00 00 00 00 00 00 EC [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 17 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 17 00 63 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [12:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:05:48]wFMCommunicate OK [12:05:48]CreateOFDProtocolMessage done [12:05:48]OFDSenderStorePacket 166697 [12:05:48]StoreOFDPacket docnum=166697 [12:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 68 07 01 DA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9B E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8B 02 00 35 04 06 00 B2 A4 AC D3 C2 EC EF CD AA 42 DD 5A 7E 84 [12:05:48]CheckFolder [12:05:48]dirname=/storage/ofd_packets [12:05:48]CheckFolder done [12:05:48]ProducePacketName [12:05:48]name=ofd_packets/00166697 [12:05:48]NVStorageSaveData ofd_packets/00166697 [12:05:48]File name is /storage/ofd_packets/00166697 [12:05:48]Write 301 bytes [12:05:48]NVStorageSaveData done [12:05:48]OFDSenderStorePacket done [12:05:48]KKMCreateOFDPacket done [12:05:48]NVStorageSaveData kkm_last_timestamp [12:05:48]File name is /storage/kkm_last_timestamp [12:05:48]Write 4 bytes [12:05:48]NVStorageSaveData done [12:05:48]ExternCall_PrintAddStr [12:05:48]wPrintStart [12:05:48]Write to MH i2c: 01 00 00 64 0F 73 [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: 01 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: 01 07 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 FF 0F 88 [12:05:48]RasterBufferAndPrint [12:05:48]line Счет N : (1)221280 [12:05:48]line ИНН: 02508201610067 [12:05:48]line Контрольно-Кассовый Чек [12:05:48]line ПРОДАЖА [12:05:48]line ТРК (МРК, ГНК) : 43 [12:05:48]line Товар: 2710124130 [12:05:48]line Аи-92-К-5 [12:05:48]line 14.950 * 66.90 [12:05:48]line = 1000.16 [12:05:48]line НДС 12% НСП 1% [12:05:48]line > о реализуемом товаре [12:05:48]line ОКРУГЛЕНИЕ: -0.16 [12:05:48]line ИТОГО: 1000.00 [12:05:48]line Внесено: 1000.00 [12:05:48]line СДАЧА: 0.00 [12:05:48]line НСП 1% : 8.85 [12:05:48]line НДС 12% : 106.21 [12:05:48]line Наличными: 1000.00 [12:05:48]line Безнал.: 0.00 [12:05:48]line Место: АЗС № 161 "Партнер Нефть" [12:05:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:05:48]line СНО: Общий режим [12:05:48]line Чек 112 23.10.2024 12:05 [12:05:48]line Смена: 537 ФФД: 1.0 [12:05:48]line ЗНМ: 0300000104 [12:05:48]line РНМ: 0000000000091764 [12:05:48]line Версия ККМ: 001 [12:05:48]line ФМ: 0000000000871759 [12:05:48]line ФД: 166697 [12:05:48]line ФПД: 196420343939820 [12:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120547&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166697&fm=196420343939820&tin=02508201610067®Number=0000000000091764&sum=100000 [12:05:48]OFD Sender: Processing packet 166697 [packets to send 48, broken 47] [12:05:48]ProducePacketName [12:05:48]name=ofd_packets/00166697 [12:05:48]OFD Sender: To server: pG, [12:05:48]CommunicateWithHost lk.salyk.kg:30040 [12:05:48]ConnectInit lk.salyk.kg [12:05:48]written 0, free lines is 4095 [12:05:48]Connected sock=9 [12:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 68 07 01 DA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9B E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8B 02 00 35 04 06 00 B2 A4 AC D3 C2 EC EF CD AA 42 DD 5A 7E 84 [12:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 AA 47 00 21 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8B 02 00 F4 03 04 00 03 8D 18 67 B6 04 01 00 00 F8 06 BC 89 2B 9E 4D 3F [12:05:49]CommunicateWithHost err = 0 [12:05:49]CheckOFDResponse [12:05:49]1017 (14) - 77093643461234 [12:05:49]1041 (16) - 0000000000871759 [12:05:49]1040 (4) - 166697 [12:05:49]1012 (4) - 23.10.2024 05:43 [12:05:49]1206 (1) - 0 [12:05:49]OFD Sender: Remove packet 166697 [12:05:49]ProducePacketName [12:05:49]name=ofd_packets/00166697 [12:05:49]NVStorageDeleteData [12:05:49]Write to MH i2c: 01 00 00 8F 0F 9E [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 8F 0F 00 00 00 00 00 BB 0C 6C [12:05:49]RasterBufferAndPrint [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]written 0, free lines is 3266 [12:05:49]MH_Cut [12:05:49]Write to MH i2c: D1 01 00 96 0F 01 77 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 01 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 01 00 96 0F 00 76 [12:05:49]Write to MH i2c: 01 00 00 97 0F A6 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]OFD Sender: No OFD packet to send [12:05:50]*** Cut start [12:05:50]*** Partial cut [12:05:50]*** CUTSNS_PIN = 1 [12:05:50]*** CUTSNS_PIN = 0 [12:05:50]*** Brake cut motor [12:05:50]Read from MH i2c: 01 [12:05:50]MH_I2C_Read... [12:05:50]*** Stop cut motor [12:05:50]*** Cut end [12:05:50]Read from MH i2c: 01 07 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [12:05:50]process_action close_receipt done [12:05:50]requested_data is exist [12:05:50]produce_requested_data [12:05:50]requested_item fm.sn is exist - process it [12:05:50]wFMCommunicate request_size=4 [12:05:50]MH_SAM_APDU [12:05:50]CAPDU: 80 11 00 00 [12:05:50]Write to MH i2c: E2 08 00 98 0F 80 11 00 00 00 00 00 00 21 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:50]Read from MH i2c: E2 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 17 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 17 00 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [12:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:05:50]wFMCommunicate OK [12:05:50]requested_item fd.num is exist - process it [12:05:50]SAM_PROTO_GetFieldsCounters [12:05:50]wFMCommunicate request_size=4 [12:05:50]MH_SAM_APDU [12:05:50]CAPDU: 80 13 00 00 [12:05:50]Write to MH i2c: E2 08 00 99 0F 80 13 00 00 00 00 00 00 24 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:50]Read from MH i2c: E2 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 62 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 62 00 99 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [12:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:50]wFMCommunicate OK [12:05:50]SAM_PROTO_GetFieldsCounters done [12:05:50]requested_item shift.num is exist - process it [12:05:50]requested_item shift.opened is exist - process it [12:05:50]req_shift_opened [12:05:50]FM_GetShiftState [12:05:50]SAM_PROTO_GetShiftState [12:05:50]wFMCommunicate request_size=4 [12:05:50]MH_SAM_APDU [12:05:50]CAPDU: 80 13 01 00 [12:05:50]Write to MH i2c: E2 08 00 9A 0F 80 13 01 00 00 00 00 00 26 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 [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 0E 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 9A 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F1 [12:05:51]RAPDU: 09 00 01 FC 44 18 67 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]req_shift_opened done [12:05:51]requested_item shift.open_date is exist - process it [12:05:51]req_shift_open_date [12:05:51]req_shift_open_date done [12:05:51]produce_requested_data done [12:05:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166697,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:05:51]process_action_free close_receipt [12:05:51]json_value_free [12:05:51]json_value_free done [12:05:51]process_json_proto returns [12:05:51]Send response to host [12:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166697,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:05:51]free response buf [12:05:51]execute_script done [12:05:51]execute_script returns [12:05:51]free content buf [12:05:51]Sock 10.Close socket [12:05:51]Sock 10.Thread stoped [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:40]accept exits with 8 [12:06:40]New connection [12:06:40]New thread 3067034980 created [12:06:40]Thread 3067178340 joined [12:06:40]Waiting for new connection... [12:06:40] Sock 8.Parse request [12:06:40]Sock 8.Check first char [12:06:40]Sock 8.First char is OK [12:06:40]request: POST /json_proto HTTP/1.0 [12:06:40]Method: POST [12:06:40]URL: /json_proto [12:06:40]Method is POST - this is cgi request [12:06:40]url: /json_proto [12:06:40]query_string will be loaded in cgi processing [12:06:40]execute_cgi json_proto POST (null) [12:06:40]execute_cgi path=json_proto method=POST [12:06:40]POST find Content-Length [12:06:40]Host: 172.17.53.195:8080 [12:06:40]Content-Length: 678 [12:06:40]Content-Type: application/json [12:06:40] [12:06:40]POST finish read [12:06:40]Found Content-Length = 678 [12:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]execute_script... [12:06:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]POST & json_proto [12:06:40]process_json_proto [12:06:40]json parsed OK: [12:06:40]protocol is kg_v1.0 [12:06:40]action value=close_receipt [12:06:40]process_action close_receipt [12:06:40]cmd_close_receipt [12:06:40]MH_GetDate [12:06:40]Write to MH i2c: F0 00 00 9B 0F 99 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 9B 0F 00 D1 E6 18 67 21 48 4A 65 F0 [12:06:40]GetLastDocTimeStamp 1729685147 [12:06:40]current date 1729685201 [12:06:40]FM_GetShiftState [12:06:40]SAM_PROTO_GetShiftState [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 13 01 00 [12:06:40]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F3 [12:06:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_GetShiftState done [12:06:40]FM_GetShiftState done [12:06:40]opened in 1729643772 [12:06:40]opened+sec_in_day 1729730172 [12:06:40]quantity*price = 70044 [12:06:40]sum+1 = 70045 [12:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 113 23.10.2024 12:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166698 ФПД: 197493427721210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166698&fm=197493427721210&tin=02508201610067®Number=0000000000091764&sum=70000 [12:06:41]StoreToDocumentArchive [12:06:41]shift 537 fd 166698 [12:06:41]save to /storage/0537/doc_00166698 [12:06:41]save last doc name /storage/0537/doc_00166698 to /storage/kkm_last_doc_name [12:06:41]save OK [12:06:41]Clear old archive folders... [12:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:41]tlvbuf is 01FCDE60 [12:06:41]SAM_PROTO_ClearQueue [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 09 00 00 [12:06:41]Write to MH i2c: E2 08 00 A9 0F 80 09 00 00 00 00 00 00 2A [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:41]Read from MH i2c: E2 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [12:06:41]RAPDU: 90 00 [12:06:41]wFMCommunicate OK [12:06:41]SAM_PROTO_ClearQueue done [12:06:41]KKMCreateOFDPacket [12:06:41]OFDProtocolAddRootSTLVToBuf [12:06:41]FM_MakeSignedData [12:06:41]FM_MakeSignedData [12:06:41]SAM_PROTO_SignData [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 0D 01 02 [12:06:41]Write to MH i2c: E2 08 00 AA 0F 80 0D 01 02 00 00 00 00 32 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=255 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D1 E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8B 02 00 35 04 06 00 B3 [12:06:42]Write to MH i2c: E2 02 01 AB 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D1 E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8B 02 00 35 04 06 00 B3 00 00 04 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=10 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 02 02 05 9E 85 9A D3 FA [12:06:42]Write to MH i2c: E2 0D 00 AC 0F 80 0D 02 02 05 00 9E 85 9A D3 FA 00 00 C9 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 03 02 [12:06:42]Write to MH i2c: E2 08 00 AD 0F 80 0D 03 02 00 00 00 00 37 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 AD 0F 00 F3 01 21 7A 4C B1 57 28 90 00 43 [12:06:42]RAPDU: F3 01 21 7A 4C B1 57 28 90 00 [12:06:42]wFMCommunicate OK [12:06:42]SAM_PROTO_SignData done [12:06:42]FM_MakeSignedData done [12:06:42]CreateOFDProtocolMessage [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 11 00 00 [12:06:42]Write to MH i2c: E2 08 00 AE 0F 80 11 00 00 00 00 00 00 37 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 AE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [12:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:42]wFMCommunicate OK [12:06:42]CreateOFDProtocolMessage done [12:06:42]OFDSenderStorePacket 166698 [12:06:42]StoreOFDPacket docnum=166698 [12:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 3F 07 01 F6 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D1 E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8B 02 00 35 04 06 00 B3 9E 85 9A D3 FA F3 01 21 7A 4C B1 57 28 [12:06:42]CheckFolder [12:06:42]dirname=/storage/ofd_packets [12:06:42]CheckFolder done [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00166698 [12:06:42]NVStorageSaveData ofd_packets/00166698 [12:06:42]File name is /storage/ofd_packets/00166698 [12:06:42]Write 301 bytes [12:06:42]NVStorageSaveData done [12:06:42]OFDSenderStorePacket done [12:06:42]KKMCreateOFDPacket done [12:06:42]NVStorageSaveData kkm_last_timestamp [12:06:42]File name is /storage/kkm_last_timestamp [12:06:42]Write 4 bytes [12:06:42]NVStorageSaveData done [12:06:42]ExternCall_PrintAddStr [12:06:42]wPrintStart [12:06:42]Write to MH i2c: 01 00 00 AF 0F BE [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [12:06:42]RasterBufferAndPrint [12:06:42]line Счет N : (1)221281 [12:06:42]line ИНН: 02508201610067 [12:06:42]line Контрольно-Кассовый Чек [12:06:42]line ПРОДАЖА [12:06:42]line ТРК (МРК, ГНК) : 33 [12:06:42]line Товар: 2710124130 [12:06:42]line Аи-92-К-5 [12:06:42]line 10.470 * 66.90 [12:06:42]line = 700.44 [12:06:42]line НДС 12% НСП 1% [12:06:42]line > о реализуемом товаре [12:06:42]line ОКРУГЛЕНИЕ: -0.44 [12:06:42]line ИТОГО: 700.00 [12:06:42]line Внесено: 700.00 [12:06:42]line СДАЧА: 0.00 [12:06:42]line НСП 1% : 6.20 [12:06:42]line НДС 12% : 74.38 [12:06:42]line Наличными: 700.00 [12:06:42]line Безнал.: 0.00 [12:06:42]line Место: АЗС № 161 "Партнер Нефть" [12:06:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:06:42]line СНО: Общий режим [12:06:42]line Чек 113 23.10.2024 12:06 [12:06:42]line Смена: 537 ФФД: 1.0 [12:06:42]line ЗНМ: 0300000104 [12:06:42]line РНМ: 0000000000091764 [12:06:42]line Версия ККМ: 001 [12:06:42]line ФМ: 0000000000871759 [12:06:42]line ФД: 166698 [12:06:42]line ФПД: 197493427721210 [12:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166698&fm=197493427721210&tin=02508201610067®Number=0000000000091764&sum=70000 [12:06:42]OFD Sender: Processing packet 166698 [packets to send 48, broken 47] [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00166698 [12:06:42]OFD Sender: To server: pG, [12:06:42]CommunicateWithHost lk.salyk.kg:30040 [12:06:42]ConnectInit lk.salyk.kg [12:06:42]written 0, free lines is 4095 [12:06:42]Connected sock=10 [12:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 3F 07 01 F6 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D1 E6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8B 02 00 35 04 06 00 B3 9E 85 9A D3 FA F3 01 21 7A 4C B1 57 28 [12:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 38 62 47 00 68 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8B 02 00 F4 03 04 00 39 8D 18 67 B6 04 01 00 00 9A 84 07 5F 94 1F 82 2E [12:06:43]CommunicateWithHost err = 0 [12:06:43]CheckOFDResponse [12:06:43]1017 (14) - 77093643461234 [12:06:43]1041 (16) - 0000000000871759 [12:06:43]1040 (4) - 166698 [12:06:43]1012 (4) - 23.10.2024 05:44 [12:06:43]1206 (1) - 0 [12:06:43]OFD Sender: Remove packet 166698 [12:06:43]ProducePacketName [12:06:43]name=ofd_packets/00166698 [12:06:43]NVStorageDeleteData [12:06:43]Write to MH i2c: 01 00 00 DA 0F E9 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 07 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 07 00 DA 0F 00 00 00 00 00 B7 0C B3 [12:06:43]RasterBufferAndPrint [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]written 0, free lines is 3262 [12:06:43]MH_Cut [12:06:43]Write to MH i2c: D1 01 00 E1 0F 01 C2 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 01 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 01 00 E1 0F 00 C1 [12:06:43]Write to MH i2c: 01 00 00 E2 0F F1 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]OFD Sender: No OFD packet to send [12:06:44]*** Cut start [12:06:44]*** Partial cut [12:06:44]*** CUTSNS_PIN = 1 [12:06:44]*** CUTSNS_PIN = 0 [12:06:44]*** Brake cut motor [12:06:44]Read from MH i2c: 01 [12:06:44]MH_I2C_Read... [12:06:44]*** Stop cut motor [12:06:44]*** Cut end [12:06:44]Read from MH i2c: 01 07 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [12:06:44]process_action close_receipt done [12:06:44]requested_data is exist [12:06:44]produce_requested_data [12:06:44]requested_item fm.sn is exist - process it [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 11 00 00 [12:06:44]Write to MH i2c: E2 08 00 E3 0F 80 11 00 00 00 00 00 00 6C [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 E3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [12:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:44]wFMCommunicate OK [12:06:44]requested_item fd.num is exist - process it [12:06:44]SAM_PROTO_GetFieldsCounters [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 00 00 [12:06:44]Write to MH i2c: E2 08 00 E4 0F 80 13 00 00 00 00 00 00 6F [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 E4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [12:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:44]wFMCommunicate OK [12:06:44]SAM_PROTO_GetFieldsCounters done [12:06:44]requested_item shift.num is exist - process it [12:06:44]requested_item shift.opened is exist - process it [12:06:44]req_shift_opened [12:06:44]FM_GetShiftState [12:06:44]SAM_PROTO_GetShiftState [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 01 00 [12:06:44]Write to MH i2c: E2 08 00 E5 0F 80 13 01 00 00 00 00 00 71 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:45]Read from MH i2c: E2 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: E2 0E 00 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: E2 0E 00 E5 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3C [12:06:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:06:45]wFMCommunicate OK [12:06:45]SAM_PROTO_GetShiftState done [12:06:45]FM_GetShiftState done [12:06:45]req_shift_opened done [12:06:45]requested_item shift.open_date is exist - process it [12:06:45]req_shift_open_date [12:06:45]req_shift_open_date done [12:06:45]produce_requested_data done [12:06:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166698,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:06:45]process_action_free close_receipt [12:06:45]json_value_free [12:06:45]json_value_free done [12:06:45]process_json_proto returns [12:06:45]Send response to host [12:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166698,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:06:45]free response buf [12:06:45]execute_script done [12:06:45]execute_script returns [12:06:45]free content buf [12:06:45]Sock 8.Close socket [12:06:45]Sock 8.Thread stoped [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]accept exits with 9 [12:10:18]New connection [12:10:18]New thread 3067178340 created [12:10:18]Thread 3067034980 joined [12:10:18]Waiting for new connection... [12:10:18] Sock 9.Parse request [12:10:18]Sock 9.Check first char [12:10:18]Sock 9.First char is OK [12:10:18]request: POST /json_proto HTTP/1.0 [12:10:18]Method: POST [12:10:18]URL: /json_proto [12:10:18]Method is POST - this is cgi request [12:10:18]url: /json_proto [12:10:18]query_string will be loaded in cgi processing [12:10:18]execute_cgi json_proto POST (null) [12:10:18]execute_cgi path=json_proto method=POST [12:10:18]POST find Content-Length [12:10:18]Host: 172.17.53.195:8080 [12:10:18]Content-Length: 677 [12:10:18]Content-Type: application/json [12:10:18] [12:10:18]POST finish read [12:10:18]Found Content-Length = 677 [12:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:18]execute_script... [12:10: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)221282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:18]POST & json_proto [12:10:18]process_json_proto [12:10:18]json parsed OK: [12:10:18]protocol is kg_v1.0 [12:10:18]action value=close_receipt [12:10:18]process_action close_receipt [12:10:18]cmd_close_receipt [12:10:18]MH_GetDate [12:10:18]Write to MH i2c: F0 00 00 E6 0F E4 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 09 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: F0 09 00 E6 0F 00 AA E7 18 67 21 48 4A 65 15 [12:10:18]GetLastDocTimeStamp 1729685201 [12:10:18]current date 1729685418 [12:10:18]FM_GetShiftState [12:10:18]SAM_PROTO_GetShiftState [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 13 01 00 [12:10:18]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3E [12:10:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_GetShiftState done [12:10:18]FM_GetShiftState done [12:10:18]opened in 1729643772 [12:10:18]opened+sec_in_day 1729730172 [12:10:18]quantity*price = 50041 [12:10:18]sum+1 = 50042 [12:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 114 23.10.2024 12:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166699 ФПД: 176169404716338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121018&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166699&fm=176169404716338&tin=02508201610067®Number=0000000000091764&sum=50000 [12:10:19]StoreToDocumentArchive [12:10:19]shift 537 fd 166699 [12:10:19]save to /storage/0537/doc_00166699 [12:10:19]save last doc name /storage/0537/doc_00166699 to /storage/kkm_last_doc_name [12:10:19]save OK [12:10:19]Clear old archive folders... [12:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:19]tlvbuf is B6EF8C10 [12:10:19]SAM_PROTO_ClearQueue [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 09 00 00 [12:10:19]Write to MH i2c: E2 08 00 F4 0F 80 09 00 00 00 00 00 00 75 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]SAM_PROTO_ClearQueue done [12:10:19]KKMCreateOFDPacket [12:10:19]OFDProtocolAddRootSTLVToBuf [12:10:19]FM_MakeSignedData [12:10:19]FM_MakeSignedData [12:10:19]SAM_PROTO_SignData [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 0D 01 02 [12:10:19]Write to MH i2c: E2 08 00 F5 0F 80 0D 01 02 00 00 00 00 7D [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]wFMCommunicate request_size=255 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AA E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8B 02 00 35 04 06 00 A0 [12:10:19]Write to MH i2c: E2 02 01 F6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AA E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8B 02 00 35 04 06 00 A0 00 00 08 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]wFMCommunicate request_size=10 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 0D 02 02 05 39 A2 C9 D5 32 [12:10:19]Write to MH i2c: E2 0D 00 F7 0F 80 0D 02 02 05 00 39 A2 C9 D5 32 00 00 35 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [12:10:19]RAPDU: 90 00 [12:10:19]wFMCommunicate OK [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 0D 03 02 [12:10:19]Write to MH i2c: E2 08 00 F8 0F 80 0D 03 02 00 00 00 00 82 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 0B 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 0B 00 F8 0F 00 12 AA 6C BE 8E 76 76 0A 90 00 ED [12:10:19]RAPDU: 12 AA 6C BE 8E 76 76 0A 90 00 [12:10:19]wFMCommunicate OK [12:10:19]SAM_PROTO_SignData done [12:10:19]FM_MakeSignedData done [12:10:19]CreateOFDProtocolMessage [12:10:19]wFMCommunicate request_size=4 [12:10:19]MH_SAM_APDU [12:10:19]CAPDU: 80 11 00 00 [12:10:19]Write to MH i2c: E2 08 00 F9 0F 80 11 00 00 00 00 00 00 82 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:19]Read from MH i2c: E2 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 17 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: E2 17 00 F9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [12:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:10:19]wFMCommunicate OK [12:10:19]CreateOFDProtocolMessage done [12:10:19]OFDSenderStorePacket 166699 [12:10:19]StoreOFDPacket docnum=166699 [12:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F3 05 07 01 52 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AA E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8B 02 00 35 04 06 00 A0 39 A2 C9 D5 32 12 AA 6C BE 8E 76 76 0A [12:10:19]CheckFolder [12:10:19]dirname=/storage/ofd_packets [12:10:19]CheckFolder done [12:10:19]ProducePacketName [12:10:19]name=ofd_packets/00166699 [12:10:19]NVStorageSaveData ofd_packets/00166699 [12:10:19]File name is /storage/ofd_packets/00166699 [12:10:19]Write 301 bytes [12:10:19]NVStorageSaveData done [12:10:19]OFDSenderStorePacket done [12:10:19]KKMCreateOFDPacket done [12:10:19]NVStorageSaveData kkm_last_timestamp [12:10:19]File name is /storage/kkm_last_timestamp [12:10:19]Write 4 bytes [12:10:19]NVStorageSaveData done [12:10:19]ExternCall_PrintAddStr [12:10:19]wPrintStart [12:10:19]Write to MH i2c: 01 00 00 FA 0F 09 [12:10:19]Write i2c OK [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 07 00 [12:10:19]MH_I2C_Read... [12:10:19]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [12:10:19]RasterBufferAndPrint [12:10:19]line Счет N : (1)221282 [12:10:19]line ИНН: 02508201610067 [12:10:19]line Контрольно-Кассовый Чек [12:10:19]line ПРОДАЖА [12:10:19]line ТРК (МРК, ГНК) : 33 [12:10:19]line Товар: 2710124130 [12:10:19]line Аи-92-К-5 [12:10:19]line 7.480 * 66.90 [12:10:19]line = 500.41 [12:10:19]line НДС 12% НСП 1% [12:10:19]line > о реализуемом товаре [12:10:19]line ОКРУГЛЕНИЕ: -0.41 [12:10:19]line ИТОГО: 500.00 [12:10:19]line Внесено: 500.00 [12:10:19]line СДАЧА: 0.00 [12:10:19]line НСП 1% : 4.43 [12:10:19]line НДС 12% : 53.14 [12:10:19]line Наличными: 500.00 [12:10:19]line Безнал.: 0.00 [12:10:19]line Место: АЗС № 161 "Партнер Нефть" [12:10:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:10:19]line СНО: Общий режим [12:10:19]line Чек 114 23.10.2024 12:10 [12:10:19]line Смена: 537 ФФД: 1.0 [12:10:19]line ЗНМ: 0300000104 [12:10:19]line РНМ: 0000000000091764 [12:10:19]line Версия ККМ: 001 [12:10:19]line ФМ: 0000000000871759 [12:10:19]line ФД: 166699 [12:10:19]line ФПД: 176169404716338 [12:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121018&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166699&fm=176169404716338&tin=02508201610067®Number=0000000000091764&sum=50000 [12:10:20]OFD Sender: Processing packet 166699 [packets to send 48, broken 47] [12:10:20]ProducePacketName [12:10:20]name=ofd_packets/00166699 [12:10:20]OFD Sender: To server: pG, [12:10:20]CommunicateWithHost lk.salyk.kg:30040 [12:10:20]ConnectInit lk.salyk.kg [12:10:20]written 0, free lines is 4095 [12:10:20]Connected sock=10 [12:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F3 05 07 01 52 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AA E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8B 02 00 35 04 06 00 A0 39 A2 C9 D5 32 12 AA 6C BE 8E 76 76 0A [12:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 71 47 00 D2 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8B 02 00 F4 03 04 00 12 8E 18 67 B6 04 01 00 00 AF EA 87 7B DA DA 41 96 [12:10:20]CommunicateWithHost err = 0 [12:10:20]CheckOFDResponse [12:10:20]1017 (14) - 77093643461234 [12:10:20]1041 (16) - 0000000000871759 [12:10:20]1040 (4) - 166699 [12:10:20]1012 (4) - 23.10.2024 05:48 [12:10:20]1206 (1) - 0 [12:10:20]OFD Sender: Remove packet 166699 [12:10:20]ProducePacketName [12:10:20]name=ofd_packets/00166699 [12:10:20]NVStorageDeleteData [12:10:20]Write to MH i2c: 01 00 00 25 10 35 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 25 10 00 00 00 00 00 B8 0C 00 [12:10:20]RasterBufferAndPrint [12:10:20]line [12:10:20]line [12:10:20]line [12:10:20]line [12:10:20]line [12:10:20]written 0, free lines is 3263 [12:10:20]MH_Cut [12:10:20]Write to MH i2c: D1 01 00 2C 10 01 0E [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: D1 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: D1 01 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: D1 01 00 2C 10 00 0D [12:10:20]Write to MH i2c: 01 00 00 2D 10 3D [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]OFD Sender: No OFD packet to send [12:10:21]*** Cut start [12:10:21]*** Partial cut [12:10:21]*** CUTSNS_PIN = 1 [12:10:21]*** CUTSNS_PIN = 0 [12:10:21]*** Brake cut motor [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]*** Stop cut motor [12:10:22]*** Cut end [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [12:10:22]process_action close_receipt done [12:10:22]requested_data is exist [12:10:22]produce_requested_data [12:10:22]requested_item fm.sn is exist - process it [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 11 00 00 [12:10:22]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [12:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:10:22]wFMCommunicate OK [12:10:22]requested_item fd.num is exist - process it [12:10:22]SAM_PROTO_GetFieldsCounters [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 13 00 00 [12:10:22]Write to MH i2c: E2 08 00 2F 10 80 13 00 00 00 00 00 00 BB [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 62 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 62 00 2F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [12:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_GetFieldsCounters done [12:10:22]requested_item shift.num is exist - process it [12:10:22]requested_item shift.opened is exist - process it [12:10:22]req_shift_opened [12:10:22]FM_GetShiftState [12:10:22]SAM_PROTO_GetShiftState [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 13 01 00 [12:10:22]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0E 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 88 [12:10:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_GetShiftState done [12:10:22]FM_GetShiftState done [12:10:22]req_shift_opened done [12:10:22]requested_item shift.open_date is exist - process it [12:10:22]req_shift_open_date [12:10:22]req_shift_open_date done [12:10:22]produce_requested_data done [12:10:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166699,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:10:22]process_action_free close_receipt [12:10:22]json_value_free [12:10:22]json_value_free done [12:10:22]process_json_proto returns [12:10:22]Send response to host [12:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166699,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:10:22]free response buf [12:10:22]execute_script done [12:10:22]execute_script returns [12:10:22]free content buf [12:10:22]Sock 9.Close socket [12:10:22]Sock 9.Thread stoped [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:38]accept exits with 8 [12:11:38]New connection [12:11:38]New thread 3067034980 created [12:11:38]Thread 3067178340 joined [12:11:38]Waiting for new connection... [12:11:38] Sock 8.Parse request [12:11:38]Sock 8.Check first char [12:11:38]Sock 8.First char is OK [12:11:38]request: POST /json_proto HTTP/1.0 [12:11:38]Method: POST [12:11:38]URL: /json_proto [12:11:38]Method is POST - this is cgi request [12:11:38]url: /json_proto [12:11:38]query_string will be loaded in cgi processing [12:11:38]execute_cgi json_proto POST (null) [12:11:38]execute_cgi path=json_proto method=POST [12:11:38]POST find Content-Length [12:11:38]Host: 172.17.53.195:8080 [12:11:38]Content-Length: 677 [12:11:38]Content-Type: application/json [12:11:38] [12:11:38]POST finish read [12:11:38]Found Content-Length = 677 [12:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:38]execute_script... [12:11: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)221283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:38]POST & json_proto [12:11:38]process_json_proto [12:11:38]json parsed OK: [12:11:38]protocol is kg_v1.0 [12:11:38]action value=close_receipt [12:11:38]process_action close_receipt [12:11:38]cmd_close_receipt [12:11:38]MH_GetDate [12:11:38]Write to MH i2c: F0 00 00 31 10 30 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 31 10 00 FA E7 18 67 21 48 4A 65 B1 [12:11:38]GetLastDocTimeStamp 1729685418 [12:11:38]current date 1729685498 [12:11:38]FM_GetShiftState [12:11:38]SAM_PROTO_GetShiftState [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 01 00 [12:11:38]Write to MH i2c: E2 08 00 32 10 80 13 01 00 00 00 00 00 BF [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 32 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8A [12:11:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetShiftState done [12:11:38]FM_GetShiftState done [12:11:38]opened in 1729643772 [12:11:38]opened+sec_in_day 1729730172 [12:11:38]quantity*price = 49974 [12:11:38]sum+1 = 49975 [12:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 115 23.10.2024 12:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166700 ФПД: 169826388923662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121139&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166700&fm=169826388923662&tin=02508201610067®Number=0000000000091764&sum=49900 [12:11:39]StoreToDocumentArchive [12:11:39]shift 537 fd 166700 [12:11:39]save to /storage/0537/doc_00166700 [12:11:39]save last doc name /storage/0537/doc_00166700 to /storage/kkm_last_doc_name [12:11:39]save OK [12:11:39]Clear old archive folders... [12:11:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:39]tlvbuf is 01F5ED10 [12:11:39]SAM_PROTO_ClearQueue [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 09 00 00 [12:11:39]Write to MH i2c: E2 08 00 3F 10 80 09 00 00 00 00 00 00 C1 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [12:11:39]RAPDU: 90 00 [12:11:39]wFMCommunicate OK [12:11:39]SAM_PROTO_ClearQueue done [12:11:39]KKMCreateOFDPacket [12:11:39]OFDProtocolAddRootSTLVToBuf [12:11:39]FM_MakeSignedData [12:11:39]FM_MakeSignedData [12:11:39]SAM_PROTO_SignData [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 0D 01 02 [12:11:39]Write to MH i2c: E2 08 00 40 10 80 0D 01 02 00 00 00 00 C9 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [12:11:39]RAPDU: 90 00 [12:11:39]wFMCommunicate OK [12:11:39]wFMCommunicate request_size=255 [12:11:39]MH_SAM_APDU [12:11: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FB E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8B 02 00 35 04 06 00 9A [12:11:39]Write to MH i2c: E2 02 01 41 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FB E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8B 02 00 35 04 06 00 9A 00 00 82 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [12:11:39]RAPDU: 90 00 [12:11:39]wFMCommunicate OK [12:11:39]wFMCommunicate request_size=10 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 0D 02 02 05 74 C9 95 D5 0E [12:11:39]Write to MH i2c: E2 0D 00 42 10 80 0D 02 02 05 00 74 C9 95 D5 0E 00 00 8B [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [12:11:39]RAPDU: 90 00 [12:11:39]wFMCommunicate OK [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 0D 03 02 [12:11:39]Write to MH i2c: E2 08 00 43 10 80 0D 03 02 00 00 00 00 CE [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0B 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0B 00 43 10 00 A6 E6 7A 7B 72 0B 7F A8 90 00 F4 [12:11:39]RAPDU: A6 E6 7A 7B 72 0B 7F A8 90 00 [12:11:39]wFMCommunicate OK [12:11:39]SAM_PROTO_SignData done [12:11:39]FM_MakeSignedData done [12:11:39]CreateOFDProtocolMessage [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 11 00 00 [12:11:39]Write to MH i2c: E2 08 00 44 10 80 11 00 00 00 00 00 00 CE [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 17 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 17 00 44 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [12:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:11:39]wFMCommunicate OK [12:11:39]CreateOFDProtocolMessage done [12:11:39]OFDSenderStorePacket 166700 [12:11:39]StoreOFDPacket docnum=166700 [12:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 BF 07 01 16 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FB E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8B 02 00 35 04 06 00 9A 74 C9 95 D5 0E A6 E6 7A 7B 72 0B 7F A8 [12:11:39]CheckFolder [12:11:39]dirname=/storage/ofd_packets [12:11:39]CheckFolder done [12:11:39]ProducePacketName [12:11:39]name=ofd_packets/00166700 [12:11:39]NVStorageSaveData ofd_packets/00166700 [12:11:39]File name is /storage/ofd_packets/00166700 [12:11:39]Write 301 bytes [12:11:39]NVStorageSaveData done [12:11:39]OFDSenderStorePacket done [12:11:39]KKMCreateOFDPacket done [12:11:39]NVStorageSaveData kkm_last_timestamp [12:11:39]File name is /storage/kkm_last_timestamp [12:11:39]Write 4 bytes [12:11:39]NVStorageSaveData done [12:11:39]ExternCall_PrintAddStr [12:11:39]wPrintStart [12:11:39]Write to MH i2c: 01 00 00 45 10 55 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: 01 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: 01 07 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 FF 0F 6A [12:11:39]RasterBufferAndPrint [12:11:39]line Счет N : (1)221283 [12:11:39]line ИНН: 02508201610067 [12:11:39]line Контрольно-Кассовый Чек [12:11:39]line ПРОДАЖА [12:11:39]line ТРК (МРК, ГНК) : 13 [12:11:39]line Товар: 2710124130 [12:11:39]line Аи-92-К-5 [12:11:39]line 7.470 * 66.90 [12:11:39]line = 499.74 [12:11:39]line НДС 12% НСП 1% [12:11:39]line > о реализуемом товаре [12:11:39]line ОКРУГЛЕНИЕ: -0.74 [12:11:39]line ИТОГО: 499.00 [12:11:39]line Внесено: 500.00 [12:11:39]line СДАЧА: 1.00 [12:11:39]line НСП 1% : 4.42 [12:11:39]line НДС 12% : 53.07 [12:11:39]line Наличными: 499.00 [12:11:39]line Безнал.: 0.00 [12:11:39]line Место: АЗС № 161 "Партнер Нефть" [12:11:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:11:39]line СНО: Общий режим [12:11:39]line Чек 115 23.10.2024 12:11 [12:11:39]line Смена: 537 ФФД: 1.0 [12:11:39]line ЗНМ: 0300000104 [12:11:39]line РНМ: 0000000000091764 [12:11:39]line Версия ККМ: 001 [12:11:39]line ФМ: 0000000000871759 [12:11:39]line ФД: 166700 [12:11:39]line ФПД: 169826388923662 [12:11:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121139&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166700&fm=169826388923662&tin=02508201610067®Number=0000000000091764&sum=49900 [12:11:40]OFD Sender: Processing packet 166700 [packets to send 48, broken 47] [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00166700 [12:11:40]OFD Sender: To server: pG, [12:11:40]CommunicateWithHost lk.salyk.kg:30040 [12:11:40]ConnectInit lk.salyk.kg [12:11:40]written 0, free lines is 4095 [12:11:40]Connected sock=10 [12:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 BF 07 01 16 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FB E7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8B 02 00 35 04 06 00 9A 74 C9 95 D5 0E A6 E6 7A 7B 72 0B 7F A8 [12:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 AC 47 00 29 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8B 02 00 F4 03 04 00 62 8E 18 67 B6 04 01 00 00 48 DD 58 D5 FB 00 41 DF [12:11:40]CommunicateWithHost err = 0 [12:11:40]CheckOFDResponse [12:11:40]1017 (14) - 77093643461234 [12:11:40]1041 (16) - 0000000000871759 [12:11:40]1040 (4) - 166700 [12:11:40]1012 (4) - 23.10.2024 05:49 [12:11:40]1206 (1) - 0 [12:11:40]OFD Sender: Remove packet 166700 [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00166700 [12:11:40]NVStorageDeleteData [12:11:40]Write to MH i2c: 01 00 00 70 10 80 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 70 10 00 00 00 00 00 BF 0C 52 [12:11:40]RasterBufferAndPrint [12:11:40]line [12:11:40]line [12:11:40]line [12:11:40]line [12:11:40]line [12:11:40]written 0, free lines is 3272 [12:11:40]MH_Cut [12:11:40]Write to MH i2c: D1 01 00 77 10 01 59 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: D1 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: D1 01 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: D1 01 00 77 10 00 58 [12:11:40]Write to MH i2c: 01 00 00 78 10 88 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:41]OFD Sender: No OFD packet to send [12:11:41]*** Cut start [12:11:41]*** Partial cut [12:11:41]*** CUTSNS_PIN = 1 [12:11:41]*** CUTSNS_PIN = 0 [12:11:41]*** Brake cut motor [12:11:42]Read from MH i2c: 01 [12:11:42]MH_I2C_Read... [12:11:42]*** Stop cut motor [12:11:42]*** Cut end [12:11:42]Read from MH i2c: 01 07 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [12:11:42]process_action close_receipt done [12:11:42]requested_data is exist [12:11:42]produce_requested_data [12:11:42]requested_item fm.sn is exist - process it [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 11 00 00 [12:11:42]Write to MH i2c: E2 08 00 79 10 80 11 00 00 00 00 00 00 03 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 17 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 17 00 79 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [12:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:11:42]wFMCommunicate OK [12:11:42]requested_item fd.num is exist - process it [12:11:42]SAM_PROTO_GetFieldsCounters [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 13 00 00 [12:11:42]Write to MH i2c: E2 08 00 7A 10 80 13 00 00 00 00 00 00 06 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 62 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 62 00 7A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [12:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_GetFieldsCounters done [12:11:42]requested_item shift.num is exist - process it [12:11:42]requested_item shift.opened is exist - process it [12:11:42]req_shift_opened [12:11:42]FM_GetShiftState [12:11:42]SAM_PROTO_GetShiftState [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 13 01 00 [12:11:42]Write to MH i2c: E2 08 00 7B 10 80 13 01 00 00 00 00 00 08 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 7B 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D3 [12:11:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_GetShiftState done [12:11:42]FM_GetShiftState done [12:11:42]req_shift_opened done [12:11:42]requested_item shift.open_date is exist - process it [12:11:42]req_shift_open_date [12:11:42]req_shift_open_date done [12:11:42]produce_requested_data done [12:11:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166700,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:11:42]process_action_free close_receipt [12:11:42]json_value_free [12:11:42]json_value_free done [12:11:42]process_json_proto returns [12:11:42]Send response to host [12:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166700,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:11:42]free response buf [12:11:42]execute_script done [12:11:42]execute_script returns [12:11:42]free content buf [12:11:42]Sock 8.Close socket [12:11:42]Sock 8.Thread stoped [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:40]accept exits with 9 [12:14:40]New connection [12:14:40]New thread 3067178340 created [12:14:40]Thread 3067034980 joined [12:14:40]Waiting for new connection... [12:14:40] Sock 9.Parse request [12:14:40]Sock 9.Check first char [12:14:40]Sock 9.First char is OK [12:14:40]request: POST /json_proto HTTP/1.0 [12:14:40]Method: POST [12:14:40]URL: /json_proto [12:14:40]Method is POST - this is cgi request [12:14:40]url: /json_proto [12:14:40]query_string will be loaded in cgi processing [12:14:40]execute_cgi json_proto POST (null) [12:14:40]execute_cgi path=json_proto method=POST [12:14:40]POST find Content-Length [12:14:40]Host: 172.17.53.195:8080 [12:14:40]Content-Length: 676 [12:14:40]Content-Type: application/json [12:14:40] [12:14:40]POST finish read [12:14:40]Found Content-Length = 676 [12:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:40]execute_script... [12:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:40]POST & json_proto [12:14:40]process_json_proto [12:14:40]json parsed OK: [12:14:40]protocol is kg_v1.0 [12:14:40]action value=close_receipt [12:14:40]process_action close_receipt [12:14:40]cmd_close_receipt [12:14:40]MH_GetDate [12:14:40]Write to MH i2c: F0 00 00 7C 10 7B [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 09 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 09 00 7C 10 00 B1 E8 18 67 21 48 4A 65 B4 [12:14:40]GetLastDocTimeStamp 1729685499 [12:14:40]current date 1729685681 [12:14:40]FM_GetShiftState [12:14:40]SAM_PROTO_GetShiftState [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 13 01 00 [12:14:40]Write to MH i2c: E2 08 00 7D 10 80 13 01 00 00 00 00 00 0A [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0E 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0E 00 7D 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D5 [12:14:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:14:40]wFMCommunicate OK [12:14:40]SAM_PROTO_GetShiftState done [12:14:40]FM_GetShiftState done [12:14:40]opened in 1729643772 [12:14:40]opened+sec_in_day 1729730172 [12:14:40]quantity*price = 99974 [12:14:40]sum+1 = 99975 [12:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 116 23.10.2024 12:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166701 ФПД: 43919968331912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166701&fm=43919968331912&tin=02508201610067®Number=0000000000091764&sum=99900 [12:14:41]StoreToDocumentArchive [12:14:41]shift 537 fd 166701 [12:14:41]save to /storage/0537/doc_00166701 [12:14:41]save last doc name /storage/0537/doc_00166701 to /storage/kkm_last_doc_name [12:14:41]save OK [12:14:41]Clear old archive folders... [12:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:14:41]tlvbuf is 01F5EE20 [12:14:41]SAM_PROTO_ClearQueue [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 09 00 00 [12:14:41]Write to MH i2c: E2 08 00 8A 10 80 09 00 00 00 00 00 00 0C [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 8A 10 00 90 00 0E [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]SAM_PROTO_ClearQueue done [12:14:41]KKMCreateOFDPacket [12:14:41]OFDProtocolAddRootSTLVToBuf [12:14:41]FM_MakeSignedData [12:14:41]FM_MakeSignedData [12:14:41]SAM_PROTO_SignData [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 0D 01 02 [12:14:41]Write to MH i2c: E2 08 00 8B 10 80 0D 01 02 00 00 00 00 14 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]wFMCommunicate request_size=255 [12:14:41]MH_SAM_APDU [12:14: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B1 E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8B 02 00 35 04 06 00 27 F1 EA 1C [12:14:41]Write to MH i2c: E2 02 01 8C 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B1 E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8B 02 00 35 04 06 00 27 F1 EA 1C 00 00 F8 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]wFMCommunicate request_size=7 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 0D 02 02 02 68 88 [12:14:41]Write to MH i2c: E2 0A 00 8D 10 80 0D 02 02 02 00 68 88 00 00 0B [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 0D 03 02 [12:14:41]Write to MH i2c: E2 08 00 8E 10 80 0D 03 02 00 00 00 00 19 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 0B 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 0B 00 8E 10 00 A6 6B 24 25 B5 74 A4 B3 90 00 F4 [12:14:41]RAPDU: A6 6B 24 25 B5 74 A4 B3 90 00 [12:14:41]wFMCommunicate OK [12:14:41]SAM_PROTO_SignData done [12:14:41]FM_MakeSignedData done [12:14:41]CreateOFDProtocolMessage [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 11 00 00 [12:14:41]Write to MH i2c: E2 08 00 8F 10 80 11 00 00 00 00 00 00 19 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 17 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 17 00 8F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [12:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:41]wFMCommunicate OK [12:14:41]CreateOFDProtocolMessage done [12:14:41]OFDSenderStorePacket 166701 [12:14:41]StoreOFDPacket docnum=166701 [12:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9A 0F 04 01 29 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B1 E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8B 02 00 35 04 06 00 27 F1 EA 1C 68 88 A6 6B 24 25 B5 74 A4 B3 [12:14:41]CheckFolder [12:14:41]dirname=/storage/ofd_packets [12:14:41]CheckFolder done [12:14:41]ProducePacketName [12:14:41]name=ofd_packets/00166701 [12:14:41]NVStorageSaveData ofd_packets/00166701 [12:14:41]File name is /storage/ofd_packets/00166701 [12:14:41]Write 298 bytes [12:14:41]NVStorageSaveData done [12:14:41]OFDSenderStorePacket done [12:14:41]KKMCreateOFDPacket done [12:14:41]NVStorageSaveData kkm_last_timestamp [12:14:41]File name is /storage/kkm_last_timestamp [12:14:41]Write 4 bytes [12:14:41]NVStorageSaveData done [12:14:41]ExternCall_PrintAddStr [12:14:41]wPrintStart [12:14:41]Write to MH i2c: 01 00 00 90 10 A0 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 07 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [12:14:41]RasterBufferAndPrint [12:14:41]line Счет N : (1)221284 [12:14:41]line ИНН: 02508201610067 [12:14:41]line Контрольно-Кассовый Чек [12:14:41]line ПРОДАЖА [12:14:41]line ТРК (МРК, ГНК) : 11 [12:14:41]line Товар: 2710194210 [12:14:41]line ДТ-К-5 [12:14:41]line 13.120 * 76.20 [12:14:41]line = 999.74 [12:14:41]line НДС 12% НСП 1% [12:14:41]line > о реализуемом товаре [12:14:41]line ОКРУГЛЕНИЕ: -0.74 [12:14:41]line ИТОГО: 999.00 [12:14:41]line Внесено: 1000.00 [12:14:41]line СДАЧА: 1.00 [12:14:41]line НСП 1% : 8.85 [12:14:41]line НДС 12% : 106.17 [12:14:41]line Наличными: 999.00 [12:14:41]line Безнал.: 0.00 [12:14:41]line Место: АЗС № 161 "Партнер Нефть" [12:14:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:14:41]line СНО: Общий режим [12:14:41]line Чек 116 23.10.2024 12:14 [12:14:41]line Смена: 537 ФФД: 1.0 [12:14:41]line ЗНМ: 0300000104 [12:14:41]line РНМ: 0000000000091764 [12:14:41]line Версия ККМ: 001 [12:14:41]line ФМ: 0000000000871759 [12:14:41]line ФД: 166701 [12:14:41]line ФПД: 43919968331912 [12:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166701&fm=43919968331912&tin=02508201610067®Number=0000000000091764&sum=99900 [12:14:42]OFD Sender: Processing packet 166701 [packets to send 48, broken 47] [12:14:42]ProducePacketName [12:14:42]name=ofd_packets/00166701 [12:14:42]OFD Sender: To server: pG, [12:14:42]CommunicateWithHost lk.salyk.kg:30040 [12:14:42]ConnectInit lk.salyk.kg [12:14:42]written 0, free lines is 4095 [12:14:42]Connected sock=11 [12:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9A 0F 04 01 29 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B1 E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8B 02 00 35 04 06 00 27 F1 EA 1C 68 88 A6 6B 24 25 B5 74 A4 B3 [12:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 0D 47 00 B6 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8B 02 00 F4 03 04 00 18 8F 18 67 B6 04 01 00 00 42 1D B3 9C C8 DA 8E CF [12:14:42]CommunicateWithHost err = 0 [12:14:42]CheckOFDResponse [12:14:42]1017 (14) - 77093643461234 [12:14:42]1041 (16) - 0000000000871759 [12:14:42]1040 (4) - 166701 [12:14:42]1012 (4) - 23.10.2024 05:52 [12:14:42]1206 (1) - 0 [12:14:42]OFD Sender: Remove packet 166701 [12:14:42]ProducePacketName [12:14:42]name=ofd_packets/00166701 [12:14:42]NVStorageDeleteData [12:14:42]Write to MH i2c: 01 00 00 BB 10 CB [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 A9 0C 87 [12:14:42]RasterBufferAndPrint [12:14:42]line [12:14:42]line [12:14:42]line [12:14:42]line [12:14:42]line [12:14:42]written 0, free lines is 3246 [12:14:42]MH_Cut [12:14:42]Write to MH i2c: D1 01 00 C2 10 01 A4 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: D1 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: D1 01 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: D1 01 00 C2 10 00 A3 [12:14:42]Write to MH i2c: 01 00 00 C3 10 D3 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:43]OFD Sender: No OFD packet to send [12:14:43]*** Cut start [12:14:43]*** Partial cut [12:14:43]*** CUTSNS_PIN = 1 [12:14:43]*** CUTSNS_PIN = 0 [12:14:43]*** Brake cut motor [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]*** Stop cut motor [12:14:44]*** Cut end [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 FF 0F E8 [12:14:44]process_action close_receipt done [12:14:44]requested_data is exist [12:14:44]produce_requested_data [12:14:44]requested_item fm.sn is exist - process it [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 11 00 00 [12:14:44]Write to MH i2c: E2 08 00 C4 10 80 11 00 00 00 00 00 00 4E [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 C4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [12:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:44]wFMCommunicate OK [12:14:44]requested_item fd.num is exist - process it [12:14:44]SAM_PROTO_GetFieldsCounters [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 13 00 00 [12:14:44]Write to MH i2c: E2 08 00 C5 10 80 13 00 00 00 00 00 00 51 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 62 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 62 00 C5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [12:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_GetFieldsCounters done [12:14:44]requested_item shift.num is exist - process it [12:14:44]requested_item shift.opened is exist - process it [12:14:44]req_shift_opened [12:14:44]FM_GetShiftState [12:14:44]SAM_PROTO_GetShiftState [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 13 01 00 [12:14:44]Write to MH i2c: E2 08 00 C6 10 80 13 01 00 00 00 00 00 53 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0E 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0E 00 C6 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1E [12:14:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_GetShiftState done [12:14:44]FM_GetShiftState done [12:14:44]req_shift_opened done [12:14:44]requested_item shift.open_date is exist - process it [12:14:44]req_shift_open_date [12:14:44]req_shift_open_date done [12:14:44]produce_requested_data done [12:14:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166701,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:14:44]process_action_free close_receipt [12:14:44]json_value_free [12:14:44]json_value_free done [12:14:44]process_json_proto returns [12:14:44]Send response to host [12:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166701,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:14:44]free response buf [12:14:44]execute_script done [12:14:44]execute_script returns [12:14:44]free content buf [12:14:44]Sock 9.Close socket [12:14:44]Sock 9.Thread stoped [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:41]accept exits with 8 [12:15:41]New connection [12:15:41]New thread 3067034980 created [12:15:41]Thread 3067178340 joined [12:15:41]Waiting for new connection... [12:15:41] Sock 8.Parse request [12:15:41]Sock 8.Check first char [12:15:41]Sock 8.First char is OK [12:15:41]request: POST /json_proto HTTP/1.0 [12:15:41]Method: POST [12:15:41]URL: /json_proto [12:15:41]Method is POST - this is cgi request [12:15:41]url: /json_proto [12:15:41]query_string will be loaded in cgi processing [12:15:41]execute_cgi json_proto POST (null) [12:15:41]execute_cgi path=json_proto method=POST [12:15:41]POST find Content-Length [12:15:41]Host: 172.17.53.195:8080 [12:15:41]Content-Length: 682 [12:15:41]Content-Type: application/json [12:15:41] [12:15:41]POST finish read [12:15:41]Found Content-Length = 682 [12:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:41]execute_script... [12:15:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:41]POST & json_proto [12:15:41]process_json_proto [12:15:41]json parsed OK: [12:15:41]protocol is kg_v1.0 [12:15:41]action value=close_receipt [12:15:41]process_action close_receipt [12:15:41]cmd_close_receipt [12:15:41]MH_GetDate [12:15:41]Write to MH i2c: F0 00 00 C7 10 C6 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: F0 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: F0 09 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: F0 09 00 C7 10 00 EE E8 18 67 21 48 4A 65 3C [12:15:41]GetLastDocTimeStamp 1729685681 [12:15:41]current date 1729685742 [12:15:41]FM_GetShiftState [12:15:41]SAM_PROTO_GetShiftState [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 13 01 00 [12:15:41]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [12:15:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:15:41]wFMCommunicate OK [12:15:41]SAM_PROTO_GetShiftState done [12:15:41]FM_GetShiftState done [12:15:41]opened in 1729643772 [12:15:41]opened+sec_in_day 1729730172 [12:15:41]quantity*price = 100021 [12:15:41]sum+1 = 100023 [12:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 117 23.10.2024 12:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166702 ФПД: 203217853000055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166702&fm=203217853000055&tin=02508201610067®Number=0000000000091764&sum=100000 [12:15:42]StoreToDocumentArchive [12:15:42]shift 537 fd 166702 [12:15:42]save to /storage/0537/doc_00166702 [12:15:42]save last doc name /storage/0537/doc_00166702 to /storage/kkm_last_doc_name [12:15:42]save OK [12:15:42]Clear old archive folders... [12:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:42]tlvbuf is 01FCE7B0 [12:15:42]SAM_PROTO_ClearQueue [12:15:42]wFMCommunicate request_size=4 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 09 00 00 [12:15:42]Write to MH i2c: E2 08 00 D5 10 80 09 00 00 00 00 00 00 57 [12:15:42]Write i2c OK [12:15:42]MH_I2C_Read... [12:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:42]Read from MH i2c: E2 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [12:15:42]RAPDU: 90 00 [12:15:42]wFMCommunicate OK [12:15:42]SAM_PROTO_ClearQueue done [12:15:42]KKMCreateOFDPacket [12:15:42]OFDProtocolAddRootSTLVToBuf [12:15:42]FM_MakeSignedData [12:15:42]FM_MakeSignedData [12:15:42]SAM_PROTO_SignData [12:15:42]wFMCommunicate request_size=4 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 0D 01 02 [12:15:42]Write to MH i2c: E2 08 00 D6 10 80 0D 01 02 00 00 00 00 5F [12:15:42]Write i2c OK [12:15:42]MH_I2C_Read... [12:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:42]Read from MH i2c: E2 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [12:15:42]RAPDU: 90 00 [12:15:42]wFMCommunicate OK [12:15:42]wFMCommunicate request_size=255 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EE E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8B 02 00 35 04 06 00 B8 [12:15:42]Write to MH i2c: E2 02 01 D7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EE E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8B 02 00 35 04 06 00 B8 00 00 6A [12:15:42]Write i2c OK [12:15:42]MH_I2C_Read... [12:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:42]Read from MH i2c: E2 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [12:15:42]RAPDU: 90 00 [12:15:42]wFMCommunicate OK [12:15:42]wFMCommunicate request_size=10 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 0D 02 02 05 D3 57 F0 A9 77 [12:15:42]Write to MH i2c: E2 0D 00 D8 10 80 0D 02 02 05 00 D3 57 F0 A9 77 00 00 A6 [12:15:42]Write i2c OK [12:15:42]MH_I2C_Read... [12:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:42]Read from MH i2c: E2 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [12:15:42]RAPDU: 90 00 [12:15:42]wFMCommunicate OK [12:15:42]wFMCommunicate request_size=4 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 0D 03 02 [12:15:42]Write to MH i2c: E2 08 00 D9 10 80 0D 03 02 00 00 00 00 64 [12:15:42]Write i2c OK [12:15:42]MH_I2C_Read... [12:15:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:42]Read from MH i2c: E2 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 0B 00 [12:15:42]MH_I2C_Read... [12:15:42]Read from MH i2c: E2 0B 00 D9 10 00 A9 83 C7 3A 8B 0D 47 33 90 00 A4 [12:15:42]RAPDU: A9 83 C7 3A 8B 0D 47 33 90 00 [12:15:42]wFMCommunicate OK [12:15:42]SAM_PROTO_SignData done [12:15:42]FM_MakeSignedData done [12:15:42]CreateOFDProtocolMessage [12:15:42]wFMCommunicate request_size=4 [12:15:42]MH_SAM_APDU [12:15:42]CAPDU: 80 11 00 00 [12:15:42]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:43]Read from MH i2c: E2 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: E2 17 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [12:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:15:43]wFMCommunicate OK [12:15:43]CreateOFDProtocolMessage done [12:15:43]OFDSenderStorePacket 166702 [12:15:43]StoreOFDPacket docnum=166702 [12:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB C3 07 01 46 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EE E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8B 02 00 35 04 06 00 B8 D3 57 F0 A9 77 A9 83 C7 3A 8B 0D 47 33 [12:15:43]CheckFolder [12:15:43]dirname=/storage/ofd_packets [12:15:43]CheckFolder done [12:15:43]ProducePacketName [12:15:43]name=ofd_packets/00166702 [12:15:43]NVStorageSaveData ofd_packets/00166702 [12:15:43]File name is /storage/ofd_packets/00166702 [12:15:43]Write 301 bytes [12:15:43]NVStorageSaveData done [12:15:43]OFDSenderStorePacket done [12:15:43]KKMCreateOFDPacket done [12:15:43]NVStorageSaveData kkm_last_timestamp [12:15:43]File name is /storage/kkm_last_timestamp [12:15:43]Write 4 bytes [12:15:43]NVStorageSaveData done [12:15:43]ExternCall_PrintAddStr [12:15:43]wPrintStart [12:15:43]Write to MH i2c: 01 00 00 DB 10 EB [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 07 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 FF 0F 00 [12:15:43]RasterBufferAndPrint [12:15:43]line Счет N : (1)221285 [12:15:43]line ИНН: 02508201610067 [12:15:43]line Контрольно-Кассовый Чек [12:15:43]line ПРОДАЖА [12:15:43]line ТРК (МРК, ГНК) : 44 [12:15:43]line Товар: 2710124500 [12:15:43]line Аи-95-К-5 [12:15:43]line 13.480 * 74.20 [12:15:43]line = 1000.22 [12:15:43]line НДС 12% НСП 1% [12:15:43]line > о реализуемом товаре [12:15:43]line ОКРУГЛЕНИЕ: -0.22 [12:15:43]line ИТОГО: 1000.00 [12:15:43]line Внесено: 1000.00 [12:15:43]line СДАЧА: 0.00 [12:15:43]line НСП 1% : 8.85 [12:15:43]line НДС 12% : 106.22 [12:15:43]line Наличными: 1000.00 [12:15:43]line Безнал.: 0.00 [12:15:43]line Место: АЗС № 161 "Партнер Нефть" [12:15:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:15:43]line СНО: Общий режим [12:15:43]line Чек 117 23.10.2024 12:15 [12:15:43]line Смена: 537 ФФД: 1.0 [12:15:43]line ЗНМ: 0300000104 [12:15:43]line РНМ: 0000000000091764 [12:15:43]line Версия ККМ: 001 [12:15:43]line ФМ: 0000000000871759 [12:15:43]line ФД: 166702 [12:15:43]line ФПД: 203217853000055 [12:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166702&fm=203217853000055&tin=02508201610067®Number=0000000000091764&sum=100000 [12:15:43]OFD Sender: Processing packet 166702 [packets to send 48, broken 47] [12:15:43]ProducePacketName [12:15:43]name=ofd_packets/00166702 [12:15:43]OFD Sender: To server: pG, [12:15:43]CommunicateWithHost lk.salyk.kg:30040 [12:15:43]ConnectInit lk.salyk.kg [12:15:43]written 0, free lines is 4095 [12:15:43]Connected sock=10 [12:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB C3 07 01 46 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EE E8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8B 02 00 35 04 06 00 B8 D3 57 F0 A9 77 A9 83 C7 3A 8B 0D 47 33 [12:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 72 DE 47 00 F2 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8B 02 00 F4 03 04 00 55 8F 18 67 B6 04 01 00 00 EC F8 A6 F8 B9 E5 EF E6 [12:15:43]CommunicateWithHost err = 0 [12:15:43]CheckOFDResponse [12:15:43]1017 (14) - 77093643461234 [12:15:43]1041 (16) - 0000000000871759 [12:15:43]1040 (4) - 166702 [12:15:43]1012 (4) - 23.10.2024 05:53 [12:15:43]1206 (1) - 0 [12:15:43]OFD Sender: Remove packet 166702 [12:15:43]ProducePacketName [12:15:43]name=ofd_packets/00166702 [12:15:43]NVStorageDeleteData [12:15:43]Write to MH i2c: 01 00 00 06 11 17 [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 07 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 B6 0C E0 [12:15:43]RasterBufferAndPrint [12:15:43]line [12:15:43]line [12:15:43]line [12:15:43]line [12:15:43]line [12:15:43]written 0, free lines is 3260 [12:15:43]MH_Cut [12:15:43]Write to MH i2c: D1 01 00 0D 11 01 F0 [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: D1 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: D1 01 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: D1 01 00 0D 11 00 EF [12:15:43]Write to MH i2c: 01 00 00 0E 11 1F [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:44]OFD Sender: No OFD packet to send [12:15:44]*** Cut start [12:15:44]*** Partial cut [12:15:44]*** CUTSNS_PIN = 1 [12:15:44]*** CUTSNS_PIN = 0 [12:15:45]*** Brake cut motor [12:15:45]Read from MH i2c: 01 [12:15:45]MH_I2C_Read... [12:15:45]*** Stop cut motor [12:15:45]*** Cut end [12:15:45]Read from MH i2c: 01 07 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 FF 0F 34 [12:15:45]process_action close_receipt done [12:15:45]requested_data is exist [12:15:45]produce_requested_data [12:15:45]requested_item fm.sn is exist - process it [12:15:45]wFMCommunicate request_size=4 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 11 00 00 [12:15:45]Write to MH i2c: E2 08 00 0F 11 80 11 00 00 00 00 00 00 9A [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:45]Read from MH i2c: E2 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 17 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 17 00 0F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [12:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:15:45]wFMCommunicate OK [12:15:45]requested_item fd.num is exist - process it [12:15:45]SAM_PROTO_GetFieldsCounters [12:15:45]wFMCommunicate request_size=4 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 13 00 00 [12:15:45]Write to MH i2c: E2 08 00 10 11 80 13 00 00 00 00 00 00 9D [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:45]Read from MH i2c: E2 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 62 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 62 00 10 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:45]wFMCommunicate OK [12:15:45]SAM_PROTO_GetFieldsCounters done [12:15:45]requested_item shift.num is exist - process it [12:15:45]requested_item shift.opened is exist - process it [12:15:45]req_shift_opened [12:15:45]FM_GetShiftState [12:15:45]SAM_PROTO_GetShiftState [12:15:45]wFMCommunicate request_size=4 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 13 01 00 [12:15:45]Write to MH i2c: E2 08 00 11 11 80 13 01 00 00 00 00 00 9F [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:45]Read from MH i2c: E2 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 0E 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 0E 00 11 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6A [12:15:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:15:45]wFMCommunicate OK [12:15:45]SAM_PROTO_GetShiftState done [12:15:45]FM_GetShiftState done [12:15:45]req_shift_opened done [12:15:45]requested_item shift.open_date is exist - process it [12:15:45]req_shift_open_date [12:15:45]req_shift_open_date done [12:15:45]produce_requested_data done [12:15:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166702,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:15:45]process_action_free close_receipt [12:15:45]json_value_free [12:15:45]json_value_free done [12:15:45]process_json_proto returns [12:15:45]Send response to host [12:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166702,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:15:45]free response buf [12:15:45]execute_script done [12:15:45]execute_script returns [12:15:45]free content buf [12:15:45]Sock 8.Close socket [12:15:45]Sock 8.Thread stoped [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:02]accept exits with 9 [12:18:02]New connection [12:18:02]New thread 3067178340 created [12:18:02]Thread 3067034980 joined [12:18:02]Waiting for new connection... [12:18:02] Sock 9.Parse request [12:18:02]Sock 9.Check first char [12:18:02]Sock 9.First char is OK [12:18:02]request: POST /json_proto HTTP/1.0 [12:18:02]Method: POST [12:18:02]URL: /json_proto [12:18:02]Method is POST - this is cgi request [12:18:02]url: /json_proto [12:18:02]query_string will be loaded in cgi processing [12:18:02]execute_cgi json_proto POST (null) [12:18:02]execute_cgi path=json_proto method=POST [12:18:02]POST find Content-Length [12:18:02]Host: 172.17.53.195:8080 [12:18:02]Content-Length: 677 [12:18:02]Content-Type: application/json [12:18:02] [12:18:02]POST finish read [12:18:02]Found Content-Length = 677 [12:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]execute_script... [12:18: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)221286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]POST & json_proto [12:18:02]process_json_proto [12:18:02]json parsed OK: [12:18:02]protocol is kg_v1.0 [12:18:02]action value=close_receipt [12:18:02]process_action close_receipt [12:18:02]cmd_close_receipt [12:18:02]MH_GetDate [12:18:02]Write to MH i2c: F0 00 00 12 11 12 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 09 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 09 00 12 11 00 7B E9 18 67 21 48 4A 65 16 [12:18:02]GetLastDocTimeStamp 1729685742 [12:18:02]current date 1729685883 [12:18:02]FM_GetShiftState [12:18:02]SAM_PROTO_GetShiftState [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 13 01 00 [12:18:02]Write to MH i2c: E2 08 00 13 11 80 13 01 00 00 00 00 00 A1 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 13 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6C [12:18:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:18:02]wFMCommunicate OK [12:18:02]SAM_PROTO_GetShiftState done [12:18:02]FM_GetShiftState done [12:18:02]opened in 1729643772 [12:18:02]opened+sec_in_day 1729730172 [12:18:02]quantity*price = 60027 [12:18:02]sum+1 = 60029 [12:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 118 23.10.2024 12:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166703 ФПД: 56627778164819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166703&fm=56627778164819&tin=02508201610067®Number=0000000000091764&sum=60000 [12:18:03]StoreToDocumentArchive [12:18:03]shift 537 fd 166703 [12:18:03]save to /storage/0537/doc_00166703 [12:18:03]save last doc name /storage/0537/doc_00166703 to /storage/kkm_last_doc_name [12:18:03]save OK [12:18:03]Clear old archive folders... [12:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:03]tlvbuf is 01F716D0 [12:18:03]SAM_PROTO_ClearQueue [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 09 00 00 [12:18:03]Write to MH i2c: E2 08 00 20 11 80 09 00 00 00 00 00 00 A3 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 20 11 00 90 00 A5 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_ClearQueue done [12:18:03]KKMCreateOFDPacket [12:18:03]OFDProtocolAddRootSTLVToBuf [12:18:03]FM_MakeSignedData [12:18:03]FM_MakeSignedData [12:18:03]SAM_PROTO_SignData [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 01 02 [12:18:03]Write to MH i2c: E2 08 00 21 11 80 0D 01 02 00 00 00 00 AB [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 21 11 00 90 00 A6 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]wFMCommunicate request_size=255 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8B 02 00 35 04 06 00 33 [12:18:03]Write to MH i2c: E2 02 01 22 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8B 02 00 35 04 06 00 33 00 00 02 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]wFMCommunicate request_size=10 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 02 02 05 80 AE 9A 18 53 [12:18:03]Write to MH i2c: E2 0D 00 23 11 80 0D 02 02 05 00 80 AE 9A 18 53 00 00 EB [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 03 02 [12:18:03]Write to MH i2c: E2 08 00 24 11 80 0D 03 02 00 00 00 00 B0 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0B 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0B 00 24 11 00 04 1D 6F FF 28 C8 7F 0F 90 00 BE [12:18:03]RAPDU: 04 1D 6F FF 28 C8 7F 0F 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_SignData done [12:18:03]FM_MakeSignedData done [12:18:03]CreateOFDProtocolMessage [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 11 00 00 [12:18:03]Write to MH i2c: E2 08 00 25 11 80 11 00 00 00 00 00 00 B0 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 25 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [12:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:03]wFMCommunicate OK [12:18:03]CreateOFDProtocolMessage done [12:18:03]OFDSenderStorePacket 166703 [12:18:03]StoreOFDPacket docnum=166703 [12:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 7E 07 01 B8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8B 02 00 35 04 06 00 33 80 AE 9A 18 53 04 1D 6F FF 28 C8 7F 0F [12:18:03]CheckFolder [12:18:03]dirname=/storage/ofd_packets [12:18:03]CheckFolder done [12:18:03]ProducePacketName [12:18:03]name=ofd_packets/00166703 [12:18:03]NVStorageSaveData ofd_packets/00166703 [12:18:03]File name is /storage/ofd_packets/00166703 [12:18:03]Write 301 bytes [12:18:03]NVStorageSaveData done [12:18:03]OFDSenderStorePacket done [12:18:03]KKMCreateOFDPacket done [12:18:03]NVStorageSaveData kkm_last_timestamp [12:18:03]File name is /storage/kkm_last_timestamp [12:18:03]Write 4 bytes [12:18:03]NVStorageSaveData done [12:18:03]ExternCall_PrintAddStr [12:18:03]wPrintStart [12:18:03]Write to MH i2c: 01 00 00 26 11 37 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 FF 0F 4C [12:18:03]RasterBufferAndPrint [12:18:03]line Счет N : (1)221286 [12:18:03]line ИНН: 02508201610067 [12:18:03]line Контрольно-Кассовый Чек [12:18:03]line ПРОДАЖА [12:18:03]line ТРК (МРК, ГНК) : 24 [12:18:03]line Товар: 2710124500 [12:18:03]line Аи-95-К-5 [12:18:03]line 8.090 * 74.20 [12:18:03]line = 600.28 [12:18:03]line НДС 12% НСП 1% [12:18:03]line > о реализуемом товаре [12:18:03]line ОКРУГЛЕНИЕ: -0.28 [12:18:03]line ИТОГО: 600.00 [12:18:03]line Внесено: 600.00 [12:18:03]line СДАЧА: 0.00 [12:18:03]line НСП 1% : 5.31 [12:18:03]line НДС 12% : 63.75 [12:18:03]line Наличными: 600.00 [12:18:03]line Безнал.: 0.00 [12:18:03]line Место: АЗС № 161 "Партнер Нефть" [12:18:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:18:03]line СНО: Общий режим [12:18:03]line Чек 118 23.10.2024 12:18 [12:18:03]line Смена: 537 ФФД: 1.0 [12:18:03]line ЗНМ: 0300000104 [12:18:03]line РНМ: 0000000000091764 [12:18:03]line Версия ККМ: 001 [12:18:03]line ФМ: 0000000000871759 [12:18:03]line ФД: 166703 [12:18:03]line ФПД: 56627778164819 [12:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166703&fm=56627778164819&tin=02508201610067®Number=0000000000091764&sum=60000 [12:18:04]OFD Sender: Processing packet 166703 [packets to send 48, broken 47] [12:18:04]ProducePacketName [12:18:04]name=ofd_packets/00166703 [12:18:04]OFD Sender: To server: pG, [12:18:04]CommunicateWithHost lk.salyk.kg:30040 [12:18:04]ConnectInit lk.salyk.kg [12:18:04]written 0, free lines is 4095 [12:18:04]Connected sock=10 [12:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 7E 07 01 B8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7B E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8B 02 00 35 04 06 00 33 80 AE 9A 18 53 04 1D 6F FF 28 C8 7F 0F [12:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 18 09 47 00 B9 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8B 02 00 F4 03 04 00 E2 8F 18 67 B6 04 01 00 00 BA 90 75 7D 84 AC 0A C1 [12:18:04]CommunicateWithHost err = 0 [12:18:04]CheckOFDResponse [12:18:04]1017 (14) - 77093643461234 [12:18:04]1041 (16) - 0000000000871759 [12:18:04]1040 (4) - 166703 [12:18:04]1012 (4) - 23.10.2024 05:55 [12:18:04]1206 (1) - 0 [12:18:04]OFD Sender: Remove packet 166703 [12:18:04]ProducePacketName [12:18:04]name=ofd_packets/00166703 [12:18:04]NVStorageDeleteData [12:18:04]Write to MH i2c: 01 00 00 51 11 62 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 51 11 00 00 00 00 00 B6 0C 2B [12:18:04]RasterBufferAndPrint [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]written 0, free lines is 3262 [12:18:04]MH_Cut [12:18:04]Write to MH i2c: D1 01 00 58 11 01 3B [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 01 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 01 00 58 11 00 3A [12:18:04]Write to MH i2c: 01 00 00 59 11 6A [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:05]OFD Sender: No OFD packet to send [12:18:05]*** Cut start [12:18:05]*** Partial cut [12:18:05]*** CUTSNS_PIN = 1 [12:18:05]*** CUTSNS_PIN = 0 [12:18:05]*** Brake cut motor [12:18:06]Read from MH i2c: 01 [12:18:06]MH_I2C_Read... [12:18:06]*** Stop cut motor [12:18:06]*** Cut end [12:18:06]Read from MH i2c: 01 07 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 FF 0F 7F [12:18:06]process_action close_receipt done [12:18:06]requested_data is exist [12:18:06]produce_requested_data [12:18:06]requested_item fm.sn is exist - process it [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 11 00 00 [12:18:06]Write to MH i2c: E2 08 00 5A 11 80 11 00 00 00 00 00 00 E5 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 17 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 17 00 5A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [12:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:06]wFMCommunicate OK [12:18:06]requested_item fd.num is exist - process it [12:18:06]SAM_PROTO_GetFieldsCounters [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 13 00 00 [12:18:06]Write to MH i2c: E2 08 00 5B 11 80 13 00 00 00 00 00 00 E8 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 62 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 62 00 5B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [12:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:06]wFMCommunicate OK [12:18:06]SAM_PROTO_GetFieldsCounters done [12:18:06]requested_item shift.num is exist - process it [12:18:06]requested_item shift.opened is exist - process it [12:18:06]req_shift_opened [12:18:06]FM_GetShiftState [12:18:06]SAM_PROTO_GetShiftState [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 13 01 00 [12:18:06]Write to MH i2c: E2 08 00 5C 11 80 13 01 00 00 00 00 00 EA [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0E 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0E 00 5C 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B5 [12:18:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:18:06]wFMCommunicate OK [12:18:06]SAM_PROTO_GetShiftState done [12:18:06]FM_GetShiftState done [12:18:06]req_shift_opened done [12:18:06]requested_item shift.open_date is exist - process it [12:18:06]req_shift_open_date [12:18:06]req_shift_open_date done [12:18:06]produce_requested_data done [12:18:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166703,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:18:06]process_action_free close_receipt [12:18:06]json_value_free [12:18:06]json_value_free done [12:18:06]process_json_proto returns [12:18:06]Send response to host [12:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166703,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:18:06]free response buf [12:18:06]execute_script done [12:18:06]execute_script returns [12:18:06]free content buf [12:18:06]Sock 9.Close socket [12:18:06]Sock 9.Thread stoped [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:02]accept exits with 8 [12:19:02]New connection [12:19:02]New thread 3067034980 created [12:19:02]Thread 3067178340 joined [12:19:02]Waiting for new connection... [12:19:02] Sock 8.Parse request [12:19:02]Sock 8.Check first char [12:19:02]Sock 8.First char is OK [12:19:02]request: POST /json_proto HTTP/1.0 [12:19:02]Method: POST [12:19:02]URL: /json_proto [12:19:02]Method is POST - this is cgi request [12:19:02]url: /json_proto [12:19:02]query_string will be loaded in cgi processing [12:19:02]execute_cgi json_proto POST (null) [12:19:02]execute_cgi path=json_proto method=POST [12:19:02]POST find Content-Length [12:19:02]Host: 172.17.53.195:8080 [12:19:02]Content-Length: 677 [12:19:02]Content-Type: application/json [12:19:02] [12:19:02]POST finish read [12:19:02]Found Content-Length = 677 [12:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:02]execute_script... [12: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)221287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:02]POST & json_proto [12:19:02]process_json_proto [12:19:02]json parsed OK: [12:19:02]protocol is kg_v1.0 [12:19:02]action value=close_receipt [12:19:02]process_action close_receipt [12:19:02]cmd_close_receipt [12:19:02]MH_GetDate [12:19:02]Write to MH i2c: F0 00 00 5D 11 5D [12:19:02]Write i2c OK [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: F0 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: F0 09 00 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: F0 09 00 5D 11 00 B7 E9 18 67 21 48 4A 65 9D [12:19:02]GetLastDocTimeStamp 1729685883 [12:19:02]current date 1729685943 [12:19:02]FM_GetShiftState [12:19:02]SAM_PROTO_GetShiftState [12:19:02]wFMCommunicate request_size=4 [12:19:02]MH_SAM_APDU [12:19:02]CAPDU: 80 13 01 00 [12:19:02]Write to MH i2c: E2 08 00 5E 11 80 13 01 00 00 00 00 00 EC [12:19:02]Write i2c OK [12:19:02]MH_I2C_Read... [12:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:02]Read from MH i2c: E2 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 0E 00 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 0E 00 5E 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B7 [12:19:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:19:02]wFMCommunicate OK [12:19:02]SAM_PROTO_GetShiftState done [12:19:02]FM_GetShiftState done [12:19:02]opened in 1729643772 [12:19:02]opened+sec_in_day 1729730172 [12:19:02]quantity*price = 49974 [12:19:02]sum+1 = 49975 [12:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 119 23.10.2024 12:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166704 ФПД: 235746386100358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166704&fm=235746386100358&tin=02508201610067®Number=0000000000091764&sum=49900 [12:19:04]StoreToDocumentArchive [12:19:04]shift 537 fd 166704 [12:19:04]save to /storage/0537/doc_00166704 [12:19:04]save last doc name /storage/0537/doc_00166704 to /storage/kkm_last_doc_name [12:19:04]save OK [12:19:04]Clear old archive folders... [12:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:04]tlvbuf is 01FEC070 [12:19:04]SAM_PROTO_ClearQueue [12:19:04]wFMCommunicate request_size=4 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 09 00 00 [12:19:04]Write to MH i2c: E2 08 00 6B 11 80 09 00 00 00 00 00 00 EE [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 6B 11 00 90 00 F0 [12:19:04]RAPDU: 90 00 [12:19:04]wFMCommunicate OK [12:19:04]SAM_PROTO_ClearQueue done [12:19:04]KKMCreateOFDPacket [12:19:04]OFDProtocolAddRootSTLVToBuf [12:19:04]FM_MakeSignedData [12:19:04]FM_MakeSignedData [12:19:04]SAM_PROTO_SignData [12:19:04]wFMCommunicate request_size=4 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 0D 01 02 [12:19:04]Write to MH i2c: E2 08 00 6C 11 80 0D 01 02 00 00 00 00 F6 [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [12:19:04]RAPDU: 90 00 [12:19:04]wFMCommunicate OK [12:19:04]wFMCommunicate request_size=255 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8B 02 00 35 04 06 00 D6 [12:19:04]Write to MH i2c: E2 02 01 6D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8B 02 00 35 04 06 00 D6 00 00 B1 [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [12:19:04]RAPDU: 90 00 [12:19:04]wFMCommunicate OK [12:19:04]wFMCommunicate request_size=10 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 0D 02 02 05 68 FB 99 C0 86 [12:19:04]Write to MH i2c: E2 0D 00 6E 11 80 0D 02 02 05 00 68 FB 99 C0 86 00 00 45 [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [12:19:04]RAPDU: 90 00 [12:19:04]wFMCommunicate OK [12:19:04]wFMCommunicate request_size=4 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 0D 03 02 [12:19:04]Write to MH i2c: E2 08 00 6F 11 80 0D 03 02 00 00 00 00 FB [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 0B 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 0B 00 6F 11 00 25 C0 04 A9 54 F3 E1 EB 90 00 A1 [12:19:04]RAPDU: 25 C0 04 A9 54 F3 E1 EB 90 00 [12:19:04]wFMCommunicate OK [12:19:04]SAM_PROTO_SignData done [12:19:04]FM_MakeSignedData done [12:19:04]CreateOFDProtocolMessage [12:19:04]wFMCommunicate request_size=4 [12:19:04]MH_SAM_APDU [12:19:04]CAPDU: 80 11 00 00 [12:19:04]Write to MH i2c: E2 08 00 70 11 80 11 00 00 00 00 00 00 FB [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:04]Read from MH i2c: E2 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 17 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: E2 17 00 70 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [12:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:04]wFMCommunicate OK [12:19:04]CreateOFDProtocolMessage done [12:19:04]OFDSenderStorePacket 166704 [12:19:04]StoreOFDPacket docnum=166704 [12:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DD 88 07 01 9B 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8B 02 00 35 04 06 00 D6 68 FB 99 C0 86 25 C0 04 A9 54 F3 E1 EB [12:19:04]CheckFolder [12:19:04]dirname=/storage/ofd_packets [12:19:04]CheckFolder done [12:19:04]ProducePacketName [12:19:04]name=ofd_packets/00166704 [12:19:04]NVStorageSaveData ofd_packets/00166704 [12:19:04]File name is /storage/ofd_packets/00166704 [12:19:04]Write 301 bytes [12:19:04]NVStorageSaveData done [12:19:04]OFDSenderStorePacket done [12:19:04]KKMCreateOFDPacket done [12:19:04]NVStorageSaveData kkm_last_timestamp [12:19:04]File name is /storage/kkm_last_timestamp [12:19:04]Write 4 bytes [12:19:04]NVStorageSaveData done [12:19:04]ExternCall_PrintAddStr [12:19:04]wPrintStart [12:19:04]Write to MH i2c: 01 00 00 71 11 82 [12:19:04]Write i2c OK [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: 01 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: 01 07 00 [12:19:04]MH_I2C_Read... [12:19:04]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 FF 0F 97 [12:19:04]RasterBufferAndPrint [12:19:04]line Счет N : (1)221287 [12:19:04]line ИНН: 02508201610067 [12:19:04]line Контрольно-Кассовый Чек [12:19:04]line ПРОДАЖА [12:19:04]line ТРК (МРК, ГНК) : 13 [12:19:04]line Товар: 2710124130 [12:19:04]line Аи-92-К-5 [12:19:04]line 7.470 * 66.90 [12:19:04]line = 499.74 [12:19:04]line НДС 12% НСП 1% [12:19:04]line > о реализуемом товаре [12:19:04]line ОКРУГЛЕНИЕ: -0.74 [12:19:04]line ИТОГО: 499.00 [12:19:04]line Внесено: 500.00 [12:19:04]line СДАЧА: 1.00 [12:19:04]line НСП 1% : 4.42 [12:19:04]line НДС 12% : 53.07 [12:19:04]line Наличными: 499.00 [12:19:04]line Безнал.: 0.00 [12:19:04]line Место: АЗС № 161 "Партнер Нефть" [12:19:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:19:04]line СНО: Общий режим [12:19:04]line Чек 119 23.10.2024 12:19 [12:19:04]line Смена: 537 ФФД: 1.0 [12:19:04]line ЗНМ: 0300000104 [12:19:04]line РНМ: 0000000000091764 [12:19:04]line Версия ККМ: 001 [12:19:04]line ФМ: 0000000000871759 [12:19:04]line ФД: 166704 [12:19:04]line ФПД: 235746386100358 [12:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166704&fm=235746386100358&tin=02508201610067®Number=0000000000091764&sum=49900 [12:19:04]OFD Sender: Processing packet 166704 [packets to send 48, broken 47] [12:19:04]ProducePacketName [12:19:04]name=ofd_packets/00166704 [12:19:04]OFD Sender: To server: pG, [12:19:04]CommunicateWithHost lk.salyk.kg:30040 [12:19:04]ConnectInit lk.salyk.kg [12:19:04]written 0, free lines is 4095 [12:19:05]Connected sock=10 [12:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DD 88 07 01 9B 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8B 02 00 35 04 06 00 D6 68 FB 99 C0 86 25 C0 04 A9 54 F3 E1 EB [12:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 8A 47 00 EE 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8B 02 00 F4 03 04 00 1F 90 18 67 B6 04 01 00 00 5E 1D 14 2B 4D EB 04 B6 [12:19:05]CommunicateWithHost err = 0 [12:19:05]CheckOFDResponse [12:19:05]1017 (14) - 77093643461234 [12:19:05]1041 (16) - 0000000000871759 [12:19:05]1040 (4) - 166704 [12:19:05]1012 (4) - 23.10.2024 05:56 [12:19:05]1206 (1) - 0 [12:19:05]OFD Sender: Remove packet 166704 [12:19:05]ProducePacketName [12:19:05]name=ofd_packets/00166704 [12:19:05]NVStorageDeleteData [12:19:05]Write to MH i2c: 01 00 00 9C 11 AD [12:19:05]Write i2c OK [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: 01 [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: 01 07 00 [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: 01 07 00 9C 11 00 00 00 00 00 B6 0C 76 [12:19:05]RasterBufferAndPrint [12:19:05]line [12:19:05]line [12:19:05]line [12:19:05]line [12:19:05]line [12:19:05]written 0, free lines is 3262 [12:19:05]MH_Cut [12:19:05]Write to MH i2c: D1 01 00 A3 11 01 86 [12:19:05]Write i2c OK [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: D1 [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: D1 01 00 [12:19:05]MH_I2C_Read... [12:19:05]Read from MH i2c: D1 01 00 A3 11 00 85 [12:19:05]Write to MH i2c: 01 00 00 A4 11 B5 [12:19:05]Write i2c OK [12:19:05]MH_I2C_Read... [12:19:05]OFD Sender: No OFD packet to send [12:19:06]*** Cut start [12:19:06]*** Partial cut [12:19:06]*** CUTSNS_PIN = 1 [12:19:06]*** CUTSNS_PIN = 0 [12:19:06]*** Brake cut motor [12:19:06]Read from MH i2c: 01 [12:19:06]MH_I2C_Read... [12:19:06]*** Stop cut motor [12:19:06]*** Cut end [12:19:06]Read from MH i2c: 01 07 00 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: 01 07 00 A4 11 00 00 00 00 00 FF 0F CA [12:19:06]process_action close_receipt done [12:19:06]requested_data is exist [12:19:06]produce_requested_data [12:19:06]requested_item fm.sn is exist - process it [12:19:06]wFMCommunicate request_size=4 [12:19:06]MH_SAM_APDU [12:19:06]CAPDU: 80 11 00 00 [12:19:06]Write to MH i2c: E2 08 00 A5 11 80 11 00 00 00 00 00 00 30 [12:19:06]Write i2c OK [12:19:06]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 17 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 17 00 A5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [12:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:07]wFMCommunicate OK [12:19:07]requested_item fd.num is exist - process it [12:19:07]SAM_PROTO_GetFieldsCounters [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 13 00 00 [12:19:07]Write to MH i2c: E2 08 00 A6 11 80 13 00 00 00 00 00 00 33 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 62 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 62 00 A6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:19:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:07]wFMCommunicate OK [12:19:07]SAM_PROTO_GetFieldsCounters done [12:19:07]requested_item shift.num is exist - process it [12:19:07]requested_item shift.opened is exist - process it [12:19:07]req_shift_opened [12:19:07]FM_GetShiftState [12:19:07]SAM_PROTO_GetShiftState [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 13 01 00 [12:19:07]Write to MH i2c: E2 08 00 A7 11 80 13 01 00 00 00 00 00 35 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0E 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0E 00 A7 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 00 [12:19:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:19:07]wFMCommunicate OK [12:19:07]SAM_PROTO_GetShiftState done [12:19:07]FM_GetShiftState done [12:19:07]req_shift_opened done [12:19:07]requested_item shift.open_date is exist - process it [12:19:07]req_shift_open_date [12:19:07]req_shift_open_date done [12:19:07]produce_requested_data done [12:19:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166704,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:19:07]process_action_free close_receipt [12:19:07]json_value_free [12:19:07]json_value_free done [12:19:07]process_json_proto returns [12:19:07]Send response to host [12:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166704,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:19:07]free response buf [12:19:07]execute_script done [12:19:07]execute_script returns [12:19:07]free content buf [12:19:07]Sock 8.Close socket [12:19:07]Sock 8.Thread stoped [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:18]accept exits with 9 [12:19:18]New connection [12:19:18]New thread 3067178340 created [12:19:18]Thread 3067034980 joined [12:19:18]Waiting for new connection... [12:19:18] Sock 9.Parse request [12:19:18]Sock 9.Check first char [12:19:18]Sock 9.First char is OK [12:19:18]request: POST /json_proto HTTP/1.0 [12:19:18]Method: POST [12:19:18]URL: /json_proto [12:19:18]Method is POST - this is cgi request [12:19:18]url: /json_proto [12:19:18]query_string will be loaded in cgi processing [12:19:18]execute_cgi json_proto POST (null) [12:19:18]execute_cgi path=json_proto method=POST [12:19:18]POST find Content-Length [12:19:18]Host: 172.17.53.195:8080 [12:19:18]Content-Length: 677 [12:19:18]Content-Type: application/json [12:19:18] [12:19:18]POST finish read [12:19:18]Found Content-Length = 677 [12:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:18]execute_script... [12:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:18]POST & json_proto [12:19:18]process_json_proto [12:19:18]json parsed OK: [12:19:18]protocol is kg_v1.0 [12:19:18]action value=close_receipt [12:19:18]process_action close_receipt [12:19:18]cmd_close_receipt [12:19:18]MH_GetDate [12:19:18]Write to MH i2c: F0 00 00 A8 11 A8 [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: F0 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: F0 09 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: F0 09 00 A8 11 00 C7 E9 18 67 21 48 4A 65 F8 [12:19:18]GetLastDocTimeStamp 1729685943 [12:19:18]current date 1729685959 [12:19:18]FM_GetShiftState [12:19:18]SAM_PROTO_GetShiftState [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 13 01 00 [12:19:18]Write to MH i2c: E2 08 00 A9 11 80 13 01 00 00 00 00 00 37 [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 0E 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 0E 00 A9 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 02 [12:19:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:19:18]wFMCommunicate OK [12:19:18]SAM_PROTO_GetShiftState done [12:19:18]FM_GetShiftState done [12:19:18]opened in 1729643772 [12:19:18]opened+sec_in_day 1729730172 [12:19:18]quantity*price = 50041 [12:19:18]sum+1 = 50042 [12:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 120 23.10.2024 12:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166705 ФПД: 35880279971954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166705&fm=35880279971954&tin=02508201610067®Number=0000000000091764&sum=50000 [12:19:19]StoreToDocumentArchive [12:19:19]shift 537 fd 166705 [12:19:19]save to /storage/0537/doc_00166705 [12:19:19]save last doc name /storage/0537/doc_00166705 to /storage/kkm_last_doc_name [12:19:19]save OK [12:19:19]Clear old archive folders... [12:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:19]tlvbuf is 01F5C3E0 [12:19:19]SAM_PROTO_ClearQueue [12:19:19]wFMCommunicate request_size=4 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 09 00 00 [12:19:19]Write to MH i2c: E2 08 00 B6 11 80 09 00 00 00 00 00 00 39 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 B6 11 00 90 00 3B [12:19:19]RAPDU: 90 00 [12:19:19]wFMCommunicate OK [12:19:19]SAM_PROTO_ClearQueue done [12:19:19]KKMCreateOFDPacket [12:19:19]OFDProtocolAddRootSTLVToBuf [12:19:19]FM_MakeSignedData [12:19:19]FM_MakeSignedData [12:19:19]SAM_PROTO_SignData [12:19:19]wFMCommunicate request_size=4 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 0D 01 02 [12:19:19]Write to MH i2c: E2 08 00 B7 11 80 0D 01 02 00 00 00 00 41 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 B7 11 00 90 00 3C [12:19:19]RAPDU: 90 00 [12:19:19]wFMCommunicate OK [12:19:19]wFMCommunicate request_size=255 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8B 02 00 35 04 06 00 20 [12:19:19]Write to MH i2c: E2 02 01 B8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8B 02 00 35 04 06 00 20 00 00 77 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [12:19:19]RAPDU: 90 00 [12:19:19]wFMCommunicate OK [12:19:19]wFMCommunicate request_size=10 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 0D 02 02 05 A2 07 57 98 72 [12:19:19]Write to MH i2c: E2 0D 00 B9 11 80 0D 02 02 05 00 A2 07 57 98 72 00 00 58 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:20]Read from MH i2c: E2 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 03 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [12:19:20]RAPDU: 90 00 [12:19:20]wFMCommunicate OK [12:19:20]wFMCommunicate request_size=4 [12:19:20]MH_SAM_APDU [12:19:20]CAPDU: 80 0D 03 02 [12:19:20]Write to MH i2c: E2 08 00 BA 11 80 0D 03 02 00 00 00 00 46 [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:20]Read from MH i2c: E2 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 0B 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 0B 00 BA 11 00 BE 7B 63 C6 C0 74 94 E4 90 00 55 [12:19:20]RAPDU: BE 7B 63 C6 C0 74 94 E4 90 00 [12:19:20]wFMCommunicate OK [12:19:20]SAM_PROTO_SignData done [12:19:20]FM_MakeSignedData done [12:19:20]CreateOFDProtocolMessage [12:19:20]wFMCommunicate request_size=4 [12:19:20]MH_SAM_APDU [12:19:20]CAPDU: 80 11 00 00 [12:19:20]Write to MH i2c: E2 08 00 BB 11 80 11 00 00 00 00 00 00 46 [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:20]Read from MH i2c: E2 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 17 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: E2 17 00 BB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [12:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:20]wFMCommunicate OK [12:19:20]CreateOFDProtocolMessage done [12:19:20]OFDSenderStorePacket 166705 [12:19:20]StoreOFDPacket docnum=166705 [12:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 40 07 01 99 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8B 02 00 35 04 06 00 20 A2 07 57 98 72 BE 7B 63 C6 C0 74 94 E4 [12:19:20]CheckFolder [12:19:20]dirname=/storage/ofd_packets [12:19:20]CheckFolder done [12:19:20]ProducePacketName [12:19:20]name=ofd_packets/00166705 [12:19:20]NVStorageSaveData ofd_packets/00166705 [12:19:20]File name is /storage/ofd_packets/00166705 [12:19:20]Write 301 bytes [12:19:20]NVStorageSaveData done [12:19:20]OFDSenderStorePacket done [12:19:20]KKMCreateOFDPacket done [12:19:20]NVStorageSaveData kkm_last_timestamp [12:19:20]File name is /storage/kkm_last_timestamp [12:19:20]Write 4 bytes [12:19:20]NVStorageSaveData done [12:19:20]ExternCall_PrintAddStr [12:19:20]wPrintStart [12:19:20]Write to MH i2c: 01 00 00 BC 11 CD [12:19:20]OFD Sender: Processing packet 166705 [packets to send 48, broken 47] [12:19:20]ProducePacketName [12:19:20]name=ofd_packets/00166705 [12:19:20]OFD Sender: To server: pG, [12:19:20]CommunicateWithHost lk.salyk.kg:30040 [12:19:20]ConnectInit lk.salyk.kg [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 BC 11 00 00 00 00 00 FF 0F E2 [12:19:20]RasterBufferAndPrint [12:19:20]line Счет N : (1)221288 [12:19:20]line ИНН: 02508201610067 [12:19:20]line Контрольно-Кассовый Чек [12:19:20]line ПРОДАЖА [12:19:20]line ТРК (МРК, ГНК) : 33 [12:19:20]line Товар: 2710124130 [12:19:20]line Аи-92-К-5 [12:19:20]line 7.480 * 66.90 [12:19:20]line = 500.41 [12:19:20]line НДС 12% НСП 1% [12:19:20]line > о реализуемом товаре [12:19:20]line ОКРУГЛЕНИЕ: -0.41 [12:19:20]line ИТОГО: 500.00 [12:19:20]line Внесено: 500.00 [12:19:20]line СДАЧА: 0.00 [12:19:20]line НСП 1% : 4.43 [12:19:20]line НДС 12% : 53.14 [12:19:20]line Наличными: 500.00 [12:19:20]line Безнал.: 0.00 [12:19:20]line Место: АЗС № 161 "Партнер Нефть" [12:19:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:19:20]line СНО: Общий режим [12:19:20]line Чек 120 23.10.2024 12:19 [12:19:20]line Смена: 537 ФФД: 1.0 [12:19:20]line ЗНМ: 0300000104 [12:19:20]line РНМ: 0000000000091764 [12:19:20]line Версия ККМ: 001 [12:19:20]line ФМ: 0000000000871759 [12:19:20]line ФД: 166705 [12:19:20]line ФПД: 35880279971954 [12:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166705&fm=35880279971954&tin=02508201610067®Number=0000000000091764&sum=50000 [12:19:20]Connected sock=10 [12: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 31 37 35 39 0F 01 00 00 7C 40 07 01 99 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 E9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8B 02 00 35 04 06 00 20 A2 07 57 98 72 BE 7B 63 C6 C0 74 94 E4 [12:19:20]written 0, free lines is 4095 [12:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 13 47 00 B5 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8B 02 00 F4 03 04 00 2E 90 18 67 B6 04 01 00 00 54 D5 C8 0C 4A A4 45 2E [12:19:20]CommunicateWithHost err = 0 [12:19:20]CheckOFDResponse [12:19:20]1017 (14) - 77093643461234 [12:19:20]1041 (16) - 0000000000871759 [12:19:20]1040 (4) - 166705 [12:19:20]1012 (4) - 23.10.2024 05:57 [12:19:20]1206 (1) - 0 [12:19:20]OFD Sender: Remove packet 166705 [12:19:20]ProducePacketName [12:19:20]name=ofd_packets/00166705 [12:19:20]NVStorageDeleteData [12:19:20]Write to MH i2c: 01 00 00 E7 11 F8 [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 B3 0C BE [12:19:20]RasterBufferAndPrint [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]written 0, free lines is 3258 [12:19:21]MH_Cut [12:19:21]Write to MH i2c: D1 01 00 EE 11 01 D1 [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: D1 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: D1 01 00 [12:19:21]MH_I2C_Read... [12:19:21]Read from MH i2c: D1 01 00 EE 11 00 D0 [12:19:21]Write to MH i2c: 01 00 00 EF 11 00 [12:19:21]Write i2c OK [12:19:21]MH_I2C_Read... [12:19:21]OFD Sender: No OFD packet to send [12:19:21]*** Cut start [12:19:21]*** Partial cut [12:19:21]*** CUTSNS_PIN = 1 [12:19:21]*** CUTSNS_PIN = 0 [12:19:22]*** Brake cut motor [12:19:22]Read from MH i2c: 01 [12:19:22]MH_I2C_Read... [12:19:22]*** Stop cut motor [12:19:22]*** Cut end [12:19:22]Read from MH i2c: 01 07 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 FF 0F 15 [12:19:22]process_action close_receipt done [12:19:22]requested_data is exist [12:19:22]produce_requested_data [12:19:22]requested_item fm.sn is exist - process it [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 11 00 00 [12:19:22]Write to MH i2c: E2 08 00 F0 11 80 11 00 00 00 00 00 00 7B [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 17 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 17 00 F0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [12:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:22]wFMCommunicate OK [12:19:22]requested_item fd.num is exist - process it [12:19:22]SAM_PROTO_GetFieldsCounters [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 13 00 00 [12:19:22]Write to MH i2c: E2 08 00 F1 11 80 13 00 00 00 00 00 00 7E [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 62 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 62 00 F1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [12:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:22]wFMCommunicate OK [12:19:22]SAM_PROTO_GetFieldsCounters done [12:19:22]requested_item shift.num is exist - process it [12:19:22]requested_item shift.opened is exist - process it [12:19:22]req_shift_opened [12:19:22]FM_GetShiftState [12:19:22]SAM_PROTO_GetShiftState [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 13 01 00 [12:19:22]Write to MH i2c: E2 08 00 F2 11 80 13 01 00 00 00 00 00 80 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 F2 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4B [12:19:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:19:22]wFMCommunicate OK [12:19:22]SAM_PROTO_GetShiftState done [12:19:22]FM_GetShiftState done [12:19:22]req_shift_opened done [12:19:22]requested_item shift.open_date is exist - process it [12:19:22]req_shift_open_date [12:19:22]req_shift_open_date done [12:19:22]produce_requested_data done [12:19:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166705,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:19:22]process_action_free close_receipt [12:19:22]json_value_free [12:19:22]json_value_free done [12:19:22]process_json_proto returns [12:19:22]Send response to host [12:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166705,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:19:22]free response buf [12:19:22]execute_script done [12:19:22]execute_script returns [12:19:22]free content buf [12:19:22]Sock 9.Close socket [12:19:22]Sock 9.Thread stoped [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:48]accept exits with 8 [12:23:48]New connection [12:23:48]New thread 3067034980 created [12:23:48]Thread 3067178340 joined [12:23:48]Waiting for new connection... [12:23:48] Sock 8.Parse request [12:23:48]Sock 8.Check first char [12:23:48]Sock 8.First char is OK [12:23:48]request: POST /json_proto HTTP/1.0 [12:23:48]Method: POST [12:23:48]URL: /json_proto [12:23:48]Method is POST - this is cgi request [12:23:48]url: /json_proto [12:23:48]query_string will be loaded in cgi processing [12:23:48]execute_cgi json_proto POST (null) [12:23:48]execute_cgi path=json_proto method=POST [12:23:48]POST find Content-Length [12:23:48]Host: 172.17.53.195:8080 [12:23:48]Content-Length: 682 [12:23:48]Content-Type: application/json [12:23:48] [12:23:48]POST finish read [12:23:48]Found Content-Length = 682 [12:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]execute_script... [12:23: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)221289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]POST & json_proto [12:23:48]process_json_proto [12:23:48]json parsed OK: [12:23:48]protocol is kg_v1.0 [12:23:48]action value=close_receipt [12:23:48]process_action close_receipt [12:23:48]cmd_close_receipt [12:23:48]MH_GetDate [12:23:48]Write to MH i2c: F0 00 00 F3 11 F3 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 F3 11 00 D5 EA 18 67 21 48 4A 65 52 [12:23:48]GetLastDocTimeStamp 1729685959 [12:23:48]current date 1729686229 [12:23:48]FM_GetShiftState [12:23:48]SAM_PROTO_GetShiftState [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 01 00 [12:23:48]Write to MH i2c: E2 08 00 F4 11 80 13 01 00 00 00 00 00 82 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 F4 11 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4D [12:23:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetShiftState done [12:23:48]FM_GetShiftState done [12:23:48]opened in 1729643772 [12:23:48]opened+sec_in_day 1729730172 [12:23:48]quantity*price = 100015 [12:23:48]sum+1 = 100017 [12:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 121 23.10.2024 12:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166706 ФПД: 35695925324218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166706&fm=35695925324218&tin=02508201610067®Number=0000000000091764&sum=100000 [12:23:49]StoreToDocumentArchive [12:23:49]shift 537 fd 166706 [12:23:49]save to /storage/0537/doc_00166706 [12:23:49]save last doc name /storage/0537/doc_00166706 to /storage/kkm_last_doc_name [12:23:49]save OK [12:23:49]Clear old archive folders... [12:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:49]tlvbuf is B6EF83D0 [12:23:49]SAM_PROTO_ClearQueue [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 09 00 00 [12:23:49]Write to MH i2c: E2 08 00 01 12 80 09 00 00 00 00 00 00 85 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 01 12 00 90 00 87 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]SAM_PROTO_ClearQueue done [12:23:49]KKMCreateOFDPacket [12:23:49]OFDProtocolAddRootSTLVToBuf [12:23:49]FM_MakeSignedData [12:23:49]FM_MakeSignedData [12:23:49]SAM_PROTO_SignData [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 01 02 [12:23:49]Write to MH i2c: E2 08 00 02 12 80 0D 01 02 00 00 00 00 8D [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 02 12 00 90 00 88 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=255 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D5 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8B 02 00 35 04 06 00 20 [12:23:49]Write to MH i2c: E2 02 01 03 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D5 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8B 02 00 35 04 06 00 20 00 00 CE [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 03 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 03 00 03 12 00 90 00 89 [12:23:50]RAPDU: 90 00 [12:23:50]wFMCommunicate OK [12:23:50]wFMCommunicate request_size=10 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 0D 02 02 05 77 1A F2 E9 BA [12:23:50]Write to MH i2c: E2 0D 00 04 12 80 0D 02 02 05 00 77 1A F2 E9 BA 00 00 C0 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 03 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 03 00 04 12 00 90 00 8A [12:23:50]RAPDU: 90 00 [12:23:50]wFMCommunicate OK [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 0D 03 02 [12:23:50]Write to MH i2c: E2 08 00 05 12 80 0D 03 02 00 00 00 00 92 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0B 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0B 00 05 12 00 5E 27 13 48 3C BF 3E 22 90 00 CE [12:23:50]RAPDU: 5E 27 13 48 3C BF 3E 22 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_SignData done [12:23:50]FM_MakeSignedData done [12:23:50]CreateOFDProtocolMessage [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 11 00 00 [12:23:50]Write to MH i2c: E2 08 00 06 12 80 11 00 00 00 00 00 00 92 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 06 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [12:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:23:50]wFMCommunicate OK [12:23:50]CreateOFDProtocolMessage done [12:23:50]OFDSenderStorePacket 166706 [12:23:50]StoreOFDPacket docnum=166706 [12:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 23 07 01 D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D5 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8B 02 00 35 04 06 00 20 77 1A F2 E9 BA 5E 27 13 48 3C BF 3E 22 [12:23:50]CheckFolder [12:23:50]dirname=/storage/ofd_packets [12:23:50]CheckFolder done [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00166706 [12:23:50]NVStorageSaveData ofd_packets/00166706 [12:23:50]File name is /storage/ofd_packets/00166706 [12:23:50]Write 301 bytes [12:23:50]NVStorageSaveData done [12:23:50]OFDSenderStorePacket done [12:23:50]KKMCreateOFDPacket done [12:23:50]NVStorageSaveData kkm_last_timestamp [12:23:50]File name is /storage/kkm_last_timestamp [12:23:50]Write 4 bytes [12:23:50]NVStorageSaveData done [12:23:50]ExternCall_PrintAddStr [12:23:50]wPrintStart [12:23:50]Write to MH i2c: 01 00 00 07 12 19 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 07 12 00 00 00 00 00 FF 0F 2E [12:23:50]RasterBufferAndPrint [12:23:50]line Счет N : (1)221289 [12:23:50]line ИНН: 02508201610067 [12:23:50]line Контрольно-Кассовый Чек [12:23:50]line ПРОДАЖА [12:23:50]line ТРК (МРК, ГНК) : 13 [12:23:50]line Товар: 2710124130 [12:23:50]line Аи-92-К-5 [12:23:50]line 14.950 * 66.90 [12:23:50]line = 1000.16 [12:23:50]line НДС 12% НСП 1% [12:23:50]line > о реализуемом товаре [12:23:50]line ОКРУГЛЕНИЕ: -0.16 [12:23:50]line ИТОГО: 1000.00 [12:23:50]line Внесено: 1000.00 [12:23:50]line СДАЧА: 0.00 [12:23:50]line НСП 1% : 8.85 [12:23:50]line НДС 12% : 106.21 [12:23:50]line Наличными: 1000.00 [12:23:50]line Безнал.: 0.00 [12:23:50]line Место: АЗС № 161 "Партнер Нефть" [12:23:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:23:50]line СНО: Общий режим [12:23:50]line Чек 121 23.10.2024 12:23 [12:23:50]line Смена: 537 ФФД: 1.0 [12:23:50]line ЗНМ: 0300000104 [12:23:50]line РНМ: 0000000000091764 [12:23:50]line Версия ККМ: 001 [12:23:50]line ФМ: 0000000000871759 [12:23:50]line ФД: 166706 [12:23:50]line ФПД: 35695925324218 [12:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166706&fm=35695925324218&tin=02508201610067®Number=0000000000091764&sum=100000 [12:23:50]OFD Sender: Processing packet 166706 [packets to send 48, broken 47] [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00166706 [12:23:50]OFD Sender: To server: pG, [12:23:50]CommunicateWithHost lk.salyk.kg:30040 [12:23:50]ConnectInit lk.salyk.kg [12:23:50]written 0, free lines is 4095 [12:23:50]Connected sock=10 [12:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 23 07 01 D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D5 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8B 02 00 35 04 06 00 20 77 1A F2 E9 BA 5E 27 13 48 3C BF 3E 22 [12:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4F 5E 47 00 1B 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8B 02 00 F4 03 04 00 3D 91 18 67 B6 04 01 00 00 1B FF 52 75 47 B1 20 CD [12:23:51]CommunicateWithHost err = 0 [12:23:51]CheckOFDResponse [12:23:51]1017 (14) - 77093643461234 [12:23:51]1041 (16) - 0000000000871759 [12:23:51]1040 (4) - 166706 [12:23:51]1012 (4) - 23.10.2024 06:01 [12:23:51]1206 (1) - 0 [12:23:51]OFD Sender: Remove packet 166706 [12:23:51]ProducePacketName [12:23:51]name=ofd_packets/00166706 [12:23:51]NVStorageDeleteData [12:23:51]Write to MH i2c: 01 00 00 32 12 44 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: 01 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: 01 07 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: 01 07 00 32 12 00 00 00 00 00 C0 0C 17 [12:23:51]RasterBufferAndPrint [12:23:51]line [12:23:51]line [12:23:51]line [12:23:51]line [12:23:51]line [12:23:51]written 0, free lines is 3270 [12:23:51]MH_Cut [12:23:51]Write to MH i2c: D1 01 00 39 12 01 1D [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: D1 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: D1 01 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: D1 01 00 39 12 00 1C [12:23:51]Write to MH i2c: 01 00 00 3A 12 4C [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]OFD Sender: No OFD packet to send [12:23:52]*** Cut start [12:23:52]*** Partial cut [12:23:52]*** CUTSNS_PIN = 1 [12:23:52]*** CUTSNS_PIN = 0 [12:23:52]*** Brake cut motor [12:23:52]Read from MH i2c: 01 [12:23:52]MH_I2C_Read... [12:23:52]*** Stop cut motor [12:23:52]*** Cut end [12:23:52]Read from MH i2c: 01 07 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 FF 0F 61 [12:23:52]process_action close_receipt done [12:23:52]requested_data is exist [12:23:52]produce_requested_data [12:23:52]requested_item fm.sn is exist - process it [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 11 00 00 [12:23:52]Write to MH i2c: E2 08 00 3B 12 80 11 00 00 00 00 00 00 C7 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 3B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [12:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:23:52]wFMCommunicate OK [12:23:52]requested_item fd.num is exist - process it [12:23:52]SAM_PROTO_GetFieldsCounters [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 13 00 00 [12:23:52]Write to MH i2c: E2 08 00 3C 12 80 13 00 00 00 00 00 00 CA [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 62 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 62 00 3C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [12:23:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_GetFieldsCounters done [12:23:52]requested_item shift.num is exist - process it [12:23:52]requested_item shift.opened is exist - process it [12:23:52]req_shift_opened [12:23:52]FM_GetShiftState [12:23:52]SAM_PROTO_GetShiftState [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 13 01 00 [12:23:52]Write to MH i2c: E2 08 00 3D 12 80 13 01 00 00 00 00 00 CC [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0E 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0E 00 3D 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 97 [12:23:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_GetShiftState done [12:23:52]FM_GetShiftState done [12:23:52]req_shift_opened done [12:23:52]requested_item shift.open_date is exist - process it [12:23:52]req_shift_open_date [12:23:52]req_shift_open_date done [12:23:52]produce_requested_data done [12:23:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166706,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:23:52]process_action_free close_receipt [12:23:52]json_value_free [12:23:52]json_value_free done [12:23:52]process_json_proto returns [12:23:52]Send response to host [12:23:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166706,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:23:52]free response buf [12:23:52]execute_script done [12:23:52]execute_script returns [12:23:52]free content buf [12:23:52]Sock 8.Close socket [12:23:52]Sock 8.Thread stoped [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:19]accept exits with 9 [12:24:19]New connection [12:24:19]New thread 3067178340 created [12:24:19]Thread 3067034980 joined [12:24:19]Waiting for new connection... [12:24:19] Sock 9.Parse request [12:24:19]Sock 9.Check first char [12:24:19]Sock 9.First char is OK [12:24:19]request: POST /json_proto HTTP/1.0 [12:24:19]Method: POST [12:24:19]URL: /json_proto [12:24:19]Method is POST - this is cgi request [12:24:19]url: /json_proto [12:24:19]query_string will be loaded in cgi processing [12:24:19]execute_cgi json_proto POST (null) [12:24:19]execute_cgi path=json_proto method=POST [12:24:19]POST find Content-Length [12:24:19]Host: 172.17.53.195:8080 [12:24:19]Content-Length: 682 [12:24:19]Content-Type: application/json [12:24:19] [12:24:19]POST finish read [12:24:19]Found Content-Length = 682 [12:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:19]execute_script... [12:24: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)221290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:19]POST & json_proto [12:24:19]process_json_proto [12:24:19]json parsed OK: [12:24:19]protocol is kg_v1.0 [12:24:19]action value=close_receipt [12:24:19]process_action close_receipt [12:24:19]cmd_close_receipt [12:24:19]MH_GetDate [12:24:19]Write to MH i2c: F0 00 00 3E 12 3F [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 09 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 09 00 3E 12 00 F4 EA 18 67 21 48 4A 65 BD [12:24:19]GetLastDocTimeStamp 1729686229 [12:24:19]current date 1729686260 [12:24:19]FM_GetShiftState [12:24:19]SAM_PROTO_GetShiftState [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 13 01 00 [12:24:19]Write to MH i2c: E2 08 00 3F 12 80 13 01 00 00 00 00 00 CE [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 3F 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 99 [12:24:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetShiftState done [12:24:19]FM_GetShiftState done [12:24:19]opened in 1729643772 [12:24:19]opened+sec_in_day 1729730172 [12:24:19]quantity*price = 100015 [12:24:19]sum+1 = 100017 [12:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 122 23.10.2024 12:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166707 ФПД: 143881607562123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166707&fm=143881607562123&tin=02508201610067®Number=0000000000091764&sum=100000 [12:24:20]StoreToDocumentArchive [12:24:20]shift 537 fd 166707 [12:24:20]save to /storage/0537/doc_00166707 [12:24:20]save last doc name /storage/0537/doc_00166707 to /storage/kkm_last_doc_name [12:24:20]save OK [12:24:20]Clear old archive folders... [12:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:20]tlvbuf is 01FCDBB0 [12:24:20]SAM_PROTO_ClearQueue [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 09 00 00 [12:24:20]Write to MH i2c: E2 08 00 4C 12 80 09 00 00 00 00 00 00 D0 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:20]Read from MH i2c: E2 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [12:24:20]RAPDU: 90 00 [12:24:20]wFMCommunicate OK [12:24:20]SAM_PROTO_ClearQueue done [12:24:20]KKMCreateOFDPacket [12:24:20]OFDProtocolAddRootSTLVToBuf [12:24:20]FM_MakeSignedData [12:24:20]FM_MakeSignedData [12:24:20]SAM_PROTO_SignData [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 0D 01 02 [12:24:20]Write to MH i2c: E2 08 00 4D 12 80 0D 01 02 00 00 00 00 D8 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:20]Read from MH i2c: E2 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 4D 12 00 90 00 D3 [12:24:20]RAPDU: 90 00 [12:24:20]wFMCommunicate OK [12:24:20]wFMCommunicate request_size=255 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F4 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8B 02 00 35 04 06 00 82 [12:24:20]Write to MH i2c: E2 02 01 4E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F4 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8B 02 00 35 04 06 00 82 00 00 9C [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:20]Read from MH i2c: E2 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 4E 12 00 90 00 D4 [12:24:20]RAPDU: 90 00 [12:24:20]wFMCommunicate OK [12:24:20]wFMCommunicate request_size=10 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 0D 02 02 05 DC 0C 1B C3 8B [12:24:20]Write to MH i2c: E2 0D 00 4F 12 80 0D 02 02 05 00 DC 0C 1B C3 8B 00 00 36 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:20]Read from MH i2c: E2 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 03 00 4F 12 00 90 00 D5 [12:24:20]RAPDU: 90 00 [12:24:20]wFMCommunicate OK [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 0D 03 02 [12:24:20]Write to MH i2c: E2 08 00 50 12 80 0D 03 02 00 00 00 00 DD [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 50 12 00 0E 6A 46 36 D3 35 AD 4C 90 00 D3 [12:24:21]RAPDU: 0E 6A 46 36 D3 35 AD 4C 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_SignData done [12:24:21]FM_MakeSignedData done [12:24:21]CreateOFDProtocolMessage [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 11 00 00 [12:24:21]Write to MH i2c: E2 08 00 51 12 80 11 00 00 00 00 00 00 DD [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 51 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:21]wFMCommunicate OK [12:24:21]CreateOFDProtocolMessage done [12:24:21]OFDSenderStorePacket 166707 [12:24:21]StoreOFDPacket docnum=166707 [12:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 0D 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F4 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8B 02 00 35 04 06 00 82 DC 0C 1B C3 8B 0E 6A 46 36 D3 35 AD 4C [12:24:21]CheckFolder [12:24:21]dirname=/storage/ofd_packets [12:24:21]CheckFolder done [12:24:21]ProducePacketName [12:24:21]name=ofd_packets/00166707 [12:24:21]NVStorageSaveData ofd_packets/00166707 [12:24:21]File name is /storage/ofd_packets/00166707 [12:24:21]Write 301 bytes [12:24:21]NVStorageSaveData done [12:24:21]OFDSenderStorePacket done [12:24:21]KKMCreateOFDPacket done [12:24:21]NVStorageSaveData kkm_last_timestamp [12:24:21]File name is /storage/kkm_last_timestamp [12:24:21]Write 4 bytes [12:24:21]NVStorageSaveData done [12:24:21]ExternCall_PrintAddStr [12:24:21]wPrintStart [12:24:21]Write to MH i2c: 01 00 00 52 12 64 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [12:24:21]RasterBufferAndPrint [12:24:21]line Счет N : (1)221290 [12:24:21]line ИНН: 02508201610067 [12:24:21]line Контрольно-Кассовый Чек [12:24:21]line ПРОДАЖА [12:24:21]line ТРК (МРК, ГНК) : 43 [12:24:21]line Товар: 2710124130 [12:24:21]line Аи-92-К-5 [12:24:21]line 14.950 * 66.90 [12:24:21]line = 1000.16 [12:24:21]line НДС 12% НСП 1% [12:24:21]line > о реализуемом товаре [12:24:21]line ОКРУГЛЕНИЕ: -0.16 [12:24:21]line ИТОГО: 1000.00 [12:24:21]line Внесено: 1000.00 [12:24:21]line СДАЧА: 0.00 [12:24:21]line НСП 1% : 8.85 [12:24:21]line НДС 12% : 106.21 [12:24:21]line Наличными: 1000.00 [12:24:21]line Безнал.: 0.00 [12:24:21]line Место: АЗС № 161 "Партнер Нефть" [12:24:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:24:21]line СНО: Общий режим [12:24:21]line Чек 122 23.10.2024 12:24 [12:24:21]line Смена: 537 ФФД: 1.0 [12:24:21]line ЗНМ: 0300000104 [12:24:21]line РНМ: 0000000000091764 [12:24:21]line Версия ККМ: 001 [12:24:21]line ФМ: 0000000000871759 [12:24:21]line ФД: 166707 [12:24:21]line ФПД: 143881607562123 [12:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166707&fm=143881607562123&tin=02508201610067®Number=0000000000091764&sum=100000 [12:24:21]written 0, free lines is 4095 [12:24:21]OFD Sender: Processing packet 166707 [packets to send 48, broken 47] [12:24:21]ProducePacketName [12:24:21]name=ofd_packets/00166707 [12:24:21]OFD Sender: To server: pG, [12:24:21]CommunicateWithHost lk.salyk.kg:30040 [12:24:21]ConnectInit lk.salyk.kg [12:24:21]Connected sock=10 [12:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 0D 07 01 70 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F4 EA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8B 02 00 35 04 06 00 82 DC 0C 1B C3 8B 0E 6A 46 36 D3 35 AD 4C [12:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 42 B8 47 00 BF FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8B 02 00 F4 03 04 00 5B 91 18 67 B6 04 01 00 00 79 28 E3 22 9F EC E4 E4 [12:24:21]CommunicateWithHost err = 0 [12:24:21]CheckOFDResponse [12:24:21]1017 (14) - 77093643461234 [12:24:21]1041 (16) - 0000000000871759 [12:24:21]1040 (4) - 166707 [12:24:21]1012 (4) - 23.10.2024 06:02 [12:24:21]1206 (1) - 0 [12:24:21]OFD Sender: Remove packet 166707 [12:24:21]ProducePacketName [12:24:21]name=ofd_packets/00166707 [12:24:21]NVStorageDeleteData [12:24:21]Write to MH i2c: 01 00 00 7D 12 8F [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 7D 12 00 00 00 00 00 C0 0C 62 [12:24:21]RasterBufferAndPrint [12:24:21]line [12:24:21]line [12:24:21]line [12:24:21]line [12:24:21]line [12:24:21]written 0, free lines is 3270 [12:24:21]MH_Cut [12:24:21]Write to MH i2c: D1 01 00 84 12 01 68 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: D1 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: D1 01 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: D1 01 00 84 12 00 67 [12:24:21]Write to MH i2c: 01 00 00 85 12 97 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]OFD Sender: No OFD packet to send [12:24:22]*** Cut start [12:24:22]*** Partial cut [12:24:22]*** CUTSNS_PIN = 1 [12:24:22]*** CUTSNS_PIN = 0 [12:24:22]*** Brake cut motor [12:24:23]Read from MH i2c: 01 [12:24:23]MH_I2C_Read... [12:24:23]*** Stop cut motor [12:24:23]Read from MH i2c: 01 07 00 [12:24:23]MH_I2C_Read... [12:24:23]*** Cut end [12:24:23]Read from MH i2c: 01 07 00 85 12 00 00 00 00 00 FF 0F AC [12:24:23]process_action close_receipt done [12:24:23]requested_data is exist [12:24:23]produce_requested_data [12:24:23]requested_item fm.sn is exist - process it [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 11 00 00 [12:24:23]Write to MH i2c: E2 08 00 86 12 80 11 00 00 00 00 00 00 12 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 17 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 17 00 86 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [12:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:23]wFMCommunicate OK [12:24:23]requested_item fd.num is exist - process it [12:24:23]SAM_PROTO_GetFieldsCounters [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 13 00 00 [12:24:23]Write to MH i2c: E2 08 00 87 12 80 13 00 00 00 00 00 00 15 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 62 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 62 00 87 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:23]wFMCommunicate OK [12:24:23]SAM_PROTO_GetFieldsCounters done [12:24:23]requested_item shift.num is exist - process it [12:24:23]requested_item shift.opened is exist - process it [12:24:23]req_shift_opened [12:24:23]FM_GetShiftState [12:24:23]SAM_PROTO_GetShiftState [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 13 01 00 [12:24:23]Write to MH i2c: E2 08 00 88 12 80 13 01 00 00 00 00 00 17 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 0E 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 0E 00 88 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E2 [12:24:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:24:23]wFMCommunicate OK [12:24:23]SAM_PROTO_GetShiftState done [12:24:23]FM_GetShiftState done [12:24:23]req_shift_opened done [12:24:23]requested_item shift.open_date is exist - process it [12:24:23]req_shift_open_date [12:24:23]req_shift_open_date done [12:24:23]produce_requested_data done [12:24:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166707,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:24:23]process_action_free close_receipt [12:24:23]json_value_free [12:24:23]json_value_free done [12:24:23]process_json_proto returns [12:24:23]Send response to host [12:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166707,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:24:23]free response buf [12:24:23]execute_script done [12:24:23]execute_script returns [12:24:23]free content buf [12:24:23]Sock 9.Close socket [12:24:23]Sock 9.Thread stoped [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:50]accept exits with 8 [12:25:50]New connection [12:25:50]New thread 3067034980 created [12:25:50]Thread 3067178340 joined [12:25:50]Waiting for new connection... [12:25:50] Sock 8.Parse request [12:25:50]Sock 8.Check first char [12:25:50]Sock 8.First char is OK [12:25:50]request: POST /json_proto HTTP/1.0 [12:25:50]Method: POST [12:25:50]URL: /json_proto [12:25:50]Method is POST - this is cgi request [12:25:50]url: /json_proto [12:25:50]query_string will be loaded in cgi processing [12:25:50]execute_cgi json_proto POST (null) [12:25:50]execute_cgi path=json_proto method=POST [12:25:50]POST find Content-Length [12:25:50]Host: 172.17.53.195:8080 [12:25:50]Content-Length: 677 [12:25:50]Content-Type: application/json [12:25:50] [12:25:50]POST finish read [12:25:50]Found Content-Length = 677 [12:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:50]execute_script... [12:25: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)221291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:50]POST & json_proto [12:25:50]process_json_proto [12:25:50]json parsed OK: [12:25:50]protocol is kg_v1.0 [12:25:50]action value=close_receipt [12:25:50]process_action close_receipt [12:25:50]cmd_close_receipt [12:25:50]MH_GetDate [12:25:50]Write to MH i2c: F0 00 00 89 12 8A [12:25:50]Write i2c OK [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: F0 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: F0 09 00 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: F0 09 00 89 12 00 4F EB 18 67 21 48 4A 65 64 [12:25:50]GetLastDocTimeStamp 1729686260 [12:25:50]current date 1729686351 [12:25:50]FM_GetShiftState [12:25:50]SAM_PROTO_GetShiftState [12:25:50]wFMCommunicate request_size=4 [12:25:50]MH_SAM_APDU [12:25:50]CAPDU: 80 13 01 00 [12:25:50]Write to MH i2c: E2 08 00 8A 12 80 13 01 00 00 00 00 00 19 [12:25:50]Write i2c OK [12:25:50]MH_I2C_Read... [12:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:50]Read from MH i2c: E2 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 0E 00 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 0E 00 8A 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E4 [12:25:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:25:50]wFMCommunicate OK [12:25:50]SAM_PROTO_GetShiftState done [12:25:50]FM_GetShiftState done [12:25:50]opened in 1729643772 [12:25:50]opened+sec_in_day 1729730172 [12:25:50]quantity*price = 37062 [12:25:50]sum+1 = 37064 [12:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 123 23.10.2024 12:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166708 ФПД: 162105618563210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122551&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166708&fm=162105618563210&tin=02508201610067®Number=0000000000091764&sum=37000 [12:25:51]StoreToDocumentArchive [12:25:51]shift 537 fd 166708 [12:25:51]save to /storage/0537/doc_00166708 [12:25:51]save last doc name /storage/0537/doc_00166708 to /storage/kkm_last_doc_name [12:25:51]save OK [12:25:51]Clear old archive folders... [12:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:51]tlvbuf is B6EF8280 [12:25:51]SAM_PROTO_ClearQueue [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 09 00 00 [12:25:51]Write to MH i2c: E2 08 00 97 12 80 09 00 00 00 00 00 00 1B [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]SAM_PROTO_ClearQueue done [12:25:51]KKMCreateOFDPacket [12:25:51]OFDProtocolAddRootSTLVToBuf [12:25:51]FM_MakeSignedData [12:25:51]FM_MakeSignedData [12:25:51]SAM_PROTO_SignData [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 01 02 [12:25:51]Write to MH i2c: E2 08 00 98 12 80 0D 01 02 00 00 00 00 23 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=255 [12:25:51]MH_SAM_APDU [12:25: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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F EB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8B 02 00 35 04 06 00 93 [12:25:51]Write to MH i2c: E2 02 01 99 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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F EB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8B 02 00 35 04 06 00 93 00 00 0B [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=10 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 02 02 05 6F 27 CF 80 8A [12:25:51]Write to MH i2c: E2 0D 00 9A 12 80 0D 02 02 05 00 6F 27 CF 80 8A 00 00 9F [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 9A 12 00 90 00 20 [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 03 02 [12:25:51]Write to MH i2c: E2 08 00 9B 12 80 0D 03 02 00 00 00 00 28 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 9B 12 00 6C 82 F4 00 7B C9 C5 47 90 00 5B [12:25:51]RAPDU: 6C 82 F4 00 7B C9 C5 47 90 00 [12:25:51]wFMCommunicate OK [12:25:51]SAM_PROTO_SignData done [12:25:51]FM_MakeSignedData done [12:25:51]CreateOFDProtocolMessage [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 11 00 00 [12:25:51]Write to MH i2c: E2 08 00 9C 12 80 11 00 00 00 00 00 00 28 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:52]Read from MH i2c: E2 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: E2 17 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: E2 17 00 9C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [12:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:52]wFMCommunicate OK [12:25:52]CreateOFDProtocolMessage done [12:25:52]OFDSenderStorePacket 166708 [12:25:52]StoreOFDPacket docnum=166708 [12:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 C0 07 01 F8 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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F EB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8B 02 00 35 04 06 00 93 6F 27 CF 80 8A 6C 82 F4 00 7B C9 C5 47 [12:25:52]CheckFolder [12:25:52]dirname=/storage/ofd_packets [12:25:52]CheckFolder done [12:25:52]ProducePacketName [12:25:52]name=ofd_packets/00166708 [12:25:52]NVStorageSaveData ofd_packets/00166708 [12:25:52]File name is /storage/ofd_packets/00166708 [12:25:52]Write 301 bytes [12:25:52]NVStorageSaveData done [12:25:52]OFDSenderStorePacket done [12:25:52]KKMCreateOFDPacket done [12:25:52]NVStorageSaveData kkm_last_timestamp [12:25:52]File name is /storage/kkm_last_timestamp [12:25:52]Write 4 bytes [12:25:52]NVStorageSaveData done [12:25:52]ExternCall_PrintAddStr [12:25:52]wPrintStart [12:25:52]Write to MH i2c: 01 00 00 9D 12 AF [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 9D 12 00 00 00 00 00 FF 0F C4 [12:25:52]RasterBufferAndPrint [12:25:52]line Счет N : (1)221291 [12:25:52]line ИНН: 02508201610067 [12:25:52]line Контрольно-Кассовый Чек [12:25:52]line ПРОДАЖА [12:25:52]line ТРК (МРК, ГНК) : 23 [12:25:52]line Товар: 2710124130 [12:25:52]line Аи-92-К-5 [12:25:52]line 5.540 * 66.90 [12:25:52]line = 370.63 [12:25:52]line НДС 12% НСП 1% [12:25:52]line > о реализуемом товаре [12:25:52]line ОКРУГЛЕНИЕ: -0.63 [12:25:52]line ИТОГО: 370.00 [12:25:52]line Внесено: 370.00 [12:25:52]line СДАЧА: 0.00 [12:25:52]line НСП 1% : 3.28 [12:25:52]line НДС 12% : 39.36 [12:25:52]line Наличными: 370.00 [12:25:52]line Безнал.: 0.00 [12:25:52]line Место: АЗС № 161 "Партнер Нефть" [12:25:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:25:52]line СНО: Общий режим [12:25:52]line Чек 123 23.10.2024 12:25 [12:25:52]line Смена: 537 ФФД: 1.0 [12:25:52]line ЗНМ: 0300000104 [12:25:52]line РНМ: 0000000000091764 [12:25:52]line Версия ККМ: 001 [12:25:52]line ФМ: 0000000000871759 [12:25:52]line ФД: 166708 [12:25:52]line ФПД: 162105618563210 [12:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122551&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166708&fm=162105618563210&tin=02508201610067®Number=0000000000091764&sum=37000 [12:25:52]OFD Sender: Processing packet 166708 [packets to send 48, broken 47] [12:25:52]ProducePacketName [12:25:52]name=ofd_packets/00166708 [12:25:52]OFD Sender: To server: pG, [12:25:52]CommunicateWithHost lk.salyk.kg:30040 [12:25:52]ConnectInit lk.salyk.kg [12:25:52]written 0, free lines is 4095 [12:25:52]Connected sock=10 [12:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 C0 07 01 F8 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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F EB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8B 02 00 35 04 06 00 93 6F 27 CF 80 8A 6C 82 F4 00 7B C9 C5 47 [12:25:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 16 47 00 5A 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8B 02 00 F4 03 04 00 B6 91 18 67 B6 04 01 00 00 6E 90 5B 00 22 A7 D2 CE [12:25:52]CommunicateWithHost err = 0 [12:25:52]CheckOFDResponse [12:25:52]1017 (14) - 77093643461234 [12:25:52]1041 (16) - 0000000000871759 [12:25:52]1040 (4) - 166708 [12:25:52]1012 (4) - 23.10.2024 06:03 [12:25:52]1206 (1) - 0 [12:25:52]OFD Sender: Remove packet 166708 [12:25:52]ProducePacketName [12:25:52]name=ofd_packets/00166708 [12:25:52]NVStorageDeleteData [12:25:52]Write to MH i2c: 01 00 00 C8 12 DA [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 C8 12 00 00 00 00 00 B7 0C A4 [12:25:52]RasterBufferAndPrint [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]written 0, free lines is 3263 [12:25:52]MH_Cut [12:25:52]Write to MH i2c: D1 01 00 CF 12 01 B3 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 CF 12 00 B2 [12:25:52]Write to MH i2c: 01 00 00 D0 12 E2 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:53]OFD Sender: No OFD packet to send [12:25:53]*** Cut start [12:25:53]*** Partial cut [12:25:53]*** CUTSNS_PIN = 1 [12:25:53]*** CUTSNS_PIN = 0 [12:25:54]*** Brake cut motor [12:25:54]Read from MH i2c: 01 [12:25:54]MH_I2C_Read... [12:25:54]*** Stop cut motor [12:25:54]*** Cut end [12:25:54]Read from MH i2c: 01 07 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 07 00 D0 12 00 00 00 00 00 FF 0F F7 [12:25:54]process_action close_receipt done [12:25:54]requested_data is exist [12:25:54]produce_requested_data [12:25:54]requested_item fm.sn is exist - process it [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 11 00 00 [12:25:54]Write to MH i2c: E2 08 00 D1 12 80 11 00 00 00 00 00 00 5D [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 17 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 17 00 D1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [12:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:54]wFMCommunicate OK [12:25:54]requested_item fd.num is exist - process it [12:25:54]SAM_PROTO_GetFieldsCounters [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 13 00 00 [12:25:54]Write to MH i2c: E2 08 00 D2 12 80 13 00 00 00 00 00 00 60 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 62 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 62 00 D2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [12:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_GetFieldsCounters done [12:25:54]requested_item shift.num is exist - process it [12:25:54]requested_item shift.opened is exist - process it [12:25:54]req_shift_opened [12:25:54]FM_GetShiftState [12:25:54]SAM_PROTO_GetShiftState [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 13 01 00 [12:25:54]Write to MH i2c: E2 08 00 D3 12 80 13 01 00 00 00 00 00 62 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 D3 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2D [12:25:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_GetShiftState done [12:25:54]FM_GetShiftState done [12:25:54]req_shift_opened done [12:25:54]requested_item shift.open_date is exist - process it [12:25:54]req_shift_open_date [12:25:54]req_shift_open_date done [12:25:54]produce_requested_data done [12:25:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166708,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:25:54]process_action_free close_receipt [12:25:54]json_value_free [12:25:54]json_value_free done [12:25:54]process_json_proto returns [12:25:54]Send response to host [12:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166708,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:25:54]free response buf [12:25:54]execute_script done [12:25:54]execute_script returns [12:25:54]free content buf [12:25:54]Sock 8.Close socket [12:25:54]Sock 8.Thread stoped [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:22]accept exits with 9 [12:30:22]New connection [12:30:22]New thread 3067178340 created [12:30:22]Thread 3067034980 joined [12:30:22]Waiting for new connection... [12:30:22] Sock 9.Parse request [12:30:22]Sock 9.Check first char [12:30:22]Sock 9.First char is OK [12:30:22]request: POST /json_proto HTTP/1.0 [12:30:22]Method: POST [12:30:22]URL: /json_proto [12:30:22]Method is POST - this is cgi request [12:30:22]url: /json_proto [12:30:22]query_string will be loaded in cgi processing [12:30:22]execute_cgi json_proto POST (null) [12:30:22]execute_cgi path=json_proto method=POST [12:30:22]POST find Content-Length [12:30:22]Host: 172.17.53.195:8080 [12:30:22]Content-Length: 766 [12:30:22]Content-Type: application/json [12:30:22] [12:30:22]POST finish read [12:30:22]Found Content-Length = 766 [12:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:22]execute_script... [12:30:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:22]POST & json_proto [12:30:22]process_json_proto [12:30:22]json parsed OK: [12:30:22]protocol is kg_v1.0 [12:30:22]action value=close_receipt [12:30:22]process_action close_receipt [12:30:22]cmd_close_receipt [12:30:22]MH_GetDate [12:30:22]Write to MH i2c: F0 00 00 D4 12 D5 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: F0 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: F0 09 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: F0 09 00 D4 12 00 5E EC 18 67 21 48 4A 65 BF [12:30:22]GetLastDocTimeStamp 1729686351 [12:30:22]current date 1729686622 [12:30:22]FM_GetShiftState [12:30:22]SAM_PROTO_GetShiftState [12:30:22]wFMCommunicate request_size=4 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 13 01 00 [12:30:22]Write to MH i2c: E2 08 00 D5 12 80 13 01 00 00 00 00 00 64 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 0E 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 0E 00 D5 12 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2F [12:30:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:30:22]wFMCommunicate OK [12:30:22]SAM_PROTO_GetShiftState done [12:30:22]FM_GetShiftState done [12:30:22]opened in 1729643772 [12:30:22]opened+sec_in_day 1729730172 [12:30:22]quantity*price = 50041 [12:30:22]sum+1 = 50042 [12:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 124 23.10.2024 12:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166709 ФПД: 143872661721238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166709&fm=143872661721238&tin=02508201610067®Number=0000000000091764&sum=50041 [12:30:23]StoreToDocumentArchive [12:30:23]shift 537 fd 166709 [12:30:23]save to /storage/0537/doc_00166709 [12:30:23]save last doc name /storage/0537/doc_00166709 to /storage/kkm_last_doc_name [12:30:23]save OK [12:30:23]Clear old archive folders... [12:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:23]tlvbuf is B6EF8C50 [12:30:23]SAM_PROTO_ClearQueue [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 09 00 00 [12:30:23]Write to MH i2c: E2 08 00 E2 12 80 09 00 00 00 00 00 00 66 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 E2 12 00 90 00 68 [12:30:23]RAPDU: 90 00 [12:30:23]wFMCommunicate OK [12:30:23]SAM_PROTO_ClearQueue done [12:30:23]KKMCreateOFDPacket [12:30:23]OFDProtocolAddRootSTLVToBuf [12:30:23]FM_MakeSignedData [12:30:23]FM_MakeSignedData [12:30:23]SAM_PROTO_SignData [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 0D 01 02 [12:30:23]Write to MH i2c: E2 08 00 E3 12 80 0D 01 02 00 00 00 00 6E [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 E3 12 00 90 00 69 [12:30:23]RAPDU: 90 00 [12:30:23]wFMCommunicate OK [12:30:23]wFMCommunicate request_size=255 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5F EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8B 02 00 35 04 06 00 82 [12:30:23]Write to MH i2c: E2 02 01 E4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5F EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8B 02 00 35 04 06 00 82 00 00 FB [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]OFD Sender: No OFD packet to send [12:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 E4 12 00 90 00 6A [12:30:23]RAPDU: 90 00 [12:30:23]wFMCommunicate OK [12:30:23]wFMCommunicate request_size=10 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 0D 02 02 05 D9 F6 E5 10 96 [12:30:23]Write to MH i2c: E2 0D 00 E5 12 80 0D 02 02 05 00 D9 F6 E5 10 96 00 00 D5 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [12:30:23]RAPDU: 90 00 [12:30:23]wFMCommunicate OK [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 0D 03 02 [12:30:23]Write to MH i2c: E2 08 00 E6 12 80 0D 03 02 00 00 00 00 73 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 0B 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 0B 00 E6 12 00 F8 44 52 3C 8C 78 99 0F 90 00 EA [12:30:23]RAPDU: F8 44 52 3C 8C 78 99 0F 90 00 [12:30:23]wFMCommunicate OK [12:30:23]SAM_PROTO_SignData done [12:30:23]FM_MakeSignedData done [12:30:23]CreateOFDProtocolMessage [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 11 00 00 [12:30:23]Write to MH i2c: E2 08 00 E7 12 80 11 00 00 00 00 00 00 73 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 17 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 17 00 E7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [12:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:23]wFMCommunicate OK [12:30:23]CreateOFDProtocolMessage done [12:30:23]OFDSenderStorePacket 166709 [12:30:23]StoreOFDPacket docnum=166709 [12:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 85 07 01 1C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5F EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8B 02 00 35 04 06 00 82 D9 F6 E5 10 96 F8 44 52 3C 8C 78 99 0F [12:30:23]CheckFolder [12:30:23]dirname=/storage/ofd_packets [12:30:23]CheckFolder done [12:30:23]ProducePacketName [12:30:23]name=ofd_packets/00166709 [12:30:23]NVStorageSaveData ofd_packets/00166709 [12:30:23]File name is /storage/ofd_packets/00166709 [12:30:23]Write 301 bytes [12:30:23]NVStorageSaveData done [12:30:23]OFDSenderStorePacket done [12:30:23]KKMCreateOFDPacket done [12:30:23]NVStorageSaveData kkm_last_timestamp [12:30:23]File name is /storage/kkm_last_timestamp [12:30:23]Write 4 bytes [12:30:23]NVStorageSaveData done [12:30:23]ExternCall_PrintAddStr [12:30:23]wPrintStart [12:30:23]Write to MH i2c: 01 00 00 E8 12 FA [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 E8 12 00 00 00 00 00 FF 0F 0F [12:30:23]RasterBufferAndPrint [12:30:23]line Счет N : (1)221292 [12:30:23]line ИНН: 02508201610067 [12:30:23]line Контрольно-Кассовый Чек [12:30:23]line ПРОДАЖА [12:30:23]line ТРК (МРК, ГНК) : 33 [12:30:23]line Товар: 2710124130 [12:30:23]line Аи-92-К-5 [12:30:23]line 7.480 * 66.90 [12:30:23]line = 500.41 [12:30:23]line НДС 12% НСП 1% [12:30:23]line > о реализуемом товаре [12:30:23]line ИТОГО: 500.41 [12:30:23]line НСП 1% : 4.43 [12:30:23]line НДС 12% : 53.14 [12:30:23]line Наличными: 0.00 [12:30:23]line Безнал.: 500.41 [12:30:23]line Место: АЗС № 161 "Партнер Нефть" [12:30:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:30:23]line СНО: Общий режим [12:30:23]line Чек 124 23.10.2024 12:30 [12:30:23]line Смена: 537 ФФД: 1.0 [12:30:23]line ЗНМ: 0300000104 [12:30:23]line РНМ: 0000000000091764 [12:30:23]line Версия ККМ: 001 [12:30:23]line Платежная система: Mbank [12:30:23]line ФМ: 0000000000871759 [12:30:23]line ФД: 166709 [12:30:23]line ФПД: 143872661721238 [12:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166709&fm=143872661721238&tin=02508201610067®Number=0000000000091764&sum=50041 [12:30:24]OFD Sender: Processing packet 166709 [packets to send 48, broken 47] [12:30:24]ProducePacketName [12:30:24]name=ofd_packets/00166709 [12:30:24]OFD Sender: To server: pG, [12:30:24]CommunicateWithHost lk.salyk.kg:30040 [12:30:24]ConnectInit lk.salyk.kg [12:30:24]written 0, free lines is 4095 [12:30:24]Connected sock=10 [12:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 85 07 01 1C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5F EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8B 02 00 35 04 06 00 82 D9 F6 E5 10 96 F8 44 52 3C 8C 78 99 0F [12:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EB DE 47 00 51 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8B 02 00 F4 03 04 00 C6 92 18 67 B6 04 01 00 00 EE D6 7C 54 5B 7E 95 D3 [12:30:24]CommunicateWithHost err = 0 [12:30:24]CheckOFDResponse [12:30:24]1017 (14) - 77093643461234 [12:30:24]1041 (16) - 0000000000871759 [12:30:24]1040 (4) - 166709 [12:30:24]1012 (4) - 23.10.2024 06:08 [12:30:24]1206 (1) - 0 [12:30:24]OFD Sender: Remove packet 166709 [12:30:24]ProducePacketName [12:30:24]name=ofd_packets/00166709 [12:30:24]NVStorageDeleteData [12:30:24]Write to MH i2c: 01 00 00 11 13 24 [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: 01 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: 01 07 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: 01 07 00 11 13 00 00 00 00 00 E3 0C 1A [12:30:24]RasterBufferAndPrint [12:30:24]line [12:30:24]line [12:30:24]line [12:30:24]line [12:30:24]line [12:30:24]written 0, free lines is 3305 [12:30:24]MH_Cut [12:30:24]Write to MH i2c: D1 01 00 18 13 01 FD [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: D1 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: D1 01 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: D1 01 00 18 13 00 FC [12:30:24]Write to MH i2c: 01 00 00 19 13 2C [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]OFD Sender: No OFD packet to send [12:30:25]*** Cut start [12:30:25]*** Partial cut [12:30:25]*** CUTSNS_PIN = 1 [12:30:25]*** CUTSNS_PIN = 0 [12:30:25]*** Brake cut motor [12:30:26]Read from MH i2c: 01 [12:30:26]MH_I2C_Read... [12:30:26]*** Stop cut motor [12:30:26]*** Cut end [12:30:26]Read from MH i2c: 01 07 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 19 13 00 00 00 00 00 FF 0F 41 [12:30:26]process_action close_receipt done [12:30:26]requested_data is exist [12:30:26]produce_requested_data [12:30:26]requested_item fm.sn is exist - process it [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 11 00 00 [12:30:26]Write to MH i2c: E2 08 00 1A 13 80 11 00 00 00 00 00 00 A7 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 1A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [12:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:26]wFMCommunicate OK [12:30:26]requested_item fd.num is exist - process it [12:30:26]SAM_PROTO_GetFieldsCounters [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 13 00 00 [12:30:26]Write to MH i2c: E2 08 00 1B 13 80 13 00 00 00 00 00 00 AA [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 62 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 62 00 1B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_GetFieldsCounters done [12:30:26]requested_item shift.num is exist - process it [12:30:26]requested_item shift.opened is exist - process it [12:30:26]req_shift_opened [12:30:26]FM_GetShiftState [12:30:26]SAM_PROTO_GetShiftState [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 13 01 00 [12:30:26]Write to MH i2c: E2 08 00 1C 13 80 13 01 00 00 00 00 00 AC [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0E 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0E 00 1C 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 77 [12:30:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_GetShiftState done [12:30:26]FM_GetShiftState done [12:30:26]req_shift_opened done [12:30:26]requested_item shift.open_date is exist - process it [12:30:26]req_shift_open_date [12:30:26]req_shift_open_date done [12:30:26]produce_requested_data done [12:30:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166709,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:30:26]process_action_free close_receipt [12:30:26]json_value_free [12:30:26]json_value_free done [12:30:26]process_json_proto returns [12:30:26]Send response to host [12:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166709,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:30:26]free response buf [12:30:26]execute_script done [12:30:26]execute_script returns [12:30:26]free content buf [12:30:26]Sock 9.Close socket [12:30:26]Sock 9.Thread stoped [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:47]accept exits with 8 [12:30:47]New connection [12:30:47]New thread 3067034980 created [12:30:47]Thread 3067178340 joined [12:30:47]Waiting for new connection... [12:30:47] Sock 8.Parse request [12:30:47]Sock 8.Check first char [12:30:47]Sock 8.First char is OK [12:30:47]request: POST /json_proto HTTP/1.0 [12:30:47]Method: POST [12:30:47]URL: /json_proto [12:30:47]Method is POST - this is cgi request [12:30:47]url: /json_proto [12:30:47]query_string will be loaded in cgi processing [12:30:47]execute_cgi json_proto POST (null) [12:30:47]execute_cgi path=json_proto method=POST [12:30:47]POST find Content-Length [12:30:47]Host: 172.17.53.195:8080 [12:30:47]Content-Length: 682 [12:30:47]Content-Type: application/json [12:30:47] [12:30:47]POST finish read [12:30:47]Found Content-Length = 682 [12:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:47]execute_script... [12:30: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)221293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:47]POST & json_proto [12:30:47]process_json_proto [12:30:47]json parsed OK: [12:30:47]protocol is kg_v1.0 [12:30:47]action value=close_receipt [12:30:47]process_action close_receipt [12:30:47]cmd_close_receipt [12:30:47]MH_GetDate [12:30:47]Write to MH i2c: F0 00 00 1D 13 1F [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: F0 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: F0 09 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: F0 09 00 1D 13 00 78 EC 18 67 21 48 4A 65 23 [12:30:47]GetLastDocTimeStamp 1729686623 [12:30:47]current date 1729686648 [12:30:47]FM_GetShiftState [12:30:47]SAM_PROTO_GetShiftState [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 13 01 00 [12:30:47]Write to MH i2c: E2 08 00 1E 13 80 13 01 00 00 00 00 00 AE [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 1E 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 79 [12:30:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_GetShiftState done [12:30:47]FM_GetShiftState done [12:30:47]opened in 1729643772 [12:30:47]opened+sec_in_day 1729730172 [12:30:47]quantity*price = 100015 [12:30:47]sum+1 = 100017 [12:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 125 23.10.2024 12:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166710 ФПД: 216043519648792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166710&fm=216043519648792&tin=02508201610067®Number=0000000000091764&sum=100000 [12:30:49]StoreToDocumentArchive [12:30:49]shift 537 fd 166710 [12:30:49]save to /storage/0537/doc_00166710 [12:30:49]save last doc name /storage/0537/doc_00166710 to /storage/kkm_last_doc_name [12:30:49]save OK [12:30:49]Clear old archive folders... [12:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:49]tlvbuf is 01FDD120 [12:30:49]SAM_PROTO_ClearQueue [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 09 00 00 [12:30:49]Write to MH i2c: E2 08 00 2B 13 80 09 00 00 00 00 00 00 B0 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_ClearQueue done [12:30:49]KKMCreateOFDPacket [12:30:49]OFDProtocolAddRootSTLVToBuf [12:30:49]FM_MakeSignedData [12:30:49]FM_MakeSignedData [12:30:49]SAM_PROTO_SignData [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 01 02 [12:30:49]Write to MH i2c: E2 08 00 2C 13 80 0D 01 02 00 00 00 00 B8 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 2C 13 00 90 00 B3 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=255 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 78 EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8B 02 00 35 04 06 00 C4 [12:30:49]Write to MH i2c: E2 02 01 2D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 78 EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8B 02 00 35 04 06 00 C4 00 00 4A [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 2D 13 00 90 00 B4 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=10 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 02 02 05 7D 8D 3E A4 18 [12:30:49]Write to MH i2c: E2 0D 00 2E 13 80 0D 02 02 05 00 7D 8D 3E A4 18 00 00 C9 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 2E 13 00 90 00 B5 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 03 02 [12:30:49]Write to MH i2c: E2 08 00 2F 13 80 0D 03 02 00 00 00 00 BD [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 2F 13 00 07 61 1E 45 35 45 98 30 90 00 CB [12:30:49]RAPDU: 07 61 1E 45 35 45 98 30 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_SignData done [12:30:49]FM_MakeSignedData done [12:30:49]CreateOFDProtocolMessage [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 11 00 00 [12:30:49]Write to MH i2c: E2 08 00 30 13 80 11 00 00 00 00 00 00 BD [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 30 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [12:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:49]wFMCommunicate OK [12:30:49]CreateOFDProtocolMessage done [12:30:49]OFDSenderStorePacket 166710 [12:30:49]StoreOFDPacket docnum=166710 [12:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 17 07 01 AA 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 78 EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8B 02 00 35 04 06 00 C4 7D 8D 3E A4 18 07 61 1E 45 35 45 98 30 [12:30:49]CheckFolder [12:30:49]dirname=/storage/ofd_packets [12:30:49]CheckFolder done [12:30:49]ProducePacketName [12:30:49]name=ofd_packets/00166710 [12:30:49]NVStorageSaveData ofd_packets/00166710 [12:30:49]File name is /storage/ofd_packets/00166710 [12:30:49]Write 301 bytes [12:30:49]NVStorageSaveData done [12:30:49]OFDSenderStorePacket done [12:30:49]KKMCreateOFDPacket done [12:30:49]NVStorageSaveData kkm_last_timestamp [12:30:49]File name is /storage/kkm_last_timestamp [12:30:49]Write 4 bytes [12:30:49]NVStorageSaveData done [12:30:49]ExternCall_PrintAddStr [12:30:49]wPrintStart [12:30:49]Write to MH i2c: 01 00 00 31 13 44 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 FF 0F 59 [12:30:49]RasterBufferAndPrint [12:30:49]line Счет N : (1)221293 [12:30:49]line ИНН: 02508201610067 [12:30:49]line Контрольно-Кассовый Чек [12:30:49]line ПРОДАЖА [12:30:49]line ТРК (МРК, ГНК) : 23 [12:30:49]line Товар: 2710124130 [12:30:49]line Аи-92-К-5 [12:30:49]line 14.950 * 66.90 [12:30:49]line = 1000.16 [12:30:49]line НДС 12% НСП 1% [12:30:49]line > о реализуемом товаре [12:30:49]line ОКРУГЛЕНИЕ: -0.16 [12:30:49]line ИТОГО: 1000.00 [12:30:49]line Внесено: 1000.00 [12:30:49]line СДАЧА: 0.00 [12:30:49]line НСП 1% : 8.85 [12:30:49]line НДС 12% : 106.21 [12:30:49]line Наличными: 1000.00 [12:30:49]line Безнал.: 0.00 [12:30:49]line Место: АЗС № 161 "Партнер Нефть" [12:30:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:30:49]line СНО: Общий режим [12:30:49]line Чек 125 23.10.2024 12:30 [12:30:49]line Смена: 537 ФФД: 1.0 [12:30:49]line ЗНМ: 0300000104 [12:30:49]line РНМ: 0000000000091764 [12:30:49]line Версия ККМ: 001 [12:30:49]line ФМ: 0000000000871759 [12:30:49]line ФД: 166710 [12:30:49]line ФПД: 216043519648792 [12:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166710&fm=216043519648792&tin=02508201610067®Number=0000000000091764&sum=100000 [12:30:49]OFD Sender: Processing packet 166710 [packets to send 48, broken 47] [12:30:49]ProducePacketName [12:30:49]name=ofd_packets/00166710 [12:30:49]OFD Sender: To server: pG, [12:30:49]CommunicateWithHost lk.salyk.kg:30040 [12:30:49]ConnectInit lk.salyk.kg [12:30:49]written 0, free lines is 4095 [12:30:50]Connected sock=10 [12:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 17 07 01 AA 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 78 EC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8B 02 00 35 04 06 00 C4 7D 8D 3E A4 18 07 61 1E 45 35 45 98 30 [12:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 98 9E 47 00 2F 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8B 02 00 F4 03 04 00 E0 92 18 67 B6 04 01 00 00 6B E9 84 3B 79 83 F6 E0 [12:30:50]CommunicateWithHost err = 0 [12:30:50]CheckOFDResponse [12:30:50]1017 (14) - 77093643461234 [12:30:50]1041 (16) - 0000000000871759 [12:30:50]1040 (4) - 166710 [12:30:50]1012 (4) - 23.10.2024 06:08 [12:30:50]1206 (1) - 0 [12:30:50]OFD Sender: Remove packet 166710 [12:30:50]ProducePacketName [12:30:50]name=ofd_packets/00166710 [12:30:50]NVStorageDeleteData [12:30:50]Write to MH i2c: 01 00 00 5C 13 6F [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 5C 13 00 00 00 00 00 B9 0C 3B [12:30:50]RasterBufferAndPrint [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]written 0, free lines is 3264 [12:30:50]MH_Cut [12:30:50]Write to MH i2c: D1 01 00 63 13 01 48 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 63 13 00 47 [12:30:50]Write to MH i2c: 01 00 00 64 13 77 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]OFD Sender: No OFD packet to send [12:30:51]*** Cut start [12:30:51]*** Partial cut [12:30:51]*** CUTSNS_PIN = 1 [12:30:51]*** CUTSNS_PIN = 0 [12:30:51]*** Brake cut motor [12:30:51]Read from MH i2c: 01 [12:30:51]MH_I2C_Read... [12:30:51]*** Stop cut motor [12:30:51]*** Cut end [12:30:51]Read from MH i2c: 01 07 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 FF 0F 8C [12:30:51]process_action close_receipt done [12:30:51]requested_data is exist [12:30:51]produce_requested_data [12:30:51]requested_item fm.sn is exist - process it [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 11 00 00 [12:30:51]Write to MH i2c: E2 08 00 65 13 80 11 00 00 00 00 00 00 F2 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 17 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 17 00 65 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [12:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:51]wFMCommunicate OK [12:30:51]requested_item fd.num is exist - process it [12:30:51]SAM_PROTO_GetFieldsCounters [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 13 00 00 [12:30:51]Write to MH i2c: E2 08 00 66 13 80 13 00 00 00 00 00 00 F5 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 66 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetFieldsCounters done [12:30:52]requested_item shift.num is exist - process it [12:30:52]requested_item shift.opened is exist - process it [12:30:52]req_shift_opened [12:30:52]FM_GetShiftState [12:30:52]SAM_PROTO_GetShiftState [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 13 01 00 [12:30:52]Write to MH i2c: E2 08 00 67 13 80 13 01 00 00 00 00 00 F7 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 67 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C2 [12:30:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetShiftState done [12:30:52]FM_GetShiftState done [12:30:52]req_shift_opened done [12:30:52]requested_item shift.open_date is exist - process it [12:30:52]req_shift_open_date [12:30:52]req_shift_open_date done [12:30:52]produce_requested_data done [12:30:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166710,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:30:52]process_action_free close_receipt [12:30:52]json_value_free [12:30:52]json_value_free done [12:30:52]process_json_proto returns [12:30:52]Send response to host [12:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166710,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:30:52]free response buf [12:30:52]execute_script done [12:30:52]execute_script returns [12:30:52]free content buf [12:30:52]Sock 8.Close socket [12:30:52]Sock 8.Thread stoped [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:38]accept exits with 9 [12:34:38]New connection [12:34:38]New thread 3067178340 created [12:34:38]Thread 3067034980 joined [12:34:38]Waiting for new connection... [12:34:38] Sock 9.Parse request [12:34:38]Sock 9.Check first char [12:34:38]Sock 9.First char is OK [12:34:38]request: POST /json_proto HTTP/1.0 [12:34:38]Method: POST [12:34:38]URL: /json_proto [12:34:38]Method is POST - this is cgi request [12:34:38]url: /json_proto [12:34:38]query_string will be loaded in cgi processing [12:34:38]execute_cgi json_proto POST (null) [12:34:38]execute_cgi path=json_proto method=POST [12:34:38]POST find Content-Length [12:34:38]Host: 172.17.53.195:8080 [12:34:38]Content-Length: 674 [12:34:38]Content-Type: application/json [12:34:38] [12:34:38]POST finish read [12:34:38]Found Content-Length = 674 [12:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:38]execute_script... [12:34: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)221294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:38]POST & json_proto [12:34:38]process_json_proto [12:34:38]json parsed OK: [12:34:38]protocol is kg_v1.0 [12:34:38]action value=close_receipt [12:34:38]process_action close_receipt [12:34:38]cmd_close_receipt [12:34:38]MH_GetDate [12:34:38]Write to MH i2c: F0 00 00 68 13 6A [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 09 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: F0 09 00 68 13 00 5E ED 18 67 21 48 4A 65 55 [12:34:38]GetLastDocTimeStamp 1729686648 [12:34:38]current date 1729686878 [12:34:38]FM_GetShiftState [12:34:38]SAM_PROTO_GetShiftState [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 01 00 [12:34:38]Write to MH i2c: E2 08 00 69 13 80 13 01 00 00 00 00 00 F9 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 69 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C4 [12:34:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetShiftState done [12:34:38]FM_GetShiftState done [12:34:38]opened in 1729643772 [12:34:38]opened+sec_in_day 1729730172 [12:34:38]quantity*price = 50063 [12:34:38]sum+1 = 50064 [12:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 126 23.10.2024 12:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166711 ФПД: 237273657284588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166711&fm=237273657284588&tin=02508201610067®Number=0000000000091764&sum=50000 [12:34:39]StoreToDocumentArchive [12:34:39]shift 537 fd 166711 [12:34:39]save to /storage/0537/doc_00166711 [12:34:39]save last doc name /storage/0537/doc_00166711 to /storage/kkm_last_doc_name [12:34:39]save OK [12:34:39]Clear old archive folders... [12:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:39]tlvbuf is 01F5CD80 [12:34:39]SAM_PROTO_ClearQueue [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 09 00 00 [12:34:39]Write to MH i2c: E2 08 00 76 13 80 09 00 00 00 00 00 00 FB [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 76 13 00 90 00 FD [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_ClearQueue done [12:34:39]KKMCreateOFDPacket [12:34:39]OFDProtocolAddRootSTLVToBuf [12:34:39]FM_MakeSignedData [12:34:39]FM_MakeSignedData [12:34:39]SAM_PROTO_SignData [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 01 02 [12:34:39]Write to MH i2c: E2 08 00 77 13 80 0D 01 02 00 00 00 00 03 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 77 13 00 90 00 FE [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=255 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5F ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8B 02 00 35 04 06 00 D7 CC 94 0E [12:34:39]Write to MH i2c: E2 02 01 78 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5F ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8B 02 00 35 04 06 00 D7 CC 94 0E 00 00 84 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=7 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 02 02 02 97 EC [12:34:39]Write to MH i2c: E2 0A 00 79 13 80 0D 02 02 02 00 97 EC 00 00 8D [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 79 13 00 90 00 00 [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 03 02 [12:34:39]Write to MH i2c: E2 08 00 7A 13 80 0D 03 02 00 00 00 00 08 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0B 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0B 00 7A 13 00 26 F6 A1 AB 8C A9 60 6D 90 00 73 [12:34:39]RAPDU: 26 F6 A1 AB 8C A9 60 6D 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_SignData done [12:34:39]FM_MakeSignedData done [12:34:39]CreateOFDProtocolMessage [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 11 00 00 [12:34:39]Write to MH i2c: E2 08 00 7B 13 80 11 00 00 00 00 00 00 08 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 7B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [12:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:34:39]wFMCommunicate OK [12:34:39]CreateOFDProtocolMessage done [12:34:39]OFDSenderStorePacket 166711 [12:34:39]StoreOFDPacket docnum=166711 [12:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1B B7 04 01 E2 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5F ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8B 02 00 35 04 06 00 D7 CC 94 0E 97 EC 26 F6 A1 AB 8C A9 60 6D [12:34:39]CheckFolder [12:34:39]dirname=/storage/ofd_packets [12:34:39]CheckFolder done [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00166711 [12:34:39]NVStorageSaveData ofd_packets/00166711 [12:34:39]File name is /storage/ofd_packets/00166711 [12:34:39]Write 298 bytes [12:34:39]NVStorageSaveData done [12:34:39]OFDSenderStorePacket done [12:34:39]KKMCreateOFDPacket done [12:34:39]NVStorageSaveData kkm_last_timestamp [12:34:39]File name is /storage/kkm_last_timestamp [12:34:39]Write 4 bytes [12:34:39]NVStorageSaveData done [12:34:39]ExternCall_PrintAddStr [12:34:39]wPrintStart [12:34:39]Write to MH i2c: 01 00 00 7C 13 8F [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 7C 13 00 00 00 00 00 FF 0F A4 [12:34:39]RasterBufferAndPrint [12:34:39]line Счет N : (1)221294 [12:34:39]line ИНН: 02508201610067 [12:34:39]line Контрольно-Кассовый Чек [12:34:39]line ПРОДАЖА [12:34:39]line ТРК (МРК, ГНК) : 11 [12:34:39]line Товар: 2710194210 [12:34:39]line ДТ-К-5 [12:34:39]line 6.570 * 76.20 [12:34:39]line = 500.63 [12:34:39]line НДС 12% НСП 1% [12:34:39]line > о реализуемом товаре [12:34:39]line ОКРУГЛЕНИЕ: -0.63 [12:34:39]line ИТОГО: 500.00 [12:34:39]line Внесено: 500.00 [12:34:39]line СДАЧА: 0.00 [12:34:39]line НСП 1% : 4.43 [12:34:39]line НДС 12% : 53.16 [12:34:39]line Наличными: 500.00 [12:34:39]line Безнал.: 0.00 [12:34:39]line Место: АЗС № 161 "Партнер Нефть" [12:34:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:34:39]line СНО: Общий режим [12:34:39]line Чек 126 23.10.2024 12:34 [12:34:39]line Смена: 537 ФФД: 1.0 [12:34:39]line ЗНМ: 0300000104 [12:34:39]line РНМ: 0000000000091764 [12:34:39]line Версия ККМ: 001 [12:34:39]line ФМ: 0000000000871759 [12:34:39]line ФД: 166711 [12:34:39]line ФПД: 237273657284588 [12:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166711&fm=237273657284588&tin=02508201610067®Number=0000000000091764&sum=50000 [12:34:40]OFD Sender: Processing packet 166711 [packets to send 48, broken 47] [12:34:40]ProducePacketName [12:34:40]name=ofd_packets/00166711 [12:34:40]OFD Sender: To server: pG, [12:34:40]CommunicateWithHost lk.salyk.kg:30040 [12:34:40]ConnectInit lk.salyk.kg [12:34:40]written 0, free lines is 4095 [12:34:40]Write to MH i2c: 01 00 00 A7 13 BA [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 [12:34:40]MH_I2C_Read... [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 A7 13 00 00 00 00 00 A7 0C 74 [12:34:40]RasterBufferAndPrint [12:34:40]line [12:34:40]line [12:34:40]line [12:34:40]line [12:34:40]line [12:34:40]written 0, free lines is 3242 [12:34:40]MH_Cut [12:34:40]Write to MH i2c: D1 01 00 AE 13 01 93 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: D1 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: D1 01 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: D1 01 00 AE 13 00 92 [12:34:40]Write to MH i2c: 01 00 00 AF 13 C2 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:41]*** Cut start [12:34:41]*** Partial cut [12:34:41]*** CUTSNS_PIN = 1 [12:34:41]*** CUTSNS_PIN = 0 [12:34:41]*** Brake cut motor [12:34:42]Read from MH i2c: 01 [12:34:42]MH_I2C_Read... [12:34:42]*** Stop cut motor [12:34:42]*** Cut end [12:34:42]Read from MH i2c: 01 07 00 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: 01 07 00 AF 13 00 00 00 00 00 FF 0F D7 [12:34:42]process_action close_receipt done [12:34:42]requested_data is exist [12:34:42]produce_requested_data [12:34:42]requested_item fm.sn is exist - process it [12:34:42]wFMCommunicate request_size=4 [12:34:42]MH_SAM_APDU [12:34:42]CAPDU: 80 11 00 00 [12:34:42]Write to MH i2c: E2 08 00 B0 13 80 11 00 00 00 00 00 00 3D [12:34:42]Write i2c OK [12:34:42]MH_I2C_Read... [12:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:42]Read from MH i2c: E2 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 17 00 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 17 00 B0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [12:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:34:42]wFMCommunicate OK [12:34:42]requested_item fd.num is exist - process it [12:34:42]SAM_PROTO_GetFieldsCounters [12:34:42]wFMCommunicate request_size=4 [12:34:42]MH_SAM_APDU [12:34:42]CAPDU: 80 13 00 00 [12:34:42]Write to MH i2c: E2 08 00 B1 13 80 13 00 00 00 00 00 00 40 [12:34:42]Write i2c OK [12:34:42]MH_I2C_Read... [12:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:42]Read from MH i2c: E2 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 62 00 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 62 00 B1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:42]wFMCommunicate OK [12:34:42]SAM_PROTO_GetFieldsCounters done [12:34:42]requested_item shift.num is exist - process it [12:34:42]requested_item shift.opened is exist - process it [12:34:42]req_shift_opened [12:34:42]FM_GetShiftState [12:34:42]SAM_PROTO_GetShiftState [12:34:42]wFMCommunicate request_size=4 [12:34:42]MH_SAM_APDU [12:34:42]CAPDU: 80 13 01 00 [12:34:42]Write to MH i2c: E2 08 00 B2 13 80 13 01 00 00 00 00 00 42 [12:34:42]Write i2c OK [12:34:42]MH_I2C_Read... [12:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:42]Read from MH i2c: E2 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 0E 00 [12:34:42]MH_I2C_Read... [12:34:42]Read from MH i2c: E2 0E 00 B2 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0D [12:34:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:34:42]wFMCommunicate OK [12:34:42]SAM_PROTO_GetShiftState done [12:34:42]FM_GetShiftState done [12:34:42]req_shift_opened done [12:34:42]requested_item shift.open_date is exist - process it [12:34:42]req_shift_open_date [12:34:42]req_shift_open_date done [12:34:42]produce_requested_data done [12:34:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166711,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:34:42]process_action_free close_receipt [12:34:42]json_value_free [12:34:42]json_value_free done [12:34:42]process_json_proto returns [12:34:42]Send response to host [12:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166711,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:34:42]free response buf [12:34:42]execute_script done [12:34:42]execute_script returns [12:34:42]free content buf [12:34:42]Sock 9.Close socket [12:34:42]Sock 9.Thread stoped [12:35:30]accept exits with 8 [12:35:30]New connection [12:35:30]New thread 3067034980 created [12:35:30]Thread 3067178340 joined [12:35:30]Waiting for new connection... [12:35:30] Sock 8.Parse request [12:35:30]Sock 8.Check first char [12:35:30]Sock 8.First char is OK [12:35:30]request: POST /json_proto HTTP/1.0 [12:35:30]Method: POST [12:35:30]URL: /json_proto [12:35:30]Method is POST - this is cgi request [12:35:30]url: /json_proto [12:35:30]query_string will be loaded in cgi processing [12:35:30]execute_cgi json_proto POST (null) [12:35:30]execute_cgi path=json_proto method=POST [12:35:30]POST find Content-Length [12:35:30]Host: 172.17.53.195:8080 [12:35:30]Content-Length: 800 [12:35:30]Content-Type: application/json [12:35:30] [12:35:30]POST finish read [12:35:30]Found Content-Length = 800 [12:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220484", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:30]execute_script... [12:35: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)221295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220484", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:30]POST & json_proto [12:35:30]process_json_proto [12:35:30]json parsed OK: [12:35:30]protocol is kg_v1.0 [12:35:30]action value=close_receipt [12:35:30]process_action close_receipt [12:35:30]cmd_close_receipt [12:35:30]MH_GetDate [12:35:30]Write to MH i2c: F0 00 00 B3 13 B5 [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 09 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 09 00 B3 13 00 93 ED 18 67 21 48 4A 65 D5 [12:35:30]GetLastDocTimeStamp 1729686879 [12:35:30]current date 1729686931 [12:35:30]FM_GetShiftState [12:35:30]SAM_PROTO_GetShiftState [12:35:30]wFMCommunicate request_size=4 [12:35:30]MH_SAM_APDU [12:35:30]CAPDU: 80 13 01 00 [12:35:30]Write to MH i2c: E2 08 00 B4 13 80 13 01 00 00 00 00 00 44 [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:30]Read from MH i2c: E2 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 0E 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 0E 00 B4 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0F [12:35:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:35:30]wFMCommunicate OK [12:35:30]SAM_PROTO_GetShiftState done [12:35:30]FM_GetShiftState done [12:35:30]opened in 1729643772 [12:35:30]opened+sec_in_day 1729730172 [12:35:30]quantity*price = 0 [12:35:30]sum+1 = 1 [12:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 127 23.10.2024 12:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220484 ФМ: 0000000000871759 ФД: 166712 ФПД: 163684965099589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123531&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166712&fm=163684965099589&tin=02508201610067®Number=0000000000091764&sum=0 [12:35:32]StoreToDocumentArchive [12:35:32]shift 537 fd 166712 [12:35:32]save to /storage/0537/doc_00166712 [12:35:32]save last doc name /storage/0537/doc_00166712 to /storage/kkm_last_doc_name [12:35:32]save OK [12:35:32]Clear old archive folders... [12:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:32]tlvbuf is 01FCB870 [12:35:32]SAM_PROTO_ClearQueue [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 09 00 00 [12:35:32]Write to MH i2c: E2 08 00 C1 13 80 09 00 00 00 00 00 00 46 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]SAM_PROTO_ClearQueue done [12:35:32]KKMCreateOFDPacket [12:35:32]OFDProtocolAddRootSTLVToBuf [12:35:32]FM_MakeSignedData [12:35:32]FM_MakeSignedData [12:35:32]SAM_PROTO_SignData [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 01 02 [12:35:32]Write to MH i2c: E2 08 00 C2 13 80 0D 01 02 00 00 00 00 4E [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=255 [12:35:32]MH_SAM_APDU [12:35: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 93 ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8B 02 00 35 04 06 00 94 [12:35:32]Write to MH i2c: E2 02 01 C3 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 93 ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8B 02 00 35 04 06 00 94 00 00 88 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=10 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 02 02 05 DE E0 33 28 45 [12:35:32]Write to MH i2c: E2 0D 00 C4 13 80 0D 02 02 05 00 DE E0 33 28 45 00 00 B9 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 03 02 [12:35:32]Write to MH i2c: E2 08 00 C5 13 80 0D 03 02 00 00 00 00 53 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 0B 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 0B 00 C5 13 00 74 09 63 B4 BB 0E 99 F0 90 00 3A [12:35:32]RAPDU: 74 09 63 B4 BB 0E 99 F0 90 00 [12:35:32]wFMCommunicate OK [12:35:32]SAM_PROTO_SignData done [12:35:32]FM_MakeSignedData done [12:35:32]CreateOFDProtocolMessage [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 11 00 00 [12:35:32]Write to MH i2c: E2 08 00 C6 13 80 11 00 00 00 00 00 00 53 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 17 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 17 00 C6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [12:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:35:32]wFMCommunicate OK [12:35:32]CreateOFDProtocolMessage done [12:35:32]OFDSenderStorePacket 166712 [12:35:32]StoreOFDPacket docnum=166712 [12:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 42 07 01 C9 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 93 ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8B 02 00 35 04 06 00 94 DE E0 33 28 45 74 09 63 B4 BB 0E 99 F0 [12:35:32]CheckFolder [12:35:32]dirname=/storage/ofd_packets [12:35:32]CheckFolder done [12:35:32]ProducePacketName [12:35:32]name=ofd_packets/00166712 [12:35:32]NVStorageSaveData ofd_packets/00166712 [12:35:32]File name is /storage/ofd_packets/00166712 [12:35:32]Write 301 bytes [12:35:32]NVStorageSaveData done [12:35:32]OFDSenderStorePacket done [12:35:32]KKMCreateOFDPacket done [12:35:32]NVStorageSaveData kkm_last_timestamp [12:35:32]File name is /storage/kkm_last_timestamp [12:35:32]Write 4 bytes [12:35:32]NVStorageSaveData done [12:35:32]ExternCall_PrintAddStr [12:35:32]wPrintStart [12:35:32]Write to MH i2c: 01 00 00 C7 13 DA [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 07 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 FF 0F EF [12:35:32]RasterBufferAndPrint [12:35:32]line Счет N : (1)221295 [12:35:32]line ИНН: 02508201610067 [12:35:32]line Контрольно-Кассовый Чек [12:35:32]line ПРОДАЖА [12:35:32]line ТРК (МРК, ГНК) : 23 [12:35:32]line Товар: 2710124130 [12:35:32]line Аи-92-К-5 [12:35:32]line 10.000 * 0.00 [12:35:32]line = 0.00 [12:35:32]line НДС 12% НСП 1% [12:35:32]line > о реализуемом товаре [12:35:32]line ИТОГО: 0.00 [12:35:32]line НСП 1% : 0.00 [12:35:32]line НДС 12% : 0.00 [12:35:32]line Наличными: 0.00 [12:35:32]line Безнал.: 0.00 [12:35:32]line Место: АЗС № 161 "Партнер Нефть" [12:35:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:35:32]line СНО: Общий режим [12:35:32]line Чек 127 23.10.2024 12:35 [12:35:32]line Смена: 537 ФФД: 1.0 [12:35:32]line ЗНМ: 0300000104 [12:35:32]line РНМ: 0000000000091764 [12:35:32]line Версия ККМ: 001 [12:35:32]line Талоны: Топливные Талоны [12:35:32]line 4220484 [12:35:32]line ФМ: 0000000000871759 [12:35:32]line ФД: 166712 [12:35:32]line ФПД: 163684965099589 [12:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123531&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166712&fm=163684965099589&tin=02508201610067®Number=0000000000091764&sum=0 [12:35:33]written 0, free lines is 4095 [12:35:33]Write to MH i2c: 01 00 00 F1 13 04 [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 07 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 BA 0C D1 [12:35:33]RasterBufferAndPrint [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]written 0, free lines is 3262 [12:35:33]MH_Cut [12:35:33]Write to MH i2c: D1 01 00 F8 13 01 DD [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 01 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 01 00 F8 13 00 DC [12:35:33]Write to MH i2c: 01 00 00 F9 13 0C [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:34]*** Cut start [12:35:34]*** Partial cut [12:35:34]*** CUTSNS_PIN = 1 [12:35:34]*** CUTSNS_PIN = 0 [12:35:34]*** Brake cut motor [12:35:34]Read from MH i2c: 01 [12:35:34]MH_I2C_Read... [12:35:34]*** Stop cut motor [12:35:34]*** Cut end [12:35:34]Read from MH i2c: 01 07 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [12:35:34]process_action close_receipt done [12:35:34]requested_data is exist [12:35:34]produce_requested_data [12:35:34]requested_item fm.sn is exist - process it [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 11 00 00 [12:35:34]Write to MH i2c: E2 08 00 FA 13 80 11 00 00 00 00 00 00 87 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 17 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 17 00 FA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [12:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:35:35]wFMCommunicate OK [12:35:35]requested_item fd.num is exist - process it [12:35:35]SAM_PROTO_GetFieldsCounters [12:35:35]wFMCommunicate request_size=4 [12:35:35]MH_SAM_APDU [12:35:35]CAPDU: 80 13 00 00 [12:35:35]Write to MH i2c: E2 08 00 FB 13 80 13 00 00 00 00 00 00 8A [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 62 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 62 00 FB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:35:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:35]wFMCommunicate OK [12:35:35]SAM_PROTO_GetFieldsCounters done [12:35:35]requested_item shift.num is exist - process it [12:35:35]requested_item shift.opened is exist - process it [12:35:35]req_shift_opened [12:35:35]FM_GetShiftState [12:35:35]SAM_PROTO_GetShiftState [12:35:35]wFMCommunicate request_size=4 [12:35:35]MH_SAM_APDU [12:35:35]CAPDU: 80 13 01 00 [12:35:35]Write to MH i2c: E2 08 00 FC 13 80 13 01 00 00 00 00 00 8C [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 0E 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 0E 00 FC 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 57 [12:35:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:35:35]wFMCommunicate OK [12:35:35]SAM_PROTO_GetShiftState done [12:35:35]FM_GetShiftState done [12:35:35]req_shift_opened done [12:35:35]requested_item shift.open_date is exist - process it [12:35:35]req_shift_open_date [12:35:35]req_shift_open_date done [12:35:35]produce_requested_data done [12:35:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166712,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:35:35]process_action_free close_receipt [12:35:35]json_value_free [12:35:35]json_value_free done [12:35:35]process_json_proto returns [12:35:35]Send response to host [12:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166712,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:35:35]free response buf [12:35:35]execute_script done [12:35:35]execute_script returns [12:35:35]free content buf [12:35:35]Sock 8.Close socket [12:35:35]Sock 8.Thread stoped [12:36:53]ConnectInit Can't connect to host [12:36:53]CommunicateWithHost connect error [12:36:53]CommunicateWithHost err = -1 [12:36:53]OFD Sender: Server communicate error [12:36:53]OFD Sender: Processing packet 166711 [packets to send 49, broken 47] [12:36:53]ProducePacketName [12:36:53]name=ofd_packets/00166711 [12:36:53]OFD Sender: To server: pG, [12:36:53]CommunicateWithHost lk.salyk.kg:30040 [12:36:53]ConnectInit lk.salyk.kg [12:36:53]Connected sock=8 [12:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1B B7 04 01 E2 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5F ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8B 02 00 35 04 06 00 D7 CC 94 0E 97 EC 26 F6 A1 AB 8C A9 60 6D [12:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 B3 47 00 5C 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8B 02 00 F4 03 04 00 4B 94 18 67 B6 04 01 00 00 8F DD 5D 76 A9 48 FE B2 [12:36:53]CommunicateWithHost err = 0 [12:36:53]CheckOFDResponse [12:36:53]1017 (14) - 77093643461234 [12:36:53]1041 (16) - 0000000000871759 [12:36:53]1040 (4) - 166711 [12:36:53]1012 (4) - 23.10.2024 06:14 [12:36:53]1206 (1) - 0 [12:36:53]OFD Sender: Remove packet 166711 [12:36:53]ProducePacketName [12:36:53]name=ofd_packets/00166711 [12:36:53]NVStorageDeleteData [12:36:53]OFD Sender: Processing packet 166712 [packets to send 48, broken 47] [12:36:53]ProducePacketName [12:36:53]name=ofd_packets/00166712 [12:36:53]OFD Sender: To server: pG, [12:36:53]CommunicateWithHost lk.salyk.kg:30040 [12:36:53]ConnectInit lk.salyk.kg [12:36:54]Connected sock=8 [12:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 42 07 01 C9 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 93 ED 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8B 02 00 35 04 06 00 94 DE E0 33 28 45 74 09 63 B4 BB 0E 99 F0 [12:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 B5 47 00 35 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8B 02 00 F4 03 04 00 4C 94 18 67 B6 04 01 00 00 A3 13 C0 90 E0 0E 2B A3 [12:36:54]CommunicateWithHost err = 0 [12:36:54]CheckOFDResponse [12:36:54]1017 (14) - 77093643461234 [12:36:54]1041 (16) - 0000000000871759 [12:36:54]1040 (4) - 166712 [12:36:54]1012 (4) - 23.10.2024 06:14 [12:36:54]1206 (1) - 0 [12:36:54]OFD Sender: Remove packet 166712 [12:36:54]ProducePacketName [12:36:54]name=ofd_packets/00166712 [12:36:54]NVStorageDeleteData [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:25]accept exits with 9 [12:37:25]New connection [12:37:25]New thread 3067178340 created [12:37:25]Thread 3067034980 joined [12:37:25]Waiting for new connection... [12:37:25] Sock 9.Parse request [12:37:25]Sock 9.Check first char [12:37:25]Sock 9.First char is OK [12:37:25]request: POST /json_proto HTTP/1.0 [12:37:25]Method: POST [12:37:25]URL: /json_proto [12:37:25]Method is POST - this is cgi request [12:37:25]url: /json_proto [12:37:25]query_string will be loaded in cgi processing [12:37:25]execute_cgi json_proto POST (null) [12:37:25]execute_cgi path=json_proto method=POST [12:37:25]POST find Content-Length [12:37:25]Host: 172.17.53.195:8080 [12:37:25]Content-Length: 674 [12:37:25]Content-Type: application/json [12:37:25] [12:37:25]POST finish read [12:37:25]Found Content-Length = 674 [12:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:25]execute_script... [12:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:25]POST & json_proto [12:37:25]process_json_proto [12:37:25]json parsed OK: [12:37:25]protocol is kg_v1.0 [12:37:25]action value=close_receipt [12:37:25]process_action close_receipt [12:37:25]cmd_close_receipt [12:37:25]MH_GetDate [12:37:25]Write to MH i2c: F0 00 00 FD 13 FF [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 FD 13 00 06 EE 18 67 21 48 4A 65 93 [12:37:25]GetLastDocTimeStamp 1729686931 [12:37:25]current date 1729687046 [12:37:25]FM_GetShiftState [12:37:25]SAM_PROTO_GetShiftState [12:37:25]wFMCommunicate request_size=4 [12:37:25]MH_SAM_APDU [12:37:25]CAPDU: 80 13 01 00 [12:37:25]Write to MH i2c: E2 08 00 FE 13 80 13 01 00 00 00 00 00 8E [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:25]Read from MH i2c: E2 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 FE 13 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 59 [12:37:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:37:25]wFMCommunicate OK [12:37:25]SAM_PROTO_GetShiftState done [12:37:25]FM_GetShiftState done [12:37:25]opened in 1729643772 [12:37:25]opened+sec_in_day 1729730172 [12:37:25]quantity*price = 70027 [12:37:25]sum+1 = 70029 [12:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 128 23.10.2024 12:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166713 ФПД: 199870539559042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166713&fm=199870539559042&tin=02508201610067®Number=0000000000091764&sum=70000 [12:37:26]StoreToDocumentArchive [12:37:26]shift 537 fd 166713 [12:37:26]save to /storage/0537/doc_00166713 [12:37:26]save last doc name /storage/0537/doc_00166713 to /storage/kkm_last_doc_name [12:37:26]save OK [12:37:26]Clear old archive folders... [12:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:26]tlvbuf is 01FDCB30 [12:37:26]SAM_PROTO_ClearQueue [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 09 00 00 [12:37:26]Write to MH i2c: E2 08 00 0B 14 80 09 00 00 00 00 00 00 91 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_ClearQueue done [12:37:26]KKMCreateOFDPacket [12:37:26]OFDProtocolAddRootSTLVToBuf [12:37:26]FM_MakeSignedData [12:37:26]FM_MakeSignedData [12:37:26]SAM_PROTO_SignData [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 01 02 [12:37:26]Write to MH i2c: E2 08 00 0C 14 80 0D 01 02 00 00 00 00 99 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=255 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8B 02 00 35 04 06 00 B5 C7 FC 82 [12:37:26]Write to MH i2c: E2 02 01 0D 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8B 02 00 35 04 06 00 B5 C7 FC 82 00 00 EF [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=7 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 02 02 02 F0 82 [12:37:27]Write to MH i2c: E2 0A 00 0E 14 80 0D 02 02 02 00 F0 82 00 00 12 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 03 02 [12:37:27]Write to MH i2c: E2 08 00 0F 14 80 0D 03 02 00 00 00 00 9E [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 0F 14 00 45 61 55 27 B7 3A A7 62 90 00 BB [12:37:27]RAPDU: 45 61 55 27 B7 3A A7 62 90 00 [12:37:27]wFMCommunicate OK [12:37:27]SAM_PROTO_SignData done [12:37:27]FM_MakeSignedData done [12:37:27]CreateOFDProtocolMessage [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 11 00 00 [12:37:27]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [12:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:37:27]wFMCommunicate OK [12:37:27]CreateOFDProtocolMessage done [12:37:27]OFDSenderStorePacket 166713 [12:37:27]StoreOFDPacket docnum=166713 [12:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C6 DB 04 01 52 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8B 02 00 35 04 06 00 B5 C7 FC 82 F0 82 45 61 55 27 B7 3A A7 62 [12:37:27]CheckFolder [12:37:27]dirname=/storage/ofd_packets [12:37:27]CheckFolder done [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00166713 [12:37:27]NVStorageSaveData ofd_packets/00166713 [12:37:27]File name is /storage/ofd_packets/00166713 [12:37:27]Write 298 bytes [12:37:27]NVStorageSaveData done [12:37:27]OFDSenderStorePacket done [12:37:27]KKMCreateOFDPacket done [12:37:27]NVStorageSaveData kkm_last_timestamp [12:37:27]File name is /storage/kkm_last_timestamp [12:37:27]Write 4 bytes [12:37:27]NVStorageSaveData done [12:37:27]ExternCall_PrintAddStr [12:37:27]wPrintStart [12:37:27]Write to MH i2c: 01 00 00 11 14 25 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 11 14 00 00 00 00 00 FF 0F 3A [12:37:27]RasterBufferAndPrint [12:37:27]line Счет N : (1)221296 [12:37:27]line ИНН: 02508201610067 [12:37:27]line Контрольно-Кассовый Чек [12:37:27]line ПРОДАЖА [12:37:27]line ТРК (МРК, ГНК) : 21 [12:37:27]line Товар: 2710194210 [12:37:27]line ДТ-К-5 [12:37:27]line 9.190 * 76.20 [12:37:27]line = 700.28 [12:37:27]line НДС 12% НСП 1% [12:37:27]line > о реализуемом товаре [12:37:27]line ОКРУГЛЕНИЕ: -0.28 [12:37:27]line ИТОГО: 700.00 [12:37:27]line Внесено: 700.00 [12:37:27]line СДАЧА: 0.00 [12:37:27]line НСП 1% : 6.20 [12:37:27]line НДС 12% : 74.37 [12:37:27]line Наличными: 700.00 [12:37:27]line Безнал.: 0.00 [12:37:27]line Место: АЗС № 161 "Партнер Нефть" [12:37:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:37:27]line СНО: Общий режим [12:37:27]line Чек 128 23.10.2024 12:37 [12:37:27]line Смена: 537 ФФД: 1.0 [12:37:27]line ЗНМ: 0300000104 [12:37:27]line РНМ: 0000000000091764 [12:37:27]line Версия ККМ: 001 [12:37:27]line ФМ: 0000000000871759 [12:37:27]line ФД: 166713 [12:37:27]line ФПД: 199870539559042 [12:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166713&fm=199870539559042&tin=02508201610067®Number=0000000000091764&sum=70000 [12:37:27]OFD Sender: Processing packet 166713 [packets to send 48, broken 47] [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00166713 [12:37:27]OFD Sender: To server: pG, [12:37:27]CommunicateWithHost lk.salyk.kg:30040 [12:37:27]written 0, free lines is 4095 [12:37:27]ConnectInit lk.salyk.kg [12:37:27]Connected sock=10 [12:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C6 DB 04 01 52 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8B 02 00 35 04 06 00 B5 C7 FC 82 F0 82 45 61 55 27 B7 3A A7 62 [12:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 73 3E 47 00 4A 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8B 02 00 F4 03 04 00 6E 94 18 67 B6 04 01 00 00 8C 9E 77 30 33 1B C0 55 [12:37:27]CommunicateWithHost err = 0 [12:37:27]CheckOFDResponse [12:37:27]1017 (14) - 77093643461234 [12:37:27]1041 (16) - 0000000000871759 [12:37:27]1040 (4) - 166713 [12:37:27]1012 (4) - 23.10.2024 06:15 [12:37:27]1206 (1) - 0 [12:37:27]OFD Sender: Remove packet 166713 [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00166713 [12:37:27]NVStorageDeleteData [12:37:28]Write to MH i2c: 01 00 00 3C 14 50 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 A9 0C 0C [12:37:28]RasterBufferAndPrint [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]written 0, free lines is 3246 [12:37:28]MH_Cut [12:37:28]Write to MH i2c: D1 01 00 43 14 01 29 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 01 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 01 00 43 14 00 28 [12:37:28]Write to MH i2c: 01 00 00 44 14 58 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]OFD Sender: No OFD packet to send [12:37:28]*** Cut start [12:37:28]*** Partial cut [12:37:28]*** CUTSNS_PIN = 1 [12:37:28]*** CUTSNS_PIN = 0 [12:37:29]*** Brake cut motor [12:37:29]Read from MH i2c: 01 [12:37:29]MH_I2C_Read... [12:37:29]*** Stop cut motor [12:37:29]*** Cut end [12:37:29]Read from MH i2c: 01 07 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: 01 07 00 44 14 00 00 00 00 00 FF 0F 6D [12:37:29]process_action close_receipt done [12:37:29]requested_data is exist [12:37:29]produce_requested_data [12:37:29]requested_item fm.sn is exist - process it [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 11 00 00 [12:37:29]Write to MH i2c: E2 08 00 45 14 80 11 00 00 00 00 00 00 D3 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 45 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [12:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:37:29]wFMCommunicate OK [12:37:29]requested_item fd.num is exist - process it [12:37:29]SAM_PROTO_GetFieldsCounters [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 00 00 [12:37:29]Write to MH i2c: E2 08 00 46 14 80 13 00 00 00 00 00 00 D6 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 46 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetFieldsCounters done [12:37:29]requested_item shift.num is exist - process it [12:37:29]requested_item shift.opened is exist - process it [12:37:29]req_shift_opened [12:37:29]FM_GetShiftState [12:37:29]SAM_PROTO_GetShiftState [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 01 00 [12:37:29]Write to MH i2c: E2 08 00 47 14 80 13 01 00 00 00 00 00 D8 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 47 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A3 [12:37:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetShiftState done [12:37:29]FM_GetShiftState done [12:37:29]req_shift_opened done [12:37:29]requested_item shift.open_date is exist - process it [12:37:29]req_shift_open_date [12:37:29]req_shift_open_date done [12:37:29]produce_requested_data done [12:37:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166713,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:37:29]process_action_free close_receipt [12:37:29]json_value_free [12:37:29]json_value_free done [12:37:29]process_json_proto returns [12:37:29]Send response to host [12:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166713,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:37:29]free response buf [12:37:29]execute_script done [12:37:29]execute_script returns [12:37:29]free content buf [12:37:29]Sock 9.Close socket [12:37:29]Sock 9.Thread stoped [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:40]accept exits with 8 [12:38:40]New connection [12:38:40]New thread 3067034980 created [12:38:40]Thread 3067178340 joined [12:38:40]Waiting for new connection... [12:38:40] Sock 8.Parse request [12:38:40]Sock 8.Check first char [12:38:40]Sock 8.First char is OK [12:38:40]request: POST /json_proto HTTP/1.0 [12:38:40]Method: POST [12:38:40]URL: /json_proto [12:38:40]Method is POST - this is cgi request [12:38:40]url: /json_proto [12:38:40]query_string will be loaded in cgi processing [12:38:40]execute_cgi json_proto POST (null) [12:38:40]execute_cgi path=json_proto method=POST [12:38:40]POST find Content-Length [12:38:40]Host: 172.17.53.195:8080 [12:38:40]Content-Length: 682 [12:38:40]Content-Type: application/json [12:38:40] [12:38:40]POST finish read [12:38:40]Found Content-Length = 682 [12:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:40]execute_script... [12:38:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:40]POST & json_proto [12:38:40]process_json_proto [12:38:40]json parsed OK: [12:38:40]protocol is kg_v1.0 [12:38:40]action value=close_receipt [12:38:40]process_action close_receipt [12:38:40]cmd_close_receipt [12:38:40]MH_GetDate [12:38:40]Write to MH i2c: F0 00 00 48 14 4B [12:38:40]Write i2c OK [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: F0 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: F0 09 00 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: F0 09 00 48 14 00 51 EE 18 67 21 48 4A 65 2A [12:38:40]GetLastDocTimeStamp 1729687046 [12:38:40]current date 1729687121 [12:38:40]FM_GetShiftState [12:38:40]SAM_PROTO_GetShiftState [12:38:40]wFMCommunicate request_size=4 [12:38:40]MH_SAM_APDU [12:38:40]CAPDU: 80 13 01 00 [12:38:40]Write to MH i2c: E2 08 00 49 14 80 13 01 00 00 00 00 00 DA [12:38:40]Write i2c OK [12:38:40]MH_I2C_Read... [12:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:41]Read from MH i2c: E2 [12:38:41]MH_I2C_Read... [12:38:41]Read from MH i2c: E2 0E 00 [12:38:41]MH_I2C_Read... [12:38:41]Read from MH i2c: E2 0E 00 49 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A5 [12:38:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:38:41]wFMCommunicate OK [12:38:41]SAM_PROTO_GetShiftState done [12:38:41]FM_GetShiftState done [12:38:41]opened in 1729643772 [12:38:41]opened+sec_in_day 1729730172 [12:38:41]quantity*price = 100015 [12:38:41]sum+1 = 100017 [12:38: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 129 23.10.2024 12:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166714 ФПД: 232474305497502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166714&fm=232474305497502&tin=02508201610067®Number=0000000000091764&sum=100000 [12:38:42]StoreToDocumentArchive [12:38:42]shift 537 fd 166714 [12:38:42]save to /storage/0537/doc_00166714 [12:38:42]save last doc name /storage/0537/doc_00166714 to /storage/kkm_last_doc_name [12:38:42]save OK [12:38:42]Clear old archive folders... [12:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:42]tlvbuf is 01FBE560 [12:38:42]SAM_PROTO_ClearQueue [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 09 00 00 [12:38:42]Write to MH i2c: E2 08 00 56 14 80 09 00 00 00 00 00 00 DC [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [12:38:42]RAPDU: 90 00 [12:38:42]wFMCommunicate OK [12:38:42]SAM_PROTO_ClearQueue done [12:38:42]KKMCreateOFDPacket [12:38:42]OFDProtocolAddRootSTLVToBuf [12:38:42]FM_MakeSignedData [12:38:42]FM_MakeSignedData [12:38:42]SAM_PROTO_SignData [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 0D 01 02 [12:38:42]Write to MH i2c: E2 08 00 57 14 80 0D 01 02 00 00 00 00 E4 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [12:38:42]RAPDU: 90 00 [12:38:42]wFMCommunicate OK [12:38:42]wFMCommunicate request_size=255 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 51 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8B 02 00 35 04 06 00 D3 [12:38:42]Write to MH i2c: E2 02 01 58 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 51 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8B 02 00 35 04 06 00 D3 00 00 68 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [12:38:42]RAPDU: 90 00 [12:38:42]wFMCommunicate OK [12:38:42]wFMCommunicate request_size=10 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 0D 02 02 05 6F 24 66 09 9E [12:38:42]Write to MH i2c: E2 0D 00 59 14 80 0D 02 02 05 00 6F 24 66 09 9E 00 00 91 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [12:38:42]RAPDU: 90 00 [12:38:42]wFMCommunicate OK [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 0D 03 02 [12:38:42]Write to MH i2c: E2 08 00 5A 14 80 0D 03 02 00 00 00 00 E9 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0B 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0B 00 5A 14 00 00 4B 57 BC CF 7F 27 9B 90 00 58 [12:38:42]RAPDU: 00 4B 57 BC CF 7F 27 9B 90 00 [12:38:42]wFMCommunicate OK [12:38:42]SAM_PROTO_SignData done [12:38:42]FM_MakeSignedData done [12:38:42]CreateOFDProtocolMessage [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 11 00 00 [12:38:42]Write to MH i2c: E2 08 00 5B 14 80 11 00 00 00 00 00 00 E9 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 17 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 17 00 5B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [12:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:42]wFMCommunicate OK [12:38:42]CreateOFDProtocolMessage done [12:38:42]OFDSenderStorePacket 166714 [12:38:42]StoreOFDPacket docnum=166714 [12:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C F8 07 01 E5 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 51 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8B 02 00 35 04 06 00 D3 6F 24 66 09 9E 00 4B 57 BC CF 7F 27 9B [12:38:42]CheckFolder [12:38:42]dirname=/storage/ofd_packets [12:38:42]CheckFolder done [12:38:42]ProducePacketName [12:38:42]name=ofd_packets/00166714 [12:38:42]NVStorageSaveData ofd_packets/00166714 [12:38:42]File name is /storage/ofd_packets/00166714 [12:38:42]Write 301 bytes [12:38:42]NVStorageSaveData done [12:38:42]OFDSenderStorePacket done [12:38:42]KKMCreateOFDPacket done [12:38:42]NVStorageSaveData kkm_last_timestamp [12:38:42]File name is /storage/kkm_last_timestamp [12:38:42]Write 4 bytes [12:38:42]NVStorageSaveData done [12:38:42]ExternCall_PrintAddStr [12:38:42]wPrintStart [12:38:42]Write to MH i2c: 01 00 00 5C 14 70 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: 01 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: 01 07 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [12:38:42]RasterBufferAndPrint [12:38:42]line Счет N : (1)221297 [12:38:42]line ИНН: 02508201610067 [12:38:42]line Контрольно-Кассовый Чек [12:38:42]line ПРОДАЖА [12:38:42]line ТРК (МРК, ГНК) : 33 [12:38:42]line Товар: 2710124130 [12:38:42]line Аи-92-К-5 [12:38:42]line 14.950 * 66.90 [12:38:42]line = 1000.16 [12:38:42]line НДС 12% НСП 1% [12:38:42]line > о реализуемом товаре [12:38:42]line ОКРУГЛЕНИЕ: -0.16 [12:38:42]line ИТОГО: 1000.00 [12:38:42]line Внесено: 1000.00 [12:38:42]line СДАЧА: 0.00 [12:38:42]line НСП 1% : 8.85 [12:38:42]line НДС 12% : 106.21 [12:38:42]line Наличными: 1000.00 [12:38:42]line Безнал.: 0.00 [12:38:42]line Место: АЗС № 161 "Партнер Нефть" [12:38:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:38:42]line СНО: Общий режим [12:38:42]line Чек 129 23.10.2024 12:38 [12:38:42]line Смена: 537 ФФД: 1.0 [12:38:42]line ЗНМ: 0300000104 [12:38:42]line РНМ: 0000000000091764 [12:38:42]line Версия ККМ: 001 [12:38:42]line ФМ: 0000000000871759 [12:38:42]line ФД: 166714 [12:38:42]line ФПД: 232474305497502 [12:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166714&fm=232474305497502&tin=02508201610067®Number=0000000000091764&sum=100000 [12:38:43]OFD Sender: Processing packet 166714 [packets to send 48, broken 47] [12:38:43]ProducePacketName [12:38:43]name=ofd_packets/00166714 [12:38:43]OFD Sender: To server: pG, [12:38:43]CommunicateWithHost lk.salyk.kg:30040 [12:38:43]ConnectInit lk.salyk.kg [12:38:43]written 0, free lines is 4095 [12:38:43]Connected sock=11 [12:38:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C F8 07 01 E5 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 51 EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8B 02 00 35 04 06 00 D3 6F 24 66 09 9E 00 4B 57 BC CF 7F 27 9B [12:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 1C 47 00 02 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8B 02 00 F4 03 04 00 B9 94 18 67 B6 04 01 00 00 D6 F8 46 9E A9 DD 11 72 [12:38:43]CommunicateWithHost err = 0 [12:38:43]CheckOFDResponse [12:38:43]1017 (14) - 77093643461234 [12:38:43]1041 (16) - 0000000000871759 [12:38:43]1040 (4) - 166714 [12:38:43]1012 (4) - 23.10.2024 06:16 [12:38:43]1206 (1) - 0 [12:38:43]OFD Sender: Remove packet 166714 [12:38:43]ProducePacketName [12:38:43]name=ofd_packets/00166714 [12:38:43]NVStorageDeleteData [12:38:43]Write to MH i2c: 01 00 00 87 14 9B [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: 01 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: 01 07 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 BC 0C 6A [12:38:43]RasterBufferAndPrint [12:38:43]line [12:38:43]line [12:38:43]line [12:38:43]line [12:38:43]line [12:38:43]written 0, free lines is 3265 [12:38:43]MH_Cut [12:38:43]Write to MH i2c: D1 01 00 8E 14 01 74 [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: D1 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: D1 01 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: D1 01 00 8E 14 00 73 [12:38:43]Write to MH i2c: 01 00 00 8F 14 A3 [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]OFD Sender: No OFD packet to send [12:38:44]*** Cut start [12:38:44]*** Partial cut [12:38:44]*** CUTSNS_PIN = 1 [12:38:44]*** CUTSNS_PIN = 0 [12:38:44]*** Brake cut motor [12:38:44]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]*** Stop cut motor [12:38:45]*** Cut end [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 8F 14 00 00 00 00 00 FF 0F B8 [12:38:45]process_action close_receipt done [12:38:45]requested_data is exist [12:38:45]produce_requested_data [12:38:45]requested_item fm.sn is exist - process it [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 90 14 80 11 00 00 00 00 00 00 1E [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 90 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [12:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:45]wFMCommunicate OK [12:38:45]requested_item fd.num is exist - process it [12:38:45]SAM_PROTO_GetFieldsCounters [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 13 00 00 [12:38:45]Write to MH i2c: E2 08 00 91 14 80 13 00 00 00 00 00 00 21 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 62 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 62 00 91 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_GetFieldsCounters done [12:38:45]requested_item shift.num is exist - process it [12:38:45]requested_item shift.opened is exist - process it [12:38:45]req_shift_opened [12:38:45]FM_GetShiftState [12:38:45]SAM_PROTO_GetShiftState [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 13 01 00 [12:38:45]Write to MH i2c: E2 08 00 92 14 80 13 01 00 00 00 00 00 23 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0E 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0E 00 92 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EE [12:38:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_GetShiftState done [12:38:45]FM_GetShiftState done [12:38:45]req_shift_opened done [12:38:45]requested_item shift.open_date is exist - process it [12:38:45]req_shift_open_date [12:38:45]req_shift_open_date done [12:38:45]produce_requested_data done [12:38:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166714,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:38:45]process_action_free close_receipt [12:38:45]json_value_free [12:38:45]json_value_free done [12:38:45]process_json_proto returns [12:38:45]Send response to host [12:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166714,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:38:45]free response buf [12:38:45]execute_script done [12:38:45]execute_script returns [12:38:45]free content buf [12:38:45]Sock 8.Close socket [12:38:45]Sock 8.Thread stoped [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:28]accept exits with 9 [12:40:28]New connection [12:40:28]New thread 3067178340 created [12:40:28]Thread 3067034980 joined [12:40:28]Waiting for new connection... [12:40:28] Sock 9.Parse request [12:40:28]Sock 9.Check first char [12:40:28]Sock 9.First char is OK [12:40:28]request: POST /json_proto HTTP/1.0 [12:40:28]Method: POST [12:40:28]URL: /json_proto [12:40:28]Method is POST - this is cgi request [12:40:28]url: /json_proto [12:40:28]query_string will be loaded in cgi processing [12:40:28]execute_cgi json_proto POST (null) [12:40:28]execute_cgi path=json_proto method=POST [12:40:28]POST find Content-Length [12:40:28]Host: 172.17.53.195:8080 [12:40:28]Content-Length: 678 [12:40:28]Content-Type: application/json [12:40:28] [12:40:28]POST finish read [12:40:28]Found Content-Length = 678 [12:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.460, "sum" : 699.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:28]execute_script... [12:40: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)221298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.460, "sum" : 699.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:28]POST & json_proto [12:40:28]process_json_proto [12:40:28]json parsed OK: [12:40:28]protocol is kg_v1.0 [12:40:28]action value=close_receipt [12:40:28]process_action close_receipt [12:40:28]cmd_close_receipt [12:40:28]MH_GetDate [12:40:28]Write to MH i2c: F0 00 00 93 14 96 [12:40:28]Write i2c OK [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: F0 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: F0 09 00 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: F0 09 00 93 14 00 BD EE 18 67 21 48 4A 65 E1 [12:40:28]GetLastDocTimeStamp 1729687121 [12:40:28]current date 1729687229 [12:40:28]FM_GetShiftState [12:40:28]SAM_PROTO_GetShiftState [12:40:28]wFMCommunicate request_size=4 [12:40:28]MH_SAM_APDU [12:40:28]CAPDU: 80 13 01 00 [12:40:28]Write to MH i2c: E2 08 00 94 14 80 13 01 00 00 00 00 00 25 [12:40:28]Write i2c OK [12:40:28]MH_I2C_Read... [12:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:28]Read from MH i2c: E2 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 0E 00 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 0E 00 94 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F0 [12:40:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:40:28]wFMCommunicate OK [12:40:28]SAM_PROTO_GetShiftState done [12:40:28]FM_GetShiftState done [12:40:28]opened in 1729643772 [12:40:28]opened+sec_in_day 1729730172 [12:40:28]quantity*price = 69977 [12:40:28]sum+1 = 69978 [12:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 699.00 Внесено: 700.00 СДАЧА: 1.00 НСП 1% : 6.19 НДС 12% : 74.31 Наличными: 699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 130 23.10.2024 12:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166715 ФПД: 218343018804455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124029&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166715&fm=218343018804455&tin=02508201610067®Number=0000000000091764&sum=69900 [12:40:29]StoreToDocumentArchive [12:40:29]shift 537 fd 166715 [12:40:29]save to /storage/0537/doc_00166715 [12:40:29]save last doc name /storage/0537/doc_00166715 to /storage/kkm_last_doc_name [12:40:29]save OK [12:40:29]Clear old archive folders... [12:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:29]tlvbuf is 01FAFEC0 [12:40:29]SAM_PROTO_ClearQueue [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 09 00 00 [12:40:29]Write to MH i2c: E2 08 00 A1 14 80 09 00 00 00 00 00 00 27 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [12:40:29]RAPDU: 90 00 [12:40:29]wFMCommunicate OK [12:40:29]SAM_PROTO_ClearQueue done [12:40:29]KKMCreateOFDPacket [12:40:29]OFDProtocolAddRootSTLVToBuf [12:40:29]FM_MakeSignedData [12:40:29]FM_MakeSignedData [12:40:29]SAM_PROTO_SignData [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 0D 01 02 [12:40:29]Write to MH i2c: E2 08 00 A2 14 80 0D 01 02 00 00 00 00 2F [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [12:40:29]RAPDU: 90 00 [12:40:29]wFMCommunicate OK [12:40:29]wFMCommunicate request_size=255 [12:40:29]MH_SAM_APDU [12:40: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 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BD EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8B 02 00 35 04 06 00 C6 [12:40:29]Write to MH i2c: E2 02 01 A3 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 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BD EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8B 02 00 35 04 06 00 C6 00 00 0D [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=10 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 02 02 05 94 F2 13 34 E7 [12:40:30]Write to MH i2c: E2 0D 00 A4 14 80 0D 02 02 05 00 94 F2 13 34 E7 00 00 F0 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 03 02 [12:40:30]Write to MH i2c: E2 08 00 A5 14 80 0D 03 02 00 00 00 00 34 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0B 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0B 00 A5 14 00 BE 24 31 9A 1B 23 CF 4F 90 00 3E [12:40:30]RAPDU: BE 24 31 9A 1B 23 CF 4F 90 00 [12:40:30]wFMCommunicate OK [12:40:30]SAM_PROTO_SignData done [12:40:30]FM_MakeSignedData done [12:40:30]CreateOFDProtocolMessage [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 11 00 00 [12:40:30]Write to MH i2c: E2 08 00 A6 14 80 11 00 00 00 00 00 00 34 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 17 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 17 00 A6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [12:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:40:30]wFMCommunicate OK [12:40:30]CreateOFDProtocolMessage done [12:40:30]OFDSenderStorePacket 166715 [12:40:30]StoreOFDPacket docnum=166715 [12:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 09 07 01 5C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BD EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8B 02 00 35 04 06 00 C6 94 F2 13 34 E7 BE 24 31 9A 1B 23 CF 4F [12:40:30]CheckFolder [12:40:30]dirname=/storage/ofd_packets [12:40:30]CheckFolder done [12:40:30]ProducePacketName [12:40:30]name=ofd_packets/00166715 [12:40:30]NVStorageSaveData ofd_packets/00166715 [12:40:30]File name is /storage/ofd_packets/00166715 [12:40:30]Write 301 bytes [12:40:30]NVStorageSaveData done [12:40:30]OFDSenderStorePacket done [12:40:30]KKMCreateOFDPacket done [12:40:30]NVStorageSaveData kkm_last_timestamp [12:40:30]File name is /storage/kkm_last_timestamp [12:40:30]Write 4 bytes [12:40:30]NVStorageSaveData done [12:40:30]ExternCall_PrintAddStr [12:40:30]wPrintStart [12:40:30]Write to MH i2c: 01 00 00 A7 14 BB [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 07 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 07 00 A7 14 00 00 00 00 00 FF 0F D0 [12:40:30]RasterBufferAndPrint [12:40:30]line Счет N : (1)221298 [12:40:30]line ИНН: 02508201610067 [12:40:30]line Контрольно-Кассовый Чек [12:40:30]line ПРОДАЖА [12:40:30]line ТРК (МРК, ГНК) : 43 [12:40:30]line Товар: 2710124130 [12:40:30]line Аи-92-К-5 [12:40:30]line 10.460 * 66.90 [12:40:30]line = 699.77 [12:40:30]line НДС 12% НСП 1% [12:40:30]line > о реализуемом товаре [12:40:30]line ОКРУГЛЕНИЕ: -0.77 [12:40:30]line ИТОГО: 699.00 [12:40:30]line Внесено: 700.00 [12:40:30]line СДАЧА: 1.00 [12:40:30]line НСП 1% : 6.19 [12:40:30]line НДС 12% : 74.31 [12:40:30]line Наличными: 699.00 [12:40:30]line Безнал.: 0.00 [12:40:30]line Место: АЗС № 161 "Партнер Нефть" [12:40:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:40:30]line СНО: Общий режим [12:40:30]line Чек 130 23.10.2024 12:40 [12:40:30]line Смена: 537 ФФД: 1.0 [12:40:30]line ЗНМ: 0300000104 [12:40:30]line РНМ: 0000000000091764 [12:40:30]line Версия ККМ: 001 [12:40:30]line ФМ: 0000000000871759 [12:40:30]line ФД: 166715 [12:40:30]line ФПД: 218343018804455 [12:40:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124029&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166715&fm=218343018804455&tin=02508201610067®Number=0000000000091764&sum=69900 [12:40:30]OFD Sender: Processing packet 166715 [packets to send 48, broken 47] [12:40:30]ProducePacketName [12:40:30]name=ofd_packets/00166715 [12:40:30]OFD Sender: To server: pG, [12:40:30]CommunicateWithHost lk.salyk.kg:30040 [12:40:30]ConnectInit lk.salyk.kg [12:40:30]written 0, free lines is 4095 [12:40:30]Connected sock=10 [12:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 09 07 01 5C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BD EE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8B 02 00 35 04 06 00 C6 94 F2 13 34 E7 BE 24 31 9A 1B 23 CF 4F [12:40:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2B 77 47 00 66 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8B 02 00 F4 03 04 00 25 95 18 67 B6 04 01 00 00 B6 20 94 65 97 60 7B 28 [12:40:31]CommunicateWithHost err = 0 [12:40:31]CheckOFDResponse [12:40:31]1017 (14) - 77093643461234 [12:40:31]1041 (16) - 0000000000871759 [12:40:31]1040 (4) - 166715 [12:40:31]1012 (4) - 23.10.2024 06:18 [12:40:31]1206 (1) - 0 [12:40:31]OFD Sender: Remove packet 166715 [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00166715 [12:40:31]NVStorageDeleteData [12:40:31]Write to MH i2c: 01 00 00 D2 14 E6 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 D2 14 00 00 00 00 00 C3 0C BC [12:40:31]RasterBufferAndPrint [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]written 0, free lines is 3272 [12:40:31]MH_Cut [12:40:31]Write to MH i2c: D1 01 00 D9 14 01 BF [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 D9 14 00 BE [12:40:31]Write to MH i2c: 01 00 00 DA 14 EE [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]OFD Sender: No OFD packet to send [12:40:32]*** Cut start [12:40:32]*** Partial cut [12:40:32]*** CUTSNS_PIN = 1 [12:40:32]*** CUTSNS_PIN = 0 [12:40:32]*** Brake cut motor [12:40:32]Read from MH i2c: 01 [12:40:32]MH_I2C_Read... [12:40:32]*** Stop cut motor [12:40:32]*** Cut end [12:40:32]Read from MH i2c: 01 07 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: 01 07 00 DA 14 00 00 00 00 00 FF 0F 03 [12:40:32]process_action close_receipt done [12:40:32]requested_data is exist [12:40:32]produce_requested_data [12:40:32]requested_item fm.sn is exist - process it [12:40:32]wFMCommunicate request_size=4 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 11 00 00 [12:40:32]Write to MH i2c: E2 08 00 DB 14 80 11 00 00 00 00 00 00 69 [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 17 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 17 00 DB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [12:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:40:32]wFMCommunicate OK [12:40:32]requested_item fd.num is exist - process it [12:40:32]SAM_PROTO_GetFieldsCounters [12:40:32]wFMCommunicate request_size=4 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 13 00 00 [12:40:32]Write to MH i2c: E2 08 00 DC 14 80 13 00 00 00 00 00 00 6C [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 62 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 62 00 DC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:32]wFMCommunicate OK [12:40:32]SAM_PROTO_GetFieldsCounters done [12:40:32]requested_item shift.num is exist - process it [12:40:32]requested_item shift.opened is exist - process it [12:40:32]req_shift_opened [12:40:32]FM_GetShiftState [12:40:32]SAM_PROTO_GetShiftState [12:40:32]wFMCommunicate request_size=4 [12:40:32]MH_SAM_APDU [12:40:32]CAPDU: 80 13 01 00 [12:40:32]Write to MH i2c: E2 08 00 DD 14 80 13 01 00 00 00 00 00 6E [12:40:32]Write i2c OK [12:40:32]MH_I2C_Read... [12:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:32]Read from MH i2c: E2 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 0E 00 [12:40:32]MH_I2C_Read... [12:40:32]Read from MH i2c: E2 0E 00 DD 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 39 [12:40:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:40:32]wFMCommunicate OK [12:40:32]SAM_PROTO_GetShiftState done [12:40:32]FM_GetShiftState done [12:40:32]req_shift_opened done [12:40:32]requested_item shift.open_date is exist - process it [12:40:32]req_shift_open_date [12:40:32]req_shift_open_date done [12:40:32]produce_requested_data done [12:40:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166715,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:40:32]process_action_free close_receipt [12:40:32]json_value_free [12:40:32]json_value_free done [12:40:32]process_json_proto returns [12:40:32]Send response to host [12:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166715,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:40:32]free response buf [12:40:32]execute_script done [12:40:32]execute_script returns [12:40:32]free content buf [12:40:32]Sock 9.Close socket [12:40:32]Sock 9.Thread stoped [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:20]accept exits with 8 [12:42:20]New connection [12:42:20]New thread 3067034980 created [12:42:20]Thread 3067178340 joined [12:42:20]Waiting for new connection... [12:42:20] Sock 8.Parse request [12:42:20]Sock 8.Check first char [12:42:20]Sock 8.First char is OK [12:42:20]request: POST /json_proto HTTP/1.0 [12:42:20]Method: POST [12:42:20]URL: /json_proto [12:42:20]Method is POST - this is cgi request [12:42:20]url: /json_proto [12:42:20]query_string will be loaded in cgi processing [12:42:20]execute_cgi json_proto POST (null) [12:42:20]execute_cgi path=json_proto method=POST [12:42:20]POST find Content-Length [12:42:20]Host: 172.17.53.195:8080 [12:42:20]Content-Length: 677 [12:42:20]Content-Type: application/json [12:42:20] [12:42:20]POST finish read [12:42:20]Found Content-Length = 677 [12:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:20]execute_script... [12: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)221299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:20]POST & json_proto [12:42:20]process_json_proto [12:42:20]json parsed OK: [12:42:20]protocol is kg_v1.0 [12:42:20]action value=close_receipt [12:42:20]process_action close_receipt [12:42:20]cmd_close_receipt [12:42:20]MH_GetDate [12:42:20]Write to MH i2c: F0 00 00 DE 14 E1 [12:42:20]Write i2c OK [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: F0 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: F0 09 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: F0 09 00 DE 14 00 2D EF 18 67 21 48 4A 65 9D [12:42:20]GetLastDocTimeStamp 1729687229 [12:42:20]current date 1729687341 [12:42:20]FM_GetShiftState [12:42:20]SAM_PROTO_GetShiftState [12:42:20]wFMCommunicate request_size=4 [12:42:20]MH_SAM_APDU [12:42:20]CAPDU: 80 13 01 00 [12:42:20]Write to MH i2c: E2 08 00 DF 14 80 13 01 00 00 00 00 00 70 [12:42:20]Write i2c OK [12:42:20]MH_I2C_Read... [12:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:20]Read from MH i2c: E2 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 0E 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 0E 00 DF 14 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3B [12:42:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:42:20]wFMCommunicate OK [12:42:20]SAM_PROTO_GetShiftState done [12:42:20]FM_GetShiftState done [12:42:20]opened in 1729643772 [12:42:20]opened+sec_in_day 1729730172 [12:42:20]quantity*price = 30038 [12:42:20]sum+1 = 30039 [12:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 131 23.10.2024 12:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166716 ФПД: 200934084523831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124221&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166716&fm=200934084523831&tin=02508201610067®Number=0000000000091764&sum=30000 [12:42:21]StoreToDocumentArchive [12:42:21]shift 537 fd 166716 [12:42:21]save to /storage/0537/doc_00166716 [12:42:21]save last doc name /storage/0537/doc_00166716 to /storage/kkm_last_doc_name [12:42:21]save OK [12:42:21]Clear old archive folders... [12:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:22]tlvbuf is 01F5EEE0 [12:42:22]SAM_PROTO_ClearQueue [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 09 00 00 [12:42:22]Write to MH i2c: E2 08 00 EC 14 80 09 00 00 00 00 00 00 72 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 EC 14 00 90 00 74 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_ClearQueue done [12:42:22]KKMCreateOFDPacket [12:42:22]OFDProtocolAddRootSTLVToBuf [12:42:22]FM_MakeSignedData [12:42:22]FM_MakeSignedData [12:42:22]SAM_PROTO_SignData [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 01 02 [12:42:22]Write to MH i2c: E2 08 00 ED 14 80 0D 01 02 00 00 00 00 7A [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 ED 14 00 90 00 75 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=255 [12:42:22]MH_SAM_APDU [12:42: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2D EF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8B 02 00 35 04 06 00 B6 [12:42:22]Write to MH i2c: E2 02 01 EE 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2D EF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8B 02 00 35 04 06 00 B6 00 00 BC [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=10 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 02 02 05 BF 9C BB 37 37 [12:42:22]Write to MH i2c: E2 0D 00 EF 14 80 0D 02 02 05 00 BF 9C BB 37 37 00 00 0B [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 03 02 [12:42:22]Write to MH i2c: E2 08 00 F0 14 80 0D 03 02 00 00 00 00 7F [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 F0 14 00 AF 82 57 40 B1 78 5E 37 90 00 06 [12:42:22]RAPDU: AF 82 57 40 B1 78 5E 37 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_SignData done [12:42:22]FM_MakeSignedData done [12:42:22]CreateOFDProtocolMessage [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 11 00 00 [12:42:22]Write to MH i2c: E2 08 00 F1 14 80 11 00 00 00 00 00 00 7F [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 F1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [12:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:22]wFMCommunicate OK [12:42:22]CreateOFDProtocolMessage done [12:42:22]OFDSenderStorePacket 166716 [12:42:22]StoreOFDPacket docnum=166716 [12:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F F9 07 01 96 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2D EF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8B 02 00 35 04 06 00 B6 BF 9C BB 37 37 AF 82 57 40 B1 78 5E 37 [12:42:22]CheckFolder [12:42:22]dirname=/storage/ofd_packets [12:42:22]CheckFolder done [12:42:22]ProducePacketName [12:42:22]name=ofd_packets/00166716 [12:42:22]NVStorageSaveData ofd_packets/00166716 [12:42:22]File name is /storage/ofd_packets/00166716 [12:42:22]Write 301 bytes [12:42:22]NVStorageSaveData done [12:42:22]OFDSenderStorePacket done [12:42:22]KKMCreateOFDPacket done [12:42:22]NVStorageSaveData kkm_last_timestamp [12:42:22]File name is /storage/kkm_last_timestamp [12:42:22]Write 4 bytes [12:42:22]NVStorageSaveData done [12:42:22]ExternCall_PrintAddStr [12:42:22]wPrintStart [12:42:22]Write to MH i2c: 01 00 00 F2 14 06 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 FF 0F 1B [12:42:22]RasterBufferAndPrint [12:42:22]line Счет N : (1)221299 [12:42:22]line ИНН: 02508201610067 [12:42:22]line Контрольно-Кассовый Чек [12:42:22]line ПРОДАЖА [12:42:22]line ТРК (МРК, ГНК) : 13 [12:42:22]line Товар: 2710124130 [12:42:22]line Аи-92-К-5 [12:42:22]line 4.490 * 66.90 [12:42:22]line = 300.38 [12:42:22]line НДС 12% НСП 1% [12:42:22]line > о реализуемом товаре [12:42:22]line ОКРУГЛЕНИЕ: -0.38 [12:42:22]line ИТОГО: 300.00 [12:42:22]line Внесено: 300.00 [12:42:22]line СДАЧА: 0.00 [12:42:22]line НСП 1% : 2.66 [12:42:22]line НДС 12% : 31.90 [12:42:22]line Наличными: 300.00 [12:42:22]line Безнал.: 0.00 [12:42:22]line Место: АЗС № 161 "Партнер Нефть" [12:42:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:42:22]line СНО: Общий режим [12:42:22]line Чек 131 23.10.2024 12:42 [12:42:22]line Смена: 537 ФФД: 1.0 [12:42:22]line ЗНМ: 0300000104 [12:42:22]line РНМ: 0000000000091764 [12:42:22]line Версия ККМ: 001 [12:42:22]line ФМ: 0000000000871759 [12:42:22]line ФД: 166716 [12:42:22]line ФПД: 200934084523831 [12:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124221&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166716&fm=200934084523831&tin=02508201610067®Number=0000000000091764&sum=30000 [12:42:22]OFD Sender: Processing packet 166716 [packets to send 48, broken 47] [12:42:22]ProducePacketName [12:42:22]name=ofd_packets/00166716 [12:42:22]OFD Sender: To server: pG, [12:42:22]CommunicateWithHost lk.salyk.kg:30040 [12:42:22]ConnectInit lk.salyk.kg [12:42:22]written 0, free lines is 4095 [12:42:22]Connected sock=10 [12:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F F9 07 01 96 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2D EF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8B 02 00 35 04 06 00 B6 BF 9C BB 37 37 AF 82 57 40 B1 78 5E 37 [12:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C 2E 47 00 AC 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8B 02 00 F4 03 04 00 95 95 18 67 B6 04 01 00 00 C5 46 A2 53 C0 10 EE 06 [12:42:23]CommunicateWithHost err = 0 [12:42:23]CheckOFDResponse [12:42:23]1017 (14) - 77093643461234 [12:42:23]1041 (16) - 0000000000871759 [12:42:23]1040 (4) - 166716 [12:42:23]1012 (4) - 23.10.2024 06:20 [12:42:23]1206 (1) - 0 [12:42:23]OFD Sender: Remove packet 166716 [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00166716 [12:42:23]NVStorageDeleteData [12:42:23]Write to MH i2c: 01 00 00 1D 15 32 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 BA 0C FF [12:42:23]RasterBufferAndPrint [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]written 0, free lines is 3265 [12:42:23]MH_Cut [12:42:23]Write to MH i2c: D1 01 00 24 15 01 0B [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 24 15 00 0A [12:42:23]Write to MH i2c: 01 00 00 25 15 3A [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]OFD Sender: No OFD packet to send [12:42:24]*** Cut start [12:42:24]*** Partial cut [12:42:24]*** CUTSNS_PIN = 1 [12:42:24]*** CUTSNS_PIN = 0 [12:42:24]*** Brake cut motor [12:42:24]Read from MH i2c: 01 [12:42:24]MH_I2C_Read... [12:42:24]*** Stop cut motor [12:42:24]*** Cut end [12:42:24]Read from MH i2c: 01 07 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [12:42:24]process_action close_receipt done [12:42:24]requested_data is exist [12:42:24]produce_requested_data [12:42:24]requested_item fm.sn is exist - process it [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 11 00 00 [12:42:24]Write to MH i2c: E2 08 00 26 15 80 11 00 00 00 00 00 00 B5 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 26 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [12:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:24]wFMCommunicate OK [12:42:24]requested_item fd.num is exist - process it [12:42:24]SAM_PROTO_GetFieldsCounters [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 13 00 00 [12:42:24]Write to MH i2c: E2 08 00 27 15 80 13 00 00 00 00 00 00 B8 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 27 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetFieldsCounters done [12:42:25]requested_item shift.num is exist - process it [12:42:25]requested_item shift.opened is exist - process it [12:42:25]req_shift_opened [12:42:25]FM_GetShiftState [12:42:25]SAM_PROTO_GetShiftState [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 13 01 00 [12:42:25]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 85 [12:42:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetShiftState done [12:42:25]FM_GetShiftState done [12:42:25]req_shift_opened done [12:42:25]requested_item shift.open_date is exist - process it [12:42:25]req_shift_open_date [12:42:25]req_shift_open_date done [12:42:25]produce_requested_data done [12:42:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166716,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:42:25]process_action_free close_receipt [12:42:25]json_value_free [12:42:25]json_value_free done [12:42:25]process_json_proto returns [12:42:25]Send response to host [12:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166716,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:42:25]free response buf [12:42:25]execute_script done [12:42:25]execute_script returns [12:42:25]free content buf [12:42:25]Sock 8.Close socket [12:42:25]Sock 8.Thread stoped [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:34]accept exits with 9 [12:46:34]New connection [12:46:34]New thread 3067178340 created [12:46:34]Thread 3067034980 joined [12:46:34]Waiting for new connection... [12:46:34] Sock 9.Parse request [12:46:34]Sock 9.Check first char [12:46:34]Sock 9.First char is OK [12:46:34]request: POST /json_proto HTTP/1.0 [12:46:34]Method: POST [12:46:34]URL: /json_proto [12:46:34]Method is POST - this is cgi request [12:46:34]url: /json_proto [12:46:34]query_string will be loaded in cgi processing [12:46:34]execute_cgi json_proto POST (null) [12:46:34]execute_cgi path=json_proto method=POST [12:46:34]POST find Content-Length [12:46:34]Host: 172.17.53.195:8080 [12:46:34]Content-Length: 677 [12:46:34]Content-Type: application/json [12:46:34] [12:46:34]POST finish read [12:46:34]Found Content-Length = 677 [12:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]execute_script... [12:46: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)221301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]POST & json_proto [12:46:34]process_json_proto [12:46:34]json parsed OK: [12:46:34]protocol is kg_v1.0 [12:46:34]action value=close_receipt [12:46:34]process_action close_receipt [12:46:34]cmd_close_receipt [12:46:34]MH_GetDate [12:46:34]Write to MH i2c: F0 00 00 29 15 2D [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 29 15 00 2B F0 18 67 21 48 4A 65 E8 [12:46:34]GetLastDocTimeStamp 1729687341 [12:46:34]current date 1729687595 [12:46:34]FM_GetShiftState [12:46:34]SAM_PROTO_GetShiftState [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 13 01 00 [12:46:34]Write to MH i2c: E2 08 00 2A 15 80 13 01 00 00 00 00 00 BC [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 2A 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 87 [12:46:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_GetShiftState done [12:46:34]FM_GetShiftState done [12:46:34]opened in 1729643772 [12:46:34]opened+sec_in_day 1729730172 [12:46:34]quantity*price = 49974 [12:46:34]sum+1 = 49975 [12:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 132 23.10.2024 12:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166717 ФПД: 114336521385921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166717&fm=114336521385921&tin=02508201610067®Number=0000000000091764&sum=49900 [12:46:35]StoreToDocumentArchive [12:46:35]shift 537 fd 166717 [12:46:35]save to /storage/0537/doc_00166717 [12:46:35]save last doc name /storage/0537/doc_00166717 to /storage/kkm_last_doc_name [12:46:35]save OK [12:46:35]Clear old archive folders... [12:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:35]tlvbuf is 01FB3660 [12:46:35]SAM_PROTO_ClearQueue [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 09 00 00 [12:46:35]Write to MH i2c: E2 08 00 37 15 80 09 00 00 00 00 00 00 BE [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 37 15 00 90 00 C0 [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_ClearQueue done [12:46:35]KKMCreateOFDPacket [12:46:35]OFDProtocolAddRootSTLVToBuf [12:46:35]FM_MakeSignedData [12:46:35]FM_MakeSignedData [12:46:35]SAM_PROTO_SignData [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 01 02 [12:46:35]Write to MH i2c: E2 08 00 38 15 80 0D 01 02 00 00 00 00 C6 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=255 [12:46:35]MH_SAM_APDU [12:46: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2B F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8B 02 00 35 04 06 00 67 [12:46:35]Write to MH i2c: E2 02 01 39 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2B F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8B 02 00 35 04 06 00 67 00 00 A7 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=10 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 02 02 05 FD 0B BD F7 C1 [12:46:36]Write to MH i2c: E2 0D 00 3A 15 80 0D 02 02 05 00 FD 0B BD F7 C1 00 00 50 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 03 02 [12:46:36]Write to MH i2c: E2 08 00 3B 15 80 0D 03 02 00 00 00 00 CB [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 3B 15 00 F2 0C 9D 29 98 91 45 70 90 00 6E [12:46:36]RAPDU: F2 0C 9D 29 98 91 45 70 90 00 [12:46:36]wFMCommunicate OK [12:46:36]SAM_PROTO_SignData done [12:46:36]FM_MakeSignedData done [12:46:36]CreateOFDProtocolMessage [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 11 00 00 [12:46:36]Write to MH i2c: E2 08 00 3C 15 80 11 00 00 00 00 00 00 CB [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 3C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [12:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:36]wFMCommunicate OK [12:46:36]CreateOFDProtocolMessage done [12:46:36]OFDSenderStorePacket 166717 [12:46:36]StoreOFDPacket docnum=166717 [12:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 00 07 01 48 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2B F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8B 02 00 35 04 06 00 67 FD 0B BD F7 C1 F2 0C 9D 29 98 91 45 70 [12:46:36]CheckFolder [12:46:36]dirname=/storage/ofd_packets [12:46:36]CheckFolder done [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00166717 [12:46:36]NVStorageSaveData ofd_packets/00166717 [12:46:36]File name is /storage/ofd_packets/00166717 [12:46:36]Write 301 bytes [12:46:36]NVStorageSaveData done [12:46:36]OFDSenderStorePacket done [12:46:36]KKMCreateOFDPacket done [12:46:36]NVStorageSaveData kkm_last_timestamp [12:46:36]File name is /storage/kkm_last_timestamp [12:46:36]Write 4 bytes [12:46:36]NVStorageSaveData done [12:46:36]ExternCall_PrintAddStr [12:46:36]wPrintStart [12:46:36]Write to MH i2c: 01 00 00 3D 15 52 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [12:46:36]RasterBufferAndPrint [12:46:36]line Счет N : (1)221301 [12:46:36]line ИНН: 02508201610067 [12:46:36]line Контрольно-Кассовый Чек [12:46:36]line ПРОДАЖА [12:46:36]line ТРК (МРК, ГНК) : 43 [12:46:36]line Товар: 2710124130 [12:46:36]line Аи-92-К-5 [12:46:36]line 7.470 * 66.90 [12:46:36]line = 499.74 [12:46:36]line НДС 12% НСП 1% [12:46:36]line > о реализуемом товаре [12:46:36]line ОКРУГЛЕНИЕ: -0.74 [12:46:36]line ИТОГО: 499.00 [12:46:36]line Внесено: 500.00 [12:46:36]line СДАЧА: 1.00 [12:46:36]line НСП 1% : 4.42 [12:46:36]line НДС 12% : 53.07 [12:46:36]line Наличными: 499.00 [12:46:36]line Безнал.: 0.00 [12:46:36]line Место: АЗС № 161 "Партнер Нефть" [12:46:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:36]line СНО: Общий режим [12:46:36]line Чек 132 23.10.2024 12:46 [12:46:36]line Смена: 537 ФФД: 1.0 [12:46:36]line ЗНМ: 0300000104 [12:46:36]line РНМ: 0000000000091764 [12:46:36]line Версия ККМ: 001 [12:46:36]line ФМ: 0000000000871759 [12:46:36]line ФД: 166717 [12:46:36]line ФПД: 114336521385921 [12:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166717&fm=114336521385921&tin=02508201610067®Number=0000000000091764&sum=49900 [12:46:36]OFD Sender: Processing packet 166717 [packets to send 48, broken 47] [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00166717 [12:46:36]OFD Sender: To server: pG, [12:46:36]CommunicateWithHost lk.salyk.kg:30040 [12:46:36]ConnectInit lk.salyk.kg [12:46:36]written 0, free lines is 4095 [12:46:36]Connected sock=8 [12:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 00 07 01 48 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2B F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8B 02 00 35 04 06 00 67 FD 0B BD F7 C1 F2 0C 9D 29 98 91 45 70 [12:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 5D 47 00 C6 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8B 02 00 F4 03 04 00 93 96 18 67 B6 04 01 00 00 D2 EA D5 DA 09 4E EF 2F [12:46:37]CommunicateWithHost err = 0 [12:46:37]CheckOFDResponse [12:46:37]1017 (14) - 77093643461234 [12:46:37]1041 (16) - 0000000000871759 [12:46:37]1040 (4) - 166717 [12:46:37]1012 (4) - 23.10.2024 06:24 [12:46:37]1206 (1) - 0 [12:46:37]OFD Sender: Remove packet 166717 [12:46:37]ProducePacketName [12:46:37]name=ofd_packets/00166717 [12:46:37]NVStorageDeleteData [12:46:37]Write to MH i2c: 01 00 00 68 15 7D [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 C2 0C 52 [12:46:37]RasterBufferAndPrint [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]written 0, free lines is 3275 [12:46:37]MH_Cut [12:46:37]Write to MH i2c: D1 01 00 6F 15 01 56 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 01 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 01 00 6F 15 00 55 [12:46:37]Write to MH i2c: 01 00 00 70 15 85 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]OFD Sender: No OFD packet to send [12:46:38]*** Cut start [12:46:38]*** Partial cut [12:46:38]*** CUTSNS_PIN = 1 [12:46:38]*** CUTSNS_PIN = 0 [12:46:38]*** Brake cut motor [12:46:38]Read from MH i2c: 01 [12:46:38]MH_I2C_Read... [12:46:38]*** Stop cut motor [12:46:38]*** Cut end [12:46:38]Read from MH i2c: 01 07 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 07 00 70 15 00 00 00 00 00 FF 0F 9A [12:46:38]process_action close_receipt done [12:46:38]requested_data is exist [12:46:38]produce_requested_data [12:46:38]requested_item fm.sn is exist - process it [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 11 00 00 [12:46:38]Write to MH i2c: E2 08 00 71 15 80 11 00 00 00 00 00 00 00 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 71 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:38]wFMCommunicate OK [12:46:38]requested_item fd.num is exist - process it [12:46:38]SAM_PROTO_GetFieldsCounters [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 00 00 [12:46:38]Write to MH i2c: E2 08 00 72 15 80 13 00 00 00 00 00 00 03 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 72 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:46:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetFieldsCounters done [12:46:38]requested_item shift.num is exist - process it [12:46:38]requested_item shift.opened is exist - process it [12:46:38]req_shift_opened [12:46:38]FM_GetShiftState [12:46:38]SAM_PROTO_GetShiftState [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 01 00 [12:46:38]Write to MH i2c: E2 08 00 73 15 80 13 01 00 00 00 00 00 05 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 73 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D0 [12:46:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetShiftState done [12:46:38]FM_GetShiftState done [12:46:38]req_shift_opened done [12:46:38]requested_item shift.open_date is exist - process it [12:46:38]req_shift_open_date [12:46:38]req_shift_open_date done [12:46:38]produce_requested_data done [12:46:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166717,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:46:38]process_action_free close_receipt [12:46:38]json_value_free [12:46:38]json_value_free done [12:46:38]process_json_proto returns [12:46:38]Send response to host [12:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166717,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:46:38]free response buf [12:46:38]execute_script done [12:46:38]execute_script returns [12:46:38]free content buf [12:46:38]Sock 9.Close socket [12:46:38]Sock 9.Thread stoped [12:46:42]accept exits with 10 [12:46:42]New connection [12:46:42]New thread 3067034980 created [12:46:42]Thread 3067178340 joined [12:46:42]Waiting for new connection... [12:46:42] Sock 10.Parse request [12:46:42]Sock 10.Check first char [12:46:42]Sock 10.First char is OK [12:46:42]request: POST /json_proto HTTP/1.0 [12:46:42]Method: POST [12:46:42]URL: /json_proto [12:46:42]Method is POST - this is cgi request [12:46:42]url: /json_proto [12:46:42]query_string will be loaded in cgi processing [12:46:42]execute_cgi json_proto POST (null) [12:46:42]execute_cgi path=json_proto method=POST [12:46:42]POST find Content-Length [12:46:42]Host: 172.17.53.195:8080 [12:46:42]Content-Length: 682 [12:46:42]Content-Type: application/json [12:46:42] [12:46:42]POST finish read [12:46:42]Found Content-Length = 682 [12:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:42]execute_script... [12:46:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:42]POST & json_proto [12:46:42]process_json_proto [12:46:42]json parsed OK: [12:46:42]protocol is kg_v1.0 [12:46:42]action value=close_receipt [12:46:42]process_action close_receipt [12:46:42]cmd_close_receipt [12:46:42]MH_GetDate [12:46:42]Write to MH i2c: F0 00 00 74 15 78 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 09 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 09 00 74 15 00 33 F0 18 67 21 48 4A 65 3B [12:46:42]GetLastDocTimeStamp 1729687595 [12:46:42]current date 1729687603 [12:46:42]FM_GetShiftState [12:46:42]SAM_PROTO_GetShiftState [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 13 01 00 [12:46:42]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 0E 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D2 [12:46:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:46:42]wFMCommunicate OK [12:46:42]SAM_PROTO_GetShiftState done [12:46:42]FM_GetShiftState done [12:46:42]opened in 1729643772 [12:46:42]opened+sec_in_day 1729730172 [12:46:42]quantity*price = 100015 [12:46:42]sum+1 = 100017 [12:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 133 23.10.2024 12:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166718 ФПД: 244038130841623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166718&fm=244038130841623&tin=02508201610067®Number=0000000000091764&sum=100000 [12:46:43]StoreToDocumentArchive [12:46:43]shift 537 fd 166718 [12:46:43]save to /storage/0537/doc_00166718 [12:46:43]save last doc name /storage/0537/doc_00166718 to /storage/kkm_last_doc_name [12:46:43]save OK [12:46:43]Clear old archive folders... [12:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:43]tlvbuf is 0200E860 [12:46:43]SAM_PROTO_ClearQueue [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 09 00 00 [12:46:43]Write to MH i2c: E2 08 00 82 15 80 09 00 00 00 00 00 00 09 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 09 00 00... 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 82 15 00 90 00 0B [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]SAM_PROTO_ClearQueue done [12:46:43]KKMCreateOFDPacket [12:46:43]OFDProtocolAddRootSTLVToBuf [12:46:43]FM_MakeSignedData [12:46:43]FM_MakeSignedData [12:46:43]SAM_PROTO_SignData [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 01 02 [12:46:43]Write to MH i2c: E2 08 00 83 15 80 0D 01 02 00 00 00 00 11 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 01 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 83 15 00 90 00 0C [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=255 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 33 F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8B 02 00 35 04 06 00 DD [12:46:43]Write to MH i2c: E2 02 01 84 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 33 F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8B 02 00 35 04 06 00 DD 00 00 8B [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 84 15 00 90 00 0D [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 F3 8E 19 B8 17 [12:46:43]Write to MH i2c: E2 0D 00 85 15 80 0D 02 02 05 00 F3 8E 19 B8 17 00 00 87 [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 85 15 00 90 00 0E [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 86 15 80 0D 03 02 00 00 00 00 16 [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 86 15 00 C5 48 0F C6 29 A9 FE 02 90 00 CB [12:46:43]RAPDU: C5 48 0F C6 29 A9 FE 02 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 87 15 80 11 00 00 00 00 00 00 16 [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 87 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [12:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:43]wFMCommunicate OK [12:46:43]CreateOFDProtocolMessage done [12:46:43]OFDSenderStorePacket 166718 [12:46:43]StoreOFDPacket docnum=166718 [12:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 01 07 01 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 33 F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8B 02 00 35 04 06 00 DD F3 8E 19 B8 17 C5 48 0F C6 29 A9 FE 02 [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/00166718 [12:46:43]NVStorageSaveData ofd_packets/00166718 [12:46:43]File name is /storage/ofd_packets/00166718 [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 88 15 9D [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 88 15 00 00 00 00 00 FF 0F B2 [12:46:43]RasterBufferAndPrint [12:46:43]line Счет N : (1)221300 [12:46:43]line ИНН: 02508201610067 [12:46:43]line Контрольно-Кассовый Чек [12:46:43]line ПРОДАЖА [12:46:43]line ТРК (МРК, ГНК) : 23 [12:46:43]line Товар: 2710124130 [12:46:43]line Аи-92-К-5 [12:46:43]line 14.950 * 66.90 [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 Место: АЗС № 161 "Партнер Нефть" [12:46:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:43]line СНО: Общий режим [12:46:43]line Чек 133 23.10.2024 12:46 [12:46:43]line Смена: 537 ФФД: 1.0 [12:46:43]line ЗНМ: 0300000104 [12:46:43]line РНМ: 0000000000091764 [12:46:43]line Версия ККМ: 001 [12:46:43]line ФМ: 0000000000871759 [12:46:43]line ФД: 166718 [12:46:43]line ФПД: 244038130841623 [12:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166718&fm=244038130841623&tin=02508201610067®Number=0000000000091764&sum=100000 [12:46:43]written 0, free lines is 4095 [12:46:43]OFD Sender: Processing packet 166718 [packets to send 48, broken 47] [12:46:43]ProducePacketName [12:46:43]name=ofd_packets/00166718 [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:44]Connected sock=9 [12:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 01 07 01 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 33 F0 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8B 02 00 35 04 06 00 DD F3 8E 19 B8 17 C5 48 0F C6 29 A9 FE 02 [12:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 56 47 00 67 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8B 02 00 F4 03 04 00 9A 96 18 67 B6 04 01 00 00 01 F0 93 BE 92 36 87 E8 [12:46:44]CommunicateWithHost err = 0 [12:46:44]CheckOFDResponse [12:46:44]1017 (14) - 77093643461234 [12:46:44]1041 (16) - 0000000000871759 [12:46:44]1040 (4) - 166718 [12:46:44]1012 (4) - 23.10.2024 06:24 [12:46:44]1206 (1) - 0 [12:46:44]OFD Sender: Remove packet 166718 [12:46:44]ProducePacketName [12:46:44]name=ofd_packets/00166718 [12:46:44]NVStorageDeleteData [12:46:44]Write to MH i2c: 01 00 00 B3 15 C8 [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 B3 15 00 00 00 00 00 CA 0C A5 [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 3286 [12:46:44]MH_Cut [12:46:44]Write to MH i2c: D1 01 00 BA 15 01 A1 [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 BA 15 00 A0 [12:46:44]Write to MH i2c: 01 00 00 BB 15 D0 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]OFD Sender: No OFD packet to send [12:46:45]*** Cut start [12:46:45]*** Partial cut [12:46:45]*** CUTSNS_PIN = 1 [12:46:45]*** CUTSNS_PIN = 0 [12:46:45]*** 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 BB 15 00 00 00 00 00 FF 0F E5 [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 BC 15 80 11 00 00 00 00 00 00 4B [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 [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 17 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [12:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46: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 BD 15 80 13 00 00 00 00 00 00 4E [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 62 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 62 00 BD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_GetFieldsCounters done [12:46:46]requested_item shift.num is exist - process it [12:46:46]requested_item shift.opened is exist - process it [12:46:46]req_shift_opened [12:46:46]FM_GetShiftState [12:46:46]SAM_PROTO_GetShiftState [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 13 01 00 [12:46:46]Write to MH i2c: E2 08 00 BE 15 80 13 01 00 00 00 00 00 50 [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 BE 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1B [12:46:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_GetShiftState done [12:46:46]FM_GetShiftState done [12:46:46]req_shift_opened done [12:46:46]requested_item shift.open_date is exist - process it [12:46:46]req_shift_open_date [12:46:46]req_shift_open_date done [12:46:46]produce_requested_data done [12:46:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166718,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:46:46]process_action_free close_receipt [12:46:46]json_value_free [12:46:46]json_value_free done [12:46:46]process_json_proto returns [12:46:46]Send response to host [12:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166718,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:46:46]free response buf [12:46:46]execute_script done [12:46:46]execute_script returns [12:46:46]free content buf [12:46:46]Sock 10.Close socket [12:46:46]Sock 10.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:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]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:40]accept exits with 8 [12:51:40]New connection [12:51:40]New thread 3067178340 created [12:51:40]Thread 3067034980 joined [12:51:40]Waiting for new connection... [12:51:40] Sock 8.Parse request [12:51:40]Sock 8.Check first char [12:51:40]Sock 8.First char is OK [12:51:40]request: POST /json_proto HTTP/1.0 [12:51:40]Method: POST [12:51:40]URL: /json_proto [12:51:40]Method is POST - this is cgi request [12:51:40]url: /json_proto [12:51:40]query_string will be loaded in cgi processing [12:51:40]execute_cgi json_proto POST (null) [12:51:40]execute_cgi path=json_proto method=POST [12:51:40]POST find Content-Length [12:51:40]Host: 172.17.53.195:8080 [12:51:40]Content-Length: 675 [12:51:40]Content-Type: application/json [12:51:40] [12:51:40]POST finish read [12:51:40]Found Content-Length = 675 [12:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.490, "sum" : 799.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:40]execute_script... [12:51: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)221302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.490, "sum" : 799.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:40]POST & json_proto [12:51:40]process_json_proto [12:51:40]json parsed OK: [12:51:40]protocol is kg_v1.0 [12:51:40]action value=close_receipt [12:51:40]process_action close_receipt [12:51:40]cmd_close_receipt [12:51:40]MH_GetDate [12:51:40]Write to MH i2c: F0 00 00 BF 15 C3 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: F0 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: F0 09 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: F0 09 00 BF 15 00 5D F1 18 67 21 48 4A 65 B1 [12:51:40]GetLastDocTimeStamp 1729687603 [12:51:40]current date 1729687901 [12:51:40]FM_GetShiftState [12:51:40]SAM_PROTO_GetShiftState [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 13 01 00 [12:51:40]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0E 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1D [12:51:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:51:40]wFMCommunicate OK [12:51:40]SAM_PROTO_GetShiftState done [12:51:40]FM_GetShiftState done [12:51:40]opened in 1729643772 [12:51:40]opened+sec_in_day 1729730172 [12:51:40]quantity*price = 79933 [12:51:40]sum+1 = 79935 [12:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.07 НДС 12% : 84.89 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 134 23.10.2024 12:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166719 ФПД: 229601688674869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166719&fm=229601688674869&tin=02508201610067®Number=0000000000091764&sum=79900 [12:51:42]StoreToDocumentArchive [12:51:42]shift 537 fd 166719 [12:51:42]save to /storage/0537/doc_00166719 [12:51:42]save last doc name /storage/0537/doc_00166719 to /storage/kkm_last_doc_name [12:51:42]save OK [12:51:42]Clear old archive folders... [12:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:42]tlvbuf is B6EDFA60 [12:51:42]SAM_PROTO_ClearQueue [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 09 00 00 [12:51:42]Write to MH i2c: E2 08 00 CD 15 80 09 00 00 00 00 00 00 54 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 CD 15 00 90 00 56 [12:51:42]RAPDU: 90 00 [12:51:42]wFMCommunicate OK [12:51:42]SAM_PROTO_ClearQueue done [12:51:42]KKMCreateOFDPacket [12:51:42]OFDProtocolAddRootSTLVToBuf [12:51:42]FM_MakeSignedData [12:51:42]FM_MakeSignedData [12:51:42]SAM_PROTO_SignData [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 0D 01 02 [12:51:42]Write to MH i2c: E2 08 00 CE 15 80 0D 01 02 00 00 00 00 5C [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [12:51:42]RAPDU: 90 00 [12:51:42]wFMCommunicate OK [12:51:42]wFMCommunicate request_size=255 [12:51:42]MH_SAM_APDU [12:51: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 FA 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 21 00 00 00 00 07 04 06 00 1C 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 86 00 00 00 F4 03 04 00 5D F1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 8B 02 00 35 04 06 00 D0 D2 4F 17 [12:51:42]Write to MH i2c: E2 02 01 CF 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 FA 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 21 00 00 00 00 07 04 06 00 1C 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 86 00 00 00 F4 03 04 00 5D F1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 8B 02 00 35 04 06 00 D0 D2 4F 17 00 00 35 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [12:51:42]RAPDU: 90 00 [12:51:42]wFMCommunicate OK [12:51:42]wFMCommunicate request_size=7 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 0D 02 02 02 E2 35 [12:51:42]Write to MH i2c: E2 0A 00 D0 15 80 0D 02 02 02 00 E2 35 00 00 7A [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [12:51:42]RAPDU: 90 00 [12:51:42]wFMCommunicate OK [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 0D 03 02 [12:51:42]Write to MH i2c: E2 08 00 D1 15 80 0D 03 02 00 00 00 00 61 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 0B 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 0B 00 D1 15 00 05 06 24 2E EA 90 73 1E 90 00 CA [12:51:42]RAPDU: 05 06 24 2E EA 90 73 1E 90 00 [12:51:42]wFMCommunicate OK [12:51:42]SAM_PROTO_SignData done [12:51:42]FM_MakeSignedData done [12:51:42]CreateOFDProtocolMessage [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 11 00 00 [12:51:42]Write to MH i2c: E2 08 00 D2 15 80 11 00 00 00 00 00 00 61 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 17 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 17 00 D2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [12:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:51:42]wFMCommunicate OK [12:51:42]CreateOFDProtocolMessage done [12:51:42]OFDSenderStorePacket 166719 [12:51:42]StoreOFDPacket docnum=166719 [12:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 41 5F 04 01 44 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 21 00 00 00 00 07 04 06 00 1C 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 86 00 00 00 F4 03 04 00 5D F1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 8B 02 00 35 04 06 00 D0 D2 4F 17 E2 35 05 06 24 2E EA 90 73 1E [12:51:42]CheckFolder [12:51:42]dirname=/storage/ofd_packets [12:51:42]CheckFolder done [12:51:42]ProducePacketName [12:51:42]name=ofd_packets/00166719 [12:51:42]NVStorageSaveData ofd_packets/00166719 [12:51:42]File name is /storage/ofd_packets/00166719 [12:51:42]Write 298 bytes [12:51:42]NVStorageSaveData done [12:51:42]OFDSenderStorePacket done [12:51:42]KKMCreateOFDPacket done [12:51:42]NVStorageSaveData kkm_last_timestamp [12:51:42]File name is /storage/kkm_last_timestamp [12:51:42]Write 4 bytes [12:51:42]NVStorageSaveData done [12:51:42]ExternCall_PrintAddStr [12:51:42]wPrintStart [12:51:42]Write to MH i2c: 01 00 00 D3 15 E8 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: 01 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: 01 07 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 FF 0F FD [12:51:42]RasterBufferAndPrint [12:51:42]line Счет N : (1)221302 [12:51:42]line ИНН: 02508201610067 [12:51:42]line Контрольно-Кассовый Чек [12:51:42]line ПРОДАЖА [12:51:42]line ТРК (МРК, ГНК) : 11 [12:51:42]line Товар: 2710194210 [12:51:42]line ДТ-К-5 [12:51:42]line 10.490 * 76.20 [12:51:42]line = 799.34 [12:51:42]line НДС 12% НСП 1% [12:51:42]line > о реализуемом товаре [12:51:42]line ОКРУГЛЕНИЕ: -0.34 [12:51:42]line ИТОГО: 799.00 [12:51:42]line Внесено: 800.00 [12:51:42]line СДАЧА: 1.00 [12:51:42]line НСП 1% : 7.07 [12:51:42]line НДС 12% : 84.89 [12:51:42]line Наличными: 799.00 [12:51:42]line Безнал.: 0.00 [12:51:42]line Место: АЗС № 161 "Партнер Нефть" [12:51:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:51:42]line СНО: Общий режим [12:51:42]line Чек 134 23.10.2024 12:51 [12:51:42]line Смена: 537 ФФД: 1.0 [12:51:42]line ЗНМ: 0300000104 [12:51:42]line РНМ: 0000000000091764 [12:51:42]line Версия ККМ: 001 [12:51:42]line ФМ: 0000000000871759 [12:51:42]line ФД: 166719 [12:51:42]line ФПД: 229601688674869 [12:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166719&fm=229601688674869&tin=02508201610067®Number=0000000000091764&sum=79900 [12:51:42]OFD Sender: Processing packet 166719 [packets to send 48, broken 47] [12:51:42]ProducePacketName [12:51:42]name=ofd_packets/00166719 [12:51:42]OFD Sender: To server: pG, [12:51:42]CommunicateWithHost lk.salyk.kg:30040 [12:51:42]ConnectInit lk.salyk.kg [12:51:42]written 0, free lines is 4095 [12:51:42]Connected sock=11 [12:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 41 5F 04 01 44 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 21 00 00 00 00 07 04 06 00 1C 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 86 00 00 00 F4 03 04 00 5D F1 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 8B 02 00 35 04 06 00 D0 D2 4F 17 E2 35 05 06 24 2E EA 90 73 1E [12:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 16 47 00 E5 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 8B 02 00 F4 03 04 00 C5 97 18 67 B6 04 01 00 00 7B 73 34 BA 6E 65 CC B7 [12:51:43]CommunicateWithHost err = 0 [12:51:43]CheckOFDResponse [12:51:43]1017 (14) - 77093643461234 [12:51:43]1041 (16) - 0000000000871759 [12:51:43]1040 (4) - 166719 [12:51:43]1012 (4) - 23.10.2024 06:29 [12:51:43]1206 (1) - 0 [12:51:43]OFD Sender: Remove packet 166719 [12:51:43]ProducePacketName [12:51:43]name=ofd_packets/00166719 [12:51:43]NVStorageDeleteData [12:51:43]Write to MH i2c: 01 00 00 FE 15 13 [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: 01 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: 01 07 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 BD 0C E3 [12:51:43]RasterBufferAndPrint [12:51:43]line [12:51:43]line [12:51:43]line [12:51:43]line [12:51:43]line [12:51:43]written 0, free lines is 3267 [12:51:43]MH_Cut [12:51:43]Write to MH i2c: D1 01 00 05 16 01 ED [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: D1 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: D1 01 00 [12:51:43]MH_I2C_Read... [12:51:43]Read from MH i2c: D1 01 00 05 16 00 EC [12:51:43]Write to MH i2c: 01 00 00 06 16 1C [12:51:43]Write i2c OK [12:51:43]MH_I2C_Read... [12:51:43]OFD Sender: No OFD packet to send [12:51:44]*** Cut start [12:51:44]*** Partial cut [12:51:44]*** CUTSNS_PIN = 1 [12:51:44]*** CUTSNS_PIN = 0 [12:51:44]*** Brake cut motor [12:51:44]Read from MH i2c: 01 [12:51:44]MH_I2C_Read... [12:51:44]*** Stop cut motor [12:51:44]*** Cut end [12:51:44]Read from MH i2c: 01 07 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [12:51:44]process_action close_receipt done [12:51:44]requested_data is exist [12:51:44]produce_requested_data [12:51:44]requested_item fm.sn is exist - process it [12:51:44]wFMCommunicate request_size=4 [12:51:44]MH_SAM_APDU [12:51:44]CAPDU: 80 11 00 00 [12:51:44]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:44]Read from MH i2c: E2 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 17 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [12:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:51:44]wFMCommunicate OK [12:51:44]requested_item fd.num is exist - process it [12:51:44]SAM_PROTO_GetFieldsCounters [12:51:44]wFMCommunicate request_size=4 [12:51:44]MH_SAM_APDU [12:51:44]CAPDU: 80 13 00 00 [12:51:44]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 62 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [12:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:45]wFMCommunicate OK [12:51:45]SAM_PROTO_GetFieldsCounters done [12:51:45]requested_item shift.num is exist - process it [12:51:45]requested_item shift.opened is exist - process it [12:51:45]req_shift_opened [12:51:45]FM_GetShiftState [12:51:45]SAM_PROTO_GetShiftState [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 13 01 00 [12:51:45]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 0E 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 67 [12:51:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [12:51:45]wFMCommunicate OK [12:51:45]SAM_PROTO_GetShiftState done [12:51:45]FM_GetShiftState done [12:51:45]req_shift_opened done [12:51:45]requested_item shift.open_date is exist - process it [12:51:45]req_shift_open_date [12:51:45]req_shift_open_date done [12:51:45]produce_requested_data done [12:51:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166719,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [12:51:45]process_action_free close_receipt [12:51:45]json_value_free [12:51:45]json_value_free done [12:51:45]process_json_proto returns [12:51:45]Send response to host [12:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166719,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [12:51:45]free response buf [12:51:45]execute_script done [12:51:45]execute_script returns [12:51:45]free content buf [12:51:45]Sock 8.Close socket [12:51:45]Sock 8.Thread stoped [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:32]accept exits with 9 [13:02:32]New connection [13:02:32]New thread 3067034980 created [13:02:32]Thread 3067178340 joined [13:02:32]Waiting for new connection... [13:02:32] Sock 9.Parse request [13:02:32]Sock 9.Check first char [13:02:32]Sock 9.First char is OK [13:02:32]request: POST /json_proto HTTP/1.0 [13:02:32]Method: POST [13:02:32]URL: /json_proto [13:02:32]Method is POST - this is cgi request [13:02:32]url: /json_proto [13:02:32]query_string will be loaded in cgi processing [13:02:32]execute_cgi json_proto POST (null) [13:02:32]execute_cgi path=json_proto method=POST [13:02:32]POST find Content-Length [13:02:32]Host: 172.17.53.195:8080 [13:02:32]Content-Length: 682 [13:02:32]Content-Type: application/json [13:02:32] [13:02:32]POST finish read [13:02:32]Found Content-Length = 682 [13:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.560, "sum" : 1599.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1599.00, "payments": [ { "type": 0, "sum" : 1599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:32]execute_script... [13:02: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)221303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.560, "sum" : 1599.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1599.00, "payments": [ { "type": 0, "sum" : 1599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:32]POST & json_proto [13:02:32]process_json_proto [13:02:32]json parsed OK: [13:02:32]protocol is kg_v1.0 [13:02:32]action value=close_receipt [13:02:32]process_action close_receipt [13:02:32]cmd_close_receipt [13:02:32]MH_GetDate [13:02:32]Write to MH i2c: F0 00 00 0A 16 0F [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: F0 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: F0 09 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: F0 09 00 0A 16 00 E9 F3 18 67 21 48 4A 65 8B [13:02:32]GetLastDocTimeStamp 1729687901 [13:02:32]current date 1729688553 [13:02:32]FM_GetShiftState [13:02:32]SAM_PROTO_GetShiftState [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 13 01 00 [13:02:32]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 0E 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 69 [13:02:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:02:32]wFMCommunicate OK [13:02:32]SAM_PROTO_GetShiftState done [13:02:32]FM_GetShiftState done [13:02:32]opened in 1729643772 [13:02:32]opened+sec_in_day 1729730172 [13:02:32]quantity*price = 159975 [13:02:32]sum+1 = 159976 [13:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 1599.00 Внесено: 1600.00 СДАЧА: 1.00 НСП 1% : 14.16 НДС 12% : 169.88 Наличными: 1599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 135 23.10.2024 13:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166720 ФПД: 165709023433100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130233&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166720&fm=165709023433100&tin=02508201610067®Number=0000000000091764&sum=159900 [13:02:33]StoreToDocumentArchive [13:02:33]shift 537 fd 166720 [13:02:33]save to /storage/0537/doc_00166720 [13:02:33]save last doc name /storage/0537/doc_00166720 to /storage/kkm_last_doc_name [13:02:33]save OK [13:02:33]Clear old archive folders... [13:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:33]tlvbuf is 01FB3A90 [13:02:33]SAM_PROTO_ClearQueue [13:02:33]wFMCommunicate request_size=4 [13:02:33]MH_SAM_APDU [13:02:33]CAPDU: 80 09 00 00 [13:02:33]Write to MH i2c: E2 08 00 18 16 80 09 00 00 00 00 00 00 A0 [13:02:33]Write i2c OK [13:02:33]MH_I2C_Read... [13:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [13:02:34]RAPDU: 90 00 [13:02:34]wFMCommunicate OK [13:02:34]SAM_PROTO_ClearQueue done [13:02:34]KKMCreateOFDPacket [13:02:34]OFDProtocolAddRootSTLVToBuf [13:02:34]FM_MakeSignedData [13:02:34]FM_MakeSignedData [13:02:34]SAM_PROTO_SignData [13:02:34]wFMCommunicate request_size=4 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 0D 01 02 [13:02:34]Write to MH i2c: E2 08 00 19 16 80 0D 01 02 00 00 00 00 A8 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [13:02:34]RAPDU: 90 00 [13:02:34]wFMCommunicate OK [13:02:34]wFMCommunicate request_size=255 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 70 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 70 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 5C 42 00 00 00 00 07 04 06 00 9C 70 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 F3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 8B 02 00 35 04 06 00 96 [13:02:34]Write to MH i2c: E2 02 01 1A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 70 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 70 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 5C 42 00 00 00 00 07 04 06 00 9C 70 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 F3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 8B 02 00 35 04 06 00 96 00 00 61 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]OFD Sender: No OFD packet to send [13:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [13:02:34]RAPDU: 90 00 [13:02:34]wFMCommunicate OK [13:02:34]wFMCommunicate request_size=10 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 0D 02 02 05 B6 23 7A 51 8C [13:02:34]Write to MH i2c: E2 0D 00 1B 16 80 0D 02 02 05 00 B6 23 7A 51 8C 00 00 E5 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [13:02:34]RAPDU: 90 00 [13:02:34]wFMCommunicate OK [13:02:34]wFMCommunicate request_size=4 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 0D 03 02 [13:02:34]Write to MH i2c: E2 08 00 1C 16 80 0D 03 02 00 00 00 00 AD [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 0B 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 0B 00 1C 16 00 17 D3 72 18 07 D1 AD 28 90 00 CF [13:02:34]RAPDU: 17 D3 72 18 07 D1 AD 28 90 00 [13:02:34]wFMCommunicate OK [13:02:34]SAM_PROTO_SignData done [13:02:34]FM_MakeSignedData done [13:02:34]CreateOFDProtocolMessage [13:02:34]wFMCommunicate request_size=4 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 11 00 00 [13:02:34]Write to MH i2c: E2 08 00 1D 16 80 11 00 00 00 00 00 00 AD [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:34]Read from MH i2c: E2 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 17 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: E2 17 00 1D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [13:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:02:34]wFMCommunicate OK [13:02:34]CreateOFDProtocolMessage done [13:02:34]OFDSenderStorePacket 166720 [13:02:34]StoreOFDPacket docnum=166720 [13:02:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 14 07 01 9F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 70 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 70 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 5C 42 00 00 00 00 07 04 06 00 9C 70 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 F3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 8B 02 00 35 04 06 00 96 B6 23 7A 51 8C 17 D3 72 18 07 D1 AD 28 [13:02:34]CheckFolder [13:02:34]dirname=/storage/ofd_packets [13:02:34]CheckFolder done [13:02:34]ProducePacketName [13:02:34]name=ofd_packets/00166720 [13:02:34]NVStorageSaveData ofd_packets/00166720 [13:02:34]File name is /storage/ofd_packets/00166720 [13:02:34]Write 301 bytes [13:02:34]NVStorageSaveData done [13:02:34]OFDSenderStorePacket done [13:02:34]KKMCreateOFDPacket done [13:02:34]NVStorageSaveData kkm_last_timestamp [13:02:34]File name is /storage/kkm_last_timestamp [13:02:34]Write 4 bytes [13:02:34]NVStorageSaveData done [13:02:34]ExternCall_PrintAddStr [13:02:34]wPrintStart [13:02:34]Write to MH i2c: 01 00 00 1E 16 34 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 07 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [13:02:34]RasterBufferAndPrint [13:02:34]line Счет N : (1)221303 [13:02:34]line ИНН: 02508201610067 [13:02:34]line Контрольно-Кассовый Чек [13:02:34]line ПРОДАЖА [13:02:34]line ТРК (МРК, ГНК) : 14 [13:02:34]line Товар: 2710124500 [13:02:34]line Аи-95-К-5 [13:02:34]line 21.560 * 74.20 [13:02:34]line = 1599.75 [13:02:34]line НДС 12% НСП 1% [13:02:34]line > о реализуемом товаре [13:02:34]line ОКРУГЛЕНИЕ: -0.75 [13:02:34]line ИТОГО: 1599.00 [13:02:34]line Внесено: 1600.00 [13:02:34]line СДАЧА: 1.00 [13:02:34]line НСП 1% : 14.16 [13:02:34]line НДС 12% : 169.88 [13:02:34]line Наличными: 1599.00 [13:02:34]line Безнал.: 0.00 [13:02:34]line Место: АЗС № 161 "Партнер Нефть" [13:02:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:02:34]line СНО: Общий режим [13:02:34]line Чек 135 23.10.2024 13:02 [13:02:34]line Смена: 537 ФФД: 1.0 [13:02:34]line ЗНМ: 0300000104 [13:02:34]line РНМ: 0000000000091764 [13:02:34]line Версия ККМ: 001 [13:02:34]line ФМ: 0000000000871759 [13:02:34]line ФД: 166720 [13:02:34]line ФПД: 165709023433100 [13:02:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130233&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166720&fm=165709023433100&tin=02508201610067®Number=0000000000091764&sum=159900 [13:02:34]OFD Sender: Processing packet 166720 [packets to send 48, broken 47] [13:02:34]ProducePacketName [13:02:34]name=ofd_packets/00166720 [13:02:34]OFD Sender: To server: pG, [13:02:34]CommunicateWithHost lk.salyk.kg:30040 [13:02:34]ConnectInit lk.salyk.kg [13:02:34]written 0, free lines is 4095 [13:02:34]Connected sock=10 [13:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 14 07 01 9F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 70 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 70 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 5C 42 00 00 00 00 07 04 06 00 9C 70 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E9 F3 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 8B 02 00 35 04 06 00 96 B6 23 7A 51 8C 17 D3 72 18 07 D1 AD 28 [13:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 CD 47 00 8C 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 8B 02 00 F4 03 04 00 51 9A 18 67 B6 04 01 00 00 DD F1 C5 43 E6 47 DA FD [13:02:35]CommunicateWithHost err = 0 [13:02:35]CheckOFDResponse [13:02:35]1017 (14) - 77093643461234 [13:02:35]1041 (16) - 0000000000871759 [13:02:35]1040 (4) - 166720 [13:02:35]1012 (4) - 23.10.2024 06:40 [13:02:35]1206 (1) - 0 [13:02:35]OFD Sender: Remove packet 166720 [13:02:35]ProducePacketName [13:02:35]name=ofd_packets/00166720 [13:02:35]NVStorageDeleteData [13:02:35]Write to MH i2c: 01 00 00 49 16 5F [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: 01 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: 01 07 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 CB 0C 3D [13:02:35]RasterBufferAndPrint [13:02:35]line [13:02:35]line [13:02:35]line [13:02:35]line [13:02:35]line [13:02:35]written 0, free lines is 3280 [13:02:35]MH_Cut [13:02:35]Write to MH i2c: D1 01 00 50 16 01 38 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: D1 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: D1 01 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: D1 01 00 50 16 00 37 [13:02:35]Write to MH i2c: 01 00 00 51 16 67 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]OFD Sender: No OFD packet to send [13:02:36]*** Cut start [13:02:36]*** Partial cut [13:02:36]*** CUTSNS_PIN = 1 [13:02:36]*** CUTSNS_PIN = 0 [13:02:36]*** Brake cut motor [13:02:36]Read from MH i2c: 01 [13:02:36]MH_I2C_Read... [13:02:36]*** Stop cut motor [13:02:36]*** Cut end [13:02:36]Read from MH i2c: 01 07 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 07 00 51 16 00 00 00 00 00 FF 0F 7C [13:02:36]process_action close_receipt done [13:02:36]requested_data is exist [13:02:36]produce_requested_data [13:02:36]requested_item fm.sn is exist - process it [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 11 00 00 [13:02:36]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [13:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:02:36]wFMCommunicate OK [13:02:36]requested_item fd.num is exist - process it [13:02:36]SAM_PROTO_GetFieldsCounters [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 13 00 00 [13:02:36]Write to MH i2c: E2 08 00 53 16 80 13 00 00 00 00 00 00 E5 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 62 00 [13:02:36]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 62 00 53 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:37]wFMCommunicate OK [13:02:37]SAM_PROTO_GetFieldsCounters done [13:02:37]requested_item shift.num is exist - process it [13:02:37]requested_item shift.opened is exist - process it [13:02:37]req_shift_opened [13:02:37]FM_GetShiftState [13:02:37]SAM_PROTO_GetShiftState [13:02:37]wFMCommunicate request_size=4 [13:02:37]MH_SAM_APDU [13:02:37]CAPDU: 80 13 01 00 [13:02:37]Write to MH i2c: E2 08 00 54 16 80 13 01 00 00 00 00 00 E7 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:37]Read from MH i2c: E2 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 0E 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 0E 00 54 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B2 [13:02:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:02:37]wFMCommunicate OK [13:02:37]SAM_PROTO_GetShiftState done [13:02:37]FM_GetShiftState done [13:02:37]req_shift_opened done [13:02:37]requested_item shift.open_date is exist - process it [13:02:37]req_shift_open_date [13:02:37]req_shift_open_date done [13:02:37]produce_requested_data done [13:02:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166720,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:02:37]process_action_free close_receipt [13:02:37]json_value_free [13:02:37]json_value_free done [13:02:37]process_json_proto returns [13:02:37]Send response to host [13:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166720,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:02:37]free response buf [13:02:37]execute_script done [13:02:37]execute_script returns [13:02:37]free content buf [13:02:37]Sock 9.Close socket [13:02:37]Sock 9.Thread stoped [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]accept exits with 8 [13:05:35]New connection [13:05:35]New thread 3067178340 created [13:05:35]Thread 3067034980 joined [13:05:35]Waiting for new connection... [13:05:35] Sock 8.Parse request [13:05:35]Sock 8.Check first char [13:05:35]Sock 8.First char is OK [13:05:35]request: POST /json_proto HTTP/1.0 [13:05:35]Method: POST [13:05:35]URL: /json_proto [13:05:35]Method is POST - this is cgi request [13:05:35]url: /json_proto [13:05:35]query_string will be loaded in cgi processing [13:05:35]execute_cgi json_proto POST (null) [13:05:35]execute_cgi path=json_proto method=POST [13:05:35]POST find Content-Length [13:05:35]Host: 172.17.53.195:8080 [13:05:35]Content-Length: 677 [13:05:35]Content-Type: application/json [13:05:35] [13:05:35]POST finish read [13:05:35]Found Content-Length = 677 [13:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:35]execute_script... [13:05: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)221304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:35]POST & json_proto [13:05:35]process_json_proto [13:05:35]json parsed OK: [13:05:35]protocol is kg_v1.0 [13:05:35]action value=close_receipt [13:05:35]process_action close_receipt [13:05:35]cmd_close_receipt [13:05:35]MH_GetDate [13:05:35]Write to MH i2c: F0 00 00 55 16 5A [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 09 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 09 00 55 16 00 A0 F4 18 67 21 48 4A 65 8E [13:05:35]GetLastDocTimeStamp 1729688553 [13:05:35]current date 1729688736 [13:05:35]FM_GetShiftState [13:05:35]SAM_PROTO_GetShiftState [13:05:35]wFMCommunicate request_size=4 [13:05:35]MH_SAM_APDU [13:05:35]CAPDU: 80 13 01 00 [13:05:35]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:35]Read from MH i2c: E2 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 0E 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B4 [13:05:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:05:35]wFMCommunicate OK [13:05:35]SAM_PROTO_GetShiftState done [13:05:35]FM_GetShiftState done [13:05:35]opened in 1729643772 [13:05:35]opened+sec_in_day 1729730172 [13:05:35]quantity*price = 50010 [13:05:35]sum+1 = 50012 [13:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 136 23.10.2024 13:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166721 ФПД: 63481495440086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166721&fm=63481495440086&tin=02508201610067®Number=0000000000091764&sum=50000 [13:05:36]StoreToDocumentArchive [13:05:36]shift 537 fd 166721 [13:05:36]save to /storage/0537/doc_00166721 [13:05:36]save last doc name /storage/0537/doc_00166721 to /storage/kkm_last_doc_name [13:05:36]save OK [13:05:36]Clear old archive folders... [13:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:36]tlvbuf is 01F5F160 [13:05:36]SAM_PROTO_ClearQueue [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 09 00 00 [13:05:36]Write to MH i2c: E2 08 00 63 16 80 09 00 00 00 00 00 00 EB [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_ClearQueue done [13:05:36]KKMCreateOFDPacket [13:05:36]OFDProtocolAddRootSTLVToBuf [13:05:36]FM_MakeSignedData [13:05:36]FM_MakeSignedData [13:05:36]SAM_PROTO_SignData [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 01 02 [13:05:36]Write to MH i2c: E2 08 00 64 16 80 0D 01 02 00 00 00 00 F3 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=255 [13:05:36]MH_SAM_APDU [13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 8B 02 00 35 04 06 00 39 [13:05:36]Write to MH i2c: E2 02 01 65 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 8B 02 00 35 04 06 00 39 00 00 1E [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=10 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 02 02 05 BC 6F FC 4A D6 [13:05:36]Write to MH i2c: E2 0D 00 66 16 80 0D 02 02 05 00 BC 6F FC 4A D6 00 00 47 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 03 02 [13:05:36]Write to MH i2c: E2 08 00 67 16 80 0D 03 02 00 00 00 00 F8 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0B 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0B 00 67 16 00 06 24 6D AF 90 BD E4 E1 90 00 51 [13:05:36]RAPDU: 06 24 6D AF 90 BD E4 E1 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_SignData done [13:05:36]FM_MakeSignedData done [13:05:36]CreateOFDProtocolMessage [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 11 00 00 [13:05:36]Write to MH i2c: E2 08 00 68 16 80 11 00 00 00 00 00 00 F8 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 68 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [13:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:36]wFMCommunicate OK [13:05:36]CreateOFDProtocolMessage done [13:05:36]OFDSenderStorePacket 166721 [13:05:36]StoreOFDPacket docnum=166721 [13:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 5D 07 01 62 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 8B 02 00 35 04 06 00 39 BC 6F FC 4A D6 06 24 6D AF 90 BD E4 E1 [13:05:36]CheckFolder [13:05:36]dirname=/storage/ofd_packets [13:05:36]CheckFolder done [13:05:36]ProducePacketName [13:05:36]name=ofd_packets/00166721 [13:05:36]NVStorageSaveData ofd_packets/00166721 [13:05:36]File name is /storage/ofd_packets/00166721 [13:05:36]Write 301 bytes [13:05:36]NVStorageSaveData done [13:05:36]OFDSenderStorePacket done [13:05:36]KKMCreateOFDPacket done [13:05:36]NVStorageSaveData kkm_last_timestamp [13:05:36]File name is /storage/kkm_last_timestamp [13:05:36]Write 4 bytes [13:05:36]NVStorageSaveData done [13:05:36]ExternCall_PrintAddStr [13:05:36]wPrintStart [13:05:36]Write to MH i2c: 01 00 00 69 16 7F [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 FF 0F 94 [13:05:36]RasterBufferAndPrint [13:05:36]line Счет N : (1)221304 [13:05:36]line ИНН: 02508201610067 [13:05:36]line Контрольно-Кассовый Чек [13:05:36]line ПРОДАЖА [13:05:36]line ТРК (МРК, ГНК) : 34 [13:05:36]line Товар: 2710124500 [13:05:36]line Аи-95-К-5 [13:05:36]line 6.740 * 74.20 [13:05:36]line = 500.11 [13:05:36]line НДС 12% НСП 1% [13:05:36]line > о реализуемом товаре [13:05:36]line ОКРУГЛЕНИЕ: -0.11 [13:05:36]line ИТОГО: 500.00 [13:05:36]line Внесено: 500.00 [13:05:36]line СДАЧА: 0.00 [13:05:36]line НСП 1% : 4.43 [13:05:36]line НДС 12% : 53.11 [13:05:36]line Наличными: 500.00 [13:05:36]line Безнал.: 0.00 [13:05:36]line Место: АЗС № 161 "Партнер Нефть" [13:05:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:05:36]line СНО: Общий режим [13:05:36]line Чек 136 23.10.2024 13:05 [13:05:36]line Смена: 537 ФФД: 1.0 [13:05:36]line ЗНМ: 0300000104 [13:05:36]line РНМ: 0000000000091764 [13:05:36]line Версия ККМ: 001 [13:05:36]line ФМ: 0000000000871759 [13:05:36]line ФД: 166721 [13:05:36]line ФПД: 63481495440086 [13:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166721&fm=63481495440086&tin=02508201610067®Number=0000000000091764&sum=50000 [13:05:37]OFD Sender: Processing packet 166721 [packets to send 48, broken 47] [13:05:37]ProducePacketName [13:05:37]name=ofd_packets/00166721 [13:05:37]OFD Sender: To server: pG, [13:05:37]CommunicateWithHost lk.salyk.kg:30040 [13:05:37]ConnectInit lk.salyk.kg [13:05:37]written 0, free lines is 4095 [13:05:37]Connected sock=10 [13: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 31 37 35 39 0F 01 00 00 C2 5D 07 01 62 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 8B 02 00 35 04 06 00 39 BC 6F FC 4A D6 06 24 6D AF 90 BD E4 E1 [13:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E6 3B 47 00 22 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 8B 02 00 F4 03 04 00 07 9B 18 67 B6 04 01 00 00 22 61 44 67 71 B7 60 95 [13:05:37]CommunicateWithHost err = 0 [13:05:37]CheckOFDResponse [13:05:37]1017 (14) - 77093643461234 [13:05:37]1041 (16) - 0000000000871759 [13:05:37]1040 (4) - 166721 [13:05:37]1012 (4) - 23.10.2024 06:43 [13:05:37]1206 (1) - 0 [13:05:37]OFD Sender: Remove packet 166721 [13:05:37]ProducePacketName [13:05:37]name=ofd_packets/00166721 [13:05:37]NVStorageDeleteData [13:05:37]Write to MH i2c: 01 00 00 94 16 AA [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 CB 0C 88 [13:05:37]RasterBufferAndPrint [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]written 0, free lines is 3281 [13:05:37]MH_Cut [13:05:37]Write to MH i2c: D1 01 00 9B 16 01 83 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 01 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 01 00 9B 16 00 82 [13:05:37]Write to MH i2c: 01 00 00 9C 16 B2 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:38]OFD Sender: No OFD packet to send [13:05:38]*** Cut start [13:05:38]*** Partial cut [13:05:38]*** CUTSNS_PIN = 1 [13:05:38]*** CUTSNS_PIN = 0 [13:05:38]*** Brake cut motor [13:05:39]Read from MH i2c: 01 [13:05:39]MH_I2C_Read... [13:05:39]*** Stop cut motor [13:05:39]*** Cut end [13:05:39]Read from MH i2c: 01 07 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 FF 0F C7 [13:05:39]process_action close_receipt done [13:05:39]requested_data is exist [13:05:39]produce_requested_data [13:05:39]requested_item fm.sn is exist - process it [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 11 00 00 [13:05:39]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 17 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [13:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:39]wFMCommunicate OK [13:05:39]requested_item fd.num is exist - process it [13:05:39]SAM_PROTO_GetFieldsCounters [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 13 00 00 [13:05:39]Write to MH i2c: E2 08 00 9E 16 80 13 00 00 00 00 00 00 30 [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 62 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 62 00 9E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [13:05:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:39]wFMCommunicate OK [13:05:39]SAM_PROTO_GetFieldsCounters done [13:05:39]requested_item shift.num is exist - process it [13:05:39]requested_item shift.opened is exist - process it [13:05:39]req_shift_opened [13:05:39]FM_GetShiftState [13:05:39]SAM_PROTO_GetShiftState [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 13 01 00 [13:05:39]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:39]Read from MH i2c: E2 0E 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FD [13:05:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:05:39]wFMCommunicate OK [13:05:39]SAM_PROTO_GetShiftState done [13:05:39]FM_GetShiftState done [13:05:39]req_shift_opened done [13:05:39]requested_item shift.open_date is exist - process it [13:05:39]req_shift_open_date [13:05:39]req_shift_open_date done [13:05:39]produce_requested_data done [13:05:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166721,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:05:39]process_action_free close_receipt [13:05:39]json_value_free [13:05:39]json_value_free done [13:05:39]process_json_proto returns [13:05:39]Send response to host [13:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166721,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:05:39]free response buf [13:05:39]execute_script done [13:05:39]execute_script returns [13:05:39]free content buf [13:05:39]Sock 8.Close socket [13:05:39]Sock 8.Thread stoped [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:40]accept exits with 9 [13:06:40]New connection [13:06:40]New thread 3067034980 created [13:06:40]Thread 3067178340 joined [13:06:40]Waiting for new connection... [13:06:40] Sock 9.Parse request [13:06:40]Sock 9.Check first char [13:06:40]Sock 9.First char is OK [13:06:40]request: POST /json_proto HTTP/1.0 [13:06:40]Method: POST [13:06:40]URL: /json_proto [13:06:40]Method is POST - this is cgi request [13:06:40]url: /json_proto [13:06:40]query_string will be loaded in cgi processing [13:06:40]execute_cgi json_proto POST (null) [13:06:40]execute_cgi path=json_proto method=POST [13:06:40]POST find Content-Length [13:06:40]Host: 172.17.53.195:8080 [13:06:40]Content-Length: 677 [13:06:40]Content-Type: application/json [13:06:40] [13:06:40]POST finish read [13:06:40]Found Content-Length = 677 [13:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:40]execute_script... [13:06:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:40]POST & json_proto [13:06:40]process_json_proto [13:06:40]json parsed OK: [13:06:40]protocol is kg_v1.0 [13:06:40]action value=close_receipt [13:06:40]process_action close_receipt [13:06:40]cmd_close_receipt [13:06:40]MH_GetDate [13:06:40]Write to MH i2c: F0 00 00 A0 16 A5 [13:06:40]Write i2c OK [13:06:40]MH_I2C_Read... [13:06:40]Read from MH i2c: F0 [13:06:40]MH_I2C_Read... [13:06:40]Read from MH i2c: F0 09 00 [13:06:40]MH_I2C_Read... [13:06:40]Read from MH i2c: F0 09 00 A0 16 00 E2 F4 18 67 21 48 4A 65 1B [13:06:41]GetLastDocTimeStamp 1729688736 [13:06:41]current date 1729688802 [13:06:41]FM_GetShiftState [13:06:41]SAM_PROTO_GetShiftState [13:06:41]wFMCommunicate request_size=4 [13:06:41]MH_SAM_APDU [13:06:41]CAPDU: 80 13 01 00 [13:06:41]Write to MH i2c: E2 08 00 A1 16 80 13 01 00 00 00 00 00 34 [13:06:41]Write i2c OK [13:06:41]MH_I2C_Read... [13:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:41]Read from MH i2c: E2 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: E2 0E 00 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: E2 0E 00 A1 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FF [13:06:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:06:41]wFMCommunicate OK [13:06:41]SAM_PROTO_GetShiftState done [13:06:41]FM_GetShiftState done [13:06:41]opened in 1729643772 [13:06:41]opened+sec_in_day 1729730172 [13:06:41]quantity*price = 49974 [13:06:41]sum+1 = 49975 [13:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 137 23.10.2024 13:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166722 ФПД: 189211353954041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166722&fm=189211353954041&tin=02508201610067®Number=0000000000091764&sum=49900 [13:06:42]StoreToDocumentArchive [13:06:42]shift 537 fd 166722 [13:06:42]save to /storage/0537/doc_00166722 [13:06:42]save last doc name /storage/0537/doc_00166722 to /storage/kkm_last_doc_name [13:06:42]save OK [13:06:42]Clear old archive folders... [13:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:42]tlvbuf is B6EDF770 [13:06:42]SAM_PROTO_ClearQueue [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 09 00 00 [13:06:42]Write to MH i2c: E2 08 00 AE 16 80 09 00 00 00 00 00 00 36 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_ClearQueue done [13:06:42]KKMCreateOFDPacket [13:06:42]OFDProtocolAddRootSTLVToBuf [13:06:42]FM_MakeSignedData [13:06:42]FM_MakeSignedData [13:06:42]SAM_PROTO_SignData [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 01 02 [13:06:42]Write to MH i2c: E2 08 00 AF 16 80 0D 01 02 00 00 00 00 3E [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=255 [13:06:42]MH_SAM_APDU [13:06: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 8B 02 00 35 04 06 00 AC [13:06:42]Write to MH i2c: E2 02 01 B0 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 8B 02 00 35 04 06 00 AC 00 00 29 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=10 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 02 02 05 16 33 8A 36 F9 [13:06:42]Write to MH i2c: E2 0D 00 B1 16 80 0D 02 02 05 00 16 33 8A 36 F9 00 00 4D [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 03 02 [13:06:42]Write to MH i2c: E2 08 00 B2 16 80 0D 03 02 00 00 00 00 43 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0B 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0B 00 B2 16 00 1F 3F 3E 97 1C 7F 50 3C 90 00 9E [13:06:42]RAPDU: 1F 3F 3E 97 1C 7F 50 3C 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_SignData done [13:06:42]FM_MakeSignedData done [13:06:42]CreateOFDProtocolMessage [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 11 00 00 [13:06:42]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 17 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 17 00 B3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [13:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:42]wFMCommunicate OK [13:06:42]CreateOFDProtocolMessage done [13:06:42]OFDSenderStorePacket 166722 [13:06:42]StoreOFDPacket docnum=166722 [13:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 5C 07 01 BE 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 8B 02 00 35 04 06 00 AC 16 33 8A 36 F9 1F 3F 3E 97 1C 7F 50 3C [13:06:42]CheckFolder [13:06:42]dirname=/storage/ofd_packets [13:06:42]CheckFolder done [13:06:42]ProducePacketName [13:06:42]name=ofd_packets/00166722 [13:06:42]NVStorageSaveData ofd_packets/00166722 [13:06:42]File name is /storage/ofd_packets/00166722 [13:06:42]Write 301 bytes [13:06:42]NVStorageSaveData done [13:06:42]OFDSenderStorePacket done [13:06:42]KKMCreateOFDPacket done [13:06:42]NVStorageSaveData kkm_last_timestamp [13:06:42]File name is /storage/kkm_last_timestamp [13:06:42]Write 4 bytes [13:06:42]NVStorageSaveData done [13:06:42]ExternCall_PrintAddStr [13:06:42]wPrintStart [13:06:42]Write to MH i2c: 01 00 00 B4 16 CA [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 FF 0F DF [13:06:42]RasterBufferAndPrint [13:06:42]line Счет N : (1)221305 [13:06:42]line ИНН: 02508201610067 [13:06:42]line Контрольно-Кассовый Чек [13:06:42]line ПРОДАЖА [13:06:42]line ТРК (МРК, ГНК) : 13 [13:06:42]line Товар: 2710124130 [13:06:42]line Аи-92-К-5 [13:06:42]line 7.470 * 66.90 [13:06:42]line = 499.74 [13:06:42]line НДС 12% НСП 1% [13:06:42]line > о реализуемом товаре [13:06:42]line ОКРУГЛЕНИЕ: -0.74 [13:06:42]line ИТОГО: 499.00 [13:06:42]line Внесено: 500.00 [13:06:42]line СДАЧА: 1.00 [13:06:42]line НСП 1% : 4.42 [13:06:42]line НДС 12% : 53.07 [13:06:42]line Наличными: 499.00 [13:06:42]line Безнал.: 0.00 [13:06:42]line Место: АЗС № 161 "Партнер Нефть" [13:06:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:06:42]line СНО: Общий режим [13:06:42]line Чек 137 23.10.2024 13:06 [13:06:42]line Смена: 537 ФФД: 1.0 [13:06:42]line ЗНМ: 0300000104 [13:06:42]line РНМ: 0000000000091764 [13:06:42]line Версия ККМ: 001 [13:06:42]line ФМ: 0000000000871759 [13:06:42]line ФД: 166722 [13:06:42]line ФПД: 189211353954041 [13:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166722&fm=189211353954041&tin=02508201610067®Number=0000000000091764&sum=49900 [13:06:43]OFD Sender: Processing packet 166722 [packets to send 48, broken 47] [13:06:43]ProducePacketName [13:06:43]name=ofd_packets/00166722 [13:06:43]OFD Sender: To server: pG, [13:06:43]CommunicateWithHost lk.salyk.kg:30040 [13:06:43]ConnectInit lk.salyk.kg [13:06:43]written 0, free lines is 4095 [13:06:43]Connected sock=10 [13:06:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 5C 07 01 BE 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 F4 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 8B 02 00 35 04 06 00 AC 16 33 8A 36 F9 1F 3F 3E 97 1C 7F 50 3C [13:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E 31 47 00 5B 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 8B 02 00 F4 03 04 00 49 9B 18 67 B6 04 01 00 00 38 25 20 F5 B7 B1 AC F8 [13:06:43]CommunicateWithHost err = 0 [13:06:43]CheckOFDResponse [13:06:43]1017 (14) - 77093643461234 [13:06:43]1041 (16) - 0000000000871759 [13:06:43]1040 (4) - 166722 [13:06:43]1012 (4) - 23.10.2024 06:44 [13:06:43]1206 (1) - 0 [13:06:43]OFD Sender: Remove packet 166722 [13:06:43]ProducePacketName [13:06:43]name=ofd_packets/00166722 [13:06:43]NVStorageDeleteData [13:06:43]Write to MH i2c: 01 00 00 DF 16 F5 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 07 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 C2 0C CA [13:06:43]RasterBufferAndPrint [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]written 0, free lines is 3275 [13:06:43]MH_Cut [13:06:43]Write to MH i2c: D1 01 00 E6 16 01 CE [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 01 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 01 00 E6 16 00 CD [13:06:43]Write to MH i2c: 01 00 00 E7 16 FD [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]OFD Sender: No OFD packet to send [13:06:44]*** Cut start [13:06:44]*** Partial cut [13:06:44]*** CUTSNS_PIN = 1 [13:06:44]*** CUTSNS_PIN = 0 [13:06:44]*** Brake cut motor [13:06:45]Read from MH i2c: 01 [13:06:45]MH_I2C_Read... [13:06:45]*** Stop cut motor [13:06:45]*** Cut end [13:06:45]Read from MH i2c: 01 07 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [13:06:45]process_action close_receipt done [13:06:45]requested_data is exist [13:06:45]produce_requested_data [13:06:45]requested_item fm.sn is exist - process it [13:06:45]wFMCommunicate request_size=4 [13:06:45]MH_SAM_APDU [13:06:45]CAPDU: 80 11 00 00 [13:06:45]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:45]Read from MH i2c: E2 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 17 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [13:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:45]wFMCommunicate OK [13:06:45]requested_item fd.num is exist - process it [13:06:45]SAM_PROTO_GetFieldsCounters [13:06:45]wFMCommunicate request_size=4 [13:06:45]MH_SAM_APDU [13:06:45]CAPDU: 80 13 00 00 [13:06:45]Write to MH i2c: E2 08 00 E9 16 80 13 00 00 00 00 00 00 7B [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:45]Read from MH i2c: E2 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 62 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 62 00 E9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [13:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:45]wFMCommunicate OK [13:06:45]SAM_PROTO_GetFieldsCounters done [13:06:45]requested_item shift.num is exist - process it [13:06:45]requested_item shift.opened is exist - process it [13:06:45]req_shift_opened [13:06:45]FM_GetShiftState [13:06:45]SAM_PROTO_GetShiftState [13:06:45]wFMCommunicate request_size=4 [13:06:45]MH_SAM_APDU [13:06:45]CAPDU: 80 13 01 00 [13:06:45]Write to MH i2c: E2 08 00 EA 16 80 13 01 00 00 00 00 00 7D [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:45]Read from MH i2c: E2 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 0E 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: E2 0E 00 EA 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 48 [13:06:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:06:45]wFMCommunicate OK [13:06:45]SAM_PROTO_GetShiftState done [13:06:45]FM_GetShiftState done [13:06:45]req_shift_opened done [13:06:45]requested_item shift.open_date is exist - process it [13:06:45]req_shift_open_date [13:06:45]req_shift_open_date done [13:06:45]produce_requested_data done [13:06:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166722,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:06:45]process_action_free close_receipt [13:06:45]json_value_free [13:06:45]json_value_free done [13:06:45]process_json_proto returns [13:06:45]Send response to host [13:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166722,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:06:45]free response buf [13:06:45]execute_script done [13:06:45]execute_script returns [13:06:45]free content buf [13:06:45]Sock 9.Close socket [13:06:45]Sock 9.Thread stoped [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]accept exits with 8 [13:08:28]New connection [13:08:28]New thread 3067178340 created [13:08:28]Thread 3067034980 joined [13:08:28]Waiting for new connection... [13:08:28] Sock 8.Parse request [13:08:28]Sock 8.Check first char [13:08:28]Sock 8.First char is OK [13:08:28]request: POST /json_proto HTTP/1.0 [13:08:28]Method: POST [13:08:28]URL: /json_proto [13:08:28]Method is POST - this is cgi request [13:08:28]url: /json_proto [13:08:28]query_string will be loaded in cgi processing [13:08:28]execute_cgi json_proto POST (null) [13:08:28]execute_cgi path=json_proto method=POST [13:08:28]POST find Content-Length [13:08:28]Host: 172.17.53.195:8080 [13:08:28]Content-Length: 679 [13:08:28]Content-Type: application/json [13:08:28] [13:08:28]POST finish read [13:08:28]Found Content-Length = 679 [13:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:28]execute_script... [13:08: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)221306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:28]POST & json_proto [13:08:28]process_json_proto [13:08:28]json parsed OK: [13:08:28]protocol is kg_v1.0 [13:08:28]action value=close_receipt [13:08:28]process_action close_receipt [13:08:28]cmd_close_receipt [13:08:28]MH_GetDate [13:08:28]Write to MH i2c: F0 00 00 EB 16 F0 [13:08:28]Write i2c OK [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 09 00 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 09 00 EB 16 00 4D F5 18 67 21 48 4A 65 D2 [13:08:28]GetLastDocTimeStamp 1729688802 [13:08:28]current date 1729688909 [13:08:28]FM_GetShiftState [13:08:28]SAM_PROTO_GetShiftState [13:08:28]wFMCommunicate request_size=4 [13:08:28]MH_SAM_APDU [13:08:28]CAPDU: 80 13 01 00 [13:08:28]Write to MH i2c: E2 08 00 EC 16 80 13 01 00 00 00 00 00 7F [13:08:28]Write i2c OK [13:08:28]MH_I2C_Read... [13:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:28]Read from MH i2c: E2 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: E2 0E 00 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: E2 0E 00 EC 16 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4A [13:08:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:08:28]wFMCommunicate OK [13:08:28]SAM_PROTO_GetShiftState done [13:08:28]FM_GetShiftState done [13:08:28]opened in 1729643772 [13:08:28]opened+sec_in_day 1729730172 [13:08:28]quantity*price = 120015 [13:08:28]sum+1 = 120016 [13:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 138 23.10.2024 13:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166723 ФПД: 58921020210116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166723&fm=58921020210116&tin=02508201610067®Number=0000000000091764&sum=120000 [13:08:29]StoreToDocumentArchive [13:08:29]shift 537 fd 166723 [13:08:29]save to /storage/0537/doc_00166723 [13:08:29]save last doc name /storage/0537/doc_00166723 to /storage/kkm_last_doc_name [13:08:29]save OK [13:08:29]Clear old archive folders... [13:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:29]tlvbuf is 01FC7210 [13:08:29]SAM_PROTO_ClearQueue [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 09 00 00 [13:08:29]Write to MH i2c: E2 08 00 F9 16 80 09 00 00 00 00 00 00 81 [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]SAM_PROTO_ClearQueue done [13:08:29]KKMCreateOFDPacket [13:08:29]OFDProtocolAddRootSTLVToBuf [13:08:29]FM_MakeSignedData [13:08:29]FM_MakeSignedData [13:08:29]SAM_PROTO_SignData [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 0D 01 02 [13:08:29]Write to MH i2c: E2 08 00 FA 16 80 0D 01 02 00 00 00 00 89 [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]wFMCommunicate request_size=255 [13:08:29]MH_SAM_APDU [13:08: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4D F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 8B 02 00 35 04 06 00 35 96 9E 7A [13:08:30]Write to MH i2c: E2 02 01 FB 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4D F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 8B 02 00 35 04 06 00 35 96 9E 7A 00 00 9C [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [13:08:30]RAPDU: 90 00 [13:08:30]wFMCommunicate OK [13:08:30]wFMCommunicate request_size=7 [13:08:30]MH_SAM_APDU [13:08:30]CAPDU: 80 0D 02 02 02 BB C4 [13:08:30]Write to MH i2c: E2 0A 00 FC 16 80 0D 02 02 02 00 BB C4 00 00 0F [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [13:08:30]RAPDU: 90 00 [13:08:30]wFMCommunicate OK [13:08:30]wFMCommunicate request_size=4 [13:08:30]MH_SAM_APDU [13:08:30]CAPDU: 80 0D 03 02 [13:08:30]Write to MH i2c: E2 08 00 FD 16 80 0D 03 02 00 00 00 00 8E [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 0B 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 0B 00 FD 16 00 57 2B 86 8A 20 04 45 FD 90 00 87 [13:08:30]RAPDU: 57 2B 86 8A 20 04 45 FD 90 00 [13:08:30]wFMCommunicate OK [13:08:30]SAM_PROTO_SignData done [13:08:30]FM_MakeSignedData done [13:08:30]CreateOFDProtocolMessage [13:08:30]wFMCommunicate request_size=4 [13:08:30]MH_SAM_APDU [13:08:30]CAPDU: 80 11 00 00 [13:08:30]Write to MH i2c: E2 08 00 FE 16 80 11 00 00 00 00 00 00 8E [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 17 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 17 00 FE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [13:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:30]wFMCommunicate OK [13:08:30]CreateOFDProtocolMessage done [13:08:30]OFDSenderStorePacket 166723 [13:08:30]StoreOFDPacket docnum=166723 [13:08:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AF 5C 04 01 8B 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8A 00 00 00 F4 03 04 00 4D F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 8B 02 00 35 04 06 00 35 96 9E 7A BB C4 57 2B 86 8A 20 04 45 FD [13:08:30]CheckFolder [13:08:30]dirname=/storage/ofd_packets [13:08:30]CheckFolder done [13:08:30]ProducePacketName [13:08:30]name=ofd_packets/00166723 [13:08:30]NVStorageSaveData ofd_packets/00166723 [13:08:30]File name is /storage/ofd_packets/00166723 [13:08:30]Write 298 bytes [13:08:30]NVStorageSaveData done [13:08:30]OFDSenderStorePacket done [13:08:30]KKMCreateOFDPacket done [13:08:30]NVStorageSaveData kkm_last_timestamp [13:08:30]File name is /storage/kkm_last_timestamp [13:08:30]Write 4 bytes [13:08:30]NVStorageSaveData done [13:08:30]ExternCall_PrintAddStr [13:08:30]wPrintStart [13:08:30]Write to MH i2c: 01 00 00 FF 16 15 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 FF 0F 2A [13:08:30]RasterBufferAndPrint [13:08:30]line Счет N : (1)221306 [13:08:30]line ИНН: 02508201610067 [13:08:30]line Контрольно-Кассовый Чек [13:08:30]line ПРОДАЖА [13:08:30]line ТРК (МРК, ГНК) : 21 [13:08:30]line Товар: 2710194210 [13:08:30]line ДТ-К-5 [13:08:30]line 15.750 * 76.20 [13:08:30]line = 1200.15 [13:08:30]line НДС 12% НСП 1% [13:08:30]line > о реализуемом товаре [13:08:30]line ОКРУГЛЕНИЕ: -0.15 [13:08:30]line ИТОГО: 1200.00 [13:08:30]line Внесено: 1200.00 [13:08:30]line СДАЧА: 0.00 [13:08:30]line НСП 1% : 10.62 [13:08:30]line НДС 12% : 127.45 [13:08:30]line Наличными: 1200.00 [13:08:30]line Безнал.: 0.00 [13:08:30]line Место: АЗС № 161 "Партнер Нефть" [13:08:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:08:30]line СНО: Общий режим [13:08:30]line Чек 138 23.10.2024 13:08 [13:08:30]line Смена: 537 ФФД: 1.0 [13:08:30]line ЗНМ: 0300000104 [13:08:30]line РНМ: 0000000000091764 [13:08:30]line Версия ККМ: 001 [13:08:30]line ФМ: 0000000000871759 [13:08:30]line ФД: 166723 [13:08:30]line ФПД: 58921020210116 [13:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166723&fm=58921020210116&tin=02508201610067®Number=0000000000091764&sum=120000 [13:08:30]OFD Sender: Processing packet 166723 [packets to send 48, broken 47] [13:08:30]ProducePacketName [13:08:30]name=ofd_packets/00166723 [13:08:30]OFD Sender: To server: pG, [13:08:30]CommunicateWithHost lk.salyk.kg:30040 [13:08:30]ConnectInit lk.salyk.kg [13:08:30]written 0, free lines is 4095 [13:08:30]Connected sock=10 [13:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AF 5C 04 01 8B 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8A 00 00 00 F4 03 04 00 4D F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 8B 02 00 35 04 06 00 35 96 9E 7A BB C4 57 2B 86 8A 20 04 45 FD [13:08:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 99 47 00 A3 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 8B 02 00 F4 03 04 00 B5 9B 18 67 B6 04 01 00 00 E6 02 36 29 B8 5E 1F 53 [13:08:31]CommunicateWithHost err = 0 [13:08:31]CheckOFDResponse [13:08:31]1017 (14) - 77093643461234 [13:08:31]1041 (16) - 0000000000871759 [13:08:31]1040 (4) - 166723 [13:08:31]1012 (4) - 23.10.2024 06:46 [13:08:31]1206 (1) - 0 [13:08:31]OFD Sender: Remove packet 166723 [13:08:31]ProducePacketName [13:08:31]name=ofd_packets/00166723 [13:08:31]NVStorageDeleteData [13:08:31]Write to MH i2c: 01 00 00 2A 17 41 [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 07 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 AA 0C FE [13:08:31]RasterBufferAndPrint [13:08:31]line [13:08:31]line [13:08:31]line [13:08:31]line [13:08:31]line [13:08:31]written 0, free lines is 3248 [13:08:31]MH_Cut [13:08:31]Write to MH i2c: D1 01 00 31 17 01 1A [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: D1 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: D1 01 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: D1 01 00 31 17 00 19 [13:08:31]Write to MH i2c: 01 00 00 32 17 49 [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]OFD Sender: No OFD packet to send [13:08:32]*** Cut start [13:08:32]*** Partial cut [13:08:32]*** CUTSNS_PIN = 1 [13:08:32]*** CUTSNS_PIN = 0 [13:08:32]*** Brake cut motor [13:08:32]Read from MH i2c: 01 [13:08:32]MH_I2C_Read... [13:08:32]*** Stop cut motor [13:08:32]*** Cut end [13:08:32]Read from MH i2c: 01 07 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 FF 0F 5E [13:08:32]process_action close_receipt done [13:08:32]requested_data is exist [13:08:32]produce_requested_data [13:08:32]requested_item fm.sn is exist - process it [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 11 00 00 [13:08:32]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 17 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [13:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:32]wFMCommunicate OK [13:08:32]requested_item fd.num is exist - process it [13:08:32]SAM_PROTO_GetFieldsCounters [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 13 00 00 [13:08:32]Write to MH i2c: E2 08 00 34 17 80 13 00 00 00 00 00 00 C7 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 62 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 62 00 34 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:32]wFMCommunicate OK [13:08:32]SAM_PROTO_GetFieldsCounters done [13:08:32]requested_item shift.num is exist - process it [13:08:32]requested_item shift.opened is exist - process it [13:08:32]req_shift_opened [13:08:32]FM_GetShiftState [13:08:32]SAM_PROTO_GetShiftState [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 13 01 00 [13:08:32]Write to MH i2c: E2 08 00 35 17 80 13 01 00 00 00 00 00 C9 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 35 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 94 [13:08:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:08:32]wFMCommunicate OK [13:08:32]SAM_PROTO_GetShiftState done [13:08:32]FM_GetShiftState done [13:08:32]req_shift_opened done [13:08:32]requested_item shift.open_date is exist - process it [13:08:32]req_shift_open_date [13:08:32]req_shift_open_date done [13:08:32]produce_requested_data done [13:08:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166723,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:08:32]process_action_free close_receipt [13:08:32]json_value_free [13:08:32]json_value_free done [13:08:32]process_json_proto returns [13:08:32]Send response to host [13:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166723,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:08:32]free response buf [13:08:32]execute_script done [13:08:32]execute_script returns [13:08:32]free content buf [13:08:32]Sock 8.Close socket [13:08:32]Sock 8.Thread stoped [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]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:38]accept exits with 9 [13:09:38]New connection [13:09:38]New thread 3067034980 created [13:09:38]Thread 3067178340 joined [13:09:38]Waiting for new connection... [13:09:38] Sock 9.Parse request [13:09:38]Sock 9.Check first char [13:09:38]Sock 9.First char is OK [13:09:38]request: POST /json_proto HTTP/1.0 [13:09:38]Method: POST [13:09:38]URL: /json_proto [13:09:38]Method is POST - this is cgi request [13:09:38]url: /json_proto [13:09:38]query_string will be loaded in cgi processing [13:09:38]execute_cgi json_proto POST (null) [13:09:38]execute_cgi path=json_proto method=POST [13:09:38]POST find Content-Length [13:09:38]Host: 172.17.53.195:8080 [13:09:38]Content-Length: 678 [13:09:38]Content-Type: application/json [13:09:38] [13:09:38]POST finish read [13:09:38]Found Content-Length = 678 [13:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]execute_script... [13:09: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)221307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]POST & json_proto [13:09:38]process_json_proto [13:09:38]json parsed OK: [13:09:38]protocol is kg_v1.0 [13:09:38]action value=close_receipt [13:09:38]process_action close_receipt [13:09:38]cmd_close_receipt [13:09:38]MH_GetDate [13:09:38]Write to MH i2c: F0 00 00 36 17 3C [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 36 17 00 93 F5 18 67 21 48 4A 65 64 [13:09:38]GetLastDocTimeStamp 1729688909 [13:09:38]current date 1729688979 [13:09:38]FM_GetShiftState [13:09:38]SAM_PROTO_GetShiftState [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 01 00 [13:09:38]Write to MH i2c: E2 08 00 37 17 80 13 01 00 00 00 00 00 CB [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 37 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 96 [13:09:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetShiftState done [13:09:38]FM_GetShiftState done [13:09:38]opened in 1729643772 [13:09:38]opened+sec_in_day 1729730172 [13:09:38]quantity*price = 80012 [13:09:38]sum+1 = 80013 [13:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 139 23.10.2024 13:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166724 ФПД: 262641482895750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130939&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166724&fm=262641482895750&tin=02508201610067®Number=0000000000091764&sum=80000 [13:09:39]StoreToDocumentArchive [13:09:39]shift 537 fd 166724 [13:09:39]save to /storage/0537/doc_00166724 [13:09:39]save last doc name /storage/0537/doc_00166724 to /storage/kkm_last_doc_name [13:09:39]save OK [13:09:39]Clear old archive folders... [13:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:39]tlvbuf is B6DDFB90 [13:09:39]SAM_PROTO_ClearQueue [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 09 00 00 [13:09:39]Write to MH i2c: E2 08 00 44 17 80 09 00 00 00 00 00 00 CD [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_ClearQueue done [13:09:39]KKMCreateOFDPacket [13:09:39]OFDProtocolAddRootSTLVToBuf [13:09:39]FM_MakeSignedData [13:09:39]FM_MakeSignedData [13:09:39]SAM_PROTO_SignData [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 01 02 [13:09:39]Write to MH i2c: E2 08 00 45 17 80 0D 01 02 00 00 00 00 D5 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=255 [13:09:39]MH_SAM_APDU [13:09: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 8B 02 00 35 04 06 00 EE [13:09:39]Write to MH i2c: E2 02 01 46 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 8B 02 00 35 04 06 00 EE 00 00 C3 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=10 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 05 DE FC 4A 91 86 [13:09:39]Write to MH i2c: E2 0D 00 47 17 80 0D 02 02 05 00 DE FC 4A 91 86 00 00 1D [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 03 02 [13:09:39]Write to MH i2c: E2 08 00 48 17 80 0D 03 02 00 00 00 00 DA [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 48 17 00 18 3E EE 4B A3 FE 43 30 90 00 7E [13:09:39]RAPDU: 18 3E EE 4B A3 FE 43 30 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_SignData done [13:09:39]FM_MakeSignedData done [13:09:39]CreateOFDProtocolMessage [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 11 00 00 [13:09:39]Write to MH i2c: E2 08 00 49 17 80 11 00 00 00 00 00 00 DA [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 49 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [13:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:09:39]wFMCommunicate OK [13:09:39]CreateOFDProtocolMessage done [13:09:39]OFDSenderStorePacket 166724 [13:09:39]StoreOFDPacket docnum=166724 [13:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 0C 07 01 3E 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 8B 02 00 35 04 06 00 EE DE FC 4A 91 86 18 3E EE 4B A3 FE 43 30 [13:09:39]CheckFolder [13:09:39]dirname=/storage/ofd_packets [13:09:39]CheckFolder done [13:09:39]ProducePacketName [13:09:39]name=ofd_packets/00166724 [13:09:39]NVStorageSaveData ofd_packets/00166724 [13:09:39]File name is /storage/ofd_packets/00166724 [13:09:39]Write 301 bytes [13:09:39]NVStorageSaveData done [13:09:39]OFDSenderStorePacket done [13:09:39]KKMCreateOFDPacket done [13:09:39]NVStorageSaveData kkm_last_timestamp [13:09:39]File name is /storage/kkm_last_timestamp [13:09:39]Write 4 bytes [13:09:39]NVStorageSaveData done [13:09:39]ExternCall_PrintAddStr [13:09:39]wPrintStart [13:09:39]Write to MH i2c: 01 00 00 4A 17 61 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [13:09:39]RasterBufferAndPrint [13:09:39]line Счет N : (1)221307 [13:09:39]line ИНН: 02508201610067 [13:09:39]line Контрольно-Кассовый Чек [13:09:39]line ПРОДАЖА [13:09:39]line ТРК (МРК, ГНК) : 43 [13:09:39]line Товар: 2710124130 [13:09:39]line Аи-92-К-5 [13:09:39]line 11.960 * 66.90 [13:09:39]line = 800.12 [13:09:39]line НДС 12% НСП 1% [13:09:39]line > о реализуемом товаре [13:09:39]line ОКРУГЛЕНИЕ: -0.12 [13:09:39]line ИТОГО: 800.00 [13:09:39]line Внесено: 800.00 [13:09:39]line СДАЧА: 0.00 [13:09:39]line НСП 1% : 7.08 [13:09:39]line НДС 12% : 84.97 [13:09:39]line Наличными: 800.00 [13:09:39]line Безнал.: 0.00 [13:09:39]line Место: АЗС № 161 "Партнер Нефть" [13:09:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:09:39]line СНО: Общий режим [13:09:39]line Чек 139 23.10.2024 13:09 [13:09:39]line Смена: 537 ФФД: 1.0 [13:09:39]line ЗНМ: 0300000104 [13:09:39]line РНМ: 0000000000091764 [13:09:39]line Версия ККМ: 001 [13:09:39]line ФМ: 0000000000871759 [13:09:39]line ФД: 166724 [13:09:39]line ФПД: 262641482895750 [13:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130939&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166724&fm=262641482895750&tin=02508201610067®Number=0000000000091764&sum=80000 [13:09:40]OFD Sender: Processing packet 166724 [packets to send 48, broken 47] [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00166724 [13:09:40]OFD Sender: To server: pG, [13:09:40]CommunicateWithHost lk.salyk.kg:30040 [13:09:40]ConnectInit lk.salyk.kg [13:09:40]written 0, free lines is 4095 [13:09:40]Connected sock=10 [13:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 0C 07 01 3E 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 F5 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 8B 02 00 35 04 06 00 EE DE FC 4A 91 86 18 3E EE 4B A3 FE 43 30 [13:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 CF 47 00 58 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 8B 02 00 F4 03 04 00 FA 9B 18 67 B6 04 01 00 00 BF 53 D2 1E C3 FE 69 A1 [13:09:40]CommunicateWithHost err = 0 [13:09:40]CheckOFDResponse [13:09:40]1017 (14) - 77093643461234 [13:09:40]1041 (16) - 0000000000871759 [13:09:40]1040 (4) - 166724 [13:09:40]1012 (4) - 23.10.2024 06:47 [13:09:40]1206 (1) - 0 [13:09:40]OFD Sender: Remove packet 166724 [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00166724 [13:09:40]NVStorageDeleteData [13:09:40]Write to MH i2c: 01 00 00 75 17 8C [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 C1 0C 60 [13:09:40]RasterBufferAndPrint [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]written 0, free lines is 3271 [13:09:40]MH_Cut [13:09:40]Write to MH i2c: D1 01 00 7C 17 01 65 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 7C 17 00 64 [13:09:40]Write to MH i2c: 01 00 00 7D 17 94 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:41]OFD Sender: No OFD packet to send [13:09:41]*** Cut start [13:09:41]*** Partial cut [13:09:41]*** CUTSNS_PIN = 1 [13:09:41]*** CUTSNS_PIN = 0 [13:09:41]*** Brake cut motor [13:09:42]Read from MH i2c: 01 [13:09:42]MH_I2C_Read... [13:09:42]*** Stop cut motor [13:09:42]*** Cut end [13:09:42]Read from MH i2c: 01 07 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 7D 17 00 00 00 00 00 FF 0F A9 [13:09:42]process_action close_receipt done [13:09:42]requested_data is exist [13:09:42]produce_requested_data [13:09:42]requested_item fm.sn is exist - process it [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 11 00 00 [13:09:42]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [13:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:09:42]wFMCommunicate OK [13:09:42]requested_item fd.num is exist - process it [13:09:42]SAM_PROTO_GetFieldsCounters [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 00 00 [13:09:42]Write to MH i2c: E2 08 00 7F 17 80 13 00 00 00 00 00 00 12 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 7F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [13:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetFieldsCounters done [13:09:42]requested_item shift.num is exist - process it [13:09:42]requested_item shift.opened is exist - process it [13:09:42]req_shift_opened [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 80 17 80 13 01 00 00 00 00 00 14 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 80 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DF [13:09:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]req_shift_opened done [13:09:42]requested_item shift.open_date is exist - process it [13:09:42]req_shift_open_date [13:09:42]req_shift_open_date done [13:09:42]produce_requested_data done [13:09:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166724,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:09:42]process_action_free close_receipt [13:09:42]json_value_free [13:09:42]json_value_free done [13:09:42]process_json_proto returns [13:09:42]Send response to host [13:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166724,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:09:42]free response buf [13:09:42]execute_script done [13:09:42]execute_script returns [13:09:42]free content buf [13:09:42]Sock 9.Close socket [13:09:42]Sock 9.Thread stoped [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:52]accept exits with 8 [13:11:52]New connection [13:11:52]New thread 3067178340 created [13:11:52]Thread 3067034980 joined [13:11:52]Waiting for new connection... [13:11:52] Sock 8.Parse request [13:11:52]Sock 8.Check first char [13:11:52]Sock 8.First char is OK [13:11:52]request: POST /json_proto HTTP/1.0 [13:11:52]Method: POST [13:11:52]URL: /json_proto [13:11:52]Method is POST - this is cgi request [13:11:52]url: /json_proto [13:11:52]query_string will be loaded in cgi processing [13:11:52]execute_cgi json_proto POST (null) [13:11:52]execute_cgi path=json_proto method=POST [13:11:52]POST find Content-Length [13:11:52]Host: 172.17.53.195:8080 [13:11:52]Content-Length: 678 [13:11:52]Content-Type: application/json [13:11:52] [13:11:52]POST finish read [13:11:52]Found Content-Length = 678 [13:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:52]execute_script... [13:11: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)221308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:52]POST & json_proto [13:11:52]process_json_proto [13:11:52]json parsed OK: [13:11:52]protocol is kg_v1.0 [13:11:52]action value=close_receipt [13:11:52]process_action close_receipt [13:11:52]cmd_close_receipt [13:11:52]MH_GetDate [13:11:52]Write to MH i2c: F0 00 00 81 17 87 [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: F0 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: F0 09 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: F0 09 00 81 17 00 19 F6 18 67 21 48 4A 65 36 [13:11:52]GetLastDocTimeStamp 1729688979 [13:11:52]current date 1729689113 [13:11:52]FM_GetShiftState [13:11:52]SAM_PROTO_GetShiftState [13:11:52]wFMCommunicate request_size=4 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 13 01 00 [13:11:52]Write to MH i2c: E2 08 00 82 17 80 13 01 00 00 00 00 00 16 [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:52]Read from MH i2c: E2 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 0E 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 0E 00 82 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E1 [13:11:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:11:52]wFMCommunicate OK [13:11:52]SAM_PROTO_GetShiftState done [13:11:52]FM_GetShiftState done [13:11:52]opened in 1729643772 [13:11:52]opened+sec_in_day 1729730172 [13:11:52]quantity*price = 80012 [13:11:52]sum+1 = 80013 [13:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 140 23.10.2024 13:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166725 ФПД: 253283099499819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166725&fm=253283099499819&tin=02508201610067®Number=0000000000091764&sum=80000 [13:11:53]StoreToDocumentArchive [13:11:53]shift 537 fd 166725 [13:11:53]save to /storage/0537/doc_00166725 [13:11:53]save last doc name /storage/0537/doc_00166725 to /storage/kkm_last_doc_name [13:11:53]save OK [13:11:53]Clear old archive folders... [13:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:53]tlvbuf is 01F97F30 [13:11:53]SAM_PROTO_ClearQueue [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 09 00 00 [13:11:53]Write to MH i2c: E2 08 00 8F 17 80 09 00 00 00 00 00 00 18 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [13:11:54]RAPDU: 90 00 [13:11:54]wFMCommunicate OK [13:11:54]SAM_PROTO_ClearQueue done [13:11:54]KKMCreateOFDPacket [13:11:54]OFDProtocolAddRootSTLVToBuf [13:11:54]FM_MakeSignedData [13:11:54]FM_MakeSignedData [13:11:54]SAM_PROTO_SignData [13:11:54]wFMCommunicate request_size=4 [13:11:54]MH_SAM_APDU [13:11:54]CAPDU: 80 0D 01 02 [13:11:54]Write to MH i2c: E2 08 00 90 17 80 0D 01 02 00 00 00 00 20 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [13:11:54]RAPDU: 90 00 [13:11:54]wFMCommunicate OK [13:11:54]wFMCommunicate request_size=255 [13:11:54]MH_SAM_APDU [13:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 19 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 8B 02 00 35 04 06 00 E6 [13:11:54]Write to MH i2c: E2 02 01 91 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 19 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 8B 02 00 35 04 06 00 E6 00 00 8F [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [13:11:54]RAPDU: 90 00 [13:11:54]wFMCommunicate OK [13:11:54]wFMCommunicate request_size=10 [13:11:54]MH_SAM_APDU [13:11:54]CAPDU: 80 0D 02 02 05 5C 11 2C 5D 2B [13:11:54]Write to MH i2c: E2 0D 00 92 17 80 0D 02 02 05 00 5C 11 2C 5D 2B 00 00 4E [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [13:11:54]RAPDU: 90 00 [13:11:54]wFMCommunicate OK [13:11:54]wFMCommunicate request_size=4 [13:11:54]MH_SAM_APDU [13:11:54]CAPDU: 80 0D 03 02 [13:11:54]Write to MH i2c: E2 08 00 93 17 80 0D 03 02 00 00 00 00 25 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 0B 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 0B 00 93 17 00 AF 2A 76 C3 7B 05 7E 0E 90 00 44 [13:11:54]RAPDU: AF 2A 76 C3 7B 05 7E 0E 90 00 [13:11:54]wFMCommunicate OK [13:11:54]SAM_PROTO_SignData done [13:11:54]FM_MakeSignedData done [13:11:54]CreateOFDProtocolMessage [13:11:54]wFMCommunicate request_size=4 [13:11:54]MH_SAM_APDU [13:11:54]CAPDU: 80 11 00 00 [13:11:54]Write to MH i2c: E2 08 00 94 17 80 11 00 00 00 00 00 00 25 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:54]Read from MH i2c: E2 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 17 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: E2 17 00 94 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [13:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:54]wFMCommunicate OK [13:11:54]CreateOFDProtocolMessage done [13:11:54]OFDSenderStorePacket 166725 [13:11:54]StoreOFDPacket docnum=166725 [13:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 46 CD 07 01 5C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 19 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 8B 02 00 35 04 06 00 E6 5C 11 2C 5D 2B AF 2A 76 C3 7B 05 7E 0E [13:11:54]CheckFolder [13:11:54]dirname=/storage/ofd_packets [13:11:54]CheckFolder done [13:11:54]ProducePacketName [13:11:54]name=ofd_packets/00166725 [13:11:54]NVStorageSaveData ofd_packets/00166725 [13:11:54]File name is /storage/ofd_packets/00166725 [13:11:54]Write 301 bytes [13:11:54]NVStorageSaveData done [13:11:54]OFDSenderStorePacket done [13:11:54]KKMCreateOFDPacket done [13:11:54]NVStorageSaveData kkm_last_timestamp [13:11:54]File name is /storage/kkm_last_timestamp [13:11:54]Write 4 bytes [13:11:54]NVStorageSaveData done [13:11:54]ExternCall_PrintAddStr [13:11:54]wPrintStart [13:11:54]Write to MH i2c: 01 00 00 95 17 AC [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 FF 0F C1 [13:11:54]RasterBufferAndPrint [13:11:54]line Счет N : (1)221308 [13:11:54]line ИНН: 02508201610067 [13:11:54]line Контрольно-Кассовый Чек [13:11:54]line ПРОДАЖА [13:11:54]line ТРК (МРК, ГНК) : 43 [13:11:54]line Товар: 2710124130 [13:11:54]line Аи-92-К-5 [13:11:54]line 11.960 * 66.90 [13:11:54]line = 800.12 [13:11:54]line НДС 12% НСП 1% [13:11:54]line > о реализуемом товаре [13:11:54]line ОКРУГЛЕНИЕ: -0.12 [13:11:54]line ИТОГО: 800.00 [13:11:54]line Внесено: 800.00 [13:11:54]line СДАЧА: 0.00 [13:11:54]line НСП 1% : 7.08 [13:11:54]line НДС 12% : 84.97 [13:11:54]line Наличными: 800.00 [13:11:54]line Безнал.: 0.00 [13:11:54]line Место: АЗС № 161 "Партнер Нефть" [13:11:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:54]line СНО: Общий режим [13:11:54]line Чек 140 23.10.2024 13:11 [13:11:54]line Смена: 537 ФФД: 1.0 [13:11:54]line ЗНМ: 0300000104 [13:11:54]line РНМ: 0000000000091764 [13:11:54]line Версия ККМ: 001 [13:11:54]line ФМ: 0000000000871759 [13:11:54]line ФД: 166725 [13:11:54]line ФПД: 253283099499819 [13:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166725&fm=253283099499819&tin=02508201610067®Number=0000000000091764&sum=80000 [13:11:54]written 0, free lines is 4095 [13:11:54]OFD Sender: Processing packet 166725 [packets to send 48, broken 47] [13:11:54]ProducePacketName [13:11:54]name=ofd_packets/00166725 [13:11:54]OFD Sender: To server: pG, [13:11:54]CommunicateWithHost lk.salyk.kg:30040 [13:11:54]ConnectInit lk.salyk.kg [13:11:54]Connected sock=10 [13:11:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 46 CD 07 01 5C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 19 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 8B 02 00 35 04 06 00 E6 5C 11 2C 5D 2B AF 2A 76 C3 7B 05 7E 0E [13:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 03 47 00 6F 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 8B 02 00 F4 03 04 00 81 9C 18 67 B6 04 01 00 00 72 2F AB 91 00 B9 AF 18 [13:11:54]CommunicateWithHost err = 0 [13:11:54]CheckOFDResponse [13:11:54]1017 (14) - 77093643461234 [13:11:54]1041 (16) - 0000000000871759 [13:11:54]1040 (4) - 166725 [13:11:54]1012 (4) - 23.10.2024 06:49 [13:11:54]1206 (1) - 0 [13:11:54]OFD Sender: Remove packet 166725 [13:11:54]ProducePacketName [13:11:54]name=ofd_packets/00166725 [13:11:54]NVStorageDeleteData [13:11:55]Write to MH i2c: 01 00 00 C0 17 D7 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 BA 0C A4 [13:11:55]RasterBufferAndPrint [13:11:55]line [13:11:55]line [13:11:55]line [13:11:55]line [13:11:55]line [13:11:55]written 0, free lines is 3267 [13:11:55]MH_Cut [13:11:55]Write to MH i2c: D1 01 00 C7 17 01 B0 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: D1 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: D1 01 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: D1 01 00 C7 17 00 AF [13:11:55]Write to MH i2c: 01 00 00 C8 17 DF [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]OFD Sender: No OFD packet to send [13:11:55]*** Cut start [13:11:55]*** Partial cut [13:11:55]*** CUTSNS_PIN = 1 [13:11:55]*** CUTSNS_PIN = 0 [13:11:56]*** Brake cut motor [13:11:56]Read from MH i2c: 01 [13:11:56]MH_I2C_Read... [13:11:56]*** Stop cut motor [13:11:56]*** Cut end [13:11:56]Read from MH i2c: 01 07 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [13:11:56]process_action close_receipt done [13:11:56]requested_data is exist [13:11:56]produce_requested_data [13:11:56]requested_item fm.sn is exist - process it [13:11:56]wFMCommunicate request_size=4 [13:11:56]MH_SAM_APDU [13:11:56]CAPDU: 80 11 00 00 [13:11:56]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:56]Read from MH i2c: E2 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 17 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [13:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:56]wFMCommunicate OK [13:11:56]requested_item fd.num is exist - process it [13:11:56]SAM_PROTO_GetFieldsCounters [13:11:56]wFMCommunicate request_size=4 [13:11:56]MH_SAM_APDU [13:11:56]CAPDU: 80 13 00 00 [13:11:56]Write to MH i2c: E2 08 00 CA 17 80 13 00 00 00 00 00 00 5D [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:56]Read from MH i2c: E2 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 62 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 62 00 CA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:56]wFMCommunicate OK [13:11:56]SAM_PROTO_GetFieldsCounters done [13:11:56]requested_item shift.num is exist - process it [13:11:56]requested_item shift.opened is exist - process it [13:11:56]req_shift_opened [13:11:56]FM_GetShiftState [13:11:56]SAM_PROTO_GetShiftState [13:11:56]wFMCommunicate request_size=4 [13:11:56]MH_SAM_APDU [13:11:56]CAPDU: 80 13 01 00 [13:11:56]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:56]Read from MH i2c: E2 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 0E 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2A [13:11:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:11:56]wFMCommunicate OK [13:11:56]SAM_PROTO_GetShiftState done [13:11:56]FM_GetShiftState done [13:11:56]req_shift_opened done [13:11:56]requested_item shift.open_date is exist - process it [13:11:56]req_shift_open_date [13:11:56]req_shift_open_date done [13:11:56]produce_requested_data done [13:11:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166725,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:11:56]process_action_free close_receipt [13:11:56]json_value_free [13:11:56]json_value_free done [13:11:56]process_json_proto returns [13:11:56]Send response to host [13:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166725,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:11:56]free response buf [13:11:56]execute_script done [13:11:56]execute_script returns [13:11:56]free content buf [13:11:56]Sock 8.Close socket [13:11:56]Sock 8.Thread stoped [13:12:00]OFD Sender: No OFD packet to send [13:12:00]accept exits with 9 [13:12:00]New connection [13:12:00]New thread 3067034980 created [13:12:00]Thread 3067178340 joined [13:12:00]Waiting for new connection... [13:12:00] Sock 9.Parse request [13:12:00]Sock 9.Check first char [13:12:00]Sock 9.First char is OK [13:12:00]request: POST /json_proto HTTP/1.0 [13:12:00]Method: POST [13:12:00]URL: /json_proto [13:12:00]Method is POST - this is cgi request [13:12:00]url: /json_proto [13:12:00]query_string will be loaded in cgi processing [13:12:00]execute_cgi json_proto POST (null) [13:12:00]execute_cgi path=json_proto method=POST [13:12:00]POST find Content-Length [13:12:00]Host: 172.17.53.195:8080 [13:12:00]Content-Length: 677 [13:12:00]Content-Type: application/json [13:12:00] [13:12:00]POST finish read [13:12:00]Found Content-Length = 677 [13:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:00]execute_script... [13:12:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:00]POST & json_proto [13:12:00]process_json_proto [13:12:00]json parsed OK: [13:12:00]protocol is kg_v1.0 [13:12:00]action value=close_receipt [13:12:00]process_action close_receipt [13:12:00]cmd_close_receipt [13:12:00]MH_GetDate [13:12:00]Write to MH i2c: F0 00 00 CC 17 D2 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: F0 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: F0 09 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: F0 09 00 CC 17 00 21 F6 18 67 21 48 4A 65 89 [13:12:00]GetLastDocTimeStamp 1729689113 [13:12:00]current date 1729689121 [13:12:00]FM_GetShiftState [13:12:00]SAM_PROTO_GetShiftState [13:12:00]wFMCommunicate request_size=4 [13:12:00]MH_SAM_APDU [13:12:00]CAPDU: 80 13 01 00 [13:12:00]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [13:12:00]Write i2c OK [13:12:00]MH_I2C_Read... [13:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:00]Read from MH i2c: E2 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 0E 00 [13:12:00]MH_I2C_Read... [13:12:00]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2C [13:12:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:12:00]wFMCommunicate OK [13:12:00]SAM_PROTO_GetShiftState done [13:12:00]FM_GetShiftState done [13:12:00]opened in 1729643772 [13:12:00]opened+sec_in_day 1729730172 [13:12:00]quantity*price = 50041 [13:12:00]sum+1 = 50042 [13:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 141 23.10.2024 13:12 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166726 ФПД: 215597093237444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131201&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166726&fm=215597093237444&tin=02508201610067®Number=0000000000091764&sum=50000 [13:12:01]StoreToDocumentArchive [13:12:01]shift 537 fd 166726 [13:12:01]save to /storage/0537/doc_00166726 [13:12:01]save last doc name /storage/0537/doc_00166726 to /storage/kkm_last_doc_name [13:12:01]save OK [13:12:01]Clear old archive folders... [13:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:01]tlvbuf is 0200E710 [13:12:01]SAM_PROTO_ClearQueue [13:12:01]wFMCommunicate request_size=4 [13:12:01]MH_SAM_APDU [13:12:01]CAPDU: 80 09 00 00 [13:12:01]Write to MH i2c: E2 08 00 DA 17 80 09 00 00 00 00 00 00 63 [13:12:01]Write i2c OK [13:12:01]MH_I2C_Read... [13:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:01]Read from MH i2c: E2 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 03 00 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [13:12:01]RAPDU: 90 00 [13:12:01]wFMCommunicate OK [13:12:01]SAM_PROTO_ClearQueue done [13:12:01]KKMCreateOFDPacket [13:12:01]OFDProtocolAddRootSTLVToBuf [13:12:01]FM_MakeSignedData [13:12:01]FM_MakeSignedData [13:12:01]SAM_PROTO_SignData [13:12:01]wFMCommunicate request_size=4 [13:12:01]MH_SAM_APDU [13:12:01]CAPDU: 80 0D 01 02 [13:12:01]Write to MH i2c: E2 08 00 DB 17 80 0D 01 02 00 00 00 00 6B [13:12:01]Write i2c OK [13:12:01]MH_I2C_Read... [13:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:01]Read from MH i2c: E2 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 03 00 [13:12:01]MH_I2C_Read... [13:12:01]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [13:12:01]RAPDU: 90 00 [13:12:01]wFMCommunicate OK [13:12:01]wFMCommunicate request_size=255 [13:12:01]MH_SAM_APDU [13:12:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 21 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 8B 02 00 35 04 06 00 C4 [13:12:01]Write to MH i2c: E2 02 01 DC 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 21 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 8B 02 00 35 04 06 00 C4 00 00 D6 [13:12:01]Write i2c OK [13:12:01]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 03 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [13:12:02]RAPDU: 90 00 [13:12:02]wFMCommunicate OK [13:12:02]wFMCommunicate request_size=10 [13:12:02]MH_SAM_APDU [13:12:02]CAPDU: 80 0D 02 02 05 15 9C 28 32 C4 [13:12:02]Write to MH i2c: E2 0D 00 DD 17 80 0D 02 02 05 00 15 9C 28 32 C4 00 00 47 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 03 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [13:12:02]RAPDU: 90 00 [13:12:02]wFMCommunicate OK [13:12:02]wFMCommunicate request_size=4 [13:12:02]MH_SAM_APDU [13:12:02]CAPDU: 80 0D 03 02 [13:12:02]Write to MH i2c: E2 08 00 DE 17 80 0D 03 02 00 00 00 00 70 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0B 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0B 00 DE 17 00 22 77 9A 9E 5C 8D 5B B4 90 00 3A [13:12:02]RAPDU: 22 77 9A 9E 5C 8D 5B B4 90 00 [13:12:02]wFMCommunicate OK [13:12:02]SAM_PROTO_SignData done [13:12:02]FM_MakeSignedData done [13:12:02]CreateOFDProtocolMessage [13:12:02]wFMCommunicate request_size=4 [13:12:02]MH_SAM_APDU [13:12:02]CAPDU: 80 11 00 00 [13:12:02]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 17 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [13:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:12:02]wFMCommunicate OK [13:12:02]CreateOFDProtocolMessage done [13:12:02]OFDSenderStorePacket 166726 [13:12:02]StoreOFDPacket docnum=166726 [13:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C9 81 07 01 66 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 21 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 8B 02 00 35 04 06 00 C4 15 9C 28 32 C4 22 77 9A 9E 5C 8D 5B B4 [13:12:02]CheckFolder [13:12:02]dirname=/storage/ofd_packets [13:12:02]CheckFolder done [13:12:02]ProducePacketName [13:12:02]name=ofd_packets/00166726 [13:12:02]NVStorageSaveData ofd_packets/00166726 [13:12:02]File name is /storage/ofd_packets/00166726 [13:12:02]Write 301 bytes [13:12:02]NVStorageSaveData done [13:12:02]OFDSenderStorePacket done [13:12:02]KKMCreateOFDPacket done [13:12:02]NVStorageSaveData kkm_last_timestamp [13:12:02]File name is /storage/kkm_last_timestamp [13:12:02]Write 4 bytes [13:12:02]NVStorageSaveData done [13:12:02]ExternCall_PrintAddStr [13:12:02]wPrintStart [13:12:02]Write to MH i2c: 01 00 00 E0 17 F7 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 07 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [13:12:02]RasterBufferAndPrint [13:12:02]line Счет N : (1)221309 [13:12:02]line ИНН: 02508201610067 [13:12:02]line Контрольно-Кассовый Чек [13:12:02]line ПРОДАЖА [13:12:02]line ТРК (МРК, ГНК) : 33 [13:12:02]line Товар: 2710124130 [13:12:02]line Аи-92-К-5 [13:12:02]line 7.480 * 66.90 [13:12:02]line = 500.41 [13:12:02]line НДС 12% НСП 1% [13:12:02]line > о реализуемом товаре [13:12:02]line ОКРУГЛЕНИЕ: -0.41 [13:12:02]line ИТОГО: 500.00 [13:12:02]line Внесено: 500.00 [13:12:02]line СДАЧА: 0.00 [13:12:02]line НСП 1% : 4.43 [13:12:02]line НДС 12% : 53.14 [13:12:02]line Наличными: 500.00 [13:12:02]line Безнал.: 0.00 [13:12:02]line Место: АЗС № 161 "Партнер Нефть" [13:12:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:12:02]line СНО: Общий режим [13:12:02]line Чек 141 23.10.2024 13:12 [13:12:02]line Смена: 537 ФФД: 1.0 [13:12:02]line ЗНМ: 0300000104 [13:12:02]line РНМ: 0000000000091764 [13:12:02]line Версия ККМ: 001 [13:12:02]line ФМ: 0000000000871759 [13:12:02]line ФД: 166726 [13:12:02]line ФПД: 215597093237444 [13:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131201&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166726&fm=215597093237444&tin=02508201610067®Number=0000000000091764&sum=50000 [13:12:02]OFD Sender: Processing packet 166726 [packets to send 48, broken 47] [13:12:02]ProducePacketName [13:12:02]name=ofd_packets/00166726 [13:12:02]OFD Sender: To server: pG, [13:12:02]CommunicateWithHost lk.salyk.kg:30040 [13:12:02]written 0, free lines is 4095 [13:12:02]ConnectInit lk.salyk.kg [13:12:02]Connected sock=11 [13:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C9 81 07 01 66 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 21 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 8B 02 00 35 04 06 00 C4 15 9C 28 32 C4 22 77 9A 9E 5C 8D 5B B4 [13:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 05 47 00 72 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 8B 02 00 F4 03 04 00 89 9C 18 67 B6 04 01 00 00 8A 79 E6 18 4F 73 57 1F [13:12:02]CommunicateWithHost err = 0 [13:12:02]CheckOFDResponse [13:12:02]1017 (14) - 77093643461234 [13:12:02]1041 (16) - 0000000000871759 [13:12:02]1040 (4) - 166726 [13:12:02]1012 (4) - 23.10.2024 06:49 [13:12:02]1206 (1) - 0 [13:12:02]OFD Sender: Remove packet 166726 [13:12:02]ProducePacketName [13:12:02]name=ofd_packets/00166726 [13:12:02]NVStorageDeleteData [13:12:02]Write to MH i2c: 01 00 00 0B 18 23 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 07 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 B8 0C EE [13:12:02]RasterBufferAndPrint [13:12:02]line [13:12:02]line [13:12:02]line [13:12:02]line [13:12:02]line [13:12:02]written 0, free lines is 3266 [13:12:02]MH_Cut [13:12:02]Write to MH i2c: D1 01 00 12 18 01 FC [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: D1 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: D1 01 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: D1 01 00 12 18 00 FB [13:12:02]Write to MH i2c: 01 00 00 13 18 2B [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:03]OFD Sender: No OFD packet to send [13:12:03]*** Cut start [13:12:03]*** Partial cut [13:12:03]*** CUTSNS_PIN = 1 [13:12:03]*** CUTSNS_PIN = 0 [13:12:03]*** Brake cut motor [13:12:04]Read from MH i2c: 01 [13:12:04]MH_I2C_Read... [13:12:04]*** Stop cut motor [13:12:04]*** Cut end [13:12:04]Read from MH i2c: 01 07 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 07 00 13 18 00 00 00 00 00 FF 0F 40 [13:12:04]process_action close_receipt done [13:12:04]requested_data is exist [13:12:04]produce_requested_data [13:12:04]requested_item fm.sn is exist - process it [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 11 00 00 [13:12:04]Write to MH i2c: E2 08 00 14 18 80 11 00 00 00 00 00 00 A6 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:04]Read from MH i2c: E2 17 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 17 00 14 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [13:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:12:04]wFMCommunicate OK [13:12:04]requested_item fd.num is exist - process it [13:12:04]SAM_PROTO_GetFieldsCounters [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 13 00 00 [13:12:04]Write to MH i2c: E2 08 00 15 18 80 13 00 00 00 00 00 00 A9 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 62 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 62 00 15 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [13:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:04]wFMCommunicate OK [13:12:04]SAM_PROTO_GetFieldsCounters done [13:12:04]requested_item shift.num is exist - process it [13:12:04]requested_item shift.opened is exist - process it [13:12:04]req_shift_opened [13:12:04]FM_GetShiftState [13:12:04]SAM_PROTO_GetShiftState [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 13 01 00 [13:12:04]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 0E 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 76 [13:12:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:12:04]wFMCommunicate OK [13:12:04]SAM_PROTO_GetShiftState done [13:12:04]FM_GetShiftState done [13:12:04]req_shift_opened done [13:12:04]requested_item shift.open_date is exist - process it [13:12:04]req_shift_open_date [13:12:04]req_shift_open_date done [13:12:04]produce_requested_data done [13:12:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166726,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:12:04]process_action_free close_receipt [13:12:04]json_value_free [13:12:04]json_value_free done [13:12:04]process_json_proto returns [13:12:04]Send response to host [13:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166726,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:12:04]free response buf [13:12:04]execute_script done [13:12:04]execute_script returns [13:12:04]free content buf [13:12:04]Sock 9.Close socket [13:12:04]Sock 9.Thread stoped [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:26]accept exits with 8 [13:13:26]New connection [13:13:26]New thread 3067178340 created [13:13:26]Thread 3067034980 joined [13:13:26]Waiting for new connection... [13:13:26] Sock 8.Parse request [13:13:26]Sock 8.Check first char [13:13:26]Sock 8.First char is OK [13:13:26]request: POST /json_proto HTTP/1.0 [13:13:26]Method: POST [13:13:26]URL: /json_proto [13:13:26]Method is POST - this is cgi request [13:13:26]url: /json_proto [13:13:26]query_string will be loaded in cgi processing [13:13:26]execute_cgi json_proto POST (null) [13:13:26]execute_cgi path=json_proto method=POST [13:13:26]POST find Content-Length [13:13:26]Host: 172.17.53.195:8080 [13:13:26]Content-Length: 769 [13:13:26]Content-Type: application/json [13:13:26] [13:13:26]POST finish read [13:13:26]Found Content-Length = 769 [13:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:26]execute_script... [13:13: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)221310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:26]POST & json_proto [13:13:26]process_json_proto [13:13:26]json parsed OK: [13:13:26]protocol is kg_v1.0 [13:13:26]action value=close_receipt [13:13:26]process_action close_receipt [13:13:26]cmd_close_receipt [13:13:26]MH_GetDate [13:13:26]Write to MH i2c: F0 00 00 17 18 1E [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: F0 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: F0 09 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: F0 09 00 17 18 00 77 F6 18 67 21 48 4A 65 2B [13:13:26]GetLastDocTimeStamp 1729689121 [13:13:26]current date 1729689207 [13:13:26]FM_GetShiftState [13:13:26]SAM_PROTO_GetShiftState [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 13 01 00 [13:13:26]Write to MH i2c: E2 08 00 18 18 80 13 01 00 00 00 00 00 AD [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0E 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0E 00 18 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 78 [13:13:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_GetShiftState done [13:13:26]FM_GetShiftState done [13:13:26]opened in 1729643772 [13:13:26]opened+sec_in_day 1729730172 [13:13:26]quantity*price = 200043 [13:13:26]sum+1 = 200044 [13:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 142 23.10.2024 13:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166727 ФПД: 273681324022421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131327&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166727&fm=273681324022421&tin=02508201610067®Number=0000000000091764&sum=200043 [13:13:27]StoreToDocumentArchive [13:13:27]shift 537 fd 166727 [13:13:27]save to /storage/0537/doc_00166727 [13:13:27]save last doc name /storage/0537/doc_00166727 to /storage/kkm_last_doc_name [13:13:27]save OK [13:13:27]Clear old archive folders... [13:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:27]tlvbuf is 01FE0AF0 [13:13:27]SAM_PROTO_ClearQueue [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 09 00 00 [13:13:27]Write to MH i2c: E2 08 00 25 18 80 09 00 00 00 00 00 00 AF [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 03 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [13:13:27]RAPDU: 90 00 [13:13:27]wFMCommunicate OK [13:13:27]SAM_PROTO_ClearQueue done [13:13:27]KKMCreateOFDPacket [13:13:27]OFDProtocolAddRootSTLVToBuf [13:13:27]FM_MakeSignedData [13:13:27]FM_MakeSignedData [13:13:27]SAM_PROTO_SignData [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 0D 01 02 [13:13:27]Write to MH i2c: E2 08 00 26 18 80 0D 01 02 00 00 00 00 B7 [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 03 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [13:13:27]RAPDU: 90 00 [13:13:27]wFMCommunicate OK [13:13:27]wFMCommunicate request_size=255 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 77 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 8B 02 00 35 04 06 00 F8 [13:13:27]Write to MH i2c: E2 02 01 27 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 77 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 8B 02 00 35 04 06 00 F8 00 00 AC [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 27 18 00 90 00 B3 [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]wFMCommunicate request_size=10 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 0D 02 02 05 E9 66 19 9A 95 [13:13:28]Write to MH i2c: E2 0D 00 28 18 80 0D 02 02 05 00 E9 66 19 9A 95 00 00 5B [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 0D 03 02 [13:13:28]Write to MH i2c: E2 08 00 29 18 80 0D 03 02 00 00 00 00 BC [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 0B 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 0B 00 29 18 00 37 A2 A5 D1 8C 6B CE 70 90 00 41 [13:13:28]RAPDU: 37 A2 A5 D1 8C 6B CE 70 90 00 [13:13:28]wFMCommunicate OK [13:13:28]SAM_PROTO_SignData done [13:13:28]FM_MakeSignedData done [13:13:28]CreateOFDProtocolMessage [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 11 00 00 [13:13:28]Write to MH i2c: E2 08 00 2A 18 80 11 00 00 00 00 00 00 BC [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]OFD Sender: No OFD packet to send [13:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 17 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 17 00 2A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [13:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:13:28]wFMCommunicate OK [13:13:28]CreateOFDProtocolMessage done [13:13:28]OFDSenderStorePacket 166727 [13:13:28]StoreOFDPacket docnum=166727 [13:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 AF 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 77 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 8B 02 00 35 04 06 00 F8 E9 66 19 9A 95 37 A2 A5 D1 8C 6B CE 70 [13:13:28]CheckFolder [13:13:28]dirname=/storage/ofd_packets [13:13:28]CheckFolder done [13:13:28]ProducePacketName [13:13:28]name=ofd_packets/00166727 [13:13:28]NVStorageSaveData ofd_packets/00166727 [13:13:28]File name is /storage/ofd_packets/00166727 [13:13:28]Write 301 bytes [13:13:28]NVStorageSaveData done [13:13:28]OFDSenderStorePacket done [13:13:28]KKMCreateOFDPacket done [13:13:28]NVStorageSaveData kkm_last_timestamp [13:13:28]File name is /storage/kkm_last_timestamp [13:13:28]Write 4 bytes [13:13:28]NVStorageSaveData done [13:13:28]ExternCall_PrintAddStr [13:13:28]wPrintStart [13:13:28]Write to MH i2c: 01 00 00 2B 18 43 [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: 01 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: 01 07 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 FF 0F 58 [13:13:28]RasterBufferAndPrint [13:13:28]line Счет N : (1)221310 [13:13:28]line ИНН: 02508201610067 [13:13:28]line Контрольно-Кассовый Чек [13:13:28]line ПРОДАЖА [13:13:28]line ТРК (МРК, ГНК) : 14 [13:13:28]line Товар: 2710124500 [13:13:28]line Аи-95-К-5 [13:13:28]line 26.960 * 74.20 [13:13:28]line = 2000.43 [13:13:28]line НДС 12% НСП 1% [13:13:28]line > о реализуемом товаре [13:13:28]line ИТОГО: 2000.43 [13:13:28]line НСП 1% : 17.70 [13:13:28]line НДС 12% : 212.43 [13:13:28]line Наличными: 0.00 [13:13:28]line Безнал.: 2000.43 [13:13:28]line Место: АЗС № 161 "Партнер Нефть" [13:13:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:13:28]line СНО: Общий режим [13:13:28]line Чек 142 23.10.2024 13:13 [13:13:28]line Смена: 537 ФФД: 1.0 [13:13:28]line ЗНМ: 0300000104 [13:13:28]line РНМ: 0000000000091764 [13:13:28]line Версия ККМ: 001 [13:13:28]line Платежная система: Mbank [13:13:28]line ФМ: 0000000000871759 [13:13:28]line ФД: 166727 [13:13:28]line ФПД: 273681324022421 [13:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131327&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166727&fm=273681324022421&tin=02508201610067®Number=0000000000091764&sum=200043 [13:13:28]OFD Sender: Processing packet 166727 [packets to send 48, broken 47] [13:13:28]ProducePacketName [13:13:28]name=ofd_packets/00166727 [13:13:28]OFD Sender: To server: pG, [13:13:28]CommunicateWithHost lk.salyk.kg:30040 [13:13:28]ConnectInit lk.salyk.kg [13:13:28]written 0, free lines is 4095 [13:13:28]Connected sock=10 [13:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 AF 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 77 F6 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 8B 02 00 35 04 06 00 F8 E9 66 19 9A 95 37 A2 A5 D1 8C 6B CE 70 [13:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 24 47 00 17 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 8B 02 00 F4 03 04 00 DF 9C 18 67 B6 04 01 00 00 44 EF 3C EA FB 97 18 CD [13:13:29]CommunicateWithHost err = 0 [13:13:29]CheckOFDResponse [13:13:29]1017 (14) - 77093643461234 [13:13:29]1041 (16) - 0000000000871759 [13:13:29]1040 (4) - 166727 [13:13:29]1012 (4) - 23.10.2024 06:51 [13:13:29]1206 (1) - 0 [13:13:29]OFD Sender: Remove packet 166727 [13:13:29]ProducePacketName [13:13:29]name=ofd_packets/00166727 [13:13:29]NVStorageDeleteData [13:13:29]Write to MH i2c: 01 00 00 54 18 6C [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 E4 0C 63 [13:13:29]RasterBufferAndPrint [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]written 0, free lines is 3306 [13:13:29]MH_Cut [13:13:29]Write to MH i2c: D1 01 00 5B 18 01 45 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 01 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 01 00 5B 18 00 44 [13:13:29]Write to MH i2c: 01 00 00 5C 18 74 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]OFD Sender: No OFD packet to send [13:13:29]*** Cut start [13:13:29]*** Partial cut [13:13:29]*** CUTSNS_PIN = 1 [13:13:30]*** CUTSNS_PIN = 0 [13:13:30]*** Brake cut motor [13:13:30]Read from MH i2c: 01 [13:13:30]MH_I2C_Read... [13:13:30]*** Stop cut motor [13:13:30]*** Cut end [13:13:30]Read from MH i2c: 01 07 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [13:13:30]process_action close_receipt done [13:13:30]requested_data is exist [13:13:30]produce_requested_data [13:13:30]requested_item fm.sn is exist - process it [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 11 00 00 [13:13:30]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 17 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [13:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:13:30]wFMCommunicate OK [13:13:30]requested_item fd.num is exist - process it [13:13:30]SAM_PROTO_GetFieldsCounters [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 13 00 00 [13:13:30]Write to MH i2c: E2 08 00 5E 18 80 13 00 00 00 00 00 00 F2 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 62 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 62 00 5E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:30]wFMCommunicate OK [13:13:30]SAM_PROTO_GetFieldsCounters done [13:13:30]requested_item shift.num is exist - process it [13:13:30]requested_item shift.opened is exist - process it [13:13:30]req_shift_opened [13:13:30]FM_GetShiftState [13:13:30]SAM_PROTO_GetShiftState [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 13 01 00 [13:13:30]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0E 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BF [13:13:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:13:30]wFMCommunicate OK [13:13:30]SAM_PROTO_GetShiftState done [13:13:30]FM_GetShiftState done [13:13:30]req_shift_opened done [13:13:30]requested_item shift.open_date is exist - process it [13:13:30]req_shift_open_date [13:13:30]req_shift_open_date done [13:13:30]produce_requested_data done [13:13:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166727,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:13:30]process_action_free close_receipt [13:13:30]json_value_free [13:13:30]json_value_free done [13:13:30]process_json_proto returns [13:13:30]Send response to host [13:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166727,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:13:30]free response buf [13:13:30]execute_script done [13:13:30]execute_script returns [13:13:30]free content buf [13:13:30]Sock 8.Close socket [13:13:30]Sock 8.Thread stoped [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:53]accept exits with 9 [13:15:53]New connection [13:15:53]New thread 3067034980 created [13:15:53]Thread 3067178340 joined [13:15:53]Waiting for new connection... [13:15:53] Sock 9.Parse request [13:15:53]Sock 9.Check first char [13:15:53]Sock 9.First char is OK [13:15:53]request: POST /json_proto HTTP/1.0 [13:15:53]Method: POST [13:15:53]URL: /json_proto [13:15:53]Method is POST - this is cgi request [13:15:53]url: /json_proto [13:15:53]query_string will be loaded in cgi processing [13:15:53]execute_cgi json_proto POST (null) [13:15:53]execute_cgi path=json_proto method=POST [13:15:53]POST find Content-Length [13:15:53]Host: 172.17.53.195:8080 [13:15:53]Content-Length: 677 [13:15:53]Content-Type: application/json [13:15:53] [13:15:53]POST finish read [13:15:53]Found Content-Length = 677 [13:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:53]execute_script... [13:15: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)221311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:53]POST & json_proto [13:15:53]process_json_proto [13:15:53]json parsed OK: [13:15:53]protocol is kg_v1.0 [13:15:53]action value=close_receipt [13:15:53]process_action close_receipt [13:15:53]cmd_close_receipt [13:15:53]MH_GetDate [13:15:53]Write to MH i2c: F0 00 00 60 18 67 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 09 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 09 00 60 18 00 0A F7 18 67 21 48 4A 65 08 [13:15:53]GetLastDocTimeStamp 1729689207 [13:15:53]current date 1729689354 [13:15:53]FM_GetShiftState [13:15:53]SAM_PROTO_GetShiftState [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 13 01 00 [13:15:53]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0E 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C1 [13:15:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:15:53]wFMCommunicate OK [13:15:53]SAM_PROTO_GetShiftState done [13:15:53]FM_GetShiftState done [13:15:53]opened in 1729643772 [13:15:53]opened+sec_in_day 1729730172 [13:15:53]quantity*price = 50041 [13:15:53]sum+1 = 50042 [13:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 143 23.10.2024 13:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166728 ФПД: 106702601972820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166728&fm=106702601972820&tin=02508201610067®Number=0000000000091764&sum=50000 [13:15:54]StoreToDocumentArchive [13:15:54]shift 537 fd 166728 [13:15:54]save to /storage/0537/doc_00166728 [13:15:54]save last doc name /storage/0537/doc_00166728 to /storage/kkm_last_doc_name [13:15:54]save OK [13:15:54]Clear old archive folders... [13:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:54]tlvbuf is 01FDCA20 [13:15:54]SAM_PROTO_ClearQueue [13:15:54]wFMCommunicate request_size=4 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 09 00 00 [13:15:54]Write to MH i2c: E2 08 00 6E 18 80 09 00 00 00 00 00 00 F8 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]SAM_PROTO_ClearQueue done [13:15:54]KKMCreateOFDPacket [13:15:54]OFDProtocolAddRootSTLVToBuf [13:15:54]FM_MakeSignedData [13:15:54]FM_MakeSignedData [13:15:54]SAM_PROTO_SignData [13:15:54]wFMCommunicate request_size=4 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 01 02 [13:15:54]Write to MH i2c: E2 08 00 6F 18 80 0D 01 02 00 00 00 00 00 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]wFMCommunicate request_size=255 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 0A F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 8B 02 00 35 04 06 00 61 [13:15:54]Write to MH i2c: E2 02 01 70 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 8B 02 00 35 04 06 00 61 00 00 F6 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 03 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [13:15:55]RAPDU: 90 00 [13:15:55]wFMCommunicate OK [13:15:55]wFMCommunicate request_size=10 [13:15:55]MH_SAM_APDU [13:15:55]CAPDU: 80 0D 02 02 05 0B A2 AF EC 54 [13:15:55]Write to MH i2c: E2 0D 00 71 18 80 0D 02 02 05 00 0B A2 AF EC 54 00 00 A9 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 03 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [13:15:55]RAPDU: 90 00 [13:15:55]wFMCommunicate OK [13:15:55]wFMCommunicate request_size=4 [13:15:55]MH_SAM_APDU [13:15:55]CAPDU: 80 0D 03 02 [13:15:55]Write to MH i2c: E2 08 00 72 18 80 0D 03 02 00 00 00 00 05 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0B 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0B 00 72 18 00 A9 9F EB F7 1C 54 04 61 90 00 05 [13:15:55]RAPDU: A9 9F EB F7 1C 54 04 61 90 00 [13:15:55]wFMCommunicate OK [13:15:55]SAM_PROTO_SignData done [13:15:55]FM_MakeSignedData done [13:15:55]CreateOFDProtocolMessage [13:15:55]wFMCommunicate request_size=4 [13:15:55]MH_SAM_APDU [13:15:55]CAPDU: 80 11 00 00 [13:15:55]Write to MH i2c: E2 08 00 73 18 80 11 00 00 00 00 00 00 05 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 17 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 17 00 73 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [13:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:15:55]wFMCommunicate OK [13:15:55]CreateOFDProtocolMessage done [13:15:55]OFDSenderStorePacket 166728 [13:15:55]StoreOFDPacket docnum=166728 [13:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A EA 07 01 DD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 8B 02 00 35 04 06 00 61 0B A2 AF EC 54 A9 9F EB F7 1C 54 04 61 [13:15:55]CheckFolder [13:15:55]dirname=/storage/ofd_packets [13:15:55]CheckFolder done [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00166728 [13:15:55]NVStorageSaveData ofd_packets/00166728 [13:15:55]File name is /storage/ofd_packets/00166728 [13:15:55]Write 301 bytes [13:15:55]NVStorageSaveData done [13:15:55]OFDSenderStorePacket done [13:15:55]KKMCreateOFDPacket done [13:15:55]NVStorageSaveData kkm_last_timestamp [13:15:55]File name is /storage/kkm_last_timestamp [13:15:55]Write 4 bytes [13:15:55]NVStorageSaveData done [13:15:55]ExternCall_PrintAddStr [13:15:55]wPrintStart [13:15:55]Write to MH i2c: 01 00 00 74 18 8C [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 FF 0F A1 [13:15:55]RasterBufferAndPrint [13:15:55]line Счет N : (1)221311 [13:15:55]line ИНН: 02508201610067 [13:15:55]line Контрольно-Кассовый Чек [13:15:55]line ПРОДАЖА [13:15:55]line ТРК (МРК, ГНК) : 13 [13:15:55]line Товар: 2710124130 [13:15:55]line Аи-92-К-5 [13:15:55]line 7.480 * 66.90 [13:15:55]line = 500.41 [13:15:55]line НДС 12% НСП 1% [13:15:55]line > о реализуемом товаре [13:15:55]line ОКРУГЛЕНИЕ: -0.41 [13:15:55]line ИТОГО: 500.00 [13:15:55]line Внесено: 500.00 [13:15:55]line СДАЧА: 0.00 [13:15:55]line НСП 1% : 4.43 [13:15:55]line НДС 12% : 53.14 [13:15:55]line Наличными: 500.00 [13:15:55]line Безнал.: 0.00 [13:15:55]line Место: АЗС № 161 "Партнер Нефть" [13:15:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:15:55]line СНО: Общий режим [13:15:55]line Чек 143 23.10.2024 13:15 [13:15:55]line Смена: 537 ФФД: 1.0 [13:15:55]line ЗНМ: 0300000104 [13:15:55]line РНМ: 0000000000091764 [13:15:55]line Версия ККМ: 001 [13:15:55]line ФМ: 0000000000871759 [13:15:55]line ФД: 166728 [13:15:55]line ФПД: 106702601972820 [13:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166728&fm=106702601972820&tin=02508201610067®Number=0000000000091764&sum=50000 [13:15:55]written 0, free lines is 4095 [13:15:55]OFD Sender: Processing packet 166728 [packets to send 48, broken 47] [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00166728 [13:15:55]OFD Sender: To server: pG, [13:15:55]CommunicateWithHost lk.salyk.kg:30040 [13:15:55]ConnectInit lk.salyk.kg [13:15:55]Connected sock=10 [13:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A EA 07 01 DD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0A F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 8B 02 00 35 04 06 00 61 0B A2 AF EC 54 A9 9F EB F7 1C 54 04 61 [13:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 84 47 00 3E 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 8B 02 00 F4 03 04 00 72 9D 18 67 B6 04 01 00 00 55 14 DC 6B E3 86 C8 6C [13:15:55]CommunicateWithHost err = 0 [13:15:55]CheckOFDResponse [13:15:55]1017 (14) - 77093643461234 [13:15:55]1041 (16) - 0000000000871759 [13:15:55]1040 (4) - 166728 [13:15:55]1012 (4) - 23.10.2024 06:53 [13:15:55]1206 (1) - 0 [13:15:55]OFD Sender: Remove packet 166728 [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00166728 [13:15:55]NVStorageDeleteData [13:15:55]Write to MH i2c: 01 00 00 9F 18 B7 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 A3 0C 6D [13:15:55]RasterBufferAndPrint [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]written 0, free lines is 3241 [13:15:55]MH_Cut [13:15:55]Write to MH i2c: D1 01 00 A6 18 01 90 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 01 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 01 00 A6 18 00 8F [13:15:55]Write to MH i2c: 01 00 00 A7 18 BF [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:56]OFD Sender: No OFD packet to send [13:15:56]*** Cut start [13:15:56]*** Partial cut [13:15:56]*** CUTSNS_PIN = 1 [13:15:56]*** CUTSNS_PIN = 0 [13:15:56]*** Brake cut motor [13:15:57]Read from MH i2c: 01 [13:15:57]MH_I2C_Read... [13:15:57]*** Stop cut motor [13:15:57]*** Cut end [13:15:57]Read from MH i2c: 01 07 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 FF 0F D4 [13:15:57]process_action close_receipt done [13:15:57]requested_data is exist [13:15:57]produce_requested_data [13:15:57]requested_item fm.sn is exist - process it [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 11 00 00 [13:15:57]Write to MH i2c: E2 08 00 A8 18 80 11 00 00 00 00 00 00 3A [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 A8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [13:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:15:57]wFMCommunicate OK [13:15:57]requested_item fd.num is exist - process it [13:15:57]SAM_PROTO_GetFieldsCounters [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 13 00 00 [13:15:57]Write to MH i2c: E2 08 00 A9 18 80 13 00 00 00 00 00 00 3D [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 62 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 62 00 A9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [13:15:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetFieldsCounters done [13:15:57]requested_item shift.num is exist - process it [13:15:57]requested_item shift.opened is exist - process it [13:15:57]req_shift_opened [13:15:57]FM_GetShiftState [13:15:57]SAM_PROTO_GetShiftState [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 13 01 00 [13:15:57]Write to MH i2c: E2 08 00 AA 18 80 13 01 00 00 00 00 00 3F [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 AA 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0A [13:15:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetShiftState done [13:15:57]FM_GetShiftState done [13:15:57]req_shift_opened done [13:15:57]requested_item shift.open_date is exist - process it [13:15:57]req_shift_open_date [13:15:57]req_shift_open_date done [13:15:57]produce_requested_data done [13:15:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166728,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:15:57]process_action_free close_receipt [13:15:57]json_value_free [13:15:57]json_value_free done [13:15:57]process_json_proto returns [13:15:57]Send response to host [13:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166728,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:15:57]free response buf [13:15:57]execute_script done [13:15:57]execute_script returns [13:15:57]free content buf [13:15:57]Sock 9.Close socket [13:15:57]Sock 9.Thread stoped [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:33]accept exits with 8 [13:17:33]New connection [13:17:33]New thread 3067178340 created [13:17:33]Thread 3067034980 joined [13:17:33]Waiting for new connection... [13:17:33] Sock 8.Parse request [13:17:33]Sock 8.Check first char [13:17:33]Sock 8.First char is OK [13:17:33]request: POST /json_proto HTTP/1.0 [13:17:33]Method: POST [13:17:33]URL: /json_proto [13:17:33]Method is POST - this is cgi request [13:17:33]url: /json_proto [13:17:33]query_string will be loaded in cgi processing [13:17:33]execute_cgi json_proto POST (null) [13:17:33]execute_cgi path=json_proto method=POST [13:17:33]POST find Content-Length [13:17:33]Host: 172.17.53.195:8080 [13:17:33]Content-Length: 677 [13:17:33]Content-Type: application/json [13:17:33] [13:17:33]POST finish read [13:17:33]Found Content-Length = 677 [13:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:33]execute_script... [13:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:33]POST & json_proto [13:17:33]process_json_proto [13:17:33]json parsed OK: [13:17:33]protocol is kg_v1.0 [13:17:33]action value=close_receipt [13:17:33]process_action close_receipt [13:17:33]cmd_close_receipt [13:17:33]MH_GetDate [13:17:33]Write to MH i2c: F0 00 00 AB 18 B2 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: F0 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: F0 09 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: F0 09 00 AB 18 00 6E F7 18 67 21 48 4A 65 B7 [13:17:33]GetLastDocTimeStamp 1729689354 [13:17:33]current date 1729689454 [13:17:33]FM_GetShiftState [13:17:33]SAM_PROTO_GetShiftState [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 13 01 00 [13:17:33]Write to MH i2c: E2 08 00 AC 18 80 13 01 00 00 00 00 00 41 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0E 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0E 00 AC 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0C [13:17:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_GetShiftState done [13:17:33]FM_GetShiftState done [13:17:33]opened in 1729643772 [13:17:33]opened+sec_in_day 1729730172 [13:17:33]quantity*price = 60009 [13:17:33]sum+1 = 60010 [13:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 144 23.10.2024 13:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166729 ФПД: 1051291433528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166729&fm=1051291433528&tin=02508201610067®Number=0000000000091764&sum=60000 [13:17:34]StoreToDocumentArchive [13:17:34]shift 537 fd 166729 [13:17:34]save to /storage/0537/doc_00166729 [13:17:34]save last doc name /storage/0537/doc_00166729 to /storage/kkm_last_doc_name [13:17:34]save OK [13:17:34]Clear old archive folders... [13:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:34]tlvbuf is 01FCB5B0 [13:17:34]SAM_PROTO_ClearQueue [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 09 00 00 [13:17:34]Write to MH i2c: E2 08 00 B9 18 80 09 00 00 00 00 00 00 43 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_ClearQueue done [13:17:35]KKMCreateOFDPacket [13:17:35]OFDProtocolAddRootSTLVToBuf [13:17:35]FM_MakeSignedData [13:17:35]FM_MakeSignedData [13:17:35]SAM_PROTO_SignData [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 01 02 [13:17:35]Write to MH i2c: E2 08 00 BA 18 80 0D 01 02 00 00 00 00 4B [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=255 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6E F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 8B 02 00 35 04 06 00 00 [13:17:35]Write to MH i2c: E2 02 01 BB 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6E F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 8B 02 00 35 04 06 00 00 00 00 23 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=10 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 02 02 05 F4 C5 DA 3A 38 [13:17:35]Write to MH i2c: E2 0D 00 BC 18 80 0D 02 02 05 00 F4 C5 DA 3A 38 00 00 5D [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 03 02 [13:17:35]Write to MH i2c: E2 08 00 BD 18 80 0D 03 02 00 00 00 00 50 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0B 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0B 00 BD 18 00 25 61 1A FA 30 21 C9 CE 90 00 D3 [13:17:35]RAPDU: 25 61 1A FA 30 21 C9 CE 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_SignData done [13:17:35]FM_MakeSignedData done [13:17:35]CreateOFDProtocolMessage [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 11 00 00 [13:17:35]Write to MH i2c: E2 08 00 BE 18 80 11 00 00 00 00 00 00 50 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 17 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 17 00 BE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [13:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:17:35]wFMCommunicate OK [13:17:35]CreateOFDProtocolMessage done [13:17:35]OFDSenderStorePacket 166729 [13:17:35]StoreOFDPacket docnum=166729 [13:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 BE 07 01 4F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6E F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 8B 02 00 35 04 06 00 00 F4 C5 DA 3A 38 25 61 1A FA 30 21 C9 CE [13:17:35]CheckFolder [13:17:35]dirname=/storage/ofd_packets [13:17:35]CheckFolder done [13:17:35]ProducePacketName [13:17:35]name=ofd_packets/00166729 [13:17:35]NVStorageSaveData ofd_packets/00166729 [13:17:35]File name is /storage/ofd_packets/00166729 [13:17:35]Write 301 bytes [13:17:35]NVStorageSaveData done [13:17:35]OFDSenderStorePacket done [13:17:35]KKMCreateOFDPacket done [13:17:35]NVStorageSaveData kkm_last_timestamp [13:17:35]File name is /storage/kkm_last_timestamp [13:17:35]Write 4 bytes [13:17:35]NVStorageSaveData done [13:17:35]ExternCall_PrintAddStr [13:17:35]wPrintStart [13:17:35]Write to MH i2c: 01 00 00 BF 18 D7 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 07 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 FF 0F EC [13:17:35]RasterBufferAndPrint [13:17:35]line Счет N : (1)221312 [13:17:35]line ИНН: 02508201610067 [13:17:35]line Контрольно-Кассовый Чек [13:17:35]line ПРОДАЖА [13:17:35]line ТРК (МРК, ГНК) : 23 [13:17:35]line Товар: 2710124130 [13:17:35]line Аи-92-К-5 [13:17:35]line 8.970 * 66.90 [13:17:35]line = 600.09 [13:17:35]line НДС 12% НСП 1% [13:17:35]line > о реализуемом товаре [13:17:35]line ОКРУГЛЕНИЕ: -0.09 [13:17:35]line ИТОГО: 600.00 [13:17:35]line Внесено: 600.00 [13:17:35]line СДАЧА: 0.00 [13:17:35]line НСП 1% : 5.31 [13:17:35]line НДС 12% : 63.73 [13:17:35]line Наличными: 600.00 [13:17:35]line Безнал.: 0.00 [13:17:35]line Место: АЗС № 161 "Партнер Нефть" [13:17:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:17:35]line СНО: Общий режим [13:17:35]line Чек 144 23.10.2024 13:17 [13:17:35]line Смена: 537 ФФД: 1.0 [13:17:35]line ЗНМ: 0300000104 [13:17:35]line РНМ: 0000000000091764 [13:17:35]line Версия ККМ: 001 [13:17:35]line ФМ: 0000000000871759 [13:17:35]line ФД: 166729 [13:17:35]line ФПД: 1051291433528 [13:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166729&fm=1051291433528&tin=02508201610067®Number=0000000000091764&sum=60000 [13:17:35]OFD Sender: Processing packet 166729 [packets to send 48, broken 47] [13:17:35]ProducePacketName [13:17:35]name=ofd_packets/00166729 [13:17:35]OFD Sender: To server: pG, [13:17:35]CommunicateWithHost lk.salyk.kg:30040 [13:17:35]ConnectInit lk.salyk.kg [13:17:35]written 0, free lines is 4095 [13:17:35]Connected sock=11 [13:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 BE 07 01 4F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6E F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 8B 02 00 35 04 06 00 00 F4 C5 DA 3A 38 25 61 1A FA 30 21 C9 CE [13:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7D 22 47 00 23 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 8B 02 00 F4 03 04 00 D6 9D 18 67 B6 04 01 00 00 41 29 54 23 F2 16 99 59 [13:17:36]CommunicateWithHost err = 0 [13:17:36]CheckOFDResponse [13:17:36]1017 (14) - 77093643461234 [13:17:36]1041 (16) - 0000000000871759 [13:17:36]1040 (4) - 166729 [13:17:36]1012 (4) - 23.10.2024 06:55 [13:17:36]1206 (1) - 0 [13:17:36]OFD Sender: Remove packet 166729 [13:17:36]ProducePacketName [13:17:36]name=ofd_packets/00166729 [13:17:36]NVStorageDeleteData [13:17:36]Write to MH i2c: 01 00 00 EA 18 02 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 A8 0C BD [13:17:36]RasterBufferAndPrint [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]written 0, free lines is 3245 [13:17:36]MH_Cut [13:17:36]Write to MH i2c: D1 01 00 F1 18 01 DB [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 01 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 01 00 F1 18 00 DA [13:17:36]Write to MH i2c: 01 00 00 F2 18 0A [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]OFD Sender: No OFD packet to send [13:17:37]*** Cut start [13:17:37]*** Partial cut [13:17:37]*** CUTSNS_PIN = 1 [13:17:37]*** CUTSNS_PIN = 0 [13:17:37]*** Brake cut motor [13:17:37]Read from MH i2c: 01 [13:17:37]MH_I2C_Read... [13:17:37]*** Stop cut motor [13:17:37]*** Cut end [13:17:37]Read from MH i2c: 01 07 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 FF 0F 1F [13:17:37]process_action close_receipt done [13:17:37]requested_data is exist [13:17:37]produce_requested_data [13:17:37]requested_item fm.sn is exist - process it [13:17:37]wFMCommunicate request_size=4 [13:17:37]MH_SAM_APDU [13:17:37]CAPDU: 80 11 00 00 [13:17:37]Write to MH i2c: E2 08 00 F3 18 80 11 00 00 00 00 00 00 85 [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:37]Read from MH i2c: E2 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 17 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 17 00 F3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [13:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:17:37]wFMCommunicate OK [13:17:37]requested_item fd.num is exist - process it [13:17:37]SAM_PROTO_GetFieldsCounters [13:17:37]wFMCommunicate request_size=4 [13:17:37]MH_SAM_APDU [13:17:37]CAPDU: 80 13 00 00 [13:17:37]Write to MH i2c: E2 08 00 F4 18 80 13 00 00 00 00 00 00 88 [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 62 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 62 00 F4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_GetFieldsCounters done [13:17:38]requested_item shift.num is exist - process it [13:17:38]requested_item shift.opened is exist - process it [13:17:38]req_shift_opened [13:17:38]FM_GetShiftState [13:17:38]SAM_PROTO_GetShiftState [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 13 01 00 [13:17:38]Write to MH i2c: E2 08 00 F5 18 80 13 01 00 00 00 00 00 8A [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0E 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0E 00 F5 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 55 [13:17:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_GetShiftState done [13:17:38]FM_GetShiftState done [13:17:38]req_shift_opened done [13:17:38]requested_item shift.open_date is exist - process it [13:17:38]req_shift_open_date [13:17:38]req_shift_open_date done [13:17:38]produce_requested_data done [13:17:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166729,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:17:38]process_action_free close_receipt [13:17:38]json_value_free [13:17:38]json_value_free done [13:17:38]process_json_proto returns [13:17:38]Send response to host [13:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166729,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:17:38]free response buf [13:17:38]execute_script done [13:17:38]execute_script returns [13:17:38]free content buf [13:17:38]Sock 8.Close socket [13:17:38]Sock 8.Thread stoped [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:23]accept exits with 9 [13:19:23]New connection [13:19:23]New thread 3067034980 created [13:19:23]Thread 3067178340 joined [13:19:23]Waiting for new connection... [13:19:23] Sock 9.Parse request [13:19:23]Sock 9.Check first char [13:19:23]Sock 9.First char is OK [13:19:23]request: POST /json_proto HTTP/1.0 [13:19:23]Method: POST [13:19:23]URL: /json_proto [13:19:23]Method is POST - this is cgi request [13:19:23]url: /json_proto [13:19:23]query_string will be loaded in cgi processing [13:19:23]execute_cgi json_proto POST (null) [13:19:23]execute_cgi path=json_proto method=POST [13:19:23]POST find Content-Length [13:19:23]Host: 172.17.53.195:8080 [13:19:23]Content-Length: 792 [13:19:23]Content-Type: application/json [13:19:23] [13:19:23]POST finish read [13:19:23]Found Content-Length = 792 [13:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:23]execute_script... [13:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:23]POST & json_proto [13:19:23]process_json_proto [13:19:23]json parsed OK: [13:19:23]protocol is kg_v1.0 [13:19:23]action value=close_receipt [13:19:23]process_action close_receipt [13:19:23]cmd_close_receipt [13:19:23]MH_GetDate [13:19:23]Write to MH i2c: F0 00 00 F6 18 FD [13:19:23]Write i2c OK [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: F0 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: F0 09 00 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: F0 09 00 F6 18 00 DC F7 18 67 21 48 4A 65 70 [13:19:23]GetLastDocTimeStamp 1729689454 [13:19:23]current date 1729689564 [13:19:23]FM_GetShiftState [13:19:23]SAM_PROTO_GetShiftState [13:19:23]wFMCommunicate request_size=4 [13:19:23]MH_SAM_APDU [13:19:23]CAPDU: 80 13 01 00 [13:19:23]Write to MH i2c: E2 08 00 F7 18 80 13 01 00 00 00 00 00 8C [13:19:23]Write i2c OK [13:19:23]MH_I2C_Read... [13:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:23]Read from MH i2c: E2 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: E2 0E 00 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: E2 0E 00 F7 18 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 57 [13:19:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:19:23]wFMCommunicate OK [13:19:23]SAM_PROTO_GetShiftState done [13:19:23]FM_GetShiftState done [13:19:23]opened in 1729643772 [13:19:23]opened+sec_in_day 1729730172 [13:19:23]quantity*price = 0 [13:19:23]sum+1 = 1 [13:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 145 23.10.2024 13:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 68875 ФМ: 0000000000871759 ФД: 166730 ФПД: 143015619607317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131924&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166730&fm=143015619607317&tin=02508201610067®Number=0000000000091764&sum=0 [13:19:25]StoreToDocumentArchive [13:19:25]shift 537 fd 166730 [13:19:25]save to /storage/0537/doc_00166730 [13:19:25]save last doc name /storage/0537/doc_00166730 to /storage/kkm_last_doc_name [13:19:25]save OK [13:19:25]Clear old archive folders... [13:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:25]tlvbuf is 01F97790 [13:19:25]SAM_PROTO_ClearQueue [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 09 00 00 [13:19:25]Write to MH i2c: E2 08 00 04 19 80 09 00 00 00 00 00 00 8F [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_ClearQueue done [13:19:25]KKMCreateOFDPacket [13:19:25]OFDProtocolAddRootSTLVToBuf [13:19:25]FM_MakeSignedData [13:19:25]FM_MakeSignedData [13:19:25]SAM_PROTO_SignData [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 01 02 [13:19:25]Write to MH i2c: E2 08 00 05 19 80 0D 01 02 00 00 00 00 97 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=255 [13:19:25]MH_SAM_APDU [13:19: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DC F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 8B 02 00 35 04 06 00 82 [13:19:25]Write to MH i2c: E2 02 01 06 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DC F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 8B 02 00 35 04 06 00 82 00 00 D1 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=10 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 02 02 05 12 6B 34 3B 15 [13:19:25]Write to MH i2c: E2 0D 00 07 19 80 0D 02 02 05 00 12 6B 34 3B 15 00 00 A5 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 03 02 [13:19:25]Write to MH i2c: E2 08 00 08 19 80 0D 03 02 00 00 00 00 9C [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0B 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0B 00 08 19 00 63 3E CF 65 22 BC 1D 7E 90 00 EB [13:19:25]RAPDU: 63 3E CF 65 22 BC 1D 7E 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_SignData done [13:19:25]FM_MakeSignedData done [13:19:25]CreateOFDProtocolMessage [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 11 00 00 [13:19:25]Write to MH i2c: E2 08 00 09 19 80 11 00 00 00 00 00 00 9C [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 17 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 17 00 09 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [13:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:19:25]wFMCommunicate OK [13:19:25]CreateOFDProtocolMessage done [13:19:25]OFDSenderStorePacket 166730 [13:19:25]StoreOFDPacket docnum=166730 [13:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C DC 07 01 6B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DC F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 8B 02 00 35 04 06 00 82 12 6B 34 3B 15 63 3E CF 65 22 BC 1D 7E [13:19:25]CheckFolder [13:19:25]dirname=/storage/ofd_packets [13:19:25]CheckFolder done [13:19:25]ProducePacketName [13:19:25]name=ofd_packets/00166730 [13:19:25]NVStorageSaveData ofd_packets/00166730 [13:19:25]File name is /storage/ofd_packets/00166730 [13:19:25]Write 301 bytes [13:19:25]NVStorageSaveData done [13:19:25]OFDSenderStorePacket done [13:19:25]KKMCreateOFDPacket done [13:19:25]NVStorageSaveData kkm_last_timestamp [13:19:25]File name is /storage/kkm_last_timestamp [13:19:25]Write 4 bytes [13:19:25]NVStorageSaveData done [13:19:25]ExternCall_PrintAddStr [13:19:25]wPrintStart [13:19:25]Write to MH i2c: 01 00 00 0A 19 23 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 FF 0F 38 [13:19:25]RasterBufferAndPrint [13:19:25]line Счет N : (1)221314 [13:19:25]line ИНН: 02508201610067 [13:19:25]line Контрольно-Кассовый Чек [13:19:25]line ПРОДАЖА [13:19:25]line ТРК (МРК, ГНК) : 13 [13:19:25]line Товар: 2710124130 [13:19:25]line Аи-92-К-5 [13:19:25]line 15.000 * 0.00 [13:19:25]line = 0.00 [13:19:25]line НДС 12% НСП 1% [13:19:25]line > о реализуемом товаре [13:19:25]line ИТОГО: 0.00 [13:19:25]line НСП 1% : 0.00 [13:19:25]line НДС 12% : 0.00 [13:19:25]line Наличными: 0.00 [13:19:25]line Безнал.: 0.00 [13:19:25]line Место: АЗС № 161 "Партнер Нефть" [13:19:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:19:25]line СНО: Общий режим [13:19:25]line Чек 145 23.10.2024 13:19 [13:19:25]line Смена: 537 ФФД: 1.0 [13:19:25]line ЗНМ: 0300000104 [13:19:25]line РНМ: 0000000000091764 [13:19:25]line Версия ККМ: 001 [13:19:25]line Талоны: Топливная Карта [13:19:25]line 68875 [13:19:25]line ФМ: 0000000000871759 [13:19:25]line ФД: 166730 [13:19:25]line ФПД: 143015619607317 [13:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131924&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166730&fm=143015619607317&tin=02508201610067®Number=0000000000091764&sum=0 [13:19:25]written 0, free lines is 4095 [13:19:25]OFD Sender: Processing packet 166730 [packets to send 48, broken 47] [13:19:25]ProducePacketName [13:19:25]name=ofd_packets/00166730 [13:19:25]OFD Sender: To server: pG, [13:19:25]CommunicateWithHost lk.salyk.kg:30040 [13:19:25]ConnectInit lk.salyk.kg [13:19:25]Connected sock=10 [13:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C DC 07 01 6B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DC F7 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 8B 02 00 35 04 06 00 82 12 6B 34 3B 15 63 3E CF 65 22 BC 1D 7E [13:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 DC 47 00 6E 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 8B 02 00 F4 03 04 00 44 9E 18 67 B6 04 01 00 00 4A E0 F2 86 73 20 92 75 [13:19:26]CommunicateWithHost err = 0 [13:19:26]CheckOFDResponse [13:19:26]1017 (14) - 77093643461234 [13:19:26]1041 (16) - 0000000000871759 [13:19:26]1040 (4) - 166730 [13:19:26]1012 (4) - 23.10.2024 06:57 [13:19:26]1206 (1) - 0 [13:19:26]OFD Sender: Remove packet 166730 [13:19:26]ProducePacketName [13:19:26]name=ofd_packets/00166730 [13:19:26]NVStorageDeleteData [13:19:26]Write to MH i2c: 01 00 00 34 19 4D [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 B6 0C 16 [13:19:26]RasterBufferAndPrint [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]written 0, free lines is 3260 [13:19:26]MH_Cut [13:19:26]Write to MH i2c: D1 01 00 3B 19 01 26 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 01 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 01 00 3B 19 00 25 [13:19:26]Write to MH i2c: 01 00 00 3C 19 55 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]OFD Sender: No OFD packet to send [13:19:27]*** Cut start [13:19:27]*** Partial cut [13:19:27]*** CUTSNS_PIN = 1 [13:19:27]*** CUTSNS_PIN = 0 [13:19:27]*** Brake cut motor [13:19:27]Read from MH i2c: 01 [13:19:27]MH_I2C_Read... [13:19:27]*** Stop cut motor [13:19:27]*** Cut end [13:19:27]Read from MH i2c: 01 07 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [13:19:27]process_action close_receipt done [13:19:27]requested_data is exist [13:19:27]produce_requested_data [13:19:27]requested_item fm.sn is exist - process it [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 3D 19 80 11 00 00 00 00 00 00 D0 [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 3D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [13:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:19:27]wFMCommunicate OK [13:19:27]requested_item fd.num is exist - process it [13:19:27]SAM_PROTO_GetFieldsCounters [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 13 00 00 [13:19:27]Write to MH i2c: E2 08 00 3E 19 80 13 00 00 00 00 00 00 D3 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 62 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 62 00 3E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:19:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_GetFieldsCounters done [13:19:27]requested_item shift.num is exist - process it [13:19:27]requested_item shift.opened is exist - process it [13:19:27]req_shift_opened [13:19:27]FM_GetShiftState [13:19:27]SAM_PROTO_GetShiftState [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 13 01 00 [13:19:27]Write to MH i2c: E2 08 00 3F 19 80 13 01 00 00 00 00 00 D5 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 0E 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 0E 00 3F 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A0 [13:19:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:19:28]wFMCommunicate OK [13:19:28]SAM_PROTO_GetShiftState done [13:19:28]FM_GetShiftState done [13:19:28]req_shift_opened done [13:19:28]requested_item shift.open_date is exist - process it [13:19:28]req_shift_open_date [13:19:28]req_shift_open_date done [13:19:28]produce_requested_data done [13:19:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166730,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:19:28]process_action_free close_receipt [13:19:28]json_value_free [13:19:28]json_value_free done [13:19:28]process_json_proto returns [13:19:28]Send response to host [13:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166730,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:19:28]free response buf [13:19:28]execute_script done [13:19:28]execute_script returns [13:19:28]free content buf [13:19:28]Sock 9.Close socket [13:19:28]Sock 9.Thread stoped [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:12]accept exits with 8 [13:21:12]New connection [13:21:12]New thread 3067178340 created [13:21:12]Thread 3067034980 joined [13:21:12]Waiting for new connection... [13:21:12] Sock 8.Parse request [13:21:12]Sock 8.Check first char [13:21:12]Sock 8.First char is OK [13:21:12]request: POST /json_proto HTTP/1.0 [13:21:12]Method: POST [13:21:12]URL: /json_proto [13:21:12]Method is POST - this is cgi request [13:21:12]url: /json_proto [13:21:12]query_string will be loaded in cgi processing [13:21:12]execute_cgi json_proto POST (null) [13:21:12]execute_cgi path=json_proto method=POST [13:21:12]POST find Content-Length [13:21:12]Host: 172.17.53.195:8080 [13:21:12]Content-Length: 677 [13:21:12]Content-Type: application/json [13:21:12] [13:21:12]POST finish read [13:21:12]Found Content-Length = 677 [13:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:12]execute_script... [13:21: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)221315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:12]POST & json_proto [13:21:12]process_json_proto [13:21:12]json parsed OK: [13:21:12]protocol is kg_v1.0 [13:21:12]action value=close_receipt [13:21:12]process_action close_receipt [13:21:12]cmd_close_receipt [13:21:12]MH_GetDate [13:21:12]Write to MH i2c: F0 00 00 40 19 48 [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: F0 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: F0 09 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: F0 09 00 40 19 00 49 F8 18 67 21 48 4A 65 29 [13:21:12]GetLastDocTimeStamp 1729689564 [13:21:12]current date 1729689673 [13:21:12]FM_GetShiftState [13:21:12]SAM_PROTO_GetShiftState [13:21:12]wFMCommunicate request_size=4 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 13 01 00 [13:21:12]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 0E 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A2 [13:21:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:21:12]wFMCommunicate OK [13:21:12]SAM_PROTO_GetShiftState done [13:21:12]FM_GetShiftState done [13:21:12]opened in 1729643772 [13:21:12]opened+sec_in_day 1729730172 [13:21:12]quantity*price = 40006 [13:21:12]sum+1 = 40007 [13:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 146 23.10.2024 13:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166731 ФПД: 241442117501806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166731&fm=241442117501806&tin=02508201610067®Number=0000000000091764&sum=40000 [13:21:13]StoreToDocumentArchive [13:21:13]shift 537 fd 166731 [13:21:13]save to /storage/0537/doc_00166731 [13:21:13]save last doc name /storage/0537/doc_00166731 to /storage/kkm_last_doc_name [13:21:13]save OK [13:21:13]Clear old archive folders... [13:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:13]tlvbuf is B6F11460 [13:21:13]SAM_PROTO_ClearQueue [13:21:13]wFMCommunicate request_size=4 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 09 00 00 [13:21:13]Write to MH i2c: E2 08 00 4E 19 80 09 00 00 00 00 00 00 D9 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [13:21:13]RAPDU: 90 00 [13:21:13]wFMCommunicate OK [13:21:13]SAM_PROTO_ClearQueue done [13:21:13]KKMCreateOFDPacket [13:21:13]OFDProtocolAddRootSTLVToBuf [13:21:13]FM_MakeSignedData [13:21:13]FM_MakeSignedData [13:21:13]SAM_PROTO_SignData [13:21:13]wFMCommunicate request_size=4 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 0D 01 02 [13:21:13]Write to MH i2c: E2 08 00 4F 19 80 0D 01 02 00 00 00 00 E1 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [13:21:13]RAPDU: 90 00 [13:21:13]wFMCommunicate OK [13:21:13]wFMCommunicate request_size=255 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 49 F8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 8B 02 00 35 04 06 00 DB [13:21:13]Write to MH i2c: E2 02 01 50 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 49 F8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 8B 02 00 35 04 06 00 DB 00 00 66 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [13:21:13]RAPDU: 90 00 [13:21:13]wFMCommunicate OK [13:21:13]wFMCommunicate request_size=10 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 0D 02 02 05 97 1F A5 C3 6E [13:21:13]Write to MH i2c: E2 0D 00 51 19 80 0D 02 02 05 00 97 1F A5 C3 6E 00 00 7A [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [13:21:13]RAPDU: 90 00 [13:21:13]wFMCommunicate OK [13:21:13]wFMCommunicate request_size=4 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 0D 03 02 [13:21:13]Write to MH i2c: E2 08 00 52 19 80 0D 03 02 00 00 00 00 E6 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 0B 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 0B 00 52 19 00 79 73 0A 64 3C 5C 70 A9 90 00 F2 [13:21:13]RAPDU: 79 73 0A 64 3C 5C 70 A9 90 00 [13:21:13]wFMCommunicate OK [13:21:13]SAM_PROTO_SignData done [13:21:13]FM_MakeSignedData done [13:21:13]CreateOFDProtocolMessage [13:21:13]wFMCommunicate request_size=4 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 11 00 00 [13:21:13]Write to MH i2c: E2 08 00 53 19 80 11 00 00 00 00 00 00 E6 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 17 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 17 00 53 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [13:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:13]wFMCommunicate OK [13:21:13]CreateOFDProtocolMessage done [13:21:13]OFDSenderStorePacket 166731 [13:21:13]StoreOFDPacket docnum=166731 [13:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 A2 07 01 C1 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 49 F8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 8B 02 00 35 04 06 00 DB 97 1F A5 C3 6E 79 73 0A 64 3C 5C 70 A9 [13:21:13]CheckFolder [13:21:13]dirname=/storage/ofd_packets [13:21:13]CheckFolder done [13:21:13]ProducePacketName [13:21:13]name=ofd_packets/00166731 [13:21:13]NVStorageSaveData ofd_packets/00166731 [13:21:13]File name is /storage/ofd_packets/00166731 [13:21:13]Write 301 bytes [13:21:13]NVStorageSaveData done [13:21:13]OFDSenderStorePacket done [13:21:13]KKMCreateOFDPacket done [13:21:13]NVStorageSaveData kkm_last_timestamp [13:21:13]File name is /storage/kkm_last_timestamp [13:21:13]Write 4 bytes [13:21:13]NVStorageSaveData done [13:21:13]ExternCall_PrintAddStr [13:21:13]wPrintStart [13:21:13]Write to MH i2c: 01 00 00 54 19 6D [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 54 19 00 00 00 00 00 FF 0F 82 [13:21:13]RasterBufferAndPrint [13:21:13]line Счет N : (1)221315 [13:21:13]line ИНН: 02508201610067 [13:21:13]line Контрольно-Кассовый Чек [13:21:13]line ПРОДАЖА [13:21:13]line ТРК (МРК, ГНК) : 33 [13:21:13]line Товар: 2710124130 [13:21:13]line Аи-92-К-5 [13:21:13]line 5.980 * 66.90 [13:21:13]line = 400.06 [13:21:13]line НДС 12% НСП 1% [13:21:13]line > о реализуемом товаре [13:21:13]line ОКРУГЛЕНИЕ: -0.06 [13:21:13]line ИТОГО: 400.00 [13:21:13]line Внесено: 400.00 [13:21:13]line СДАЧА: 0.00 [13:21:13]line НСП 1% : 3.54 [13:21:13]line НДС 12% : 42.48 [13:21:13]line Наличными: 400.00 [13:21:13]line Безнал.: 0.00 [13:21:13]line Место: АЗС № 161 "Партнер Нефть" [13:21:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:21:13]line СНО: Общий режим [13:21:13]line Чек 146 23.10.2024 13:21 [13:21:13]line Смена: 537 ФФД: 1.0 [13:21:13]line ЗНМ: 0300000104 [13:21:13]line РНМ: 0000000000091764 [13:21:13]line Версия ККМ: 001 [13:21:13]line ФМ: 0000000000871759 [13:21:13]line ФД: 166731 [13:21:13]line ФПД: 241442117501806 [13:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166731&fm=241442117501806&tin=02508201610067®Number=0000000000091764&sum=40000 [13:21:14]OFD Sender: Processing packet 166731 [packets to send 48, broken 47] [13:21:14]ProducePacketName [13:21:14]name=ofd_packets/00166731 [13:21:14]OFD Sender: To server: pG, [13:21:14]CommunicateWithHost lk.salyk.kg:30040 [13:21:14]ConnectInit lk.salyk.kg [13:21:14]written 0, free lines is 4095 [13:21:14]Connected sock=10 [13:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 A2 07 01 C1 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 49 F8 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 8B 02 00 35 04 06 00 DB 97 1F A5 C3 6E 79 73 0A 64 3C 5C 70 A9 [13:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE 3A 47 00 4C CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 8B 02 00 F4 03 04 00 B0 9E 18 67 B6 04 01 00 00 2C E1 E2 58 49 22 E3 14 [13:21:14]CommunicateWithHost err = 0 [13:21:14]CheckOFDResponse [13:21:14]1017 (14) - 77093643461234 [13:21:14]1041 (16) - 0000000000871759 [13:21:14]1040 (4) - 166731 [13:21:14]1012 (4) - 23.10.2024 06:58 [13:21:14]1206 (1) - 0 [13:21:14]OFD Sender: Remove packet 166731 [13:21:14]ProducePacketName [13:21:14]name=ofd_packets/00166731 [13:21:14]NVStorageDeleteData [13:21:14]Write to MH i2c: 01 00 00 7F 19 98 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 07 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 07 00 7F 19 00 00 00 00 00 B2 0C 5D [13:21:14]RasterBufferAndPrint [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]written 0, free lines is 3257 [13:21:14]MH_Cut [13:21:14]Write to MH i2c: D1 01 00 86 19 01 71 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 01 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 01 00 86 19 00 70 [13:21:14]Write to MH i2c: 01 00 00 87 19 A0 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:15]OFD Sender: No OFD packet to send [13:21:15]*** Cut start [13:21:15]*** Partial cut [13:21:15]*** CUTSNS_PIN = 1 [13:21:15]*** CUTSNS_PIN = 0 [13:21:15]*** Brake cut motor [13:21:16]Read from MH i2c: 01 [13:21:16]MH_I2C_Read... [13:21:16]*** Stop cut motor [13:21:16]*** Cut end [13:21:16]Read from MH i2c: 01 07 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 FF 0F B5 [13:21:16]process_action close_receipt done [13:21:16]requested_data is exist [13:21:16]produce_requested_data [13:21:16]requested_item fm.sn is exist - process it [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 11 00 00 [13:21:16]Write to MH i2c: E2 08 00 88 19 80 11 00 00 00 00 00 00 1B [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 88 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [13:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:16]wFMCommunicate OK [13:21:16]requested_item fd.num is exist - process it [13:21:16]SAM_PROTO_GetFieldsCounters [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 13 00 00 [13:21:16]Write to MH i2c: E2 08 00 89 19 80 13 00 00 00 00 00 00 1E [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 62 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 62 00 89 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [13:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_GetFieldsCounters done [13:21:16]requested_item shift.num is exist - process it [13:21:16]requested_item shift.opened is exist - process it [13:21:16]req_shift_opened [13:21:16]FM_GetShiftState [13:21:16]SAM_PROTO_GetShiftState [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 13 01 00 [13:21:16]Write to MH i2c: E2 08 00 8A 19 80 13 01 00 00 00 00 00 20 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0E 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0E 00 8A 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EB [13:21:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_GetShiftState done [13:21:16]FM_GetShiftState done [13:21:16]req_shift_opened done [13:21:16]requested_item shift.open_date is exist - process it [13:21:16]req_shift_open_date [13:21:16]req_shift_open_date done [13:21:16]produce_requested_data done [13:21:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166731,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:21:16]process_action_free close_receipt [13:21:16]json_value_free [13:21:16]json_value_free done [13:21:16]process_json_proto returns [13:21:16]Send response to host [13:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166731,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:21:16]free response buf [13:21:16]execute_script done [13:21:16]execute_script returns [13:21:16]free content buf [13:21:16]Sock 8.Close socket [13:21:16]Sock 8.Thread stoped [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:16]accept exits with 9 [13:24:16]New connection [13:24:16]New thread 3067034980 created [13:24:16]Thread 3067178340 joined [13:24:16]Waiting for new connection... [13:24:16] Sock 9.Parse request [13:24:16]Sock 9.Check first char [13:24:16]Sock 9.First char is OK [13:24:16]request: POST /json_proto HTTP/1.0 [13:24:16]Method: POST [13:24:16]URL: /json_proto [13:24:16]Method is POST - this is cgi request [13:24:16]url: /json_proto [13:24:16]query_string will be loaded in cgi processing [13:24:16]execute_cgi json_proto POST (null) [13:24:16]execute_cgi path=json_proto method=POST [13:24:16]POST find Content-Length [13:24:16]Host: 172.17.53.195:8080 [13:24:16]Content-Length: 677 [13:24:16]Content-Type: application/json [13:24:16] [13:24:16]POST finish read [13:24:16]Found Content-Length = 677 [13:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:16]execute_script... [13:24:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:16]POST & json_proto [13:24:16]process_json_proto [13:24:16]json parsed OK: [13:24:16]protocol is kg_v1.0 [13:24:16]action value=close_receipt [13:24:16]process_action close_receipt [13:24:16]cmd_close_receipt [13:24:16]MH_GetDate [13:24:16]Write to MH i2c: F0 00 00 8B 19 93 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 09 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 09 00 8B 19 00 01 F9 18 67 21 48 4A 65 2D [13:24:16]GetLastDocTimeStamp 1729689673 [13:24:16]current date 1729689857 [13:24:16]FM_GetShiftState [13:24:16]SAM_PROTO_GetShiftState [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 01 00 [13:24:16]Write to MH i2c: E2 08 00 8C 19 80 13 01 00 00 00 00 00 22 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 8C 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 ED [13:24:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetShiftState done [13:24:16]FM_GetShiftState done [13:24:16]opened in 1729643772 [13:24:16]opened+sec_in_day 1729730172 [13:24:16]quantity*price = 30038 [13:24:16]sum+1 = 30039 [13:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 147 23.10.2024 13:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166732 ФПД: 236689705988899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166732&fm=236689705988899&tin=02508201610067®Number=0000000000091764&sum=30000 [13:24:17]StoreToDocumentArchive [13:24:17]shift 537 fd 166732 [13:24:17]save to /storage/0537/doc_00166732 [13:24:17]save last doc name /storage/0537/doc_00166732 to /storage/kkm_last_doc_name [13:24:17]save OK [13:24:17]Clear old archive folders... [13:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:17]tlvbuf is 01FDCB10 [13:24:17]SAM_PROTO_ClearQueue [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 09 00 00 [13:24:17]Write to MH i2c: E2 08 00 99 19 80 09 00 00 00 00 00 00 24 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]SAM_PROTO_ClearQueue done [13:24:17]KKMCreateOFDPacket [13:24:17]OFDProtocolAddRootSTLVToBuf [13:24:17]FM_MakeSignedData [13:24:17]FM_MakeSignedData [13:24:17]SAM_PROTO_SignData [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 01 02 [13:24:17]Write to MH i2c: E2 08 00 9A 19 80 0D 01 02 00 00 00 00 2C [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]wFMCommunicate request_size=255 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 8B 02 00 35 04 06 00 D7 [13:24:17]Write to MH i2c: E2 02 01 9B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 8B 02 00 35 04 06 00 D7 00 00 8D [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 03 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [13:24:18]RAPDU: 90 00 [13:24:18]wFMCommunicate OK [13:24:18]wFMCommunicate request_size=10 [13:24:18]MH_SAM_APDU [13:24:18]CAPDU: 80 0D 02 02 05 44 9D D8 F3 23 [13:24:18]Write to MH i2c: E2 0D 00 9C 19 80 0D 02 02 05 00 44 9D D8 F3 23 00 00 08 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 03 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [13:24:18]RAPDU: 90 00 [13:24:18]wFMCommunicate OK [13:24:18]wFMCommunicate request_size=4 [13:24:18]MH_SAM_APDU [13:24:18]CAPDU: 80 0D 03 02 [13:24:18]Write to MH i2c: E2 08 00 9D 19 80 0D 03 02 00 00 00 00 31 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 0B 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 0B 00 9D 19 00 9E 38 60 AF AB 53 35 96 90 00 E0 [13:24:18]RAPDU: 9E 38 60 AF AB 53 35 96 90 00 [13:24:18]wFMCommunicate OK [13:24:18]SAM_PROTO_SignData done [13:24:18]FM_MakeSignedData done [13:24:18]CreateOFDProtocolMessage [13:24:18]wFMCommunicate request_size=4 [13:24:18]MH_SAM_APDU [13:24:18]CAPDU: 80 11 00 00 [13:24:18]Write to MH i2c: E2 08 00 9E 19 80 11 00 00 00 00 00 00 31 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 17 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 17 00 9E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [13:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:24:18]wFMCommunicate OK [13:24:18]CreateOFDProtocolMessage done [13:24:18]OFDSenderStorePacket 166732 [13:24:18]StoreOFDPacket docnum=166732 [13:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 22 07 01 4E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 8B 02 00 35 04 06 00 D7 44 9D D8 F3 23 9E 38 60 AF AB 53 35 96 [13:24:18]CheckFolder [13:24:18]dirname=/storage/ofd_packets [13:24:18]CheckFolder done [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00166732 [13:24:18]NVStorageSaveData ofd_packets/00166732 [13:24:18]File name is /storage/ofd_packets/00166732 [13:24:18]Write 301 bytes [13:24:18]NVStorageSaveData done [13:24:18]OFDSenderStorePacket done [13:24:18]KKMCreateOFDPacket done [13:24:18]NVStorageSaveData kkm_last_timestamp [13:24:18]File name is /storage/kkm_last_timestamp [13:24:18]Write 4 bytes [13:24:18]NVStorageSaveData done [13:24:18]ExternCall_PrintAddStr [13:24:18]wPrintStart [13:24:18]Write to MH i2c: 01 00 00 9F 19 B8 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 9F 19 00 00 00 00 00 FF 0F CD [13:24:18]RasterBufferAndPrint [13:24:18]line Счет N : (1)221316 [13:24:18]line ИНН: 02508201610067 [13:24:18]line Контрольно-Кассовый Чек [13:24:18]line ПРОДАЖА [13:24:18]line ТРК (МРК, ГНК) : 23 [13:24:18]line Товар: 2710124130 [13:24:18]line Аи-92-К-5 [13:24:18]line 4.490 * 66.90 [13:24:18]line = 300.38 [13:24:18]line НДС 12% НСП 1% [13:24:18]line > о реализуемом товаре [13:24:18]line ОКРУГЛЕНИЕ: -0.38 [13:24:18]line ИТОГО: 300.00 [13:24:18]line Внесено: 300.00 [13:24:18]line СДАЧА: 0.00 [13:24:18]line НСП 1% : 2.66 [13:24:18]line НДС 12% : 31.90 [13:24:18]line Наличными: 300.00 [13:24:18]line Безнал.: 0.00 [13:24:18]line Место: АЗС № 161 "Партнер Нефть" [13:24:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:24:18]line СНО: Общий режим [13:24:18]line Чек 147 23.10.2024 13:24 [13:24:18]line Смена: 537 ФФД: 1.0 [13:24:18]line ЗНМ: 0300000104 [13:24:18]line РНМ: 0000000000091764 [13:24:18]line Версия ККМ: 001 [13:24:18]line ФМ: 0000000000871759 [13:24:18]line ФД: 166732 [13:24:18]line ФПД: 236689705988899 [13:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166732&fm=236689705988899&tin=02508201610067®Number=0000000000091764&sum=30000 [13:24:18]OFD Sender: Processing packet 166732 [packets to send 48, broken 47] [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00166732 [13:24:18]OFD Sender: To server: pG, [13:24:18]CommunicateWithHost lk.salyk.kg:30040 [13:24:18]ConnectInit lk.salyk.kg [13:24:18]written 0, free lines is 4095 [13:24:18]Connected sock=11 [13:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 22 07 01 4E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 8B 02 00 35 04 06 00 D7 44 9D D8 F3 23 9E 38 60 AF AB 53 35 96 [13:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EB 48 47 00 D8 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 8B 02 00 F4 03 04 00 69 9F 18 67 B6 04 01 00 00 44 E8 9E D3 6C B9 0A CC [13:24:18]CommunicateWithHost err = 0 [13:24:18]CheckOFDResponse [13:24:18]1017 (14) - 77093643461234 [13:24:18]1041 (16) - 0000000000871759 [13:24:18]1040 (4) - 166732 [13:24:18]1012 (4) - 23.10.2024 07:02 [13:24:18]1206 (1) - 0 [13:24:18]OFD Sender: Remove packet 166732 [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00166732 [13:24:18]NVStorageDeleteData [13:24:19]Write to MH i2c: 01 00 00 CA 19 E3 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 A7 0C 9D [13:24:19]RasterBufferAndPrint [13:24:19]line [13:24:19]line [13:24:19]line [13:24:19]line [13:24:19]line [13:24:19]written 0, free lines is 3242 [13:24:19]MH_Cut [13:24:19]Write to MH i2c: D1 01 00 D1 19 01 BC [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: D1 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: D1 01 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: D1 01 00 D1 19 00 BB [13:24:19]Write to MH i2c: 01 00 00 D2 19 EB [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]OFD Sender: No OFD packet to send [13:24:19]*** Cut start [13:24:19]*** Partial cut [13:24:19]*** CUTSNS_PIN = 1 [13:24:19]*** CUTSNS_PIN = 0 [13:24:20]*** Brake cut motor [13:24:20]Read from MH i2c: 01 [13:24:20]MH_I2C_Read... [13:24:20]*** Stop cut motor [13:24:20]*** Cut end [13:24:20]Read from MH i2c: 01 07 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [13:24:20]process_action close_receipt done [13:24:20]requested_data is exist [13:24:20]produce_requested_data [13:24:20]requested_item fm.sn is exist - process it [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 11 00 00 [13:24:20]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 17 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [13:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:24:20]wFMCommunicate OK [13:24:20]requested_item fd.num is exist - process it [13:24:20]SAM_PROTO_GetFieldsCounters [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 13 00 00 [13:24:20]Write to MH i2c: E2 08 00 D4 19 80 13 00 00 00 00 00 00 69 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 62 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 62 00 D4 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [13:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:20]wFMCommunicate OK [13:24:20]SAM_PROTO_GetFieldsCounters done [13:24:20]requested_item shift.num is exist - process it [13:24:20]requested_item shift.opened is exist - process it [13:24:20]req_shift_opened [13:24:20]FM_GetShiftState [13:24:20]SAM_PROTO_GetShiftState [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 13 01 00 [13:24:20]Write to MH i2c: E2 08 00 D5 19 80 13 01 00 00 00 00 00 6B [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 0E 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 0E 00 D5 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 36 [13:24:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:24:20]wFMCommunicate OK [13:24:20]SAM_PROTO_GetShiftState done [13:24:20]FM_GetShiftState done [13:24:20]req_shift_opened done [13:24:20]requested_item shift.open_date is exist - process it [13:24:20]req_shift_open_date [13:24:20]req_shift_open_date done [13:24:20]produce_requested_data done [13:24:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166732,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:24:20]process_action_free close_receipt [13:24:20]json_value_free [13:24:20]json_value_free done [13:24:20]process_json_proto returns [13:24:20]Send response to host [13:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166732,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:24:20]free response buf [13:24:20]execute_script done [13:24:20]execute_script returns [13:24:20]free content buf [13:24:20]Sock 9.Close socket [13:24:20]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:23]accept exits with 8 [13:28:23]New connection [13:28:23]New thread 3067178340 created [13:28:23]Thread 3067034980 joined [13:28:23]Waiting for new connection... [13:28:23] Sock 8.Parse request [13:28:23]Sock 8.Check first char [13:28:23]Sock 8.First char is OK [13:28:23]request: POST /json_proto HTTP/1.0 [13:28:23]Method: POST [13:28:23]URL: /json_proto [13:28:23]Method is POST - this is cgi request [13:28:23]url: /json_proto [13:28:23]query_string will be loaded in cgi processing [13:28:23]execute_cgi json_proto POST (null) [13:28:23]execute_cgi path=json_proto method=POST [13:28:23]POST find Content-Length [13:28:23]Host: 172.17.53.195:8080 [13:28:23]Content-Length: 674 [13:28:23]Content-Type: application/json [13:28:23] [13:28:23]POST finish read [13:28:23]Found Content-Length = 674 [13:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:23]execute_script... [13:28: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)221317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:23]POST & json_proto [13:28:23]process_json_proto [13:28:23]json parsed OK: [13:28:23]protocol is kg_v1.0 [13:28:23]action value=close_receipt [13:28:23]process_action close_receipt [13:28:23]cmd_close_receipt [13:28:23]MH_GetDate [13:28:23]Write to MH i2c: F0 00 00 D6 19 DE [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: F0 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: F0 09 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: F0 09 00 D6 19 00 F9 F9 18 67 21 48 4A 65 70 [13:28:23]GetLastDocTimeStamp 1729689857 [13:28:23]current date 1729690105 [13:28:23]FM_GetShiftState [13:28:23]SAM_PROTO_GetShiftState [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 13 01 00 [13:28:23]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0E 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 38 [13:28:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:28:24]wFMCommunicate OK [13:28:24]SAM_PROTO_GetShiftState done [13:28:24]FM_GetShiftState done [13:28:24]opened in 1729643772 [13:28:24]opened+sec_in_day 1729730172 [13:28:24]quantity*price = 50063 [13:28:24]sum+1 = 50064 [13:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 148 23.10.2024 13:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166733 ФПД: 227088258708660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166733&fm=227088258708660&tin=02508201610067®Number=0000000000091764&sum=50000 [13:28:25]StoreToDocumentArchive [13:28:25]shift 537 fd 166733 [13:28:25]save to /storage/0537/doc_00166733 [13:28:25]save last doc name /storage/0537/doc_00166733 to /storage/kkm_last_doc_name [13:28:25]save OK [13:28:25]Clear old archive folders... [13:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:25]tlvbuf is 01FE1070 [13:28:25]SAM_PROTO_ClearQueue [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 09 00 00 [13:28:25]Write to MH i2c: E2 08 00 E4 19 80 09 00 00 00 00 00 00 6F [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [13:28:25]RAPDU: 90 00 [13:28:25]wFMCommunicate OK [13:28:25]SAM_PROTO_ClearQueue done [13:28:25]KKMCreateOFDPacket [13:28:25]OFDProtocolAddRootSTLVToBuf [13:28:25]FM_MakeSignedData [13:28:25]FM_MakeSignedData [13:28:25]SAM_PROTO_SignData [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 0D 01 02 [13:28:25]Write to MH i2c: E2 08 00 E5 19 80 0D 01 02 00 00 00 00 77 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [13:28:25]RAPDU: 90 00 [13:28:25]wFMCommunicate OK [13:28:25]wFMCommunicate request_size=255 [13:28:25]MH_SAM_APDU [13:28: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F9 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 8B 02 00 35 04 06 00 CE 89 1A FE [13:28:25]Write to MH i2c: E2 02 01 E6 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F9 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 8B 02 00 35 04 06 00 CE 89 1A FE 00 00 F4 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [13:28:25]RAPDU: 90 00 [13:28:25]wFMCommunicate OK [13:28:25]wFMCommunicate request_size=7 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 0D 02 02 02 34 B4 [13:28:25]Write to MH i2c: E2 0A 00 E7 19 80 0D 02 02 02 00 34 B4 00 00 66 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [13:28:25]RAPDU: 90 00 [13:28:25]wFMCommunicate OK [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 0D 03 02 [13:28:25]Write to MH i2c: E2 08 00 E8 19 80 0D 03 02 00 00 00 00 7C [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 0B 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 0B 00 E8 19 00 01 3F 22 30 04 F7 C0 A9 90 00 73 [13:28:25]RAPDU: 01 3F 22 30 04 F7 C0 A9 90 00 [13:28:25]wFMCommunicate OK [13:28:25]SAM_PROTO_SignData done [13:28:25]FM_MakeSignedData done [13:28:25]CreateOFDProtocolMessage [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 11 00 00 [13:28:25]Write to MH i2c: E2 08 00 E9 19 80 11 00 00 00 00 00 00 7C [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 E9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [13:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:28:25]wFMCommunicate OK [13:28:25]CreateOFDProtocolMessage done [13:28:25]OFDSenderStorePacket 166733 [13:28:25]StoreOFDPacket docnum=166733 [13:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 8A 04 01 A2 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F9 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 8B 02 00 35 04 06 00 CE 89 1A FE 34 B4 01 3F 22 30 04 F7 C0 A9 [13:28:25]CheckFolder [13:28:25]dirname=/storage/ofd_packets [13:28:25]CheckFolder done [13:28:25]ProducePacketName [13:28:25]name=ofd_packets/00166733 [13:28:25]NVStorageSaveData ofd_packets/00166733 [13:28:25]File name is /storage/ofd_packets/00166733 [13:28:25]Write 298 bytes [13:28:25]NVStorageSaveData done [13:28:25]OFDSenderStorePacket done [13:28:25]KKMCreateOFDPacket done [13:28:25]NVStorageSaveData kkm_last_timestamp [13:28:25]File name is /storage/kkm_last_timestamp [13:28:25]Write 4 bytes [13:28:25]NVStorageSaveData done [13:28:25]ExternCall_PrintAddStr [13:28:25]wPrintStart [13:28:25]Write to MH i2c: 01 00 00 EA 19 03 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 FF 0F 18 [13:28:25]RasterBufferAndPrint [13:28:25]line Счет N : (1)221317 [13:28:25]line ИНН: 02508201610067 [13:28:25]line Контрольно-Кассовый Чек [13:28:25]line ПРОДАЖА [13:28:25]line ТРК (МРК, ГНК) : 21 [13:28:25]line Товар: 2710194210 [13:28:25]line ДТ-К-5 [13:28:25]line 6.570 * 76.20 [13:28:25]line = 500.63 [13:28:25]line НДС 12% НСП 1% [13:28:25]line > о реализуемом товаре [13:28:25]line ОКРУГЛЕНИЕ: -0.63 [13:28:25]line ИТОГО: 500.00 [13:28:25]line Внесено: 500.00 [13:28:25]line СДАЧА: 0.00 [13:28:25]line НСП 1% : 4.43 [13:28:25]line НДС 12% : 53.16 [13:28:25]line Наличными: 500.00 [13:28:25]line Безнал.: 0.00 [13:28:25]line Место: АЗС № 161 "Партнер Нефть" [13:28:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:28:25]line СНО: Общий режим [13:28:25]line Чек 148 23.10.2024 13:28 [13:28:25]line Смена: 537 ФФД: 1.0 [13:28:25]line ЗНМ: 0300000104 [13:28:25]line РНМ: 0000000000091764 [13:28:25]line Версия ККМ: 001 [13:28:25]line ФМ: 0000000000871759 [13:28:25]line ФД: 166733 [13:28:25]line ФПД: 227088258708660 [13:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166733&fm=227088258708660&tin=02508201610067®Number=0000000000091764&sum=50000 [13:28:26]written 0, free lines is 4095 [13:28:26]OFD Sender: Processing packet 166733 [packets to send 48, broken 47] [13:28:26]ProducePacketName [13:28:26]name=ofd_packets/00166733 [13:28:26]OFD Sender: To server: pG, [13:28:26]CommunicateWithHost lk.salyk.kg:30040 [13:28:26]ConnectInit lk.salyk.kg [13:28:26]Connected sock=10 [13:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 8A 04 01 A2 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F9 F9 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 8B 02 00 35 04 06 00 CE 89 1A FE 34 B4 01 3F 22 30 04 F7 C0 A9 [13:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B AE 47 00 82 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 8B 02 00 F4 03 04 00 60 A0 18 67 B6 04 01 00 00 7D 6F AF 85 57 F6 9B F4 [13:28:26]CommunicateWithHost err = 0 [13:28:26]CheckOFDResponse [13:28:26]1017 (14) - 77093643461234 [13:28:26]1041 (16) - 0000000000871759 [13:28:26]1040 (4) - 166733 [13:28:26]1012 (4) - 23.10.2024 07:06 [13:28:26]1206 (1) - 0 [13:28:26]OFD Sender: Remove packet 166733 [13:28:26]ProducePacketName [13:28:26]name=ofd_packets/00166733 [13:28:26]NVStorageDeleteData [13:28:26]Write to MH i2c: 01 00 00 15 1A 2F [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: 01 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: 01 07 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 A3 0C E5 [13:28:26]RasterBufferAndPrint [13:28:26]line [13:28:26]line [13:28:26]line [13:28:26]line [13:28:26]line [13:28:26]written 0, free lines is 3241 [13:28:26]MH_Cut [13:28:26]Write to MH i2c: D1 01 00 1C 1A 01 08 [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: D1 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: D1 01 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: D1 01 00 1C 1A 00 07 [13:28:26]Write to MH i2c: 01 00 00 1D 1A 37 [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]OFD Sender: No OFD packet to send [13:28:27]*** Cut start [13:28:27]*** Partial cut [13:28:27]*** CUTSNS_PIN = 1 [13:28:27]*** CUTSNS_PIN = 0 [13:28:27]*** Brake cut motor [13:28:27]Read from MH i2c: 01 [13:28:27]MH_I2C_Read... [13:28:27]*** Stop cut motor [13:28:27]*** Cut end [13:28:27]Read from MH i2c: 01 07 00 [13:28:27]MH_I2C_Read... [13:28:27]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 FF 0F 4C [13:28:27]process_action close_receipt done [13:28:27]requested_data is exist [13:28:27]produce_requested_data [13:28:27]requested_item fm.sn is exist - process it [13:28:27]wFMCommunicate request_size=4 [13:28:27]MH_SAM_APDU [13:28:27]CAPDU: 80 11 00 00 [13:28:27]Write to MH i2c: E2 08 00 1E 1A 80 11 00 00 00 00 00 00 B2 [13:28:27]Write i2c OK [13:28:27]MH_I2C_Read... [13:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:28]Read from MH i2c: E2 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 17 00 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 17 00 1E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [13:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:28:28]wFMCommunicate OK [13:28:28]requested_item fd.num is exist - process it [13:28:28]SAM_PROTO_GetFieldsCounters [13:28:28]wFMCommunicate request_size=4 [13:28:28]MH_SAM_APDU [13:28:28]CAPDU: 80 13 00 00 [13:28:28]Write to MH i2c: E2 08 00 1F 1A 80 13 00 00 00 00 00 00 B5 [13:28:28]Write i2c OK [13:28:28]MH_I2C_Read... [13:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:28]Read from MH i2c: E2 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 62 00 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 62 00 1F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [13:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:28]wFMCommunicate OK [13:28:28]SAM_PROTO_GetFieldsCounters done [13:28:28]requested_item shift.num is exist - process it [13:28:28]requested_item shift.opened is exist - process it [13:28:28]req_shift_opened [13:28:28]FM_GetShiftState [13:28:28]SAM_PROTO_GetShiftState [13:28:28]wFMCommunicate request_size=4 [13:28:28]MH_SAM_APDU [13:28:28]CAPDU: 80 13 01 00 [13:28:28]Write to MH i2c: E2 08 00 20 1A 80 13 01 00 00 00 00 00 B7 [13:28:28]Write i2c OK [13:28:28]MH_I2C_Read... [13:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:28]Read from MH i2c: E2 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 0E 00 [13:28:28]MH_I2C_Read... [13:28:28]Read from MH i2c: E2 0E 00 20 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 82 [13:28:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:28:28]wFMCommunicate OK [13:28:28]SAM_PROTO_GetShiftState done [13:28:28]FM_GetShiftState done [13:28:28]req_shift_opened done [13:28:28]requested_item shift.open_date is exist - process it [13:28:28]req_shift_open_date [13:28:28]req_shift_open_date done [13:28:28]produce_requested_data done [13:28:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166733,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:28:28]process_action_free close_receipt [13:28:28]json_value_free [13:28:28]json_value_free done [13:28:28]process_json_proto returns [13:28:28]Send response to host [13:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166733,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:28:28]free response buf [13:28:28]execute_script done [13:28:28]execute_script returns [13:28:28]free content buf [13:28:28]Sock 8.Close socket [13:28:28]Sock 8.Thread stoped [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:35]accept exits with 9 [13:30:35]New connection [13:30:35]New thread 3067034980 created [13:30:35]Thread 3067178340 joined [13:30:35]Waiting for new connection... [13:30:35] Sock 9.Parse request [13:30:35]Sock 9.Check first char [13:30:35]Sock 9.First char is OK [13:30:35]request: POST /json_proto HTTP/1.0 [13:30:35]Method: POST [13:30:35]URL: /json_proto [13:30:35]Method is POST - this is cgi request [13:30:35]url: /json_proto [13:30:35]query_string will be loaded in cgi processing [13:30:35]execute_cgi json_proto POST (null) [13:30:35]execute_cgi path=json_proto method=POST [13:30:35]POST find Content-Length [13:30:35]Host: 172.17.53.195:8080 [13:30:35]Content-Length: 789 [13:30:35]Content-Type: application/json [13:30:35] [13:30:35]POST finish read [13:30:35]Found Content-Length = 789 [13:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:35]execute_script... [13:30:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:35]POST & json_proto [13:30:35]process_json_proto [13:30:35]json parsed OK: [13:30:35]protocol is kg_v1.0 [13:30:35]action value=close_receipt [13:30:35]process_action close_receipt [13:30:35]cmd_close_receipt [13:30:35]MH_GetDate [13:30:35]Write to MH i2c: F0 00 00 21 1A 2A [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 09 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 09 00 21 1A 00 7D FA 18 67 21 48 4A 65 41 [13:30:35]GetLastDocTimeStamp 1729690105 [13:30:35]current date 1729690237 [13:30:35]FM_GetShiftState [13:30:35]SAM_PROTO_GetShiftState [13:30:35]wFMCommunicate request_size=4 [13:30:35]MH_SAM_APDU [13:30:35]CAPDU: 80 13 01 00 [13:30:35]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0E 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 84 [13:30:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:30:35]wFMCommunicate OK [13:30:35]SAM_PROTO_GetShiftState done [13:30:35]FM_GetShiftState done [13:30:35]opened in 1729643772 [13:30:35]opened+sec_in_day 1729730172 [13:30:35]quantity*price = 0 [13:30:35]sum+1 = 1 [13:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 149 23.10.2024 13:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85742 ФМ: 0000000000871759 ФД: 166734 ФПД: 34656980144045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133037&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166734&fm=34656980144045&tin=02508201610067®Number=0000000000091764&sum=0 [13:30:37]StoreToDocumentArchive [13:30:37]shift 537 fd 166734 [13:30:37]save to /storage/0537/doc_00166734 [13:30:37]save last doc name /storage/0537/doc_00166734 to /storage/kkm_last_doc_name [13:30:37]save OK [13:30:37]Clear old archive folders... [13:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:37]tlvbuf is 01FDAA50 [13:30:37]SAM_PROTO_ClearQueue [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 09 00 00 [13:30:37]Write to MH i2c: E2 08 00 2F 1A 80 09 00 00 00 00 00 00 BB [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [13:30:37]RAPDU: 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_ClearQueue done [13:30:37]KKMCreateOFDPacket [13:30:37]OFDProtocolAddRootSTLVToBuf [13:30:37]FM_MakeSignedData [13:30:37]FM_MakeSignedData [13:30:37]SAM_PROTO_SignData [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 0D 01 02 [13:30:37]Write to MH i2c: E2 08 00 30 1A 80 0D 01 02 00 00 00 00 C3 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [13:30:37]RAPDU: 90 00 [13:30:37]wFMCommunicate OK [13:30:37]wFMCommunicate request_size=255 [13:30:37]MH_SAM_APDU [13:30: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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7D FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 8B 02 00 35 04 06 00 1F 85 34 FD [13:30:37]Write to MH i2c: E2 02 01 31 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7D FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 8B 02 00 35 04 06 00 1F 85 34 FD 00 00 EA [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [13:30:37]RAPDU: 90 00 [13:30:37]wFMCommunicate OK [13:30:37]wFMCommunicate request_size=7 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 0D 02 02 02 8F AD [13:30:37]Write to MH i2c: E2 0A 00 32 1A 80 0D 02 02 02 00 8F AD 00 00 06 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [13:30:37]RAPDU: 90 00 [13:30:37]wFMCommunicate OK [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 0D 03 02 [13:30:37]Write to MH i2c: E2 08 00 33 1A 80 0D 03 02 00 00 00 00 C8 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0B 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0B 00 33 1A 00 2B F6 AE 26 C2 39 60 41 90 00 5A [13:30:37]RAPDU: 2B F6 AE 26 C2 39 60 41 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_SignData done [13:30:37]FM_MakeSignedData done [13:30:37]CreateOFDProtocolMessage [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 11 00 00 [13:30:37]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 17 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [13:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:30:37]wFMCommunicate OK [13:30:37]CreateOFDProtocolMessage done [13:30:37]OFDSenderStorePacket 166734 [13:30:37]StoreOFDPacket docnum=166734 [13:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C1 A1 04 01 EF 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7D FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 8B 02 00 35 04 06 00 1F 85 34 FD 8F AD 2B F6 AE 26 C2 39 60 41 [13:30:37]CheckFolder [13:30:37]dirname=/storage/ofd_packets [13:30:37]CheckFolder done [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00166734 [13:30:37]NVStorageSaveData ofd_packets/00166734 [13:30:37]File name is /storage/ofd_packets/00166734 [13:30:37]Write 298 bytes [13:30:37]NVStorageSaveData done [13:30:37]OFDSenderStorePacket done [13:30:37]KKMCreateOFDPacket done [13:30:37]NVStorageSaveData kkm_last_timestamp [13:30:37]File name is /storage/kkm_last_timestamp [13:30:37]Write 4 bytes [13:30:37]NVStorageSaveData done [13:30:37]ExternCall_PrintAddStr [13:30:37]wPrintStart [13:30:37]Write to MH i2c: 01 00 00 35 1A 4F [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 07 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 FF 0F 64 [13:30:37]RasterBufferAndPrint [13:30:37]line Счет N : (1)221319 [13:30:37]line ИНН: 02508201610067 [13:30:37]line Контрольно-Кассовый Чек [13:30:37]line ПРОДАЖА [13:30:37]line ТРК (МРК, ГНК) : 11 [13:30:37]line Товар: 2710194210 [13:30:37]line ДТ-К-5 [13:30:37]line 39.380 * 0.00 [13:30:37]line = 0.00 [13:30:37]line НДС 12% НСП 1% [13:30:37]line > о реализуемом товаре [13:30:37]line ИТОГО: 0.00 [13:30:37]line НСП 1% : 0.00 [13:30:37]line НДС 12% : 0.00 [13:30:37]line Наличными: 0.00 [13:30:37]line Безнал.: 0.00 [13:30:37]line Место: АЗС № 161 "Партнер Нефть" [13:30:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:30:37]line СНО: Общий режим [13:30:37]line Чек 149 23.10.2024 13:30 [13:30:37]line Смена: 537 ФФД: 1.0 [13:30:37]line ЗНМ: 0300000104 [13:30:37]line РНМ: 0000000000091764 [13:30:37]line Версия ККМ: 001 [13:30:37]line Талоны: Топливная Карта [13:30:37]line 85742 [13:30:37]line ФМ: 0000000000871759 [13:30:37]line ФД: 166734 [13:30:37]line ФПД: 34656980144045 [13:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133037&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166734&fm=34656980144045&tin=02508201610067®Number=0000000000091764&sum=0 [13:30:37]OFD Sender: Processing packet 166734 [packets to send 48, broken 47] [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00166734 [13:30:37]OFD Sender: To server: pG, [13:30:37]CommunicateWithHost lk.salyk.kg:30040 [13:30:37]ConnectInit lk.salyk.kg [13:30:37]written 0, free lines is 4095 [13:30:38]Connected sock=10 [13:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C1 A1 04 01 EF 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7D FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 8B 02 00 35 04 06 00 1F 85 34 FD 8F AD 2B F6 AE 26 C2 39 60 41 [13:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 70 31 47 00 64 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 8B 02 00 F4 03 04 00 E4 A0 18 67 B6 04 01 00 00 65 3C 71 57 B9 85 B4 95 [13:30:38]CommunicateWithHost err = 0 [13:30:38]CheckOFDResponse [13:30:38]1017 (14) - 77093643461234 [13:30:38]1041 (16) - 0000000000871759 [13:30:38]1040 (4) - 166734 [13:30:38]1012 (4) - 23.10.2024 07:08 [13:30:38]1206 (1) - 0 [13:30:38]OFD Sender: Remove packet 166734 [13:30:38]ProducePacketName [13:30:38]name=ofd_packets/00166734 [13:30:38]NVStorageDeleteData [13:30:38]Write to MH i2c: 01 00 00 5F 1A 79 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 07 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 B6 0C 42 [13:30:38]RasterBufferAndPrint [13:30:38]line [13:30:38]line [13:30:38]line [13:30:38]line [13:30:38]line [13:30:38]written 0, free lines is 3258 [13:30:38]MH_Cut [13:30:38]Write to MH i2c: D1 01 00 66 1A 01 52 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: D1 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: D1 01 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: D1 01 00 66 1A 00 51 [13:30:38]Write to MH i2c: 01 00 00 67 1A 81 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]OFD Sender: No OFD packet to send [13:30:39]*** Cut start [13:30:39]*** Partial cut [13:30:39]*** CUTSNS_PIN = 1 [13:30:39]*** CUTSNS_PIN = 0 [13:30:39]*** Brake cut motor [13:30:39]Read from MH i2c: 01 [13:30:39]MH_I2C_Read... [13:30:39]*** Stop cut motor [13:30:39]*** Cut end [13:30:39]Read from MH i2c: 01 07 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 FF 0F 96 [13:30:39]process_action close_receipt done [13:30:39]requested_data is exist [13:30:39]produce_requested_data [13:30:39]requested_item fm.sn is exist - process it [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 11 00 00 [13:30:39]Write to MH i2c: E2 08 00 68 1A 80 11 00 00 00 00 00 00 FC [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 17 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 17 00 68 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [13:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:30:39]wFMCommunicate OK [13:30:39]requested_item fd.num is exist - process it [13:30:39]SAM_PROTO_GetFieldsCounters [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 13 00 00 [13:30:39]Write to MH i2c: E2 08 00 69 1A 80 13 00 00 00 00 00 00 FF [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 62 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 62 00 69 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:40]wFMCommunicate OK [13:30:40]SAM_PROTO_GetFieldsCounters done [13:30:40]requested_item shift.num is exist - process it [13:30:40]requested_item shift.opened is exist - process it [13:30:40]req_shift_opened [13:30:40]FM_GetShiftState [13:30:40]SAM_PROTO_GetShiftState [13:30:40]wFMCommunicate request_size=4 [13:30:40]MH_SAM_APDU [13:30:40]CAPDU: 80 13 01 00 [13:30:40]Write to MH i2c: E2 08 00 6A 1A 80 13 01 00 00 00 00 00 01 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 0E 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 0E 00 6A 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [13:30:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:30:40]wFMCommunicate OK [13:30:40]SAM_PROTO_GetShiftState done [13:30:40]FM_GetShiftState done [13:30:40]req_shift_opened done [13:30:40]requested_item shift.open_date is exist - process it [13:30:40]req_shift_open_date [13:30:40]req_shift_open_date done [13:30:40]produce_requested_data done [13:30:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166734,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:30:40]process_action_free close_receipt [13:30:40]json_value_free [13:30:40]json_value_free done [13:30:40]process_json_proto returns [13:30:40]Send response to host [13:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166734,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:30:40]free response buf [13:30:40]execute_script done [13:30:40]execute_script returns [13:30:40]free content buf [13:30:40]Sock 9.Close socket [13:30:40]Sock 9.Thread stoped [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:02]accept exits with 8 [13:31:02]New connection [13:31:02]New thread 3067178340 created [13:31:02]Thread 3067034980 joined [13:31:02]Waiting for new connection... [13:31:02] Sock 8.Parse request [13:31:02]Sock 8.Check first char [13:31:02]Sock 8.First char is OK [13:31:02]request: POST /json_proto HTTP/1.0 [13:31:02]Method: POST [13:31:02]URL: /json_proto [13:31:02]Method is POST - this is cgi request [13:31:02]url: /json_proto [13:31:02]query_string will be loaded in cgi processing [13:31:02]execute_cgi json_proto POST (null) [13:31:02]execute_cgi path=json_proto method=POST [13:31:02]POST find Content-Length [13:31:02]Host: 172.17.53.195:8080 [13:31:02]Content-Length: 677 [13:31:02]Content-Type: application/json [13:31:02] [13:31:02]POST finish read [13:31:02]Found Content-Length = 677 [13:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:02]execute_script... [13:31: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)221320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:02]POST & json_proto [13:31:02]process_json_proto [13:31:02]json parsed OK: [13:31:02]protocol is kg_v1.0 [13:31:02]action value=close_receipt [13:31:02]process_action close_receipt [13:31:02]cmd_close_receipt [13:31:02]MH_GetDate [13:31:02]Write to MH i2c: F0 00 00 6B 1A 74 [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: F0 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: F0 09 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: F0 09 00 6B 1A 00 97 FA 18 67 21 48 4A 65 A5 [13:31:02]GetLastDocTimeStamp 1729690237 [13:31:02]current date 1729690263 [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 6C 1A 80 13 01 00 00 00 00 00 03 [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 6C 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CE [13:31:02]RAPDU: 09 00 01 FC 44 18 67 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]opened in 1729643772 [13:31:02]opened+sec_in_day 1729730172 [13:31:02]quantity*price = 50041 [13:31:02]sum+1 = 50042 [13:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 150 23.10.2024 13:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166735 ФПД: 243144676266763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166735&fm=243144676266763&tin=02508201610067®Number=0000000000091764&sum=50000 [13:31:03]StoreToDocumentArchive [13:31:03]shift 537 fd 166735 [13:31:03]save to /storage/0537/doc_00166735 [13:31:03]save last doc name /storage/0537/doc_00166735 to /storage/kkm_last_doc_name [13:31:03]save OK [13:31:03]Clear old archive folders... [13:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:04]tlvbuf is B6EDF990 [13:31:04]SAM_PROTO_ClearQueue [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 09 00 00 [13:31:04]Write to MH i2c: E2 08 00 79 1A 80 09 00 00 00 00 00 00 05 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 79 1A 00 90 00 07 [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]SAM_PROTO_ClearQueue done [13:31:04]KKMCreateOFDPacket [13:31:04]OFDProtocolAddRootSTLVToBuf [13:31:04]FM_MakeSignedData [13:31:04]FM_MakeSignedData [13:31:04]SAM_PROTO_SignData [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 01 02 [13:31:04]Write to MH i2c: E2 08 00 7A 1A 80 0D 01 02 00 00 00 00 0D [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=255 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 98 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 8B 02 00 35 04 06 00 DD [13:31:04]Write to MH i2c: E2 02 01 7B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 98 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 8B 02 00 35 04 06 00 DD 00 00 1E [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=10 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 02 02 05 23 88 0E D3 0B [13:31:04]Write to MH i2c: E2 0D 00 7C 1A 80 0D 02 02 05 00 23 88 0E D3 0B 00 00 B1 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 03 02 [13:31:04]Write to MH i2c: E2 08 00 7D 1A 80 0D 03 02 00 00 00 00 12 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0B 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0B 00 7D 1A 00 75 E7 56 26 0C 6F 9E 09 90 00 0D [13:31:04]RAPDU: 75 E7 56 26 0C 6F 9E 09 90 00 [13:31:04]wFMCommunicate OK [13:31:04]SAM_PROTO_SignData done [13:31:04]FM_MakeSignedData done [13:31:04]CreateOFDProtocolMessage [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 11 00 00 [13:31:04]Write to MH i2c: E2 08 00 7E 1A 80 11 00 00 00 00 00 00 12 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 17 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 17 00 7E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [13:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:31:04]wFMCommunicate OK [13:31:04]CreateOFDProtocolMessage done [13:31:04]OFDSenderStorePacket 166735 [13:31:04]StoreOFDPacket docnum=166735 [13:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 8E 07 01 65 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 98 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 8B 02 00 35 04 06 00 DD 23 88 0E D3 0B 75 E7 56 26 0C 6F 9E 09 [13:31:04]CheckFolder [13:31:04]dirname=/storage/ofd_packets [13:31:04]CheckFolder done [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00166735 [13:31:04]NVStorageSaveData ofd_packets/00166735 [13:31:04]File name is /storage/ofd_packets/00166735 [13:31:04]Write 301 bytes [13:31:04]NVStorageSaveData done [13:31:04]OFDSenderStorePacket done [13:31:04]KKMCreateOFDPacket done [13:31:04]NVStorageSaveData kkm_last_timestamp [13:31:04]File name is /storage/kkm_last_timestamp [13:31:04]Write 4 bytes [13:31:04]NVStorageSaveData done [13:31:04]ExternCall_PrintAddStr [13:31:04]wPrintStart [13:31:04]Write to MH i2c: 01 00 00 7F 1A 99 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 7F 1A 00 00 00 00 00 FF 0F AE [13:31:04]RasterBufferAndPrint [13:31:04]line Счет N : (1)221320 [13:31:04]line ИНН: 02508201610067 [13:31:04]line Контрольно-Кассовый Чек [13:31:04]line ПРОДАЖА [13:31:04]line ТРК (МРК, ГНК) : 33 [13:31:04]line Товар: 2710124130 [13:31:04]line Аи-92-К-5 [13:31:04]line 7.480 * 66.90 [13:31:04]line = 500.41 [13:31:04]line НДС 12% НСП 1% [13:31:04]line > о реализуемом товаре [13:31:04]line ОКРУГЛЕНИЕ: -0.41 [13:31:04]line ИТОГО: 500.00 [13:31:04]line Внесено: 500.00 [13:31:04]line СДАЧА: 0.00 [13:31:04]line НСП 1% : 4.43 [13:31:04]line НДС 12% : 53.14 [13:31:04]line Наличными: 500.00 [13:31:04]line Безнал.: 0.00 [13:31:04]line Место: АЗС № 161 "Партнер Нефть" [13:31:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:31:04]line СНО: Общий режим [13:31:04]line Чек 150 23.10.2024 13:31 [13:31:04]line Смена: 537 ФФД: 1.0 [13:31:04]line ЗНМ: 0300000104 [13:31:04]line РНМ: 0000000000091764 [13:31:04]line Версия ККМ: 001 [13:31:04]line ФМ: 0000000000871759 [13:31:04]line ФД: 166735 [13:31:04]line ФПД: 243144676266763 [13:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166735&fm=243144676266763&tin=02508201610067®Number=0000000000091764&sum=50000 [13:31:04]OFD Sender: Processing packet 166735 [packets to send 48, broken 47] [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00166735 [13:31:04]OFD Sender: To server: pG, [13:31:04]CommunicateWithHost lk.salyk.kg:30040 [13:31:04]ConnectInit lk.salyk.kg [13:31:04]written 0, free lines is 4095 [13:31:04]Connected sock=10 [13:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 8E 07 01 65 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 98 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 8B 02 00 35 04 06 00 DD 23 88 0E D3 0B 75 E7 56 26 0C 6F 9E 09 [13:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 3B 47 00 DD 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 8B 02 00 F4 03 04 00 FF A0 18 67 B6 04 01 00 00 A8 97 66 A3 3D C0 0E 73 [13:31:05]CommunicateWithHost err = 0 [13:31:05]CheckOFDResponse [13:31:05]1017 (14) - 77093643461234 [13:31:05]1041 (16) - 0000000000871759 [13:31:05]1040 (4) - 166735 [13:31:05]1012 (4) - 23.10.2024 07:08 [13:31:05]1206 (1) - 0 [13:31:05]OFD Sender: Remove packet 166735 [13:31:05]ProducePacketName [13:31:05]name=ofd_packets/00166735 [13:31:05]NVStorageDeleteData [13:31:05]Write to MH i2c: 01 00 00 AA 1A C4 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 07 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 A4 0C 7B [13:31:05]RasterBufferAndPrint [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]written 0, free lines is 3242 [13:31:05]MH_Cut [13:31:05]Write to MH i2c: D1 01 00 B1 1A 01 9D [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 01 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 01 00 B1 1A 00 9C [13:31:05]Write to MH i2c: 01 00 00 B2 1A CC [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]OFD Sender: No OFD packet to send [13:31:06]*** Cut start [13:31:06]*** Partial cut [13:31:06]*** CUTSNS_PIN = 1 [13:31:06]*** CUTSNS_PIN = 0 [13:31:06]*** Brake cut motor [13:31:06]Read from MH i2c: 01 [13:31:06]MH_I2C_Read... [13:31:06]*** Stop cut motor [13:31:06]*** Cut end [13:31:06]Read from MH i2c: 01 07 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [13:31:06]process_action close_receipt done [13:31:06]requested_data is exist [13:31:06]produce_requested_data [13:31:06]requested_item fm.sn is exist - process it [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 11 00 00 [13:31:06]Write to MH i2c: E2 08 00 B3 1A 80 11 00 00 00 00 00 00 47 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 17 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 17 00 B3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [13:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:31:06]wFMCommunicate OK [13:31:06]requested_item fd.num is exist - process it [13:31:06]SAM_PROTO_GetFieldsCounters [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 13 00 00 [13:31:06]Write to MH i2c: E2 08 00 B4 1A 80 13 00 00 00 00 00 00 4A [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 62 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 62 00 B4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [13:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_GetFieldsCounters done [13:31:07]requested_item shift.num is exist - process it [13:31:07]requested_item shift.opened is exist - process it [13:31:07]req_shift_opened [13:31:07]FM_GetShiftState [13:31:07]SAM_PROTO_GetShiftState [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 13 01 00 [13:31:07]Write to MH i2c: E2 08 00 B5 1A 80 13 01 00 00 00 00 00 4C [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 B5 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 17 [13:31:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_GetShiftState done [13:31:07]FM_GetShiftState done [13:31:07]req_shift_opened done [13:31:07]requested_item shift.open_date is exist - process it [13:31:07]req_shift_open_date [13:31:07]req_shift_open_date done [13:31:07]produce_requested_data done [13:31:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166735,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:31:07]process_action_free close_receipt [13:31:07]json_value_free [13:31:07]json_value_free done [13:31:07]process_json_proto returns [13:31:07]Send response to host [13:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166735,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:31:07]free response buf [13:31:07]execute_script done [13:31:07]execute_script returns [13:31:07]free content buf [13:31:07]Sock 8.Close socket [13:31:07]Sock 8.Thread stoped [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:33]accept exits with 9 [13:32:33]New connection [13:32:33]New thread 3067034980 created [13:32:33]Thread 3067178340 joined [13:32:33]Waiting for new connection... [13:32:33] Sock 9.Parse request [13:32:33]Sock 9.Check first char [13:32:33]Sock 9.First char is OK [13:32:33]request: POST /json_proto HTTP/1.0 [13:32:33]Method: POST [13:32:33]URL: /json_proto [13:32:33]Method is POST - this is cgi request [13:32:33]url: /json_proto [13:32:33]query_string will be loaded in cgi processing [13:32:33]execute_cgi json_proto POST (null) [13:32:33]execute_cgi path=json_proto method=POST [13:32:33]POST find Content-Length [13:32:33]Host: 172.17.53.195:8080 [13:32:33]Content-Length: 677 [13:32:33]Content-Type: application/json [13:32:33] [13:32:33]POST finish read [13:32:33]Found Content-Length = 677 [13:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:33]execute_script... [13:32: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)221321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:33]POST & json_proto [13:32:33]process_json_proto [13:32:33]json parsed OK: [13:32:33]protocol is kg_v1.0 [13:32:33]action value=close_receipt [13:32:33]process_action close_receipt [13:32:33]cmd_close_receipt [13:32:33]MH_GetDate [13:32:33]Write to MH i2c: F0 00 00 B6 1A BF [13:32:33]Write i2c OK [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: F0 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: F0 09 00 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: F0 09 00 B6 1A 00 F2 FA 18 67 21 48 4A 65 4B [13:32:33]GetLastDocTimeStamp 1729690264 [13:32:33]current date 1729690354 [13:32:33]FM_GetShiftState [13:32:33]SAM_PROTO_GetShiftState [13:32:33]wFMCommunicate request_size=4 [13:32:33]MH_SAM_APDU [13:32:33]CAPDU: 80 13 01 00 [13:32:33]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [13:32:33]Write i2c OK [13:32:33]MH_I2C_Read... [13:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:33]Read from MH i2c: E2 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: E2 0E 00 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 19 [13:32:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:32:33]wFMCommunicate OK [13:32:33]SAM_PROTO_GetShiftState done [13:32:33]FM_GetShiftState done [13:32:33]opened in 1729643772 [13:32:33]opened+sec_in_day 1729730172 [13:32:33]quantity*price = 50041 [13:32:33]sum+1 = 50042 [13:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 151 23.10.2024 13:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166736 ФПД: 88755066185170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166736&fm=88755066185170&tin=02508201610067®Number=0000000000091764&sum=50000 [13:32:34]StoreToDocumentArchive [13:32:34]shift 537 fd 166736 [13:32:34]save to /storage/0537/doc_00166736 [13:32:34]save last doc name /storage/0537/doc_00166736 to /storage/kkm_last_doc_name [13:32:34]save OK [13:32:34]Clear old archive folders... [13:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:34]tlvbuf is 01FAFA90 [13:32:34]SAM_PROTO_ClearQueue [13:32:34]wFMCommunicate request_size=4 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 09 00 00 [13:32:34]Write to MH i2c: E2 08 00 C4 1A 80 09 00 00 00 00 00 00 50 [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [13:32:34]RAPDU: 90 00 [13:32:34]wFMCommunicate OK [13:32:34]SAM_PROTO_ClearQueue done [13:32:34]KKMCreateOFDPacket [13:32:34]OFDProtocolAddRootSTLVToBuf [13:32:34]FM_MakeSignedData [13:32:34]FM_MakeSignedData [13:32:34]SAM_PROTO_SignData [13:32:34]wFMCommunicate request_size=4 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 0D 01 02 [13:32:34]Write to MH i2c: E2 08 00 C5 1A 80 0D 01 02 00 00 00 00 58 [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [13:32:34]RAPDU: 90 00 [13:32:34]wFMCommunicate OK [13:32:34]wFMCommunicate request_size=255 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F2 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 8B 02 00 35 04 06 00 50 [13:32:34]Write to MH i2c: E2 02 01 C6 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F2 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 8B 02 00 35 04 06 00 50 00 00 38 [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [13:32:34]RAPDU: 90 00 [13:32:34]wFMCommunicate OK [13:32:34]wFMCommunicate request_size=10 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 0D 02 02 05 B8 E6 31 25 D2 [13:32:34]Write to MH i2c: E2 0D 00 C7 1A 80 0D 02 02 05 00 B8 E6 31 25 D2 00 00 2B [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [13:32:34]RAPDU: 90 00 [13:32:34]wFMCommunicate OK [13:32:34]wFMCommunicate request_size=4 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 0D 03 02 [13:32:34]Write to MH i2c: E2 08 00 C8 1A 80 0D 03 02 00 00 00 00 5D [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 0B 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 0B 00 C8 1A 00 16 A5 67 DC E3 58 26 E0 90 00 9D [13:32:34]RAPDU: 16 A5 67 DC E3 58 26 E0 90 00 [13:32:34]wFMCommunicate OK [13:32:34]SAM_PROTO_SignData done [13:32:34]FM_MakeSignedData done [13:32:34]CreateOFDProtocolMessage [13:32:34]wFMCommunicate request_size=4 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 11 00 00 [13:32:34]Write to MH i2c: E2 08 00 C9 1A 80 11 00 00 00 00 00 00 5D [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 17 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 17 00 C9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [13:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:32:34]wFMCommunicate OK [13:32:34]CreateOFDProtocolMessage done [13:32:34]OFDSenderStorePacket 166736 [13:32:34]StoreOFDPacket docnum=166736 [13:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 99 07 01 7C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F2 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 8B 02 00 35 04 06 00 50 B8 E6 31 25 D2 16 A5 67 DC E3 58 26 E0 [13:32:34]CheckFolder [13:32:34]dirname=/storage/ofd_packets [13:32:34]CheckFolder done [13:32:34]ProducePacketName [13:32:34]name=ofd_packets/00166736 [13:32:34]NVStorageSaveData ofd_packets/00166736 [13:32:34]File name is /storage/ofd_packets/00166736 [13:32:34]Write 301 bytes [13:32:34]NVStorageSaveData done [13:32:34]OFDSenderStorePacket done [13:32:34]KKMCreateOFDPacket done [13:32:34]NVStorageSaveData kkm_last_timestamp [13:32:34]File name is /storage/kkm_last_timestamp [13:32:34]Write 4 bytes [13:32:34]NVStorageSaveData done [13:32:34]ExternCall_PrintAddStr [13:32:34]wPrintStart [13:32:34]Write to MH i2c: 01 00 00 CA 1A E4 [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: 01 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: 01 07 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [13:32:34]RasterBufferAndPrint [13:32:34]line Счет N : (1)221321 [13:32:34]line ИНН: 02508201610067 [13:32:34]line Контрольно-Кассовый Чек [13:32:34]line ПРОДАЖА [13:32:34]line ТРК (МРК, ГНК) : 43 [13:32:34]line Товар: 2710124130 [13:32:34]line Аи-92-К-5 [13:32:34]line 7.480 * 66.90 [13:32:34]line = 500.41 [13:32:34]line НДС 12% НСП 1% [13:32:34]line > о реализуемом товаре [13:32:34]line ОКРУГЛЕНИЕ: -0.41 [13:32:34]line ИТОГО: 500.00 [13:32:34]line Внесено: 500.00 [13:32:34]line СДАЧА: 0.00 [13:32:34]line НСП 1% : 4.43 [13:32:34]line НДС 12% : 53.14 [13:32:34]line Наличными: 500.00 [13:32:34]line Безнал.: 0.00 [13:32:34]line Место: АЗС № 161 "Партнер Нефть" [13:32:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:32:34]line СНО: Общий режим [13:32:34]line Чек 151 23.10.2024 13:32 [13:32:34]line Смена: 537 ФФД: 1.0 [13:32:34]line ЗНМ: 0300000104 [13:32:34]line РНМ: 0000000000091764 [13:32:34]line Версия ККМ: 001 [13:32:34]line ФМ: 0000000000871759 [13:32:34]line ФД: 166736 [13:32:34]line ФПД: 88755066185170 [13:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166736&fm=88755066185170&tin=02508201610067®Number=0000000000091764&sum=50000 [13:32:35]OFD Sender: Processing packet 166736 [packets to send 48, broken 47] [13:32:35]ProducePacketName [13:32:35]name=ofd_packets/00166736 [13:32:35]OFD Sender: To server: pG, [13:32:35]CommunicateWithHost lk.salyk.kg:30040 [13:32:35]ConnectInit lk.salyk.kg [13:32:35]written 0, free lines is 4095 [13:32:35]Connected sock=10 [13:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 99 07 01 7C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F2 FA 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 8B 02 00 35 04 06 00 50 B8 E6 31 25 D2 16 A5 67 DC E3 58 26 E0 [13:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8D 60 47 00 31 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 8B 02 00 F4 03 04 00 59 A1 18 67 B6 04 01 00 00 C3 70 EA E3 A8 F7 61 BA [13:32:35]CommunicateWithHost err = 0 [13:32:35]CheckOFDResponse [13:32:35]1017 (14) - 77093643461234 [13:32:35]1041 (16) - 0000000000871759 [13:32:35]1040 (4) - 166736 [13:32:35]1012 (4) - 23.10.2024 07:10 [13:32:35]1206 (1) - 0 [13:32:35]OFD Sender: Remove packet 166736 [13:32:35]ProducePacketName [13:32:35]name=ofd_packets/00166736 [13:32:35]NVStorageDeleteData [13:32:35]Write to MH i2c: 01 00 00 F5 1A 0F [13:32:35]Write i2c OK [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: 01 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: 01 07 00 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: 01 07 00 F5 1A 00 00 00 00 00 AB 0C CD [13:32:35]RasterBufferAndPrint [13:32:35]line [13:32:35]line [13:32:35]line [13:32:35]line [13:32:35]line [13:32:35]written 0, free lines is 3253 [13:32:35]MH_Cut [13:32:35]Write to MH i2c: D1 01 00 FC 1A 01 E8 [13:32:35]Write i2c OK [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: D1 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: D1 01 00 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: D1 01 00 FC 1A 00 E7 [13:32:35]Write to MH i2c: 01 00 00 FD 1A 17 [13:32:35]Write i2c OK [13:32:35]MH_I2C_Read... [13:32:35]OFD Sender: No OFD packet to send [13:32:36]*** Cut start [13:32:36]*** Partial cut [13:32:36]*** CUTSNS_PIN = 1 [13:32:36]*** CUTSNS_PIN = 0 [13:32:36]*** Brake cut motor [13:32:37]Read from MH i2c: 01 [13:32:37]MH_I2C_Read... [13:32:37]*** Stop cut motor [13:32:37]*** Cut end [13:32:37]Read from MH i2c: 01 07 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [13:32:37]process_action close_receipt done [13:32:37]requested_data is exist [13:32:37]produce_requested_data [13:32:37]requested_item fm.sn is exist - process it [13:32:37]wFMCommunicate request_size=4 [13:32:37]MH_SAM_APDU [13:32:37]CAPDU: 80 11 00 00 [13:32:37]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 [13:32:37]MH_I2C_Read... [13:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:37]Read from MH i2c: E2 17 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [13:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:32:37]wFMCommunicate OK [13:32:37]requested_item fd.num is exist - process it [13:32:37]SAM_PROTO_GetFieldsCounters [13:32:37]wFMCommunicate request_size=4 [13:32:37]MH_SAM_APDU [13:32:37]CAPDU: 80 13 00 00 [13:32:37]Write to MH i2c: E2 08 00 FF 1A 80 13 00 00 00 00 00 00 95 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:37]Read from MH i2c: E2 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 62 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 62 00 FF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [13:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:37]wFMCommunicate OK [13:32:37]SAM_PROTO_GetFieldsCounters done [13:32:37]requested_item shift.num is exist - process it [13:32:37]requested_item shift.opened is exist - process it [13:32:37]req_shift_opened [13:32:37]FM_GetShiftState [13:32:37]SAM_PROTO_GetShiftState [13:32:37]wFMCommunicate request_size=4 [13:32:37]MH_SAM_APDU [13:32:37]CAPDU: 80 13 01 00 [13:32:37]Write to MH i2c: E2 08 00 00 1B 80 13 01 00 00 00 00 00 98 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:37]Read from MH i2c: E2 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 0E 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 0E 00 00 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 63 [13:32:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:32:37]wFMCommunicate OK [13:32:37]SAM_PROTO_GetShiftState done [13:32:37]FM_GetShiftState done [13:32:37]req_shift_opened done [13:32:37]requested_item shift.open_date is exist - process it [13:32:37]req_shift_open_date [13:32:37]req_shift_open_date done [13:32:37]produce_requested_data done [13:32:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166736,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:32:37]process_action_free close_receipt [13:32:37]json_value_free [13:32:37]json_value_free done [13:32:37]process_json_proto returns [13:32:37]Send response to host [13:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166736,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:32:37]free response buf [13:32:37]execute_script done [13:32:37]execute_script returns [13:32:37]free content buf [13:32:37]Sock 9.Close socket [13:32:37]Sock 9.Thread stoped [13:32:40]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:56]OFD Sender: No OFD packet to send [13:36:58]accept exits with 8 [13:36:58]New connection [13:36:58]New thread 3067178340 created [13:36:58]Thread 3067034980 joined [13:36:58]Waiting for new connection... [13:36:58] Sock 8.Parse request [13:36:58]Sock 8.Check first char [13:36:58]Sock 8.First char is OK [13:36:58]request: POST /json_proto HTTP/1.0 [13:36:58]Method: POST [13:36:58]URL: /json_proto [13:36:58]Method is POST - this is cgi request [13:36:58]url: /json_proto [13:36:58]query_string will be loaded in cgi processing [13:36:58]execute_cgi json_proto POST (null) [13:36:58]execute_cgi path=json_proto method=POST [13:36:58]POST find Content-Length [13:36:58]Host: 172.17.53.195:8080 [13:36:58]Content-Length: 763 [13:36:58]Content-Type: application/json [13:36:58] [13:36:58]POST finish read [13:36:58]Found Content-Length = 763 [13:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:58]execute_script... [13:36: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)221322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:58]POST & json_proto [13:36:58]process_json_proto [13:36:58]json parsed OK: [13:36:58]protocol is kg_v1.0 [13:36:58]action value=close_receipt [13:36:58]process_action close_receipt [13:36:58]cmd_close_receipt [13:36:58]MH_GetDate [13:36:58]Write to MH i2c: F0 00 00 01 1B 0B [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 09 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 09 00 01 1B 00 FB FB 18 67 21 48 4A 65 A1 [13:36:58]GetLastDocTimeStamp 1729690354 [13:36:58]current date 1729690619 [13:36:58]FM_GetShiftState [13:36:58]SAM_PROTO_GetShiftState [13:36:58]wFMCommunicate request_size=4 [13:36:58]MH_SAM_APDU [13:36:58]CAPDU: 80 13 01 00 [13:36:58]Write to MH i2c: E2 08 00 02 1B 80 13 01 00 00 00 00 00 9A [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:58]Read from MH i2c: E2 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 02 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 65 [13:36:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:36:58]wFMCommunicate OK [13:36:58]SAM_PROTO_GetShiftState done [13:36:58]FM_GetShiftState done [13:36:58]opened in 1729643772 [13:36:58]opened+sec_in_day 1729730172 [13:36:58]quantity*price = 50063 [13:36:58]sum+1 = 50064 [13:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 152 23.10.2024 13:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166737 ФПД: 182084889217476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166737&fm=182084889217476&tin=02508201610067®Number=0000000000091764&sum=50063 [13:36:59]StoreToDocumentArchive [13:36:59]shift 537 fd 166737 [13:36:59]save to /storage/0537/doc_00166737 [13:36:59]save last doc name /storage/0537/doc_00166737 to /storage/kkm_last_doc_name [13:36:59]save OK [13:36:59]Clear old archive folders... [13:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:59]tlvbuf is 01FAFB60 [13:36:59]SAM_PROTO_ClearQueue [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 09 00 00 [13:36:59]Write to MH i2c: E2 08 00 0F 1B 80 09 00 00 00 00 00 00 9C [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]SAM_PROTO_ClearQueue done [13:36:59]KKMCreateOFDPacket [13:36:59]OFDProtocolAddRootSTLVToBuf [13:36:59]FM_MakeSignedData [13:36:59]FM_MakeSignedData [13:36:59]SAM_PROTO_SignData [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 0D 01 02 [13:36:59]Write to MH i2c: E2 08 00 10 1B 80 0D 01 02 00 00 00 00 A4 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]wFMCommunicate request_size=255 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FB FB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 8B 02 00 35 04 06 00 A5 9A F1 24 [13:36:59]Write to MH i2c: E2 02 01 11 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FB FB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 8B 02 00 35 04 06 00 A5 9A F1 24 00 00 90 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]wFMCommunicate request_size=7 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 0D 02 02 02 09 C4 [13:36:59]Write to MH i2c: E2 0A 00 12 1B 80 0D 02 02 02 00 09 C4 00 00 78 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 0D 03 02 [13:36:59]Write to MH i2c: E2 08 00 13 1B 80 0D 03 02 00 00 00 00 A9 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 0B 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 0B 00 13 1B 00 A6 AC 7F 26 7D 0F BA 60 90 00 47 [13:36:59]RAPDU: A6 AC 7F 26 7D 0F BA 60 90 00 [13:36:59]wFMCommunicate OK [13:36:59]SAM_PROTO_SignData done [13:36:59]FM_MakeSignedData done [13:36:59]CreateOFDProtocolMessage [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 11 00 00 [13:36:59]Write to MH i2c: E2 08 00 14 1B 80 11 00 00 00 00 00 00 A9 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 14 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [13:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:37:00]wFMCommunicate OK [13:37:00]CreateOFDProtocolMessage done [13:37:00]OFDSenderStorePacket 166737 [13:37:00]StoreOFDPacket docnum=166737 [13:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DC CB 04 01 9D ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FB FB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 8B 02 00 35 04 06 00 A5 9A F1 24 09 C4 A6 AC 7F 26 7D 0F BA 60 [13:37:00]CheckFolder [13:37:00]dirname=/storage/ofd_packets [13:37:00]CheckFolder done [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00166737 [13:37:00]NVStorageSaveData ofd_packets/00166737 [13:37:00]File name is /storage/ofd_packets/00166737 [13:37:00]Write 298 bytes [13:37:00]NVStorageSaveData done [13:37:00]OFDSenderStorePacket done [13:37:00]KKMCreateOFDPacket done [13:37:00]NVStorageSaveData kkm_last_timestamp [13:37:00]File name is /storage/kkm_last_timestamp [13:37:00]Write 4 bytes [13:37:00]NVStorageSaveData done [13:37:00]ExternCall_PrintAddStr [13:37:00]wPrintStart [13:37:00]Write to MH i2c: 01 00 00 15 1B 30 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 FF 0F 45 [13:37:00]RasterBufferAndPrint [13:37:00]line Счет N : (1)221322 [13:37:00]line ИНН: 02508201610067 [13:37:00]line Контрольно-Кассовый Чек [13:37:00]line ПРОДАЖА [13:37:00]line ТРК (МРК, ГНК) : 21 [13:37:00]line Товар: 2710194210 [13:37:00]line ДТ-К-5 [13:37:00]line 6.570 * 76.20 [13:37:00]line = 500.63 [13:37:00]line НДС 12% НСП 1% [13:37:00]line > о реализуемом товаре [13:37:00]line ИТОГО: 500.63 [13:37:00]line НСП 1% : 4.43 [13:37:00]line НДС 12% : 53.16 [13:37:00]line Наличными: 0.00 [13:37:00]line Безнал.: 500.63 [13:37:00]line Место: АЗС № 161 "Партнер Нефть" [13:37:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:37:00]line СНО: Общий режим [13:37:00]line Чек 152 23.10.2024 13:36 [13:37:00]line Смена: 537 ФФД: 1.0 [13:37:00]line ЗНМ: 0300000104 [13:37:00]line РНМ: 0000000000091764 [13:37:00]line Версия ККМ: 001 [13:37:00]line Платежная система: Mbank [13:37:00]line ФМ: 0000000000871759 [13:37:00]line ФД: 166737 [13:37:00]line ФПД: 182084889217476 [13:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166737&fm=182084889217476&tin=02508201610067®Number=0000000000091764&sum=50063 [13:37:00]OFD Sender: Processing packet 166737 [packets to send 48, broken 47] [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00166737 [13:37:00]OFD Sender: To server: pG, [13:37:00]CommunicateWithHost lk.salyk.kg:30040 [13:37:00]ConnectInit lk.salyk.kg [13:37:00]written 0, free lines is 4095 [13:37:00]Connected sock=10 [13:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DC CB 04 01 9D ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FB FB 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 8B 02 00 35 04 06 00 A5 9A F1 24 09 C4 A6 AC 7F 26 7D 0F BA 60 [13:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C2 37 47 00 3C 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 8B 02 00 F4 03 04 00 63 A2 18 67 B6 04 01 00 00 6F 68 6B 41 E7 DE AF 47 [13:37:00]CommunicateWithHost err = 0 [13:37:00]CheckOFDResponse [13:37:00]1017 (14) - 77093643461234 [13:37:00]1041 (16) - 0000000000871759 [13:37:00]1040 (4) - 166737 [13:37:00]1012 (4) - 23.10.2024 07:14 [13:37:00]1206 (1) - 0 [13:37:00]OFD Sender: Remove packet 166737 [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00166737 [13:37:00]NVStorageDeleteData [13:37:00]Write to MH i2c: 01 00 00 3E 1B 59 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 C8 0C 34 [13:37:00]RasterBufferAndPrint [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]written 0, free lines is 3278 [13:37:00]MH_Cut [13:37:00]Write to MH i2c: D1 01 00 45 1B 01 32 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 01 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 01 00 45 1B 00 31 [13:37:00]Write to MH i2c: 01 00 00 46 1B 61 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:01]OFD Sender: No OFD packet to send [13:37:01]*** Cut start [13:37:01]*** Partial cut [13:37:01]*** CUTSNS_PIN = 1 [13:37:01]*** CUTSNS_PIN = 0 [13:37:01]*** Brake cut motor [13:37:02]Read from MH i2c: 01 [13:37:02]MH_I2C_Read... [13:37:02]*** Stop cut motor [13:37:02]*** Cut end [13:37:02]Read from MH i2c: 01 07 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [13:37:02]process_action close_receipt done [13:37:02]requested_data is exist [13:37:02]produce_requested_data [13:37:02]requested_item fm.sn is exist - process it [13:37:02]wFMCommunicate request_size=4 [13:37:02]MH_SAM_APDU [13:37:02]CAPDU: 80 11 00 00 [13:37:02]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [13:37:02]Write i2c OK [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 [13:37:02]MH_I2C_Read... [13:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:02]Read from MH i2c: E2 17 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [13:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:37:02]wFMCommunicate OK [13:37:02]requested_item fd.num is exist - process it [13:37:02]SAM_PROTO_GetFieldsCounters [13:37:02]wFMCommunicate request_size=4 [13:37:02]MH_SAM_APDU [13:37:02]CAPDU: 80 13 00 00 [13:37:02]Write to MH i2c: E2 08 00 48 1B 80 13 00 00 00 00 00 00 DF [13:37:02]Write i2c OK [13:37:02]MH_I2C_Read... [13:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:02]Read from MH i2c: E2 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 62 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 62 00 48 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:02]wFMCommunicate OK [13:37:02]SAM_PROTO_GetFieldsCounters done [13:37:02]requested_item shift.num is exist - process it [13:37:02]requested_item shift.opened is exist - process it [13:37:02]req_shift_opened [13:37:02]FM_GetShiftState [13:37:02]SAM_PROTO_GetShiftState [13:37:02]wFMCommunicate request_size=4 [13:37:02]MH_SAM_APDU [13:37:02]CAPDU: 80 13 01 00 [13:37:02]Write to MH i2c: E2 08 00 49 1B 80 13 01 00 00 00 00 00 E1 [13:37:02]Write i2c OK [13:37:02]MH_I2C_Read... [13:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:02]Read from MH i2c: E2 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 0E 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 0E 00 49 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AC [13:37:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:37:02]wFMCommunicate OK [13:37:02]SAM_PROTO_GetShiftState done [13:37:02]FM_GetShiftState done [13:37:02]req_shift_opened done [13:37:02]requested_item shift.open_date is exist - process it [13:37:02]req_shift_open_date [13:37:02]req_shift_open_date done [13:37:02]produce_requested_data done [13:37:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166737,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:37:02]process_action_free close_receipt [13:37:02]json_value_free [13:37:02]json_value_free done [13:37:02]process_json_proto returns [13:37:02]Send response to host [13:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166737,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:37:02]free response buf [13:37:02]execute_script done [13:37:02]execute_script returns [13:37:02]free content buf [13:37:02]Sock 8.Close socket [13:37:02]Sock 8.Thread stoped [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:04]accept exits with 9 [13:38:04]New connection [13:38:04]New thread 3067034980 created [13:38:04]Thread 3067178340 joined [13:38:04]Waiting for new connection... [13:38:04] Sock 9.Parse request [13:38:04]Sock 9.Check first char [13:38:04]Sock 9.First char is OK [13:38:04]request: POST /json_proto HTTP/1.0 [13:38:04]Method: POST [13:38:04]URL: /json_proto [13:38:04]Method is POST - this is cgi request [13:38:04]url: /json_proto [13:38:04]query_string will be loaded in cgi processing [13:38:04]execute_cgi json_proto POST (null) [13:38:04]execute_cgi path=json_proto method=POST [13:38:04]POST find Content-Length [13:38:04]Host: 172.17.53.195:8080 [13:38:04]Content-Length: 677 [13:38:04]Content-Type: application/json [13:38:04] [13:38:04]POST finish read [13:38:04]Found Content-Length = 677 [13:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]execute_script... [13:38: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)221323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]POST & json_proto [13:38:04]process_json_proto [13:38:04]json parsed OK: [13:38:04]protocol is kg_v1.0 [13:38:04]action value=close_receipt [13:38:04]process_action close_receipt [13:38:04]cmd_close_receipt [13:38:04]MH_GetDate [13:38:04]Write to MH i2c: F0 00 00 4A 1B 54 [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 4A 1B 00 3D FC 18 67 21 48 4A 65 2D [13:38:04]GetLastDocTimeStamp 1729690619 [13:38:04]current date 1729690685 [13:38:04]FM_GetShiftState [13:38:04]SAM_PROTO_GetShiftState [13:38:04]wFMCommunicate request_size=4 [13:38:04]MH_SAM_APDU [13:38:04]CAPDU: 80 13 01 00 [13:38:04]Write to MH i2c: E2 08 00 4B 1B 80 13 01 00 00 00 00 00 E3 [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:04]Read from MH i2c: E2 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 4B 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AE [13:38:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:38:04]wFMCommunicate OK [13:38:04]SAM_PROTO_GetShiftState done [13:38:04]FM_GetShiftState done [13:38:04]opened in 1729643772 [13:38:04]opened+sec_in_day 1729730172 [13:38:04]quantity*price = 40006 [13:38:04]sum+1 = 40007 [13:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 153 23.10.2024 13:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166738 ФПД: 129813928748105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133805&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166738&fm=129813928748105&tin=02508201610067®Number=0000000000091764&sum=40000 [13:38:05]StoreToDocumentArchive [13:38:05]shift 537 fd 166738 [13:38:05]save to /storage/0537/doc_00166738 [13:38:05]save last doc name /storage/0537/doc_00166738 to /storage/kkm_last_doc_name [13:38:05]save OK [13:38:05]Clear old archive folders... [13:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:05]tlvbuf is 01FF0400 [13:38:05]SAM_PROTO_ClearQueue [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 09 00 00 [13:38:05]Write to MH i2c: E2 08 00 58 1B 80 09 00 00 00 00 00 00 E5 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_ClearQueue done [13:38:05]KKMCreateOFDPacket [13:38:05]OFDProtocolAddRootSTLVToBuf [13:38:05]FM_MakeSignedData [13:38:05]FM_MakeSignedData [13:38:05]SAM_PROTO_SignData [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 01 02 [13:38:05]Write to MH i2c: E2 08 00 59 1B 80 0D 01 02 00 00 00 00 ED [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=255 [13:38:05]MH_SAM_APDU [13:38: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3D FC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 8B 02 00 35 04 06 00 76 [13:38:05]Write to MH i2c: E2 02 01 5A 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3D FC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 8B 02 00 35 04 06 00 76 00 00 13 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=10 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 02 02 05 10 A9 1C 24 49 [13:38:05]Write to MH i2c: E2 0D 00 5B 1B 80 0D 02 02 05 00 10 A9 1C 24 49 00 00 3C [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 03 02 [13:38:05]Write to MH i2c: E2 08 00 5C 1B 80 0D 03 02 00 00 00 00 F2 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0B 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0B 00 5C 1B 00 7C 4D 29 05 22 74 7D 82 90 00 7F [13:38:05]RAPDU: 7C 4D 29 05 22 74 7D 82 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_SignData done [13:38:05]FM_MakeSignedData done [13:38:05]CreateOFDProtocolMessage [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 11 00 00 [13:38:05]Write to MH i2c: E2 08 00 5D 1B 80 11 00 00 00 00 00 00 F2 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 5D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [13:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:38:05]wFMCommunicate OK [13:38:05]CreateOFDProtocolMessage done [13:38:05]OFDSenderStorePacket 166738 [13:38:05]StoreOFDPacket docnum=166738 [13:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE B0 07 01 97 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3D FC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 8B 02 00 35 04 06 00 76 10 A9 1C 24 49 7C 4D 29 05 22 74 7D 82 [13:38:05]CheckFolder [13:38:05]dirname=/storage/ofd_packets [13:38:05]CheckFolder done [13:38:05]ProducePacketName [13:38:05]name=ofd_packets/00166738 [13:38:05]NVStorageSaveData ofd_packets/00166738 [13:38:05]File name is /storage/ofd_packets/00166738 [13:38:05]Write 301 bytes [13:38:05]NVStorageSaveData done [13:38:05]OFDSenderStorePacket done [13:38:05]KKMCreateOFDPacket done [13:38:05]NVStorageSaveData kkm_last_timestamp [13:38:05]File name is /storage/kkm_last_timestamp [13:38:05]Write 4 bytes [13:38:05]NVStorageSaveData done [13:38:05]ExternCall_PrintAddStr [13:38:05]wPrintStart [13:38:05]Write to MH i2c: 01 00 00 5E 1B 79 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 07 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [13:38:05]RasterBufferAndPrint [13:38:05]line Счет N : (1)221323 [13:38:05]line ИНН: 02508201610067 [13:38:05]line Контрольно-Кассовый Чек [13:38:05]line ПРОДАЖА [13:38:05]line ТРК (МРК, ГНК) : 43 [13:38:05]line Товар: 2710124130 [13:38:05]line Аи-92-К-5 [13:38:05]line 5.980 * 66.90 [13:38:05]line = 400.06 [13:38:05]line НДС 12% НСП 1% [13:38:05]line > о реализуемом товаре [13:38:05]line ОКРУГЛЕНИЕ: -0.06 [13:38:05]line ИТОГО: 400.00 [13:38:05]line Внесено: 400.00 [13:38:05]line СДАЧА: 0.00 [13:38:05]line НСП 1% : 3.54 [13:38:05]line НДС 12% : 42.48 [13:38:05]line Наличными: 400.00 [13:38:05]line Безнал.: 0.00 [13:38:05]line Место: АЗС № 161 "Партнер Нефть" [13:38:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:38:05]line СНО: Общий режим [13:38:05]line Чек 153 23.10.2024 13:38 [13:38:05]line Смена: 537 ФФД: 1.0 [13:38:05]line ЗНМ: 0300000104 [13:38:05]line РНМ: 0000000000091764 [13:38:05]line Версия ККМ: 001 [13:38:05]line ФМ: 0000000000871759 [13:38:05]line ФД: 166738 [13:38:05]line ФПД: 129813928748105 [13:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133805&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166738&fm=129813928748105&tin=02508201610067®Number=0000000000091764&sum=40000 [13:38:06]OFD Sender: Processing packet 166738 [packets to send 48, broken 47] [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00166738 [13:38:06]OFD Sender: To server: pG, [13:38:06]CommunicateWithHost lk.salyk.kg:30040 [13:38:06]ConnectInit lk.salyk.kg [13:38:06]written 0, free lines is 4095 [13:38:06]Connected sock=10 [13:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE B0 07 01 97 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3D FC 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 8B 02 00 35 04 06 00 76 10 A9 1C 24 49 7C 4D 29 05 22 74 7D 82 [13:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5A CF 47 00 74 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 8B 02 00 F4 03 04 00 A4 A2 18 67 B6 04 01 00 00 D5 50 0F 24 FE 5D 38 88 [13:38:06]CommunicateWithHost err = 0 [13:38:06]CheckOFDResponse [13:38:06]1017 (14) - 77093643461234 [13:38:06]1041 (16) - 0000000000871759 [13:38:06]1040 (4) - 166738 [13:38:06]1012 (4) - 23.10.2024 07:15 [13:38:06]1206 (1) - 0 [13:38:06]OFD Sender: Remove packet 166738 [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00166738 [13:38:06]NVStorageDeleteData [13:38:06]Write to MH i2c: 01 00 00 89 1B A4 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 89 1B 00 00 00 00 00 A9 0C 60 [13:38:06]RasterBufferAndPrint [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]written 0, free lines is 3246 [13:38:06]MH_Cut [13:38:06]Write to MH i2c: D1 01 00 90 1B 01 7D [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 90 1B 00 7C [13:38:06]Write to MH i2c: 01 00 00 91 1B AC [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:07]OFD Sender: No OFD packet to send [13:38:07]*** Cut start [13:38:07]*** Partial cut [13:38:07]*** CUTSNS_PIN = 1 [13:38:07]*** CUTSNS_PIN = 0 [13:38:07]*** Brake cut motor [13:38:08]Read from MH i2c: 01 [13:38:08]MH_I2C_Read... [13:38:08]*** Stop cut motor [13:38:08]*** Cut end [13:38:08]Read from MH i2c: 01 07 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: 01 07 00 91 1B 00 00 00 00 00 FF 0F C1 [13:38:08]process_action close_receipt done [13:38:08]requested_data is exist [13:38:08]produce_requested_data [13:38:08]requested_item fm.sn is exist - process it [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 11 00 00 [13:38:08]Write to MH i2c: E2 08 00 92 1B 80 11 00 00 00 00 00 00 27 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 92 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [13:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:38:08]wFMCommunicate OK [13:38:08]requested_item fd.num is exist - process it [13:38:08]SAM_PROTO_GetFieldsCounters [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 00 00 [13:38:08]Write to MH i2c: E2 08 00 93 1B 80 13 00 00 00 00 00 00 2A [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 93 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [13:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetFieldsCounters done [13:38:08]requested_item shift.num is exist - process it [13:38:08]requested_item shift.opened is exist - process it [13:38:08]req_shift_opened [13:38:08]FM_GetShiftState [13:38:08]SAM_PROTO_GetShiftState [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 01 00 [13:38:08]Write to MH i2c: E2 08 00 94 1B 80 13 01 00 00 00 00 00 2C [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 94 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F7 [13:38:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetShiftState done [13:38:08]FM_GetShiftState done [13:38:08]req_shift_opened done [13:38:08]requested_item shift.open_date is exist - process it [13:38:08]req_shift_open_date [13:38:08]req_shift_open_date done [13:38:08]produce_requested_data done [13:38:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166738,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:38:08]process_action_free close_receipt [13:38:08]json_value_free [13:38:08]json_value_free done [13:38:08]process_json_proto returns [13:38:08]Send response to host [13:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166738,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:38:08]free response buf [13:38:08]execute_script done [13:38:08]execute_script returns [13:38:08]free content buf [13:38:08]Sock 9.Close socket [13:38:08]Sock 9.Thread stoped [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:36]accept exits with 8 [13:44:36]New connection [13:44:36]New thread 3067178340 created [13:44:36]Thread 3067034980 joined [13:44:36]Waiting for new connection... [13:44:36] Sock 8.Parse request [13:44:36]Sock 8.Check first char [13:44:36]Sock 8.First char is OK [13:44:36]request: POST /json_proto HTTP/1.0 [13:44:36]Method: POST [13:44:36]URL: /json_proto [13:44:36]Method is POST - this is cgi request [13:44:36]url: /json_proto [13:44:36]query_string will be loaded in cgi processing [13:44:36]execute_cgi json_proto POST (null) [13:44:36]execute_cgi path=json_proto method=POST [13:44:36]POST find Content-Length [13:44:36]Host: 172.17.53.195:8080 [13:44:36]Content-Length: 679 [13:44:36]Content-Type: application/json [13:44:36] [13:44:36]POST finish read [13:44:36]Found Content-Length = 679 [13:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:36]execute_script... [13:44: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)221324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:36]POST & json_proto [13:44:36]process_json_proto [13:44:36]json parsed OK: [13:44:36]protocol is kg_v1.0 [13:44:36]action value=close_receipt [13:44:36]process_action close_receipt [13:44:36]cmd_close_receipt [13:44:36]MH_GetDate [13:44:36]Write to MH i2c: F0 00 00 95 1B 9F [13:44:36]Write i2c OK [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 09 00 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: F0 09 00 95 1B 00 C5 FD 18 67 21 48 4A 65 01 [13:44:36]GetLastDocTimeStamp 1729690685 [13:44:36]current date 1729691077 [13:44:36]FM_GetShiftState [13:44:36]SAM_PROTO_GetShiftState [13:44:36]wFMCommunicate request_size=4 [13:44:36]MH_SAM_APDU [13:44:36]CAPDU: 80 13 01 00 [13:44:36]Write to MH i2c: E2 08 00 96 1B 80 13 01 00 00 00 00 00 2E [13:44:36]Write i2c OK [13:44:36]MH_I2C_Read... [13:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:36]Read from MH i2c: E2 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: E2 0E 00 [13:44:36]MH_I2C_Read... [13:44:36]Read from MH i2c: E2 0E 00 96 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F9 [13:44:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:44:36]wFMCommunicate OK [13:44:36]SAM_PROTO_GetShiftState done [13:44:36]FM_GetShiftState done [13:44:36]opened in 1729643772 [13:44:36]opened+sec_in_day 1729730172 [13:44:36]quantity*price = 100050 [13:44:36]sum+1 = 100052 [13:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 154 23.10.2024 13:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166739 ФПД: 171691021033065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134437&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166739&fm=171691021033065&tin=02508201610067®Number=0000000000091764&sum=100000 [13:44:37]StoreToDocumentArchive [13:44:37]shift 537 fd 166739 [13:44:37]save to /storage/0537/doc_00166739 [13:44:37]save last doc name /storage/0537/doc_00166739 to /storage/kkm_last_doc_name [13:44:37]save OK [13:44:37]Clear old archive folders... [13:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:37]tlvbuf is 01FEE700 [13:44:37]SAM_PROTO_ClearQueue [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 09 00 00 [13:44:37]Write to MH i2c: E2 08 00 A3 1B 80 09 00 00 00 00 00 00 30 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 A3 1B 00 90 00 32 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]SAM_PROTO_ClearQueue done [13:44:37]KKMCreateOFDPacket [13:44:37]OFDProtocolAddRootSTLVToBuf [13:44:37]FM_MakeSignedData [13:44:37]FM_MakeSignedData [13:44:37]SAM_PROTO_SignData [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 01 02 [13:44:37]Write to MH i2c: E2 08 00 A4 1B 80 0D 01 02 00 00 00 00 38 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=255 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C5 FD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 8B 02 00 35 04 06 00 9C 26 EE 51 [13:44:37]Write to MH i2c: E2 02 01 A5 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C5 FD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 8B 02 00 35 04 06 00 9C 26 EE 51 00 00 9B [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]OFD Sender: No OFD packet to send [13:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 A5 1B 00 90 00 34 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=7 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 02 02 02 DE 69 [13:44:37]Write to MH i2c: E2 0A 00 A6 1B 80 0D 02 02 02 00 DE 69 00 00 86 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [13:44:37]RAPDU: 90 00 [13:44:37]wFMCommunicate OK [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 0D 03 02 [13:44:37]Write to MH i2c: E2 08 00 A7 1B 80 0D 03 02 00 00 00 00 3D [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 0B 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 0B 00 A7 1B 00 A3 B5 5B 75 D2 39 3B 3B 90 00 E7 [13:44:37]RAPDU: A3 B5 5B 75 D2 39 3B 3B 90 00 [13:44:37]wFMCommunicate OK [13:44:37]SAM_PROTO_SignData done [13:44:37]FM_MakeSignedData done [13:44:37]CreateOFDProtocolMessage [13:44:37]wFMCommunicate request_size=4 [13:44:37]MH_SAM_APDU [13:44:37]CAPDU: 80 11 00 00 [13:44:37]Write to MH i2c: E2 08 00 A8 1B 80 11 00 00 00 00 00 00 3D [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:37]Read from MH i2c: E2 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 17 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: E2 17 00 A8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [13:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:44:37]wFMCommunicate OK [13:44:37]CreateOFDProtocolMessage done [13:44:37]OFDSenderStorePacket 166739 [13:44:37]StoreOFDPacket docnum=166739 [13:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 BD 04 01 67 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C5 FD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 8B 02 00 35 04 06 00 9C 26 EE 51 DE 69 A3 B5 5B 75 D2 39 3B 3B [13:44:37]CheckFolder [13:44:37]dirname=/storage/ofd_packets [13:44:37]CheckFolder done [13:44:37]ProducePacketName [13:44:37]name=ofd_packets/00166739 [13:44:37]NVStorageSaveData ofd_packets/00166739 [13:44:37]File name is /storage/ofd_packets/00166739 [13:44:37]Write 298 bytes [13:44:37]NVStorageSaveData done [13:44:37]OFDSenderStorePacket done [13:44:37]KKMCreateOFDPacket done [13:44:37]NVStorageSaveData kkm_last_timestamp [13:44:37]File name is /storage/kkm_last_timestamp [13:44:37]Write 4 bytes [13:44:37]NVStorageSaveData done [13:44:37]ExternCall_PrintAddStr [13:44:37]wPrintStart [13:44:37]Write to MH i2c: 01 00 00 A9 1B C4 [13:44:37]Write i2c OK [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 07 00 [13:44:37]MH_I2C_Read... [13:44:37]Read from MH i2c: 01 07 00 A9 1B 00 00 00 00 00 FF 0F D9 [13:44:37]RasterBufferAndPrint [13:44:37]line Счет N : (1)221324 [13:44:37]line ИНН: 02508201610067 [13:44:37]line Контрольно-Кассовый Чек [13:44:37]line ПРОДАЖА [13:44:37]line ТРК (МРК, ГНК) : 11 [13:44:37]line Товар: 2710194210 [13:44:37]line ДТ-К-5 [13:44:37]line 13.130 * 76.20 [13:44:37]line = 1000.51 [13:44:37]line НДС 12% НСП 1% [13:44:37]line > о реализуемом товаре [13:44:37]line ОКРУГЛЕНИЕ: -0.51 [13:44:37]line ИТОГО: 1000.00 [13:44:37]line Внесено: 1000.00 [13:44:37]line СДАЧА: 0.00 [13:44:37]line НСП 1% : 8.85 [13:44:37]line НДС 12% : 106.25 [13:44:37]line Наличными: 1000.00 [13:44:37]line Безнал.: 0.00 [13:44:37]line Место: АЗС № 161 "Партнер Нефть" [13:44:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:44:37]line СНО: Общий режим [13:44:37]line Чек 154 23.10.2024 13:44 [13:44:37]line Смена: 537 ФФД: 1.0 [13:44:37]line ЗНМ: 0300000104 [13:44:37]line РНМ: 0000000000091764 [13:44:37]line Версия ККМ: 001 [13:44:37]line ФМ: 0000000000871759 [13:44:37]line ФД: 166739 [13:44:37]line ФПД: 171691021033065 [13:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134437&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166739&fm=171691021033065&tin=02508201610067®Number=0000000000091764&sum=100000 [13:44:38]OFD Sender: Processing packet 166739 [packets to send 48, broken 47] [13:44:38]ProducePacketName [13:44:38]name=ofd_packets/00166739 [13:44:38]OFD Sender: To server: pG, [13:44:38]CommunicateWithHost lk.salyk.kg:30040 [13:44:38]ConnectInit lk.salyk.kg [13:44:38]written 0, free lines is 4095 [13:44:38]Connected sock=10 [13:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 BD 04 01 67 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C5 FD 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 8B 02 00 35 04 06 00 9C 26 EE 51 DE 69 A3 B5 5B 75 D2 39 3B 3B [13:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 AC 47 00 11 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 8B 02 00 F4 03 04 00 2C A4 18 67 B6 04 01 00 00 F7 1F 63 1A 05 C6 84 B5 [13:44:38]CommunicateWithHost err = 0 [13:44:38]CheckOFDResponse [13:44:38]1017 (14) - 77093643461234 [13:44:38]1041 (16) - 0000000000871759 [13:44:38]1040 (4) - 166739 [13:44:38]1012 (4) - 23.10.2024 07:22 [13:44:38]1206 (1) - 0 [13:44:38]OFD Sender: Remove packet 166739 [13:44:38]ProducePacketName [13:44:38]name=ofd_packets/00166739 [13:44:38]NVStorageDeleteData [13:44:38]Write to MH i2c: 01 00 00 D4 1B EF [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 D4 1B 00 00 00 00 00 A8 0C AA [13:44:38]RasterBufferAndPrint [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]line [13:44:38]written 0, free lines is 3245 [13:44:38]MH_Cut [13:44:38]Write to MH i2c: D1 01 00 DB 1B 01 C8 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: D1 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: D1 01 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: D1 01 00 DB 1B 00 C7 [13:44:38]Write to MH i2c: 01 00 00 DC 1B F7 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]OFD Sender: No OFD packet to send [13:44:39]*** Cut start [13:44:39]*** Partial cut [13:44:39]*** CUTSNS_PIN = 1 [13:44:39]*** CUTSNS_PIN = 0 [13:44:39]*** Brake cut motor [13:44:40]Read from MH i2c: 01 [13:44:40]MH_I2C_Read... [13:44:40]*** Stop cut motor [13:44:40]*** Cut end [13:44:40]Read from MH i2c: 01 07 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 DC 1B 00 00 00 00 00 FF 0F 0C [13:44:40]process_action close_receipt done [13:44:40]requested_data is exist [13:44:40]produce_requested_data [13:44:40]requested_item fm.sn is exist - process it [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 11 00 00 [13:44:40]Write to MH i2c: E2 08 00 DD 1B 80 11 00 00 00 00 00 00 72 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 DD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [13:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:44:40]wFMCommunicate OK [13:44:40]requested_item fd.num is exist - process it [13:44:40]SAM_PROTO_GetFieldsCounters [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 13 00 00 [13:44:40]Write to MH i2c: E2 08 00 DE 1B 80 13 00 00 00 00 00 00 75 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 62 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 62 00 DE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [13:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:40]wFMCommunicate OK [13:44:40]SAM_PROTO_GetFieldsCounters done [13:44:40]requested_item shift.num is exist - process it [13:44:40]requested_item shift.opened is exist - process it [13:44:40]req_shift_opened [13:44:40]FM_GetShiftState [13:44:40]SAM_PROTO_GetShiftState [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 13 01 00 [13:44:40]Write to MH i2c: E2 08 00 DF 1B 80 13 01 00 00 00 00 00 77 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0E 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0E 00 DF 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 42 [13:44:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:44:40]wFMCommunicate OK [13:44:40]SAM_PROTO_GetShiftState done [13:44:40]FM_GetShiftState done [13:44:40]req_shift_opened done [13:44:40]requested_item shift.open_date is exist - process it [13:44:40]req_shift_open_date [13:44:40]req_shift_open_date done [13:44:40]produce_requested_data done [13:44:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166739,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:44:40]process_action_free close_receipt [13:44:40]json_value_free [13:44:40]json_value_free done [13:44:40]process_json_proto returns [13:44:40]Send response to host [13:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166739,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:44:40]free response buf [13:44:40]execute_script done [13:44:40]execute_script returns [13:44:40]free content buf [13:44:40]Sock 8.Close socket [13:44:40]Sock 8.Thread stoped [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:53]accept exits with 9 [13:46:53]New connection [13:46:53]New thread 3067034980 created [13:46:53]Thread 3067178340 joined [13:46:53]Waiting for new connection... [13:46:53] Sock 9.Parse request [13:46:53]Sock 9.Check first char [13:46:53]Sock 9.First char is OK [13:46:53]request: POST /json_proto HTTP/1.0 [13:46:53]Method: POST [13:46:53]URL: /json_proto [13:46:53]Method is POST - this is cgi request [13:46:53]url: /json_proto [13:46:53]query_string will be loaded in cgi processing [13:46:53]execute_cgi json_proto POST (null) [13:46:53]execute_cgi path=json_proto method=POST [13:46:53]POST find Content-Length [13:46:53]Host: 172.17.53.195:8080 [13:46:53]Content-Length: 677 [13:46:53]Content-Type: application/json [13:46:53] [13:46:53]POST finish read [13:46:53]Found Content-Length = 677 [13:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:53]execute_script... [13:46: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)221325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:53]POST & json_proto [13:46:53]process_json_proto [13:46:53]json parsed OK: [13:46:53]protocol is kg_v1.0 [13:46:53]action value=close_receipt [13:46:53]process_action close_receipt [13:46:53]cmd_close_receipt [13:46:53]MH_GetDate [13:46:53]Write to MH i2c: F0 00 00 E0 1B EA [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: F0 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: F0 09 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: F0 09 00 E0 1B 00 4E FE 18 67 21 48 4A 65 D6 [13:46:53]GetLastDocTimeStamp 1729691077 [13:46:53]current date 1729691214 [13:46:53]FM_GetShiftState [13:46:53]SAM_PROTO_GetShiftState [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 13 01 00 [13:46:53]Write to MH i2c: E2 08 00 E1 1B 80 13 01 00 00 00 00 00 79 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0E 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0E 00 E1 1B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 44 [13:46:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:46:53]wFMCommunicate OK [13:46:53]SAM_PROTO_GetShiftState done [13:46:53]FM_GetShiftState done [13:46:53]opened in 1729643772 [13:46:53]opened+sec_in_day 1729730172 [13:46:53]quantity*price = 40006 [13:46:53]sum+1 = 40007 [13:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 155 23.10.2024 13:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166740 ФПД: 279994919682461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166740&fm=279994919682461&tin=02508201610067®Number=0000000000091764&sum=40000 [13:46:54]StoreToDocumentArchive [13:46:54]shift 537 fd 166740 [13:46:54]save to /storage/0537/doc_00166740 [13:46:54]save last doc name /storage/0537/doc_00166740 to /storage/kkm_last_doc_name [13:46:54]save OK [13:46:54]Clear old archive folders... [13:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:54]tlvbuf is 02015FD0 [13:46:54]SAM_PROTO_ClearQueue [13:46:54]wFMCommunicate request_size=4 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 09 00 00 [13:46:54]Write to MH i2c: E2 08 00 EE 1B 80 09 00 00 00 00 00 00 7B [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [13:46:54]RAPDU: 90 00 [13:46:54]wFMCommunicate OK [13:46:54]SAM_PROTO_ClearQueue done [13:46:54]KKMCreateOFDPacket [13:46:54]OFDProtocolAddRootSTLVToBuf [13:46:54]FM_MakeSignedData [13:46:54]FM_MakeSignedData [13:46:54]SAM_PROTO_SignData [13:46:54]wFMCommunicate request_size=4 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 0D 01 02 [13:46:54]Write to MH i2c: E2 08 00 EF 1B 80 0D 01 02 00 00 00 00 83 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [13:46:54]RAPDU: 90 00 [13:46:54]wFMCommunicate OK [13:46:54]wFMCommunicate request_size=255 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4E FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 8B 02 00 35 04 06 00 FE [13:46:54]Write to MH i2c: E2 02 01 F0 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4E FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 8B 02 00 35 04 06 00 FE 00 00 48 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [13:46:54]RAPDU: 90 00 [13:46:54]wFMCommunicate OK [13:46:54]wFMCommunicate request_size=10 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 0D 02 02 05 A7 65 BA 01 9D [13:46:54]Write to MH i2c: E2 0D 00 F1 1B 80 0D 02 02 05 00 A7 65 BA 01 9D 00 00 F4 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [13:46:54]RAPDU: 90 00 [13:46:54]wFMCommunicate OK [13:46:54]wFMCommunicate request_size=4 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 0D 03 02 [13:46:54]Write to MH i2c: E2 08 00 F2 1B 80 0D 03 02 00 00 00 00 88 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 0B 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 0B 00 F2 1B 00 C5 FA 47 65 A3 E2 2B B1 90 00 55 [13:46:54]RAPDU: C5 FA 47 65 A3 E2 2B B1 90 00 [13:46:54]wFMCommunicate OK [13:46:54]SAM_PROTO_SignData done [13:46:54]FM_MakeSignedData done [13:46:54]CreateOFDProtocolMessage [13:46:54]wFMCommunicate request_size=4 [13:46:54]MH_SAM_APDU [13:46:54]CAPDU: 80 11 00 00 [13:46:54]Write to MH i2c: E2 08 00 F3 1B 80 11 00 00 00 00 00 00 88 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:54]Read from MH i2c: E2 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 17 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: E2 17 00 F3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [13:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:46:54]wFMCommunicate OK [13:46:54]CreateOFDProtocolMessage done [13:46:54]OFDSenderStorePacket 166740 [13:46:54]StoreOFDPacket docnum=166740 [13:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 32 F7 07 01 E4 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4E FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 8B 02 00 35 04 06 00 FE A7 65 BA 01 9D C5 FA 47 65 A3 E2 2B B1 [13:46:54]CheckFolder [13:46:54]dirname=/storage/ofd_packets [13:46:54]CheckFolder done [13:46:54]ProducePacketName [13:46:54]name=ofd_packets/00166740 [13:46:54]NVStorageSaveData ofd_packets/00166740 [13:46:54]File name is /storage/ofd_packets/00166740 [13:46:54]Write 301 bytes [13:46:54]NVStorageSaveData done [13:46:54]OFDSenderStorePacket done [13:46:54]KKMCreateOFDPacket done [13:46:54]NVStorageSaveData kkm_last_timestamp [13:46:54]File name is /storage/kkm_last_timestamp [13:46:54]Write 4 bytes [13:46:54]NVStorageSaveData done [13:46:54]ExternCall_PrintAddStr [13:46:54]wPrintStart [13:46:54]Write to MH i2c: 01 00 00 F4 1B 0F [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 07 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 FF 0F 24 [13:46:54]RasterBufferAndPrint [13:46:54]line Счет N : (1)221325 [13:46:54]line ИНН: 02508201610067 [13:46:54]line Контрольно-Кассовый Чек [13:46:54]line ПРОДАЖА [13:46:54]line ТРК (МРК, ГНК) : 13 [13:46:54]line Товар: 2710124130 [13:46:54]line Аи-92-К-5 [13:46:54]line 5.980 * 66.90 [13:46:54]line = 400.06 [13:46:54]line НДС 12% НСП 1% [13:46:54]line > о реализуемом товаре [13:46:54]line ОКРУГЛЕНИЕ: -0.06 [13:46:54]line ИТОГО: 400.00 [13:46:54]line Внесено: 400.00 [13:46:54]line СДАЧА: 0.00 [13:46:54]line НСП 1% : 3.54 [13:46:54]line НДС 12% : 42.48 [13:46:54]line Наличными: 400.00 [13:46:54]line Безнал.: 0.00 [13:46:54]line Место: АЗС № 161 "Партнер Нефть" [13:46:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:46:54]line СНО: Общий режим [13:46:54]line Чек 155 23.10.2024 13:46 [13:46:54]line Смена: 537 ФФД: 1.0 [13:46:54]line ЗНМ: 0300000104 [13:46:54]line РНМ: 0000000000091764 [13:46:54]line Версия ККМ: 001 [13:46:54]line ФМ: 0000000000871759 [13:46:54]line ФД: 166740 [13:46:54]line ФПД: 279994919682461 [13:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166740&fm=279994919682461&tin=02508201610067®Number=0000000000091764&sum=40000 [13:46:54]written 0, free lines is 4095 [13:46:55]OFD Sender: Processing packet 166740 [packets to send 48, broken 47] [13:46:55]ProducePacketName [13:46:55]name=ofd_packets/00166740 [13:46:55]OFD Sender: To server: pG, [13:46:55]CommunicateWithHost lk.salyk.kg:30040 [13:46:55]ConnectInit lk.salyk.kg [13:46:55]Connected sock=10 [13:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 32 F7 07 01 E4 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4E FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 8B 02 00 35 04 06 00 FE A7 65 BA 01 9D C5 FA 47 65 A3 E2 2B B1 [13:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 5D 47 00 CF 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 8B 02 00 F4 03 04 00 B5 A4 18 67 B6 04 01 00 00 72 76 79 AA 0E 9E C0 B4 [13:46:55]CommunicateWithHost err = 0 [13:46:55]CheckOFDResponse [13:46:55]1017 (14) - 77093643461234 [13:46:55]1041 (16) - 0000000000871759 [13:46:55]1040 (4) - 166740 [13:46:55]1012 (4) - 23.10.2024 07:24 [13:46:55]1206 (1) - 0 [13:46:55]OFD Sender: Remove packet 166740 [13:46:55]ProducePacketName [13:46:55]name=ofd_packets/00166740 [13:46:55]NVStorageDeleteData [13:46:55]Write to MH i2c: 01 00 00 1F 1C 3B [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: 01 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: 01 07 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: 01 07 00 1F 1C 00 00 00 00 00 BA 0C 08 [13:46:55]RasterBufferAndPrint [13:46:55]line [13:46:55]line [13:46:55]line [13:46:55]line [13:46:55]line [13:46:55]written 0, free lines is 3262 [13:46:55]MH_Cut [13:46:55]Write to MH i2c: D1 01 00 26 1C 01 14 [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: D1 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: D1 01 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: D1 01 00 26 1C 00 13 [13:46:55]Write to MH i2c: 01 00 00 27 1C 43 [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]OFD Sender: No OFD packet to send [13:46:56]*** Cut start [13:46:56]*** Partial cut [13:46:56]*** CUTSNS_PIN = 1 [13:46:56]*** CUTSNS_PIN = 0 [13:46:56]*** Brake cut motor [13:46:56]Read from MH i2c: 01 [13:46:56]MH_I2C_Read... [13:46:56]*** Stop cut motor [13:46:56]*** Cut end [13:46:56]Read from MH i2c: 01 07 00 [13:46:56]MH_I2C_Read... [13:46:56]Read from MH i2c: 01 07 00 27 1C 00 00 00 00 00 FF 0F 58 [13:46:56]process_action close_receipt done [13:46:56]requested_data is exist [13:46:56]produce_requested_data [13:46:56]requested_item fm.sn is exist - process it [13:46:56]wFMCommunicate request_size=4 [13:46:56]MH_SAM_APDU [13:46:56]CAPDU: 80 11 00 00 [13:46:56]Write to MH i2c: E2 08 00 28 1C 80 11 00 00 00 00 00 00 BE [13:46:56]Write i2c OK [13:46:56]MH_I2C_Read... [13:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:56]Read from MH i2c: E2 [13:46:56]MH_I2C_Read... [13:46:56]Read from MH i2c: E2 17 00 [13:46:56]MH_I2C_Read... [13:46:56]Read from MH i2c: E2 17 00 28 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [13:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:46:56]wFMCommunicate OK [13:46:56]requested_item fd.num is exist - process it [13:46:56]SAM_PROTO_GetFieldsCounters [13:46:56]wFMCommunicate request_size=4 [13:46:56]MH_SAM_APDU [13:46:56]CAPDU: 80 13 00 00 [13:46:56]Write to MH i2c: E2 08 00 29 1C 80 13 00 00 00 00 00 00 C1 [13:46:56]Write i2c OK [13:46:56]MH_I2C_Read... [13:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:57]Read from MH i2c: E2 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 62 00 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 62 00 29 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [13:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:57]wFMCommunicate OK [13:46:57]SAM_PROTO_GetFieldsCounters done [13:46:57]requested_item shift.num is exist - process it [13:46:57]requested_item shift.opened is exist - process it [13:46:57]req_shift_opened [13:46:57]FM_GetShiftState [13:46:57]SAM_PROTO_GetShiftState [13:46:57]wFMCommunicate request_size=4 [13:46:57]MH_SAM_APDU [13:46:57]CAPDU: 80 13 01 00 [13:46:57]Write to MH i2c: E2 08 00 2A 1C 80 13 01 00 00 00 00 00 C3 [13:46:57]Write i2c OK [13:46:57]MH_I2C_Read... [13:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:57]Read from MH i2c: E2 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 0E 00 [13:46:57]MH_I2C_Read... [13:46:57]Read from MH i2c: E2 0E 00 2A 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8E [13:46:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:46:57]wFMCommunicate OK [13:46:57]SAM_PROTO_GetShiftState done [13:46:57]FM_GetShiftState done [13:46:57]req_shift_opened done [13:46:57]requested_item shift.open_date is exist - process it [13:46:57]req_shift_open_date [13:46:57]req_shift_open_date done [13:46:57]produce_requested_data done [13:46:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166740,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:46:57]process_action_free close_receipt [13:46:57]json_value_free [13:46:57]json_value_free done [13:46:57]process_json_proto returns [13:46:57]Send response to host [13:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166740,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:46:57]free response buf [13:46:57]execute_script done [13:46:57]execute_script returns [13:46:57]free content buf [13:46:57]Sock 9.Close socket [13:46:57]Sock 9.Thread stoped [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:29]accept exits with 8 [13:48:29]New connection [13:48:29]New thread 3067178340 created [13:48:29]Thread 3067034980 joined [13:48:29]Waiting for new connection... [13:48:29] Sock 8.Parse request [13:48:29]Sock 8.Check first char [13:48:29]Sock 8.First char is OK [13:48:29]request: POST /json_proto HTTP/1.0 [13:48:29]Method: POST [13:48:29]URL: /json_proto [13:48:29]Method is POST - this is cgi request [13:48:29]url: /json_proto [13:48:29]query_string will be loaded in cgi processing [13:48:29]execute_cgi json_proto POST (null) [13:48:29]execute_cgi path=json_proto method=POST [13:48:29]POST find Content-Length [13:48:29]Host: 172.17.53.195:8080 [13:48:29]Content-Length: 789 [13:48:29]Content-Type: application/json [13:48:29] [13:48:29]POST finish read [13:48:29]Found Content-Length = 789 [13:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:29]execute_script... [13:48: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)221326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:29]POST & json_proto [13:48:29]process_json_proto [13:48:29]json parsed OK: [13:48:29]protocol is kg_v1.0 [13:48:29]action value=close_receipt [13:48:29]process_action close_receipt [13:48:29]cmd_close_receipt [13:48:29]MH_GetDate [13:48:29]Write to MH i2c: F0 00 00 2B 1C 36 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: F0 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: F0 09 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: F0 09 00 2B 1C 00 AE FE 18 67 21 48 4A 65 82 [13:48:29]GetLastDocTimeStamp 1729691214 [13:48:29]current date 1729691310 [13:48:29]FM_GetShiftState [13:48:29]SAM_PROTO_GetShiftState [13:48:29]wFMCommunicate request_size=4 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 13 01 00 [13:48:29]Write to MH i2c: E2 08 00 2C 1C 80 13 01 00 00 00 00 00 C5 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 0E 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 0E 00 2C 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 90 [13:48:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:48:29]wFMCommunicate OK [13:48:29]SAM_PROTO_GetShiftState done [13:48:29]FM_GetShiftState done [13:48:29]opened in 1729643772 [13:48:29]opened+sec_in_day 1729730172 [13:48:29]quantity*price = 0 [13:48:29]sum+1 = 1 [13:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 156 23.10.2024 13:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85742 ФМ: 0000000000871759 ФД: 166741 ФПД: 23320444424821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166741&fm=23320444424821&tin=02508201610067®Number=0000000000091764&sum=0 [13:48:30]StoreToDocumentArchive [13:48:30]shift 537 fd 166741 [13:48:30]save to /storage/0537/doc_00166741 [13:48:30]save last doc name /storage/0537/doc_00166741 to /storage/kkm_last_doc_name [13:48:30]save OK [13:48:30]Clear old archive folders... [13:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:48:30]tlvbuf is 01FFAC80 [13:48:30]SAM_PROTO_ClearQueue [13:48:30]wFMCommunicate request_size=4 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 09 00 00 [13:48:30]Write to MH i2c: E2 08 00 39 1C 80 09 00 00 00 00 00 00 C7 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:30]Read from MH i2c: E2 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 39 1C 00 90 00 C9 [13:48:30]RAPDU: 90 00 [13:48:30]wFMCommunicate OK [13:48:30]SAM_PROTO_ClearQueue done [13:48:30]KKMCreateOFDPacket [13:48:30]OFDProtocolAddRootSTLVToBuf [13:48:30]FM_MakeSignedData [13:48:30]FM_MakeSignedData [13:48:30]SAM_PROTO_SignData [13:48:30]wFMCommunicate request_size=4 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 0D 01 02 [13:48:30]Write to MH i2c: E2 08 00 3A 1C 80 0D 01 02 00 00 00 00 CF [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:30]Read from MH i2c: E2 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [13:48:30]RAPDU: 90 00 [13:48:30]wFMCommunicate OK [13:48:30]wFMCommunicate request_size=255 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AE FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 8B 02 00 35 04 06 00 15 35 B6 CE [13:48:30]Write to MH i2c: E2 02 01 3B 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AE FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 8B 02 00 35 04 06 00 15 35 B6 CE 00 00 32 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:30]Read from MH i2c: E2 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 3B 1C 00 90 00 CB [13:48:30]RAPDU: 90 00 [13:48:30]wFMCommunicate OK [13:48:30]wFMCommunicate request_size=7 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 0D 02 02 02 52 75 [13:48:30]Write to MH i2c: E2 0A 00 3C 1C 80 0D 02 02 02 00 52 75 00 00 9D [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]OFD Sender: No OFD packet to send [13:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:30]Read from MH i2c: E2 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 03 00 3C 1C 00 90 00 CC [13:48:30]RAPDU: 90 00 [13:48:30]wFMCommunicate OK [13:48:30]wFMCommunicate request_size=4 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 0D 03 02 [13:48:30]Write to MH i2c: E2 08 00 3D 1C 80 0D 03 02 00 00 00 00 D4 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:30]Read from MH i2c: E2 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 0B 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: E2 0B 00 3D 1C 00 D9 FF 03 A5 75 68 D6 DE 90 00 E6 [13:48:30]RAPDU: D9 FF 03 A5 75 68 D6 DE 90 00 [13:48:30]wFMCommunicate OK [13:48:30]SAM_PROTO_SignData done [13:48:30]FM_MakeSignedData done [13:48:30]CreateOFDProtocolMessage [13:48:30]wFMCommunicate request_size=4 [13:48:30]MH_SAM_APDU [13:48:30]CAPDU: 80 11 00 00 [13:48:30]Write to MH i2c: E2 08 00 3E 1C 80 11 00 00 00 00 00 00 D4 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:31]Read from MH i2c: E2 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: E2 17 00 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: E2 17 00 3E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [13:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:48:31]wFMCommunicate OK [13:48:31]CreateOFDProtocolMessage done [13:48:31]OFDSenderStorePacket 166741 [13:48:31]StoreOFDPacket docnum=166741 [13:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 59 04 01 D7 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AE FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 8B 02 00 35 04 06 00 15 35 B6 CE 52 75 D9 FF 03 A5 75 68 D6 DE [13:48:31]CheckFolder [13:48:31]dirname=/storage/ofd_packets [13:48:31]CheckFolder done [13:48:31]ProducePacketName [13:48:31]name=ofd_packets/00166741 [13:48:31]NVStorageSaveData ofd_packets/00166741 [13:48:31]File name is /storage/ofd_packets/00166741 [13:48:31]Write 298 bytes [13:48:31]NVStorageSaveData done [13:48:31]OFDSenderStorePacket done [13:48:31]KKMCreateOFDPacket done [13:48:31]NVStorageSaveData kkm_last_timestamp [13:48:31]File name is /storage/kkm_last_timestamp [13:48:31]Write 4 bytes [13:48:31]NVStorageSaveData done [13:48:31]ExternCall_PrintAddStr [13:48:31]wPrintStart [13:48:31]Write to MH i2c: 01 00 00 3F 1C 5B [13:48:31]Write i2c OK [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 07 00 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 07 00 3F 1C 00 00 00 00 00 FF 0F 70 [13:48:31]RasterBufferAndPrint [13:48:31]line Счет N : (1)221326 [13:48:31]line ИНН: 02508201610067 [13:48:31]line Контрольно-Кассовый Чек [13:48:31]line ПРОДАЖА [13:48:31]line ТРК (МРК, ГНК) : 31 [13:48:31]line Товар: 2710194210 [13:48:31]line ДТ-К-5 [13:48:31]line 39.380 * 0.00 [13:48:31]line = 0.00 [13:48:31]line НДС 12% НСП 1% [13:48:31]line > о реализуемом товаре [13:48:31]line ИТОГО: 0.00 [13:48:31]line НСП 1% : 0.00 [13:48:31]line НДС 12% : 0.00 [13:48:31]line Наличными: 0.00 [13:48:31]line Безнал.: 0.00 [13:48:31]line Место: АЗС № 161 "Партнер Нефть" [13:48:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:48:31]line СНО: Общий режим [13:48:31]line Чек 156 23.10.2024 13:48 [13:48:31]line Смена: 537 ФФД: 1.0 [13:48:31]line ЗНМ: 0300000104 [13:48:31]line РНМ: 0000000000091764 [13:48:31]line Версия ККМ: 001 [13:48:31]line Талоны: Топливная Карта [13:48:31]line 85742 [13:48:31]line ФМ: 0000000000871759 [13:48:31]line ФД: 166741 [13:48:31]line ФПД: 23320444424821 [13:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166741&fm=23320444424821&tin=02508201610067®Number=0000000000091764&sum=0 [13:48:31]OFD Sender: Processing packet 166741 [packets to send 48, broken 47] [13:48:31]ProducePacketName [13:48:31]name=ofd_packets/00166741 [13:48:31]OFD Sender: To server: pG, [13:48:31]CommunicateWithHost lk.salyk.kg:30040 [13:48:31]ConnectInit lk.salyk.kg [13:48:31]written 0, free lines is 4095 [13:48:31]Connected sock=10 [13:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 59 04 01 D7 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AE FE 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 8B 02 00 35 04 06 00 15 35 B6 CE 52 75 D9 FF 03 A5 75 68 D6 DE [13:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 CE 47 00 0D B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 8B 02 00 F4 03 04 00 16 A5 18 67 B6 04 01 00 00 87 02 82 B5 5A 6B C0 66 [13:48:31]CommunicateWithHost err = 0 [13:48:31]CheckOFDResponse [13:48:31]1017 (14) - 77093643461234 [13:48:31]1041 (16) - 0000000000871759 [13:48:31]1040 (4) - 166741 [13:48:31]1012 (4) - 23.10.2024 07:26 [13:48:31]1206 (1) - 0 [13:48:31]OFD Sender: Remove packet 166741 [13:48:31]ProducePacketName [13:48:31]name=ofd_packets/00166741 [13:48:31]NVStorageDeleteData [13:48:31]Write to MH i2c: 01 00 00 69 1C 85 [13:48:31]Write i2c OK [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 07 00 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: 01 07 00 69 1C 00 00 00 00 00 B8 0C 50 [13:48:31]RasterBufferAndPrint [13:48:31]line [13:48:31]line [13:48:31]line [13:48:31]line [13:48:31]line [13:48:31]written 0, free lines is 3260 [13:48:31]MH_Cut [13:48:31]Write to MH i2c: D1 01 00 70 1C 01 5E [13:48:31]Write i2c OK [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: D1 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: D1 01 00 [13:48:31]MH_I2C_Read... [13:48:31]Read from MH i2c: D1 01 00 70 1C 00 5D [13:48:31]Write to MH i2c: 01 00 00 71 1C 8D [13:48:31]Write i2c OK [13:48:31]MH_I2C_Read... [13:48:32]OFD Sender: No OFD packet to send [13:48:32]*** Cut start [13:48:32]*** Partial cut [13:48:32]*** CUTSNS_PIN = 1 [13:48:32]*** CUTSNS_PIN = 0 [13:48:32]*** Brake cut motor [13:48:33]Read from MH i2c: 01 [13:48:33]MH_I2C_Read... [13:48:33]*** Stop cut motor [13:48:33]*** Cut end [13:48:33]Read from MH i2c: 01 07 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: 01 07 00 71 1C 00 00 00 00 00 FF 0F A2 [13:48:33]process_action close_receipt done [13:48:33]requested_data is exist [13:48:33]produce_requested_data [13:48:33]requested_item fm.sn is exist - process it [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 11 00 00 [13:48:33]Write to MH i2c: E2 08 00 72 1C 80 11 00 00 00 00 00 00 08 [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:33]Read from MH i2c: E2 17 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 17 00 72 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [13:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:48:33]wFMCommunicate OK [13:48:33]requested_item fd.num is exist - process it [13:48:33]SAM_PROTO_GetFieldsCounters [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 13 00 00 [13:48:33]Write to MH i2c: E2 08 00 73 1C 80 13 00 00 00 00 00 00 0B [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 62 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 62 00 73 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:33]wFMCommunicate OK [13:48:33]SAM_PROTO_GetFieldsCounters done [13:48:33]requested_item shift.num is exist - process it [13:48:33]requested_item shift.opened is exist - process it [13:48:33]req_shift_opened [13:48:33]FM_GetShiftState [13:48:33]SAM_PROTO_GetShiftState [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 13 01 00 [13:48:33]Write to MH i2c: E2 08 00 74 1C 80 13 01 00 00 00 00 00 0D [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 0E 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 0E 00 74 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D8 [13:48:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:48:33]wFMCommunicate OK [13:48:33]SAM_PROTO_GetShiftState done [13:48:33]FM_GetShiftState done [13:48:33]req_shift_opened done [13:48:33]requested_item shift.open_date is exist - process it [13:48:33]req_shift_open_date [13:48:33]req_shift_open_date done [13:48:33]produce_requested_data done [13:48:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166741,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:48:33]process_action_free close_receipt [13:48:33]json_value_free [13:48:33]json_value_free done [13:48:33]process_json_proto returns [13:48:33]Send response to host [13:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166741,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:48:33]free response buf [13:48:33]execute_script done [13:48:33]execute_script returns [13:48:33]free content buf [13:48:33]Sock 8.Close socket [13:48:33]Sock 8.Thread stoped [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:01]accept exits with 9 [13:51:01]New connection [13:51:01]New thread 3067034980 created [13:51:01]Thread 3067178340 joined [13:51:01]Waiting for new connection... [13:51:01] Sock 9.Parse request [13:51:01]Sock 9.Check first char [13:51:01]Sock 9.First char is OK [13:51:01]request: POST /json_proto HTTP/1.0 [13:51:01]Method: POST [13:51:01]URL: /json_proto [13:51:01]Method is POST - this is cgi request [13:51:01]url: /json_proto [13:51:01]query_string will be loaded in cgi processing [13:51:01]execute_cgi json_proto POST (null) [13:51:01]execute_cgi path=json_proto method=POST [13:51:01]POST find Content-Length [13:51:01]Host: 172.17.53.195:8080 [13:51:01]Content-Length: 677 [13:51:01]Content-Type: application/json [13:51:01] [13:51:01]POST finish read [13:51:01]Found Content-Length = 677 [13:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:01]execute_script... [13:51: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)221327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:01]POST & json_proto [13:51:01]process_json_proto [13:51:01]json parsed OK: [13:51:01]protocol is kg_v1.0 [13:51:01]action value=close_receipt [13:51:01]process_action close_receipt [13:51:01]cmd_close_receipt [13:51:01]MH_GetDate [13:51:01]Write to MH i2c: F0 00 00 75 1C 80 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: F0 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: F0 09 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: F0 09 00 75 1C 00 47 FF 18 67 21 48 4A 65 66 [13:51:01]GetLastDocTimeStamp 1729691310 [13:51:01]current date 1729691463 [13:51:01]FM_GetShiftState [13:51:01]SAM_PROTO_GetShiftState [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 13 01 00 [13:51:01]Write to MH i2c: E2 08 00 76 1C 80 13 01 00 00 00 00 00 0F [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 0E 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 0E 00 76 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DA [13:51:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_GetShiftState done [13:51:01]FM_GetShiftState done [13:51:01]opened in 1729643772 [13:51:01]opened+sec_in_day 1729730172 [13:51:01]quantity*price = 50041 [13:51:01]sum+1 = 50042 [13:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 157 23.10.2024 13:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166742 ФПД: 220324410683974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166742&fm=220324410683974&tin=02508201610067®Number=0000000000091764&sum=50000 [13:51:02]StoreToDocumentArchive [13:51:02]shift 537 fd 166742 [13:51:02]save to /storage/0537/doc_00166742 [13:51:02]save last doc name /storage/0537/doc_00166742 to /storage/kkm_last_doc_name [13:51:02]save OK [13:51:02]Clear old archive folders... [13:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:02]tlvbuf is 01FE0EA0 [13:51:02]SAM_PROTO_ClearQueue [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 09 00 00 [13:51:02]Write to MH i2c: E2 08 00 83 1C 80 09 00 00 00 00 00 00 11 [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 83 1C 00 90 00 13 [13:51:03]RAPDU: 90 00 [13:51:03]wFMCommunicate OK [13:51:03]SAM_PROTO_ClearQueue done [13:51:03]KKMCreateOFDPacket [13:51:03]OFDProtocolAddRootSTLVToBuf [13:51:03]FM_MakeSignedData [13:51:03]FM_MakeSignedData [13:51:03]SAM_PROTO_SignData [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 0D 01 02 [13:51:03]Write to MH i2c: E2 08 00 84 1C 80 0D 01 02 00 00 00 00 19 [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 84 1C 00 90 00 14 [13:51:03]RAPDU: 90 00 [13:51:03]wFMCommunicate OK [13:51:03]wFMCommunicate request_size=255 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 47 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 8B 02 00 35 04 06 00 C8 [13:51:03]Write to MH i2c: E2 02 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 47 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 8B 02 00 35 04 06 00 C8 00 00 D7 [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 85 1C 00 90 00 15 [13:51:03]RAPDU: 90 00 [13:51:03]wFMCommunicate OK [13:51:03]wFMCommunicate request_size=10 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 0D 02 02 05 62 46 3B F2 46 [13:51:03]Write to MH i2c: E2 0D 00 86 1C 80 0D 02 02 05 00 62 46 3B F2 46 00 00 41 [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 03 00 86 1C 00 90 00 16 [13:51:03]RAPDU: 90 00 [13:51:03]wFMCommunicate OK [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 0D 03 02 [13:51:03]Write to MH i2c: E2 08 00 87 1C 80 0D 03 02 00 00 00 00 1E [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0B 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0B 00 87 1C 00 2D 5E 97 9C DC 0B 4E 82 90 00 94 [13:51:03]RAPDU: 2D 5E 97 9C DC 0B 4E 82 90 00 [13:51:03]wFMCommunicate OK [13:51:03]SAM_PROTO_SignData done [13:51:03]FM_MakeSignedData done [13:51:03]CreateOFDProtocolMessage [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 11 00 00 [13:51:03]Write to MH i2c: E2 08 00 88 1C 80 11 00 00 00 00 00 00 1E [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 17 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 17 00 88 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [13:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:03]wFMCommunicate OK [13:51:03]CreateOFDProtocolMessage done [13:51:03]OFDSenderStorePacket 166742 [13:51:03]StoreOFDPacket docnum=166742 [13:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 61 07 01 F9 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 47 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 8B 02 00 35 04 06 00 C8 62 46 3B F2 46 2D 5E 97 9C DC 0B 4E 82 [13:51:03]CheckFolder [13:51:03]dirname=/storage/ofd_packets [13:51:03]CheckFolder done [13:51:03]ProducePacketName [13:51:03]name=ofd_packets/00166742 [13:51:03]NVStorageSaveData ofd_packets/00166742 [13:51:03]File name is /storage/ofd_packets/00166742 [13:51:03]Write 301 bytes [13:51:03]NVStorageSaveData done [13:51:03]OFDSenderStorePacket done [13:51:03]KKMCreateOFDPacket done [13:51:03]NVStorageSaveData kkm_last_timestamp [13:51:03]File name is /storage/kkm_last_timestamp [13:51:03]Write 4 bytes [13:51:03]NVStorageSaveData done [13:51:03]ExternCall_PrintAddStr [13:51:03]wPrintStart [13:51:03]Write to MH i2c: 01 00 00 89 1C A5 [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: 01 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: 01 07 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: 01 07 00 89 1C 00 00 00 00 00 FF 0F BA [13:51:03]RasterBufferAndPrint [13:51:03]line Счет N : (1)221327 [13:51:03]line ИНН: 02508201610067 [13:51:03]line Контрольно-Кассовый Чек [13:51:03]line ПРОДАЖА [13:51:03]line ТРК (МРК, ГНК) : 23 [13:51:03]line Товар: 2710124130 [13:51:03]line Аи-92-К-5 [13:51:03]line 7.480 * 66.90 [13:51:03]line = 500.41 [13:51:03]line НДС 12% НСП 1% [13:51:03]line > о реализуемом товаре [13:51:03]line ОКРУГЛЕНИЕ: -0.41 [13:51:03]line ИТОГО: 500.00 [13:51:03]line Внесено: 500.00 [13:51:03]line СДАЧА: 0.00 [13:51:03]line НСП 1% : 4.43 [13:51:03]line НДС 12% : 53.14 [13:51:03]line Наличными: 500.00 [13:51:03]line Безнал.: 0.00 [13:51:03]line Место: АЗС № 161 "Партнер Нефть" [13:51:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:51:03]line СНО: Общий режим [13:51:03]line Чек 157 23.10.2024 13:51 [13:51:03]line Смена: 537 ФФД: 1.0 [13:51:03]line ЗНМ: 0300000104 [13:51:03]line РНМ: 0000000000091764 [13:51:03]line Версия ККМ: 001 [13:51:03]line ФМ: 0000000000871759 [13:51:03]line ФД: 166742 [13:51:03]line ФПД: 220324410683974 [13:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166742&fm=220324410683974&tin=02508201610067®Number=0000000000091764&sum=50000 [13:51:03]OFD Sender: Processing packet 166742 [packets to send 48, broken 47] [13:51:03]ProducePacketName [13:51:03]name=ofd_packets/00166742 [13:51:03]OFD Sender: To server: pG, [13:51:03]CommunicateWithHost lk.salyk.kg:30040 [13:51:03]ConnectInit lk.salyk.kg [13:51:03]written 0, free lines is 4095 [13:51:03]Connected sock=11 [13:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 61 07 01 F9 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 47 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 8B 02 00 35 04 06 00 C8 62 46 3B F2 46 2D 5E 97 9C DC 0B 4E 82 [13:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 85 C4 47 00 4E 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 8B 02 00 F4 03 04 00 AE A5 18 67 B6 04 01 00 00 1A E5 E0 6C 0B 3E BC 76 [13:51:04]CommunicateWithHost err = 0 [13:51:04]CheckOFDResponse [13:51:04]1017 (14) - 77093643461234 [13:51:04]1041 (16) - 0000000000871759 [13:51:04]1040 (4) - 166742 [13:51:04]1012 (4) - 23.10.2024 07:28 [13:51:04]1206 (1) - 0 [13:51:04]OFD Sender: Remove packet 166742 [13:51:04]ProducePacketName [13:51:04]name=ofd_packets/00166742 [13:51:04]NVStorageDeleteData [13:51:04]Write to MH i2c: 01 00 00 B4 1C D0 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 07 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 07 00 B4 1C 00 00 00 00 00 A2 0C 85 [13:51:04]RasterBufferAndPrint [13:51:04]line [13:51:04]line [13:51:04]line [13:51:04]line [13:51:04]line [13:51:04]written 0, free lines is 3240 [13:51:04]MH_Cut [13:51:04]Write to MH i2c: D1 01 00 BB 1C 01 A9 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: D1 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: D1 01 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: D1 01 00 BB 1C 00 A8 [13:51:04]Write to MH i2c: 01 00 00 BC 1C D8 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]OFD Sender: No OFD packet to send [13:51:05]*** Cut start [13:51:05]*** Partial cut [13:51:05]*** CUTSNS_PIN = 1 [13:51:05]*** CUTSNS_PIN = 0 [13:51:05]*** Brake cut motor [13:51:05]Read from MH i2c: 01 [13:51:05]MH_I2C_Read... [13:51:05]*** Stop cut motor [13:51:05]*** Cut end [13:51:05]Read from MH i2c: 01 07 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: 01 07 00 BC 1C 00 00 00 00 00 FF 0F ED [13:51:05]process_action close_receipt done [13:51:05]requested_data is exist [13:51:05]produce_requested_data [13:51:05]requested_item fm.sn is exist - process it [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 11 00 00 [13:51:05]Write to MH i2c: E2 08 00 BD 1C 80 11 00 00 00 00 00 00 53 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 17 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 17 00 BD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [13:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:05]wFMCommunicate OK [13:51:05]requested_item fd.num is exist - process it [13:51:05]SAM_PROTO_GetFieldsCounters [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 13 00 00 [13:51:05]Write to MH i2c: E2 08 00 BE 1C 80 13 00 00 00 00 00 00 56 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 62 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 62 00 BE 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:51:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:05]wFMCommunicate OK [13:51:05]SAM_PROTO_GetFieldsCounters done [13:51:05]requested_item shift.num is exist - process it [13:51:06]requested_item shift.opened is exist - process it [13:51:06]req_shift_opened [13:51:06]FM_GetShiftState [13:51:06]SAM_PROTO_GetShiftState [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 13 01 00 [13:51:06]Write to MH i2c: E2 08 00 BF 1C 80 13 01 00 00 00 00 00 58 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 BF 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 23 [13:51:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_GetShiftState done [13:51:06]FM_GetShiftState done [13:51:06]req_shift_opened done [13:51:06]requested_item shift.open_date is exist - process it [13:51:06]req_shift_open_date [13:51:06]req_shift_open_date done [13:51:06]produce_requested_data done [13:51:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166742,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:51:06]process_action_free close_receipt [13:51:06]json_value_free [13:51:06]json_value_free done [13:51:06]process_json_proto returns [13:51:06]Send response to host [13:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166742,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:51:06]free response buf [13:51:06]execute_script done [13:51:06]execute_script returns [13:51:06]free content buf [13:51:06]Sock 9.Close socket [13:51:06]Sock 9.Thread stoped [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:03]accept exits with 8 [13:53:03]New connection [13:53:03]New thread 3067178340 created [13:53:03]Thread 3067034980 joined [13:53:03]Waiting for new connection... [13:53:03] Sock 8.Parse request [13:53:03]Sock 8.Check first char [13:53:03]Sock 8.First char is OK [13:53:03]request: POST /json_proto HTTP/1.0 [13:53:03]Method: POST [13:53:03]URL: /json_proto [13:53:03]Method is POST - this is cgi request [13:53:03]url: /json_proto [13:53:03]query_string will be loaded in cgi processing [13:53:03]execute_cgi json_proto POST (null) [13:53:03]execute_cgi path=json_proto method=POST [13:53:03]POST find Content-Length [13:53:03]Host: 172.17.53.195:8080 [13:53:03]Content-Length: 677 [13:53:03]Content-Type: application/json [13:53:03] [13:53:03]POST finish read [13:53:03]Found Content-Length = 677 [13:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:03]execute_script... [13: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)221328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:03]POST & json_proto [13:53:03]process_json_proto [13:53:03]json parsed OK: [13:53:03]protocol is kg_v1.0 [13:53:03]action value=close_receipt [13:53:03]process_action close_receipt [13:53:03]cmd_close_receipt [13:53:03]MH_GetDate [13:53:03]Write to MH i2c: F0 00 00 C0 1C CB [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: F0 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: F0 09 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: F0 09 00 C0 1C 00 C0 FF 18 67 21 48 4A 65 2A [13:53:03]GetLastDocTimeStamp 1729691463 [13:53:03]current date 1729691584 [13:53:03]FM_GetShiftState [13:53:03]SAM_PROTO_GetShiftState [13:53:03]wFMCommunicate request_size=4 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 13 01 00 [13:53:03]Write to MH i2c: E2 08 00 C1 1C 80 13 01 00 00 00 00 00 5A [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 0E 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 0E 00 C1 1C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 25 [13:53:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:53:03]wFMCommunicate OK [13:53:03]SAM_PROTO_GetShiftState done [13:53:03]FM_GetShiftState done [13:53:03]opened in 1729643772 [13:53:03]opened+sec_in_day 1729730172 [13:53:03]quantity*price = 49974 [13:53:03]sum+1 = 49975 [13:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 158 23.10.2024 13:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166743 ФПД: 252740284603816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135304&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166743&fm=252740284603816&tin=02508201610067®Number=0000000000091764&sum=49900 [13:53:04]StoreToDocumentArchive [13:53:04]shift 537 fd 166743 [13:53:04]save to /storage/0537/doc_00166743 [13:53:04]save last doc name /storage/0537/doc_00166743 to /storage/kkm_last_doc_name [13:53:04]save OK [13:53:04]Clear old archive folders... [13:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:04]tlvbuf is B6F8FAA0 [13:53:04]SAM_PROTO_ClearQueue [13:53:04]wFMCommunicate request_size=4 [13:53:04]MH_SAM_APDU [13:53:04]CAPDU: 80 09 00 00 [13:53:04]Write to MH i2c: E2 08 00 CE 1C 80 09 00 00 00 00 00 00 5C [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:04]OFD Sender: No OFD packet to send [13:53:04]Read from MH i2c: E2 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 CE 1C 00 90 00 5E [13:53:04]RAPDU: 90 00 [13:53:04]wFMCommunicate OK [13:53:04]SAM_PROTO_ClearQueue done [13:53:04]KKMCreateOFDPacket [13:53:04]OFDProtocolAddRootSTLVToBuf [13:53:04]FM_MakeSignedData [13:53:04]FM_MakeSignedData [13:53:04]SAM_PROTO_SignData [13:53:04]wFMCommunicate request_size=4 [13:53:04]MH_SAM_APDU [13:53:04]CAPDU: 80 0D 01 02 [13:53:04]Write to MH i2c: E2 08 00 CF 1C 80 0D 01 02 00 00 00 00 64 [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:04]Read from MH i2c: E2 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 CF 1C 00 90 00 5F [13:53:04]RAPDU: 90 00 [13:53:04]wFMCommunicate OK [13:53:04]wFMCommunicate request_size=255 [13:53:04]MH_SAM_APDU [13: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C0 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 8B 02 00 35 04 06 00 E5 [13:53:04]Write to MH i2c: E2 02 01 D0 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C0 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 8B 02 00 35 04 06 00 E5 00 00 9B [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 03 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 03 00 D0 1C 00 90 00 60 [13:53:05]RAPDU: 90 00 [13:53:05]wFMCommunicate OK [13:53:05]wFMCommunicate request_size=10 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 0D 02 02 05 DD AE E2 5D A8 [13:53:05]Write to MH i2c: E2 0D 00 D1 1C 80 0D 02 02 05 00 DD AE E2 5D A8 00 00 E3 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 03 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 03 00 D1 1C 00 90 00 61 [13:53:05]RAPDU: 90 00 [13:53:05]wFMCommunicate OK [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 0D 03 02 [13:53:05]Write to MH i2c: E2 08 00 D2 1C 80 0D 03 02 00 00 00 00 69 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0B 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0B 00 D2 1C 00 66 30 54 AA C2 14 B7 5F 90 00 EA [13:53:05]RAPDU: 66 30 54 AA C2 14 B7 5F 90 00 [13:53:05]wFMCommunicate OK [13:53:05]SAM_PROTO_SignData done [13:53:05]FM_MakeSignedData done [13:53:05]CreateOFDProtocolMessage [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 11 00 00 [13:53:05]Write to MH i2c: E2 08 00 D3 1C 80 11 00 00 00 00 00 00 69 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 17 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 17 00 D3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [13:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:53:05]wFMCommunicate OK [13:53:05]CreateOFDProtocolMessage done [13:53:05]OFDSenderStorePacket 166743 [13:53:05]StoreOFDPacket docnum=166743 [13:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 2E 07 01 C2 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C0 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 8B 02 00 35 04 06 00 E5 DD AE E2 5D A8 66 30 54 AA C2 14 B7 5F [13:53:05]CheckFolder [13:53:05]dirname=/storage/ofd_packets [13:53:05]CheckFolder done [13:53:05]ProducePacketName [13:53:05]name=ofd_packets/00166743 [13:53:05]NVStorageSaveData ofd_packets/00166743 [13:53:05]File name is /storage/ofd_packets/00166743 [13:53:05]Write 301 bytes [13:53:05]NVStorageSaveData done [13:53:05]OFDSenderStorePacket done [13:53:05]KKMCreateOFDPacket done [13:53:05]NVStorageSaveData kkm_last_timestamp [13:53:05]File name is /storage/kkm_last_timestamp [13:53:05]Write 4 bytes [13:53:05]NVStorageSaveData done [13:53:05]ExternCall_PrintAddStr [13:53:05]wPrintStart [13:53:05]Write to MH i2c: 01 00 00 D4 1C F0 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: 01 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: 01 07 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: 01 07 00 D4 1C 00 00 00 00 00 FF 0F 05 [13:53:05]RasterBufferAndPrint [13:53:05]line Счет N : (1)221328 [13:53:05]line ИНН: 02508201610067 [13:53:05]line Контрольно-Кассовый Чек [13:53:05]line ПРОДАЖА [13:53:05]line ТРК (МРК, ГНК) : 13 [13:53:05]line Товар: 2710124130 [13:53:05]line Аи-92-К-5 [13:53:05]line 7.470 * 66.90 [13:53:05]line = 499.74 [13:53:05]line НДС 12% НСП 1% [13:53:05]line > о реализуемом товаре [13:53:05]line ОКРУГЛЕНИЕ: -0.74 [13:53:05]line ИТОГО: 499.00 [13:53:05]line Внесено: 500.00 [13:53:05]line СДАЧА: 1.00 [13:53:05]line НСП 1% : 4.42 [13:53:05]line НДС 12% : 53.07 [13:53:05]line Наличными: 499.00 [13:53:05]line Безнал.: 0.00 [13:53:05]line Место: АЗС № 161 "Партнер Нефть" [13:53:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:53:05]line СНО: Общий режим [13:53:05]line Чек 158 23.10.2024 13:53 [13:53:05]line Смена: 537 ФФД: 1.0 [13:53:05]line ЗНМ: 0300000104 [13:53:05]line РНМ: 0000000000091764 [13:53:05]line Версия ККМ: 001 [13:53:05]line ФМ: 0000000000871759 [13:53:05]line ФД: 166743 [13:53:05]line ФПД: 252740284603816 [13:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135304&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166743&fm=252740284603816&tin=02508201610067®Number=0000000000091764&sum=49900 [13:53:05]OFD Sender: Processing packet 166743 [packets to send 48, broken 47] [13:53:05]ProducePacketName [13:53:05]name=ofd_packets/00166743 [13:53:05]OFD Sender: To server: pG, [13:53:05]CommunicateWithHost lk.salyk.kg:30040 [13:53:05]ConnectInit lk.salyk.kg [13:53:05]written 0, free lines is 4095 [13:53:05]Connected sock=11 [13:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 2E 07 01 C2 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C0 FF 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 8B 02 00 35 04 06 00 E5 DD AE E2 5D A8 66 30 54 AA C2 14 B7 5F [13:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 5E 47 00 2F BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 8B 02 00 F4 03 04 00 28 A6 18 67 B6 04 01 00 00 C9 93 91 C6 12 88 A1 E1 [13:53:05]CommunicateWithHost err = 0 [13:53:05]CheckOFDResponse [13:53:05]1017 (14) - 77093643461234 [13:53:05]1041 (16) - 0000000000871759 [13:53:05]1040 (4) - 166743 [13:53:05]1012 (4) - 23.10.2024 07:30 [13:53:05]1206 (1) - 0 [13:53:05]OFD Sender: Remove packet 166743 [13:53:05]ProducePacketName [13:53:05]name=ofd_packets/00166743 [13:53:05]NVStorageDeleteData [13:53:06]Write to MH i2c: 01 00 00 FF 1C 1B [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: 01 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: 01 07 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: 01 07 00 FF 1C 00 00 00 00 00 A7 0C D5 [13:53:06]RasterBufferAndPrint [13:53:06]line [13:53:06]line [13:53:06]line [13:53:06]line [13:53:06]line [13:53:06]written 0, free lines is 3245 [13:53:06]MH_Cut [13:53:06]Write to MH i2c: D1 01 00 06 1D 01 F5 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: D1 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: D1 01 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: D1 01 00 06 1D 00 F4 [13:53:06]Write to MH i2c: 01 00 00 07 1D 24 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]OFD Sender: No OFD packet to send [13:53:06]*** Cut start [13:53:06]*** Partial cut [13:53:06]*** CUTSNS_PIN = 1 [13:53:07]*** CUTSNS_PIN = 0 [13:53:07]*** Brake cut motor [13:53:07]Read from MH i2c: 01 [13:53:07]MH_I2C_Read... [13:53:07]*** Stop cut motor [13:53:07]*** Cut end [13:53:07]Read from MH i2c: 01 07 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 07 00 07 1D 00 00 00 00 00 FF 0F 39 [13:53:07]process_action close_receipt done [13:53:07]requested_data is exist [13:53:07]produce_requested_data [13:53:07]requested_item fm.sn is exist - process it [13:53:07]wFMCommunicate request_size=4 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 11 00 00 [13:53:07]Write to MH i2c: E2 08 00 08 1D 80 11 00 00 00 00 00 00 9F [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 17 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 17 00 08 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [13:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:53:07]wFMCommunicate OK [13:53:07]requested_item fd.num is exist - process it [13:53:07]SAM_PROTO_GetFieldsCounters [13:53:07]wFMCommunicate request_size=4 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 13 00 00 [13:53:07]Write to MH i2c: E2 08 00 09 1D 80 13 00 00 00 00 00 00 A2 [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 62 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 62 00 09 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:07]wFMCommunicate OK [13:53:07]SAM_PROTO_GetFieldsCounters done [13:53:07]requested_item shift.num is exist - process it [13:53:07]requested_item shift.opened is exist - process it [13:53:07]req_shift_opened [13:53:07]FM_GetShiftState [13:53:07]SAM_PROTO_GetShiftState [13:53:07]wFMCommunicate request_size=4 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 13 01 00 [13:53:07]Write to MH i2c: E2 08 00 0A 1D 80 13 01 00 00 00 00 00 A4 [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 0E 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 0E 00 0A 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6F [13:53:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:53:07]wFMCommunicate OK [13:53:07]SAM_PROTO_GetShiftState done [13:53:07]FM_GetShiftState done [13:53:07]req_shift_opened done [13:53:07]requested_item shift.open_date is exist - process it [13:53:07]req_shift_open_date [13:53:07]req_shift_open_date done [13:53:07]produce_requested_data done [13:53:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166743,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:53:07]process_action_free close_receipt [13:53:07]json_value_free [13:53:07]json_value_free done [13:53:07]process_json_proto returns [13:53:07]Send response to host [13:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166743,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:53:07]free response buf [13:53:07]execute_script done [13:53:07]execute_script returns [13:53:07]free content buf [13:53:07]Sock 8.Close socket [13:53:07]Sock 8.Thread stoped [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:48]accept exits with 9 [13:54:48]New connection [13:54:48]New thread 3067034980 created [13:54:48]Thread 3067178340 joined [13:54:48]Waiting for new connection... [13:54:48] Sock 9.Parse request [13:54:48]Sock 9.Check first char [13:54:48]Sock 9.First char is OK [13:54:48]request: POST /json_proto HTTP/1.0 [13:54:48]Method: POST [13:54:48]URL: /json_proto [13:54:48]Method is POST - this is cgi request [13:54:48]url: /json_proto [13:54:48]query_string will be loaded in cgi processing [13:54:48]execute_cgi json_proto POST (null) [13:54:48]execute_cgi path=json_proto method=POST [13:54:48]POST find Content-Length [13:54:48]Host: 172.17.53.195:8080 [13:54:48]Content-Length: 677 [13:54:48]Content-Type: application/json [13:54:48] [13:54:48]POST finish read [13:54:48]Found Content-Length = 677 [13:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:48]execute_script... [13:54: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)221329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:48]POST & json_proto [13:54:48]process_json_proto [13:54:48]json parsed OK: [13:54:48]protocol is kg_v1.0 [13:54:48]action value=close_receipt [13:54:48]process_action close_receipt [13:54:48]cmd_close_receipt [13:54:48]MH_GetDate [13:54:48]Write to MH i2c: F0 00 00 0B 1D 17 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 09 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 09 00 0B 1D 00 29 00 19 67 21 48 4A 65 E1 [13:54:48]GetLastDocTimeStamp 1729691584 [13:54:48]current date 1729691689 [13:54:48]FM_GetShiftState [13:54:48]SAM_PROTO_GetShiftState [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 13 01 00 [13:54:48]Write to MH i2c: E2 08 00 0C 1D 80 13 01 00 00 00 00 00 A6 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 0C 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 71 [13:54:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:54:48]wFMCommunicate OK [13:54:48]SAM_PROTO_GetShiftState done [13:54:48]FM_GetShiftState done [13:54:48]opened in 1729643772 [13:54:48]opened+sec_in_day 1729730172 [13:54:48]quantity*price = 50041 [13:54:48]sum+1 = 50042 [13:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 159 23.10.2024 13:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166744 ФПД: 254754918547211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166744&fm=254754918547211&tin=02508201610067®Number=0000000000091764&sum=50000 [13:54:49]StoreToDocumentArchive [13:54:49]shift 537 fd 166744 [13:54:49]save to /storage/0537/doc_00166744 [13:54:49]save last doc name /storage/0537/doc_00166744 to /storage/kkm_last_doc_name [13:54:49]save OK [13:54:49]Clear old archive folders... [13:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:49]tlvbuf is 01F7BED0 [13:54:49]SAM_PROTO_ClearQueue [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 09 00 00 [13:54:49]Write to MH i2c: E2 08 00 19 1D 80 09 00 00 00 00 00 00 A8 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 19 1D 00 90 00 AA [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_ClearQueue done [13:54:49]KKMCreateOFDPacket [13:54:49]OFDProtocolAddRootSTLVToBuf [13:54:49]FM_MakeSignedData [13:54:49]FM_MakeSignedData [13:54:49]SAM_PROTO_SignData [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 01 02 [13:54:49]Write to MH i2c: E2 08 00 1A 1D 80 0D 01 02 00 00 00 00 B0 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 1A 1D 00 90 00 AB [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]wFMCommunicate request_size=255 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 29 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8B 02 00 35 04 06 00 E7 [13:54:49]Write to MH i2c: E2 02 01 1B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 29 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8B 02 00 35 04 06 00 E7 00 00 75 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:50]Read from MH i2c: E2 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 03 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 03 00 1B 1D 00 90 00 AC [13:54:50]RAPDU: 90 00 [13:54:50]wFMCommunicate OK [13:54:50]wFMCommunicate request_size=10 [13:54:50]MH_SAM_APDU [13:54:50]CAPDU: 80 0D 02 02 05 B2 C0 6C BF 0B [13:54:50]Write to MH i2c: E2 0D 00 1C 1D 80 0D 02 02 05 00 B2 C0 6C BF 0B 00 00 65 [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:50]Read from MH i2c: E2 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 03 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 03 00 1C 1D 00 90 00 AD [13:54:50]RAPDU: 90 00 [13:54:50]wFMCommunicate OK [13:54:50]wFMCommunicate request_size=4 [13:54:50]MH_SAM_APDU [13:54:50]CAPDU: 80 0D 03 02 [13:54:50]Write to MH i2c: E2 08 00 1D 1D 80 0D 03 02 00 00 00 00 B5 [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:50]Read from MH i2c: E2 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 0B 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 0B 00 1D 1D 00 CA 94 07 40 E3 50 35 B6 90 00 79 [13:54:50]RAPDU: CA 94 07 40 E3 50 35 B6 90 00 [13:54:50]wFMCommunicate OK [13:54:50]SAM_PROTO_SignData done [13:54:50]FM_MakeSignedData done [13:54:50]CreateOFDProtocolMessage [13:54:50]wFMCommunicate request_size=4 [13:54:50]MH_SAM_APDU [13:54:50]CAPDU: 80 11 00 00 [13:54:50]Write to MH i2c: E2 08 00 1E 1D 80 11 00 00 00 00 00 00 B5 [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:50]Read from MH i2c: E2 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 17 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: E2 17 00 1E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [13:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:54:50]wFMCommunicate OK [13:54:50]CreateOFDProtocolMessage done [13:54:50]OFDSenderStorePacket 166744 [13:54:50]StoreOFDPacket docnum=166744 [13:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5B 49 07 01 59 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 29 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8B 02 00 35 04 06 00 E7 B2 C0 6C BF 0B CA 94 07 40 E3 50 35 B6 [13:54:50]CheckFolder [13:54:50]dirname=/storage/ofd_packets [13:54:50]CheckFolder done [13:54:50]ProducePacketName [13:54:50]name=ofd_packets/00166744 [13:54:50]NVStorageSaveData ofd_packets/00166744 [13:54:50]File name is /storage/ofd_packets/00166744 [13:54:50]Write 301 bytes [13:54:50]NVStorageSaveData done [13:54:50]OFDSenderStorePacket done [13:54:50]KKMCreateOFDPacket done [13:54:50]NVStorageSaveData kkm_last_timestamp [13:54:50]File name is /storage/kkm_last_timestamp [13:54:50]Write 4 bytes [13:54:50]NVStorageSaveData done [13:54:50]ExternCall_PrintAddStr [13:54:50]wPrintStart [13:54:50]Write to MH i2c: 01 00 00 1F 1D 3C [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 07 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 07 00 1F 1D 00 00 00 00 00 FF 0F 51 [13:54:50]RasterBufferAndPrint [13:54:50]line Счет N : (1)221329 [13:54:50]line ИНН: 02508201610067 [13:54:50]line Контрольно-Кассовый Чек [13:54:50]line ПРОДАЖА [13:54:50]line ТРК (МРК, ГНК) : 23 [13:54:50]line Товар: 2710124130 [13:54:50]line Аи-92-К-5 [13:54:50]line 7.480 * 66.90 [13:54:50]line = 500.41 [13:54:50]line НДС 12% НСП 1% [13:54:50]line > о реализуемом товаре [13:54:50]line ОКРУГЛЕНИЕ: -0.41 [13:54:50]line ИТОГО: 500.00 [13:54:50]line Внесено: 500.00 [13:54:50]line СДАЧА: 0.00 [13:54:50]line НСП 1% : 4.43 [13:54:50]line НДС 12% : 53.14 [13:54:50]line Наличными: 500.00 [13:54:50]line Безнал.: 0.00 [13:54:50]line Место: АЗС № 161 "Партнер Нефть" [13:54:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:54:50]line СНО: Общий режим [13:54:50]line Чек 159 23.10.2024 13:54 [13:54:50]line Смена: 537 ФФД: 1.0 [13:54:50]line ЗНМ: 0300000104 [13:54:50]line РНМ: 0000000000091764 [13:54:50]line Версия ККМ: 001 [13:54:50]line ФМ: 0000000000871759 [13:54:50]line ФД: 166744 [13:54:50]line ФПД: 254754918547211 [13:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166744&fm=254754918547211&tin=02508201610067®Number=0000000000091764&sum=50000 [13:54:50]OFD Sender: Processing packet 166744 [packets to send 48, broken 47] [13:54:50]ProducePacketName [13:54:50]name=ofd_packets/00166744 [13:54:50]OFD Sender: To server: pG, [13:54:50]CommunicateWithHost lk.salyk.kg:30040 [13:54:50]ConnectInit lk.salyk.kg [13:54:50]written 0, free lines is 4095 [13:54:50]Connected sock=10 [13:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5B 49 07 01 59 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 29 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8B 02 00 35 04 06 00 E7 B2 C0 6C BF 0B CA 94 07 40 E3 50 35 B6 [13:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A9 95 47 00 D7 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8B 02 00 F4 03 04 00 91 A6 18 67 B6 04 01 00 00 96 43 AD 41 25 1A 33 BD [13:54:50]CommunicateWithHost err = 0 [13:54:50]CheckOFDResponse [13:54:50]1017 (14) - 77093643461234 [13:54:50]1041 (16) - 0000000000871759 [13:54:50]1040 (4) - 166744 [13:54:50]1012 (4) - 23.10.2024 07:32 [13:54:50]1206 (1) - 0 [13:54:50]OFD Sender: Remove packet 166744 [13:54:50]ProducePacketName [13:54:50]name=ofd_packets/00166744 [13:54:50]NVStorageDeleteData [13:54:51]Write to MH i2c: 01 00 00 4A 1D 67 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: 01 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: 01 07 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 A4 0C 1E [13:54:51]RasterBufferAndPrint [13:54:51]line [13:54:51]line [13:54:51]line [13:54:51]line [13:54:51]line [13:54:51]written 0, free lines is 3242 [13:54:51]MH_Cut [13:54:51]Write to MH i2c: D1 01 00 51 1D 01 40 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: D1 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: D1 01 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: D1 01 00 51 1D 00 3F [13:54:51]Write to MH i2c: 01 00 00 52 1D 6F [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]OFD Sender: No OFD packet to send [13:54:51]*** Cut start [13:54:51]*** Partial cut [13:54:51]*** CUTSNS_PIN = 1 [13:54:52]*** CUTSNS_PIN = 0 [13:54:52]*** Brake cut motor [13:54:52]Read from MH i2c: 01 [13:54:52]MH_I2C_Read... [13:54:52]*** Stop cut motor [13:54:52]*** Cut end [13:54:52]Read from MH i2c: 01 07 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: 01 07 00 52 1D 00 00 00 00 00 FF 0F 84 [13:54:52]process_action close_receipt done [13:54:52]requested_data is exist [13:54:52]produce_requested_data [13:54:52]requested_item fm.sn is exist - process it [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 11 00 00 [13:54:52]Write to MH i2c: E2 08 00 53 1D 80 11 00 00 00 00 00 00 EA [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 17 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 17 00 53 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [13:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:54:52]wFMCommunicate OK [13:54:52]requested_item fd.num is exist - process it [13:54:52]SAM_PROTO_GetFieldsCounters [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 13 00 00 [13:54:52]Write to MH i2c: E2 08 00 54 1D 80 13 00 00 00 00 00 00 ED [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 62 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 62 00 54 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [13:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_GetFieldsCounters done [13:54:52]requested_item shift.num is exist - process it [13:54:52]requested_item shift.opened is exist - process it [13:54:52]req_shift_opened [13:54:52]FM_GetShiftState [13:54:52]SAM_PROTO_GetShiftState [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 13 01 00 [13:54:52]Write to MH i2c: E2 08 00 55 1D 80 13 01 00 00 00 00 00 EF [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 55 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BA [13:54:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_GetShiftState done [13:54:52]FM_GetShiftState done [13:54:52]req_shift_opened done [13:54:52]requested_item shift.open_date is exist - process it [13:54:52]req_shift_open_date [13:54:52]req_shift_open_date done [13:54:52]produce_requested_data done [13:54:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166744,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:54:52]process_action_free close_receipt [13:54:52]json_value_free [13:54:52]json_value_free done [13:54:52]process_json_proto returns [13:54:52]Send response to host [13:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166744,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:54:52]free response buf [13:54:52]execute_script done [13:54:52]execute_script returns [13:54:52]free content buf [13:54:52]Sock 9.Close socket [13:54:52]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [13:57:22]accept exits with 8 [13:57:22]New connection [13:57:22]New thread 3067178340 created [13:57:22]Thread 3067034980 joined [13:57:22]Waiting for new connection... [13:57:22] Sock 8.Parse request [13:57:22]Sock 8.Check first char [13:57:22]Sock 8.First char is OK [13:57:22]request: POST /json_proto HTTP/1.0 [13:57:22]Method: POST [13:57:22]URL: /json_proto [13:57:22]Method is POST - this is cgi request [13:57:22]url: /json_proto [13:57:22]query_string will be loaded in cgi processing [13:57:22]execute_cgi json_proto POST (null) [13:57:22]execute_cgi path=json_proto method=POST [13:57:22]POST find Content-Length [13:57:22]Host: 172.17.53.195:8080 [13:57:22]Content-Length: 678 [13:57:22]Content-Type: application/json [13:57:22] [13:57:22]POST finish read [13:57:22]Found Content-Length = 678 [13:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:22]execute_script... [13:57: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)221330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:22]POST & json_proto [13:57:22]process_json_proto [13:57:22]json parsed OK: [13:57:22]protocol is kg_v1.0 [13:57:22]action value=close_receipt [13:57:22]process_action close_receipt [13:57:22]cmd_close_receipt [13:57:22]MH_GetDate [13:57:22]Write to MH i2c: F0 00 00 56 1D 62 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 09 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 09 00 56 1D 00 C3 00 19 67 21 48 4A 65 C6 [13:57:22]GetLastDocTimeStamp 1729691689 [13:57:22]current date 1729691843 [13:57:22]FM_GetShiftState [13:57:22]SAM_PROTO_GetShiftState [13:57:22]wFMCommunicate request_size=4 [13:57:22]MH_SAM_APDU [13:57:22]CAPDU: 80 13 01 00 [13:57:22]Write to MH i2c: E2 08 00 57 1D 80 13 01 00 00 00 00 00 F1 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 57 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [13:57:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:57:22]wFMCommunicate OK [13:57:22]SAM_PROTO_GetShiftState done [13:57:22]FM_GetShiftState done [13:57:22]opened in 1729643772 [13:57:22]opened+sec_in_day 1729730172 [13:57:22]quantity*price = 79987 [13:57:22]sum+1 = 79989 [13:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.08 НДС 12% : 84.94 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 160 23.10.2024 13:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166745 ФПД: 265864877651896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166745&fm=265864877651896&tin=02508201610067®Number=0000000000091764&sum=79900 [13:57:23]StoreToDocumentArchive [13:57:23]shift 537 fd 166745 [13:57:23]save to /storage/0537/doc_00166745 [13:57:23]save last doc name /storage/0537/doc_00166745 to /storage/kkm_last_doc_name [13:57:23]save OK [13:57:23]Clear old archive folders... [13:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:23]tlvbuf is 01FE1190 [13:57:23]SAM_PROTO_ClearQueue [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 09 00 00 [13:57:23]Write to MH i2c: E2 08 00 64 1D 80 09 00 00 00 00 00 00 F3 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 64 1D 00 90 00 F5 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_ClearQueue done [13:57:23]KKMCreateOFDPacket [13:57:23]OFDProtocolAddRootSTLVToBuf [13:57:23]FM_MakeSignedData [13:57:23]FM_MakeSignedData [13:57:23]SAM_PROTO_SignData [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 01 02 [13:57:23]Write to MH i2c: E2 08 00 65 1D 80 0D 01 02 00 00 00 00 FB [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 65 1D 00 90 00 F6 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=255 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 A0 00 00 00 F4 03 04 00 C3 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8B 02 00 35 04 06 00 F1 [13:57:23]Write to MH i2c: E2 02 01 66 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 A0 00 00 00 F4 03 04 00 C3 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8B 02 00 35 04 06 00 F1 00 00 AF [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=10 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 02 02 05 CD 7D 97 37 B8 [13:57:23]Write to MH i2c: E2 0D 00 67 1D 80 0D 02 02 05 00 CD 7D 97 37 B8 00 00 D8 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 67 1D 00 90 00 F8 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 03 02 [13:57:23]Write to MH i2c: E2 08 00 68 1D 80 0D 03 02 00 00 00 00 00 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 68 1D 00 73 6B 99 3C 2D 36 BC 02 90 00 D5 [13:57:23]RAPDU: 73 6B 99 3C 2D 36 BC 02 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_SignData done [13:57:23]FM_MakeSignedData done [13:57:23]CreateOFDProtocolMessage [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 11 00 00 [13:57:23]Write to MH i2c: E2 08 00 69 1D 80 11 00 00 00 00 00 00 00 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 17 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 17 00 69 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [13:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:23]wFMCommunicate OK [13:57:23]CreateOFDProtocolMessage done [13:57:23]OFDSenderStorePacket 166745 [13:57:23]StoreOFDPacket docnum=166745 [13:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2B 03 07 01 CE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 A0 00 00 00 F4 03 04 00 C3 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8B 02 00 35 04 06 00 F1 CD 7D 97 37 B8 73 6B 99 3C 2D 36 BC 02 [13:57:23]CheckFolder [13:57:23]dirname=/storage/ofd_packets [13:57:23]CheckFolder done [13:57:23]ProducePacketName [13:57:23]name=ofd_packets/00166745 [13:57:23]NVStorageSaveData ofd_packets/00166745 [13:57:23]File name is /storage/ofd_packets/00166745 [13:57:23]Write 301 bytes [13:57:23]NVStorageSaveData done [13:57:23]OFDSenderStorePacket done [13:57:23]KKMCreateOFDPacket done [13:57:23]NVStorageSaveData kkm_last_timestamp [13:57:23]File name is /storage/kkm_last_timestamp [13:57:23]Write 4 bytes [13:57:23]NVStorageSaveData done [13:57:23]ExternCall_PrintAddStr [13:57:23]wPrintStart [13:57:23]Write to MH i2c: 01 00 00 6A 1D 87 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: 01 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: 01 07 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: 01 07 00 6A 1D 00 00 00 00 00 FF 0F 9C [13:57:23]RasterBufferAndPrint [13:57:23]line Счет N : (1)221330 [13:57:23]line ИНН: 02508201610067 [13:57:23]line Контрольно-Кассовый Чек [13:57:23]line ПРОДАЖА [13:57:23]line ТРК (МРК, ГНК) : 44 [13:57:23]line Товар: 2710124500 [13:57:23]line Аи-95-К-5 [13:57:23]line 10.780 * 74.20 [13:57:23]line = 799.88 [13:57:23]line НДС 12% НСП 1% [13:57:23]line > о реализуемом товаре [13:57:23]line ОКРУГЛЕНИЕ: -0.88 [13:57:23]line ИТОГО: 799.00 [13:57:23]line Внесено: 800.00 [13:57:23]line СДАЧА: 1.00 [13:57:23]line НСП 1% : 7.08 [13:57:23]line НДС 12% : 84.94 [13:57:23]line Наличными: 799.00 [13:57:23]line Безнал.: 0.00 [13:57:23]line Место: АЗС № 161 "Партнер Нефть" [13:57:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:57:23]line СНО: Общий режим [13:57:23]line Чек 160 23.10.2024 13:57 [13:57:23]line Смена: 537 ФФД: 1.0 [13:57:23]line ЗНМ: 0300000104 [13:57:23]line РНМ: 0000000000091764 [13:57:23]line Версия ККМ: 001 [13:57:23]line ФМ: 0000000000871759 [13:57:23]line ФД: 166745 [13:57:23]line ФПД: 265864877651896 [13:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166745&fm=265864877651896&tin=02508201610067®Number=0000000000091764&sum=79900 [13:57:24]OFD Sender: Processing packet 166745 [packets to send 48, broken 47] [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00166745 [13:57:24]OFD Sender: To server: pG, [13:57:24]CommunicateWithHost lk.salyk.kg:30040 [13:57:24]ConnectInit lk.salyk.kg [13:57:24]written 0, free lines is 4095 [13:57:24]Connected sock=10 [13:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2B 03 07 01 CE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 A0 00 00 00 F4 03 04 00 C3 00 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8B 02 00 35 04 06 00 F1 CD 7D 97 37 B8 73 6B 99 3C 2D 36 BC 02 [13:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B2 DD 47 00 3B D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8B 02 00 F4 03 04 00 2A A7 18 67 B6 04 01 00 00 22 09 54 D6 CD 34 71 41 [13:57:24]CommunicateWithHost err = 0 [13:57:24]CheckOFDResponse [13:57:24]1017 (14) - 77093643461234 [13:57:24]1041 (16) - 0000000000871759 [13:57:24]1040 (4) - 166745 [13:57:24]1012 (4) - 23.10.2024 07:35 [13:57:24]1206 (1) - 0 [13:57:24]OFD Sender: Remove packet 166745 [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00166745 [13:57:24]NVStorageDeleteData [13:57:24]Write to MH i2c: 01 00 00 95 1D B2 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 95 1D 00 00 00 00 00 A6 0C 6B [13:57:24]RasterBufferAndPrint [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]written 0, free lines is 3245 [13:57:24]MH_Cut [13:57:24]Write to MH i2c: D1 01 00 9C 1D 01 8B [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 9C 1D 00 8A [13:57:24]Write to MH i2c: 01 00 00 9D 1D BA [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]OFD Sender: No OFD packet to send [13:57:25]*** Cut start [13:57:25]*** Partial cut [13:57:25]*** CUTSNS_PIN = 1 [13:57:25]*** CUTSNS_PIN = 0 [13:57:25]*** Brake cut motor [13:57:26]Read from MH i2c: 01 [13:57:26]MH_I2C_Read... [13:57:26]*** Stop cut motor [13:57:26]*** Cut end [13:57:26]Read from MH i2c: 01 07 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FF 0F CF [13:57:26]process_action close_receipt done [13:57:26]requested_data is exist [13:57:26]produce_requested_data [13:57:26]requested_item fm.sn is exist - process it [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 11 00 00 [13:57:26]Write to MH i2c: E2 08 00 9E 1D 80 11 00 00 00 00 00 00 35 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 9E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [13:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:26]wFMCommunicate OK [13:57:26]requested_item fd.num is exist - process it [13:57:26]SAM_PROTO_GetFieldsCounters [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 00 00 [13:57:26]Write to MH i2c: E2 08 00 9F 1D 80 13 00 00 00 00 00 00 38 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 9F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [13:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetFieldsCounters done [13:57:26]requested_item shift.num is exist - process it [13:57:26]requested_item shift.opened is exist - process it [13:57:26]req_shift_opened [13:57:26]FM_GetShiftState [13:57:26]SAM_PROTO_GetShiftState [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 01 00 [13:57:26]Write to MH i2c: E2 08 00 A0 1D 80 13 01 00 00 00 00 00 3A [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 A0 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [13:57:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetShiftState done [13:57:26]FM_GetShiftState done [13:57:26]req_shift_opened done [13:57:26]requested_item shift.open_date is exist - process it [13:57:26]req_shift_open_date [13:57:26]req_shift_open_date done [13:57:26]produce_requested_data done [13:57:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166745,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:57:26]process_action_free close_receipt [13:57:26]json_value_free [13:57:26]json_value_free done [13:57:26]process_json_proto returns [13:57:26]Send response to host [13:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166745,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:57:26]free response buf [13:57:26]execute_script done [13:57:26]execute_script returns [13:57:26]free content buf [13:57:26]Sock 8.Close socket [13:57:26]Sock 8.Thread stoped [13:57:29]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:19]accept exits with 9 [13:59:19]New connection [13:59:19]New thread 3067034980 created [13:59:19]Thread 3067178340 joined [13:59:19]Waiting for new connection... [13:59:19] Sock 9.Parse request [13:59:19]Sock 9.Check first char [13:59:19]Sock 9.First char is OK [13:59:19]request: POST /json_proto HTTP/1.0 [13:59:19]Method: POST [13:59:19]URL: /json_proto [13:59:19]Method is POST - this is cgi request [13:59:19]url: /json_proto [13:59:19]query_string will be loaded in cgi processing [13:59:19]execute_cgi json_proto POST (null) [13:59:19]execute_cgi path=json_proto method=POST [13:59:19]POST find Content-Length [13:59:19]Host: 172.17.53.195:8080 [13:59:19]Content-Length: 766 [13:59:19]Content-Type: application/json [13:59:19] [13:59:19]POST finish read [13:59:19]Found Content-Length = 766 [13:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:19]execute_script... [13:59: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)221331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:19]POST & json_proto [13:59:19]process_json_proto [13:59:19]json parsed OK: [13:59:19]protocol is kg_v1.0 [13:59:19]action value=close_receipt [13:59:19]process_action close_receipt [13:59:19]cmd_close_receipt [13:59:19]MH_GetDate [13:59:19]Write to MH i2c: F0 00 00 A1 1D AD [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 09 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 09 00 A1 1D 00 38 01 19 67 21 48 4A 65 87 [13:59:19]GetLastDocTimeStamp 1729691843 [13:59:19]current date 1729691960 [13:59:19]FM_GetShiftState [13:59:19]SAM_PROTO_GetShiftState [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 13 01 00 [13:59:19]Write to MH i2c: E2 08 00 A2 1D 80 13 01 00 00 00 00 00 3C [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 A2 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 07 [13:59:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_GetShiftState done [13:59:19]FM_GetShiftState done [13:59:19]opened in 1729643772 [13:59:19]opened+sec_in_day 1729730172 [13:59:19]quantity*price = 20003 [13:59:19]sum+1 = 20004 [13:59:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 161 23.10.2024 13:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166746 ФПД: 102797718747503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166746&fm=102797718747503&tin=02508201610067®Number=0000000000091764&sum=20003 [13:59:20]StoreToDocumentArchive [13:59:20]shift 537 fd 166746 [13:59:20]save to /storage/0537/doc_00166746 [13:59:20]save last doc name /storage/0537/doc_00166746 to /storage/kkm_last_doc_name [13:59:20]save OK [13:59:20]Clear old archive folders... [13:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:20]tlvbuf is 01FDA9C0 [13:59:20]SAM_PROTO_ClearQueue [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 09 00 00 [13:59:20]Write to MH i2c: E2 08 00 AF 1D 80 09 00 00 00 00 00 00 3E [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 AF 1D 00 90 00 40 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_ClearQueue done [13:59:20]KKMCreateOFDPacket [13:59:20]OFDProtocolAddRootSTLVToBuf [13:59:20]FM_MakeSignedData [13:59:20]FM_MakeSignedData [13:59:20]SAM_PROTO_SignData [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 01 02 [13:59:20]Write to MH i2c: E2 08 00 B0 1D 80 0D 01 02 00 00 00 00 46 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=255 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 39 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8B 02 00 35 04 06 00 5D [13:59:20]Write to MH i2c: E2 02 01 B1 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 39 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8B 02 00 35 04 06 00 5D 00 00 5E [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]wFMCommunicate request_size=10 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 0D 02 02 05 7E 75 82 79 6F [13:59:21]Write to MH i2c: E2 0D 00 B2 1D 80 0D 02 02 05 00 7E 75 82 79 6F 00 00 B0 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 0D 03 02 [13:59:21]Write to MH i2c: E2 08 00 B3 1D 80 0D 03 02 00 00 00 00 4B [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 0B 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 0B 00 B3 1D 00 C2 8A D1 AD 50 8E 0F E5 90 00 E8 [13:59:21]RAPDU: C2 8A D1 AD 50 8E 0F E5 90 00 [13:59:21]wFMCommunicate OK [13:59:21]SAM_PROTO_SignData done [13:59:21]FM_MakeSignedData done [13:59:21]CreateOFDProtocolMessage [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 11 00 00 [13:59:21]Write to MH i2c: E2 08 00 B4 1D 80 11 00 00 00 00 00 00 4B [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 17 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 17 00 B4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [13:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:59:21]wFMCommunicate OK [13:59:21]CreateOFDProtocolMessage done [13:59:21]OFDSenderStorePacket 166746 [13:59:21]StoreOFDPacket docnum=166746 [13:59:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 71 07 01 79 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 39 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8B 02 00 35 04 06 00 5D 7E 75 82 79 6F C2 8A D1 AD 50 8E 0F E5 [13:59:21]CheckFolder [13:59:21]dirname=/storage/ofd_packets [13:59:21]CheckFolder done [13:59:21]ProducePacketName [13:59:21]name=ofd_packets/00166746 [13:59:21]NVStorageSaveData ofd_packets/00166746 [13:59:21]File name is /storage/ofd_packets/00166746 [13:59:21]Write 301 bytes [13:59:21]NVStorageSaveData done [13:59:21]OFDSenderStorePacket done [13:59:21]KKMCreateOFDPacket done [13:59:21]NVStorageSaveData kkm_last_timestamp [13:59:21]File name is /storage/kkm_last_timestamp [13:59:21]Write 4 bytes [13:59:21]NVStorageSaveData done [13:59:21]ExternCall_PrintAddStr [13:59:21]wPrintStart [13:59:21]Write to MH i2c: 01 00 00 B5 1D D2 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 B5 1D 00 00 00 00 00 FF 0F E7 [13:59:21]RasterBufferAndPrint [13:59:21]line Счет N : (1)221331 [13:59:21]line ИНН: 02508201610067 [13:59:21]line Контрольно-Кассовый Чек [13:59:21]line ПРОДАЖА [13:59:21]line ТРК (МРК, ГНК) : 33 [13:59:21]line Товар: 2710124130 [13:59:21]line Аи-92-К-5 [13:59:21]line 2.990 * 66.90 [13:59:21]line = 200.03 [13:59:21]line НДС 12% НСП 1% [13:59:21]line > о реализуемом товаре [13:59:21]line ИТОГО: 200.03 [13:59:21]line НСП 1% : 1.77 [13:59:21]line НДС 12% : 21.24 [13:59:21]line Наличными: 0.00 [13:59:21]line Безнал.: 200.03 [13:59:21]line Место: АЗС № 161 "Партнер Нефть" [13:59:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:59:21]line СНО: Общий режим [13:59:21]line Чек 161 23.10.2024 13:59 [13:59:21]line Смена: 537 ФФД: 1.0 [13:59:21]line ЗНМ: 0300000104 [13:59:21]line РНМ: 0000000000091764 [13:59:21]line Версия ККМ: 001 [13:59:21]line Платежная система: Mbank [13:59:21]line ФМ: 0000000000871759 [13:59:21]line ФД: 166746 [13:59:21]line ФПД: 102797718747503 [13:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166746&fm=102797718747503&tin=02508201610067®Number=0000000000091764&sum=20003 [13:59:21]written 0, free lines is 4095 [13:59:21]OFD Sender: Processing packet 166746 [packets to send 48, broken 47] [13:59:21]ProducePacketName [13:59:21]name=ofd_packets/00166746 [13:59:21]OFD Sender: To server: pG, [13:59:21]CommunicateWithHost lk.salyk.kg:30040 [13:59:21]ConnectInit lk.salyk.kg [13:59:21]Connected sock=10 [13:59:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 71 07 01 79 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 39 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8B 02 00 35 04 06 00 5D 7E 75 82 79 6F C2 8A D1 AD 50 8E 0F E5 [13:59:21]Write to MH i2c: 01 00 00 DE 1D FB [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 DE 1D 00 00 00 00 00 D8 0C E6 [13:59:21]RasterBufferAndPrint [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]written 0, free lines is 3294 [13:59:21]MH_Cut [13:59:21]Write to MH i2c: D1 01 00 E5 1D 01 D4 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 E5 1D 00 D3 [13:59:21]Write to MH i2c: 01 00 00 E6 1D 03 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 58 47 00 CA 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8B 02 00 F4 03 04 00 A0 A7 18 67 B6 04 01 00 00 6D 08 F2 0F 58 18 3D 6A [13:59:22]CommunicateWithHost err = 0 [13:59:22]CheckOFDResponse [13:59:22]1017 (14) - 77093643461234 [13:59:22]1041 (16) - 0000000000871759 [13:59:22]1040 (4) - 166746 [13:59:22]1012 (4) - 23.10.2024 07:37 [13:59:22]1206 (1) - 0 [13:59:22]OFD Sender: Remove packet 166746 [13:59:22]ProducePacketName [13:59:22]name=ofd_packets/00166746 [13:59:22]NVStorageDeleteData [13:59:22]OFD Sender: No OFD packet to send [13:59:22]*** Cut start [13:59:22]*** Partial cut [13:59:22]*** CUTSNS_PIN = 1 [13:59:22]*** CUTSNS_PIN = 0 [13:59:22]*** Brake cut motor [13:59:23]Read from MH i2c: 01 [13:59:23]MH_I2C_Read... [13:59:23]*** Stop cut motor [13:59:23]*** Cut end [13:59:23]Read from MH i2c: 01 07 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: 01 07 00 E6 1D 00 00 00 00 00 FF 0F 18 [13:59:23]process_action close_receipt done [13:59:23]requested_data is exist [13:59:23]produce_requested_data [13:59:23]requested_item fm.sn is exist - process it [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 11 00 00 [13:59:23]Write to MH i2c: E2 08 00 E7 1D 80 11 00 00 00 00 00 00 7E [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 E7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [13:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:59:23]wFMCommunicate OK [13:59:23]requested_item fd.num is exist - process it [13:59:23]SAM_PROTO_GetFieldsCounters [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 13 00 00 [13:59:23]Write to MH i2c: E2 08 00 E8 1D 80 13 00 00 00 00 00 00 81 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 62 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 62 00 E8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [13:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_GetFieldsCounters done [13:59:23]requested_item shift.num is exist - process it [13:59:23]requested_item shift.opened is exist - process it [13:59:23]req_shift_opened [13:59:23]FM_GetShiftState [13:59:23]SAM_PROTO_GetShiftState [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 13 01 00 [13:59:23]Write to MH i2c: E2 08 00 E9 1D 80 13 01 00 00 00 00 00 83 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0E 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0E 00 E9 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4E [13:59:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_GetShiftState done [13:59:23]FM_GetShiftState done [13:59:23]req_shift_opened done [13:59:23]requested_item shift.open_date is exist - process it [13:59:23]req_shift_open_date [13:59:23]req_shift_open_date done [13:59:23]produce_requested_data done [13:59:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166746,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [13:59:23]process_action_free close_receipt [13:59:23]json_value_free [13:59:23]json_value_free done [13:59:23]process_json_proto returns [13:59:23]Send response to host [13:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166746,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [13:59:23]free response buf [13:59:23]execute_script done [13:59:23]execute_script returns [13:59:23]free content buf [13:59:23]Sock 9.Close socket [13:59:23]Sock 9.Thread stoped [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 [13:59:58]accept exits with 8 [13:59:58]New connection [13:59:58]New thread 3067178340 created [13:59:58]Thread 3067034980 joined [13:59:58]Waiting for new connection... [13:59:58] Sock 8.Parse request [13:59:58]Sock 8.Check first char [13:59:58]Sock 8.First char is OK [13:59:58]request: POST /json_proto HTTP/1.0 [13:59:58]Method: POST [13:59:58]URL: /json_proto [13:59:58]Method is POST - this is cgi request [13:59:58]url: /json_proto [13:59:58]query_string will be loaded in cgi processing [13:59:58]execute_cgi json_proto POST (null) [13:59:58]execute_cgi path=json_proto method=POST [13:59:58]POST find Content-Length [13:59:58]Host: 172.17.53.195:8080 [13:59:58]Content-Length: 767 [13:59:58]Content-Type: application/json [13:59:58] [13:59:58]POST finish read [13:59:58]Found Content-Length = 767 [13:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:58]execute_script... [13:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:58]POST & json_proto [13:59:58]process_json_proto [13:59:58]json parsed OK: [13:59:58]protocol is kg_v1.0 [13:59:58]action value=close_receipt [13:59:58]process_action close_receipt [13:59:58]cmd_close_receipt [13:59:58]MH_GetDate [13:59:58]Write to MH i2c: F0 00 00 EA 1D F6 [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: F0 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: F0 09 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: F0 09 00 EA 1D 00 60 01 19 67 21 48 4A 65 F8 [13:59:58]GetLastDocTimeStamp 1729691961 [13:59:58]current date 1729692000 [13:59:58]FM_GetShiftState [13:59:58]SAM_PROTO_GetShiftState [13:59:58]wFMCommunicate request_size=4 [13:59:58]MH_SAM_APDU [13:59:58]CAPDU: 80 13 01 00 [13:59:58]Write to MH i2c: E2 08 00 EB 1D 80 13 01 00 00 00 00 00 85 [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:58]Read from MH i2c: E2 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 0E 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 0E 00 EB 1D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 50 [13:59:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [13:59:58]wFMCommunicate OK [13:59:58]SAM_PROTO_GetShiftState done [13:59:58]FM_GetShiftState done [13:59:58]opened in 1729643772 [13:59:58]opened+sec_in_day 1729730172 [13:59:58]quantity*price = 80061 [13:59:58]sum+1 = 80063 [13:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 162 23.10.2024 14:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166747 ФПД: 155635291077166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166747&fm=155635291077166&tin=02508201610067®Number=0000000000091764&sum=80062 [13:59:59]StoreToDocumentArchive [13:59:59]shift 537 fd 166747 [13:59:59]save to /storage/0537/doc_00166747 [13:59:59]save last doc name /storage/0537/doc_00166747 to /storage/kkm_last_doc_name [13:59:59]save OK [13:59:59]Clear old archive folders... [13:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:59]tlvbuf is B6F8FA20 [13:59:59]SAM_PROTO_ClearQueue [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 09 00 00 [13:59:59]Write to MH i2c: E2 08 00 F8 1D 80 09 00 00 00 00 00 00 87 [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 03 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 03 00 F8 1D 00 90 00 89 [13:59:59]RAPDU: 90 00 [13:59:59]wFMCommunicate OK [13:59:59]SAM_PROTO_ClearQueue done [13:59:59]KKMCreateOFDPacket [13:59:59]OFDProtocolAddRootSTLVToBuf [13:59:59]FM_MakeSignedData [13:59:59]FM_MakeSignedData [13:59:59]SAM_PROTO_SignData [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 0D 01 02 [13:59:59]Write to MH i2c: E2 08 00 F9 1D 80 0D 01 02 00 00 00 00 8F [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 F9 1D 00 90 00 8A [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=255 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 60 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8B 02 00 35 04 06 00 8D [14:00:00]Write to MH i2c: E2 02 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 60 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8B 02 00 35 04 06 00 8D 00 00 21 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 FA 1D 00 90 00 8B [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=10 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 02 02 05 8C AA 3D 3A 2E [14:00:00]Write to MH i2c: E2 0D 00 FB 1D 80 0D 02 02 05 00 8C AA 3D 3A 2E 00 00 77 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 FB 1D 00 90 00 8C [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 03 02 [14:00:00]Write to MH i2c: E2 08 00 FC 1D 80 0D 03 02 00 00 00 00 94 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 0B 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 0B 00 FC 1D 00 99 83 87 C9 78 AD 1E D2 90 00 16 [14:00:00]RAPDU: 99 83 87 C9 78 AD 1E D2 90 00 [14:00:00]wFMCommunicate OK [14:00:00]SAM_PROTO_SignData done [14:00:00]FM_MakeSignedData done [14:00:00]CreateOFDProtocolMessage [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 11 00 00 [14:00:00]Write to MH i2c: E2 08 00 FD 1D 80 11 00 00 00 00 00 00 94 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 17 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 17 00 FD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [14:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:00]wFMCommunicate OK [14:00:00]CreateOFDProtocolMessage done [14:00:00]OFDSenderStorePacket 166747 [14:00:00]StoreOFDPacket docnum=166747 [14:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 2F 07 01 7D 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 60 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8B 02 00 35 04 06 00 8D 8C AA 3D 3A 2E 99 83 87 C9 78 AD 1E D2 [14:00:00]CheckFolder [14:00:00]dirname=/storage/ofd_packets [14:00:00]CheckFolder done [14:00:00]ProducePacketName [14:00:00]name=ofd_packets/00166747 [14:00:00]NVStorageSaveData ofd_packets/00166747 [14:00:00]File name is /storage/ofd_packets/00166747 [14:00:00]Write 301 bytes [14:00:00]NVStorageSaveData done [14:00:00]OFDSenderStorePacket done [14:00:00]KKMCreateOFDPacket done [14:00:00]NVStorageSaveData kkm_last_timestamp [14:00:00]File name is /storage/kkm_last_timestamp [14:00:00]Write 4 bytes [14:00:00]NVStorageSaveData done [14:00:00]ExternCall_PrintAddStr [14:00:00]wPrintStart [14:00:00]Write to MH i2c: 01 00 00 FE 1D 1B [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 FF 0F 30 [14:00:00]RasterBufferAndPrint [14:00:00]line Счет N : (1)221332 [14:00:00]line ИНН: 02508201610067 [14:00:00]line Контрольно-Кассовый Чек [14:00:00]line ПРОДАЖА [14:00:00]line ТРК (МРК, ГНК) : 14 [14:00:00]line Товар: 2710124500 [14:00:00]line Аи-95-К-5 [14:00:00]line 10.790 * 74.20 [14:00:00]line = 800.62 [14:00:00]line НДС 12% НСП 1% [14:00:00]line > о реализуемом товаре [14:00:00]line ИТОГО: 800.62 [14:00:00]line НСП 1% : 7.08 [14:00:00]line НДС 12% : 85.02 [14:00:00]line Наличными: 0.00 [14:00:00]line Безнал.: 800.62 [14:00:00]line Место: АЗС № 161 "Партнер Нефть" [14:00:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:00:00]line СНО: Общий режим [14:00:00]line Чек 162 23.10.2024 14:00 [14:00:00]line Смена: 537 ФФД: 1.0 [14:00:00]line ЗНМ: 0300000104 [14:00:00]line РНМ: 0000000000091764 [14:00:00]line Версия ККМ: 001 [14:00:00]line Платежная система: Mbank [14:00:00]line ФМ: 0000000000871759 [14:00:00]line ФД: 166747 [14:00:00]line ФПД: 155635291077166 [14:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166747&fm=155635291077166&tin=02508201610067®Number=0000000000091764&sum=80062 [14:00:00]written 0, free lines is 4095 [14:00:00]OFD Sender: Processing packet 166747 [packets to send 48, broken 47] [14:00:00]ProducePacketName [14:00:00]name=ofd_packets/00166747 [14:00:00]OFD Sender: To server: pG, [14:00:00]CommunicateWithHost lk.salyk.kg:30040 [14:00:00]ConnectInit lk.salyk.kg [14:00:00]Connected sock=10 [14:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 2F 07 01 7D 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 60 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8B 02 00 35 04 06 00 8D 8C AA 3D 3A 2E 99 83 87 C9 78 AD 1E D2 [14:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C 3A 47 00 A2 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8B 02 00 F4 03 04 00 C7 A7 18 67 B6 04 01 00 00 D2 2C 85 7A 86 94 52 E3 [14:00:00]CommunicateWithHost err = 0 [14:00:00]CheckOFDResponse [14:00:00]1017 (14) - 77093643461234 [14:00:00]1041 (16) - 0000000000871759 [14:00:00]1040 (4) - 166747 [14:00:00]1012 (4) - 23.10.2024 07:37 [14:00:00]1206 (1) - 0 [14:00:00]OFD Sender: Remove packet 166747 [14:00:00]ProducePacketName [14:00:00]name=ofd_packets/00166747 [14:00:00]NVStorageDeleteData [14:00:00]Write to MH i2c: 01 00 00 27 1E 45 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 27 1E 00 00 00 00 00 DD 0C 35 [14:00:00]RasterBufferAndPrint [14:00:00]line [14:00:00]line [14:00:00]line [14:00:00]line [14:00:00]line [14:00:00]written 0, free lines is 3299 [14:00:00]MH_Cut [14:00:00]Write to MH i2c: D1 01 00 2E 1E 01 1E [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: D1 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: D1 01 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: D1 01 00 2E 1E 00 1D [14:00:00]Write to MH i2c: 01 00 00 2F 1E 4D [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:01]OFD Sender: No OFD packet to send [14:00:01]*** Cut start [14:00:01]*** Partial cut [14:00:01]*** CUTSNS_PIN = 1 [14:00:01]*** CUTSNS_PIN = 0 [14:00:02]*** Brake cut motor [14:00:02]Read from MH i2c: 01 [14:00:02]MH_I2C_Read... [14:00:02]*** Stop cut motor [14:00:02]*** Cut end [14:00:02]Read from MH i2c: 01 07 00 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: 01 07 00 2F 1E 00 00 00 00 00 FF 0F 62 [14:00:02]process_action close_receipt done [14:00:02]requested_data is exist [14:00:02]produce_requested_data [14:00:02]requested_item fm.sn is exist - process it [14:00:02]wFMCommunicate request_size=4 [14:00:02]MH_SAM_APDU [14:00:02]CAPDU: 80 11 00 00 [14:00:02]Write to MH i2c: E2 08 00 30 1E 80 11 00 00 00 00 00 00 C8 [14:00:02]Write i2c OK [14:00:02]MH_I2C_Read... [14:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:02]Read from MH i2c: E2 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 17 00 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 17 00 30 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [14:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:02]wFMCommunicate OK [14:00:02]requested_item fd.num is exist - process it [14:00:02]SAM_PROTO_GetFieldsCounters [14:00:02]wFMCommunicate request_size=4 [14:00:02]MH_SAM_APDU [14:00:02]CAPDU: 80 13 00 00 [14:00:02]Write to MH i2c: E2 08 00 31 1E 80 13 00 00 00 00 00 00 CB [14:00:02]Write i2c OK [14:00:02]MH_I2C_Read... [14:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:02]Read from MH i2c: E2 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 62 00 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 62 00 31 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:02]wFMCommunicate OK [14:00:02]SAM_PROTO_GetFieldsCounters done [14:00:02]requested_item shift.num is exist - process it [14:00:02]requested_item shift.opened is exist - process it [14:00:02]req_shift_opened [14:00:02]FM_GetShiftState [14:00:02]SAM_PROTO_GetShiftState [14:00:02]wFMCommunicate request_size=4 [14:00:02]MH_SAM_APDU [14:00:02]CAPDU: 80 13 01 00 [14:00:02]Write to MH i2c: E2 08 00 32 1E 80 13 01 00 00 00 00 00 CD [14:00:02]Write i2c OK [14:00:02]MH_I2C_Read... [14:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:02]Read from MH i2c: E2 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 0E 00 [14:00:02]MH_I2C_Read... [14:00:02]Read from MH i2c: E2 0E 00 32 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 98 [14:00:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:00:02]wFMCommunicate OK [14:00:02]SAM_PROTO_GetShiftState done [14:00:02]FM_GetShiftState done [14:00:02]req_shift_opened done [14:00:02]requested_item shift.open_date is exist - process it [14:00:02]req_shift_open_date [14:00:02]req_shift_open_date done [14:00:02]produce_requested_data done [14:00:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166747,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:00:02]process_action_free close_receipt [14:00:02]json_value_free [14:00:02]json_value_free done [14:00:02]process_json_proto returns [14:00:02]Send response to host [14:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166747,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:00:02]free response buf [14:00:02]execute_script done [14:00:02]execute_script returns [14:00:02]free content buf [14:00:02]Sock 8.Close socket [14:00:02]Sock 8.Thread stoped [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]accept exits with 9 [14:00:31]New connection [14:00:31]New thread 3067034980 created [14:00:31]Thread 3067178340 joined [14:00:31]Waiting for new connection... [14:00:31] Sock 9.Parse request [14:00:31]Sock 9.Check first char [14:00:31]Sock 9.First char is OK [14:00:31]request: POST /json_proto HTTP/1.0 [14:00:31]Method: POST [14:00:31]URL: /json_proto [14:00:31]Method is POST - this is cgi request [14:00:31]url: /json_proto [14:00:31]query_string will be loaded in cgi processing [14:00:31]execute_cgi json_proto POST (null) [14:00:31]execute_cgi path=json_proto method=POST [14:00:31]POST find Content-Length [14:00:31]Host: 172.17.53.195:8080 [14:00:31]Content-Length: 769 [14:00:31]Content-Type: application/json [14:00:31] [14:00:31]POST finish read [14:00:31]Found Content-Length = 769 [14:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:31]execute_script... [14:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:31]POST & json_proto [14:00:31]process_json_proto [14:00:31]json parsed OK: [14:00:31]protocol is kg_v1.0 [14:00:31]action value=close_receipt [14:00:31]process_action close_receipt [14:00:31]cmd_close_receipt [14:00:31]MH_GetDate [14:00:31]Write to MH i2c: F0 00 00 33 1E 40 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: F0 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: F0 09 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: F0 09 00 33 1E 00 80 01 19 67 21 48 4A 65 62 [14:00:31]GetLastDocTimeStamp 1729692000 [14:00:31]current date 1729692032 [14:00:31]FM_GetShiftState [14:00:31]SAM_PROTO_GetShiftState [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 13 01 00 [14:00:31]Write to MH i2c: E2 08 00 34 1E 80 13 01 00 00 00 00 00 CF [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0E 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0E 00 34 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9A [14:00:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_GetShiftState done [14:00:31]FM_GetShiftState done [14:00:31]opened in 1729643772 [14:00:31]opened+sec_in_day 1729730172 [14:00:31]quantity*price = 200043 [14:00:31]sum+1 = 200044 [14:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 163 23.10.2024 14:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166748 ФПД: 233166326142606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166748&fm=233166326142606&tin=02508201610067®Number=0000000000091764&sum=200043 [14:00:32]StoreToDocumentArchive [14:00:32]shift 537 fd 166748 [14:00:32]save to /storage/0537/doc_00166748 [14:00:32]save last doc name /storage/0537/doc_00166748 to /storage/kkm_last_doc_name [14:00:32]save OK [14:00:32]Clear old archive folders... [14:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:32]tlvbuf is 01FAF640 [14:00:32]SAM_PROTO_ClearQueue [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 09 00 00 [14:00:32]Write to MH i2c: E2 08 00 41 1E 80 09 00 00 00 00 00 00 D1 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 41 1E 00 90 00 D3 [14:00:32]RAPDU: 90 00 [14:00:32]wFMCommunicate OK [14:00:32]SAM_PROTO_ClearQueue done [14:00:32]KKMCreateOFDPacket [14:00:32]OFDProtocolAddRootSTLVToBuf [14:00:32]FM_MakeSignedData [14:00:32]FM_MakeSignedData [14:00:32]SAM_PROTO_SignData [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 0D 01 02 [14:00:32]Write to MH i2c: E2 08 00 42 1E 80 0D 01 02 00 00 00 00 D9 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 42 1E 00 90 00 D4 [14:00:32]RAPDU: 90 00 [14:00:32]wFMCommunicate OK [14:00:32]wFMCommunicate request_size=255 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 80 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8B 02 00 35 04 06 00 D4 [14:00:32]Write to MH i2c: E2 02 01 43 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 80 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8B 02 00 35 04 06 00 D4 00 00 E9 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 43 1E 00 90 00 D5 [14:00:32]RAPDU: 90 00 [14:00:32]wFMCommunicate OK [14:00:32]wFMCommunicate request_size=10 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 0D 02 02 05 10 44 0B 16 8E [14:00:32]Write to MH i2c: E2 0D 00 44 1E 80 0D 02 02 05 00 10 44 0B 16 8E 00 00 E9 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 03 00 44 1E 00 90 00 D6 [14:00:32]RAPDU: 90 00 [14:00:32]wFMCommunicate OK [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 0D 03 02 [14:00:32]Write to MH i2c: E2 08 00 45 1E 80 0D 03 02 00 00 00 00 DE [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 0B 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 0B 00 45 1E 00 20 41 68 F6 D5 9B 43 AD 90 00 FE [14:00:32]RAPDU: 20 41 68 F6 D5 9B 43 AD 90 00 [14:00:32]wFMCommunicate OK [14:00:32]SAM_PROTO_SignData done [14:00:32]FM_MakeSignedData done [14:00:32]CreateOFDProtocolMessage [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 11 00 00 [14:00:32]Write to MH i2c: E2 08 00 46 1E 80 11 00 00 00 00 00 00 DE [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 17 00 [14:00:32]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 17 00 46 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [14:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:33]wFMCommunicate OK [14:00:33]CreateOFDProtocolMessage done [14:00:33]OFDSenderStorePacket 166748 [14:00:33]StoreOFDPacket docnum=166748 [14:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 90 07 01 75 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 80 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8B 02 00 35 04 06 00 D4 10 44 0B 16 8E 20 41 68 F6 D5 9B 43 AD [14:00:33]CheckFolder [14:00:33]dirname=/storage/ofd_packets [14:00:33]CheckFolder done [14:00:33]ProducePacketName [14:00:33]name=ofd_packets/00166748 [14:00:33]NVStorageSaveData ofd_packets/00166748 [14:00:33]File name is /storage/ofd_packets/00166748 [14:00:33]Write 301 bytes [14:00:33]NVStorageSaveData done [14:00:33]OFDSenderStorePacket done [14:00:33]KKMCreateOFDPacket done [14:00:33]NVStorageSaveData kkm_last_timestamp [14:00:33]File name is /storage/kkm_last_timestamp [14:00:33]Write 4 bytes [14:00:33]NVStorageSaveData done [14:00:33]ExternCall_PrintAddStr [14:00:33]wPrintStart [14:00:33]Write to MH i2c: 01 00 00 47 1E 65 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 47 1E 00 00 00 00 00 FF 0F 7A [14:00:33]RasterBufferAndPrint [14:00:33]line Счет N : (1)221333 [14:00:33]line ИНН: 02508201610067 [14:00:33]line Контрольно-Кассовый Чек [14:00:33]line ПРОДАЖА [14:00:33]line ТРК (МРК, ГНК) : 24 [14:00:33]line Товар: 2710124500 [14:00:33]line Аи-95-К-5 [14:00:33]line 26.960 * 74.20 [14:00:33]line = 2000.43 [14:00:33]line НДС 12% НСП 1% [14:00:33]line > о реализуемом товаре [14:00:33]line ИТОГО: 2000.43 [14:00:33]line НСП 1% : 17.70 [14:00:33]line НДС 12% : 212.43 [14:00:33]line Наличными: 0.00 [14:00:33]line Безнал.: 2000.43 [14:00:33]line Место: АЗС № 161 "Партнер Нефть" [14:00:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:00:33]line СНО: Общий режим [14:00:33]line Чек 163 23.10.2024 14:00 [14:00:33]line Смена: 537 ФФД: 1.0 [14:00:33]line ЗНМ: 0300000104 [14:00:33]line РНМ: 0000000000091764 [14:00:33]line Версия ККМ: 001 [14:00:33]line Платежная система: Mbank [14:00:33]line ФМ: 0000000000871759 [14:00:33]line ФД: 166748 [14:00:33]line ФПД: 233166326142606 [14:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166748&fm=233166326142606&tin=02508201610067®Number=0000000000091764&sum=200043 [14:00:33]written 0, free lines is 4095 [14:00:33]OFD Sender: Processing packet 166748 [packets to send 48, broken 47] [14:00:33]ProducePacketName [14:00:33]name=ofd_packets/00166748 [14:00:33]OFD Sender: To server: pG, [14:00:33]CommunicateWithHost lk.salyk.kg:30040 [14:00:33]ConnectInit lk.salyk.kg [14:00:33]Connected sock=10 [14:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 90 07 01 75 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 80 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8B 02 00 35 04 06 00 D4 10 44 0B 16 8E 20 41 68 F6 D5 9B 43 AD [14:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 6F 47 00 A3 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8B 02 00 F4 03 04 00 E8 A7 18 67 B6 04 01 00 00 D0 34 14 96 F2 C4 E6 A7 [14:00:33]CommunicateWithHost err = 0 [14:00:33]CheckOFDResponse [14:00:33]1017 (14) - 77093643461234 [14:00:33]1041 (16) - 0000000000871759 [14:00:33]1040 (4) - 166748 [14:00:33]1012 (4) - 23.10.2024 07:38 [14:00:33]1206 (1) - 0 [14:00:33]OFD Sender: Remove packet 166748 [14:00:33]ProducePacketName [14:00:33]name=ofd_packets/00166748 [14:00:33]NVStorageDeleteData [14:00:33]Write to MH i2c: 01 00 00 70 1E 8E [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 70 1E 00 00 00 00 00 E6 0C 87 [14:00:33]RasterBufferAndPrint [14:00:33]line [14:00:33]line [14:00:33]line [14:00:33]line [14:00:33]line [14:00:33]written 0, free lines is 3309 [14:00:33]MH_Cut [14:00:33]Write to MH i2c: D1 01 00 77 1E 01 67 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: D1 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: D1 01 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: D1 01 00 77 1E 00 66 [14:00:33]Write to MH i2c: 01 00 00 78 1E 96 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:34]OFD Sender: No OFD packet to send [14:00:34]*** Cut start [14:00:34]*** Partial cut [14:00:34]*** CUTSNS_PIN = 1 [14:00:34]*** CUTSNS_PIN = 0 [14:00:34]*** Brake cut motor [14:00:35]Read from MH i2c: 01 [14:00:35]MH_I2C_Read... [14:00:35]*** Stop cut motor [14:00:35]*** Cut end [14:00:35]Read from MH i2c: 01 07 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 FF 0F AB [14:00:35]process_action close_receipt done [14:00:35]requested_data is exist [14:00:35]produce_requested_data [14:00:35]requested_item fm.sn is exist - process it [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 11 00 00 [14:00:35]Write to MH i2c: E2 08 00 79 1E 80 11 00 00 00 00 00 00 11 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 17 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 17 00 79 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [14:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:35]wFMCommunicate OK [14:00:35]requested_item fd.num is exist - process it [14:00:35]SAM_PROTO_GetFieldsCounters [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 13 00 00 [14:00:35]Write to MH i2c: E2 08 00 7A 1E 80 13 00 00 00 00 00 00 14 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 62 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 62 00 7A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [14:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:35]wFMCommunicate OK [14:00:35]SAM_PROTO_GetFieldsCounters done [14:00:35]requested_item shift.num is exist - process it [14:00:35]requested_item shift.opened is exist - process it [14:00:35]req_shift_opened [14:00:35]FM_GetShiftState [14:00:35]SAM_PROTO_GetShiftState [14:00:35]wFMCommunicate request_size=4 [14:00:35]MH_SAM_APDU [14:00:35]CAPDU: 80 13 01 00 [14:00:35]Write to MH i2c: E2 08 00 7B 1E 80 13 01 00 00 00 00 00 16 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0E 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0E 00 7B 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E1 [14:00:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:00:35]wFMCommunicate OK [14:00:35]SAM_PROTO_GetShiftState done [14:00:35]FM_GetShiftState done [14:00:35]req_shift_opened done [14:00:35]requested_item shift.open_date is exist - process it [14:00:35]req_shift_open_date [14:00:35]req_shift_open_date done [14:00:35]produce_requested_data done [14:00:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166748,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:00:35]process_action_free close_receipt [14:00:35]json_value_free [14:00:35]json_value_free done [14:00:35]process_json_proto returns [14:00:35]Send response to host [14:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166748,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:00:35]free response buf [14:00:35]execute_script done [14:00:35]execute_script returns [14:00:35]free content buf [14:00:35]Sock 9.Close socket [14:00:35]Sock 9.Thread stoped [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [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:36]accept exits with 8 [14:02:36]New connection [14:02:36]New thread 3067178340 created [14:02:36]Thread 3067034980 joined [14:02:36]Waiting for new connection... [14:02:36] Sock 8.Parse request [14:02:36]Sock 8.Check first char [14:02:36]Sock 8.First char is OK [14:02:36]request: POST /json_proto HTTP/1.0 [14:02:36]Method: POST [14:02:36]URL: /json_proto [14:02:36]Method is POST - this is cgi request [14:02:36]url: /json_proto [14:02:36]query_string will be loaded in cgi processing [14:02:36]execute_cgi json_proto POST (null) [14:02:36]execute_cgi path=json_proto method=POST [14:02:36]POST find Content-Length [14:02:36]Host: 172.17.53.195:8080 [14:02:36]Content-Length: 677 [14:02:36]Content-Type: application/json [14:02:36] [14:02:36]POST finish read [14:02:36]Found Content-Length = 677 [14:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:36]execute_script... [14:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:36]POST & json_proto [14:02:36]process_json_proto [14:02:36]json parsed OK: [14:02:36]protocol is kg_v1.0 [14:02:36]action value=close_receipt [14:02:36]process_action close_receipt [14:02:36]cmd_close_receipt [14:02:36]MH_GetDate [14:02:36]Write to MH i2c: F0 00 00 7C 1E 89 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 09 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 09 00 7C 1E 00 FD 01 19 67 21 48 4A 65 28 [14:02:36]GetLastDocTimeStamp 1729692032 [14:02:36]current date 1729692157 [14:02:36]FM_GetShiftState [14:02:36]SAM_PROTO_GetShiftState [14:02:36]wFMCommunicate request_size=4 [14:02:36]MH_SAM_APDU [14:02:36]CAPDU: 80 13 01 00 [14:02:36]Write to MH i2c: E2 08 00 7D 1E 80 13 01 00 00 00 00 00 18 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:36]Read from MH i2c: E2 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 7D 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E3 [14:02:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:02:36]wFMCommunicate OK [14:02:36]SAM_PROTO_GetShiftState done [14:02:36]FM_GetShiftState done [14:02:36]opened in 1729643772 [14:02:36]opened+sec_in_day 1729730172 [14:02:36]quantity*price = 50010 [14:02:36]sum+1 = 50012 [14:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 164 23.10.2024 14:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166749 ФПД: 123512909866913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166749&fm=123512909866913&tin=02508201610067®Number=0000000000091764&sum=50000 [14:02:37]StoreToDocumentArchive [14:02:37]shift 537 fd 166749 [14:02:37]save to /storage/0537/doc_00166749 [14:02:37]save last doc name /storage/0537/doc_00166749 to /storage/kkm_last_doc_name [14:02:37]save OK [14:02:37]Clear old archive folders... [14:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:37]tlvbuf is 01FAF9A0 [14:02:37]SAM_PROTO_ClearQueue [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 09 00 00 [14:02:37]Write to MH i2c: E2 08 00 8A 1E 80 09 00 00 00 00 00 00 1A [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]SAM_PROTO_ClearQueue done [14:02:37]KKMCreateOFDPacket [14:02:37]OFDProtocolAddRootSTLVToBuf [14:02:37]FM_MakeSignedData [14:02:37]FM_MakeSignedData [14:02:37]SAM_PROTO_SignData [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 0D 01 02 [14:02:37]Write to MH i2c: E2 08 00 8B 1E 80 0D 01 02 00 00 00 00 22 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 8B 1E 00 90 00 1D [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]wFMCommunicate request_size=255 [14:02:37]MH_SAM_APDU [14:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FD 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8B 02 00 35 04 06 00 70 [14:02:37]Write to MH i2c: E2 02 01 8C 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FD 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8B 02 00 35 04 06 00 70 00 00 27 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 8C 1E 00 90 00 1E [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]wFMCommunicate request_size=10 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 0D 02 02 05 55 97 1E 27 A1 [14:02:37]Write to MH i2c: E2 0D 00 8D 1E 80 0D 02 02 05 00 55 97 1E 27 A1 00 00 01 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 8D 1E 00 90 00 1F [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 0D 03 02 [14:02:37]Write to MH i2c: E2 08 00 8E 1E 80 0D 03 02 00 00 00 00 27 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0B 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0B 00 8E 1E 00 11 03 A0 54 1A 77 75 30 90 00 66 [14:02:37]RAPDU: 11 03 A0 54 1A 77 75 30 90 00 [14:02:37]wFMCommunicate OK [14:02:37]SAM_PROTO_SignData done [14:02:37]FM_MakeSignedData done [14:02:37]CreateOFDProtocolMessage [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 11 00 00 [14:02:37]Write to MH i2c: E2 08 00 8F 1E 80 11 00 00 00 00 00 00 27 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 17 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 17 00 8F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [14:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:37]wFMCommunicate OK [14:02:37]CreateOFDProtocolMessage done [14:02:37]OFDSenderStorePacket 166749 [14:02:37]StoreOFDPacket docnum=166749 [14:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 8C 07 01 24 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FD 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8B 02 00 35 04 06 00 70 55 97 1E 27 A1 11 03 A0 54 1A 77 75 30 [14:02:37]CheckFolder [14:02:37]dirname=/storage/ofd_packets [14:02:37]CheckFolder done [14:02:37]ProducePacketName [14:02:37]name=ofd_packets/00166749 [14:02:37]NVStorageSaveData ofd_packets/00166749 [14:02:37]File name is /storage/ofd_packets/00166749 [14:02:37]Write 301 bytes [14:02:37]NVStorageSaveData done [14:02:37]OFDSenderStorePacket done [14:02:37]KKMCreateOFDPacket done [14:02:37]NVStorageSaveData kkm_last_timestamp [14:02:37]File name is /storage/kkm_last_timestamp [14:02:37]Write 4 bytes [14:02:37]NVStorageSaveData done [14:02:37]ExternCall_PrintAddStr [14:02:37]wPrintStart [14:02:37]Write to MH i2c: 01 00 00 90 1E AE [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 07 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 07 00 90 1E 00 00 00 00 00 FF 0F C3 [14:02:37]RasterBufferAndPrint [14:02:37]line Счет N : (1)221334 [14:02:37]line ИНН: 02508201610067 [14:02:37]line Контрольно-Кассовый Чек [14:02:37]line ПРОДАЖА [14:02:37]line ТРК (МРК, ГНК) : 14 [14:02:37]line Товар: 2710124500 [14:02:37]line Аи-95-К-5 [14:02:37]line 6.740 * 74.20 [14:02:37]line = 500.11 [14:02:37]line НДС 12% НСП 1% [14:02:37]line > о реализуемом товаре [14:02:37]line ОКРУГЛЕНИЕ: -0.11 [14:02:37]line ИТОГО: 500.00 [14:02:37]line Внесено: 500.00 [14:02:37]line СДАЧА: 0.00 [14:02:37]line НСП 1% : 4.43 [14:02:37]line НДС 12% : 53.11 [14:02:37]line Наличными: 500.00 [14:02:37]line Безнал.: 0.00 [14:02:37]line Место: АЗС № 161 "Партнер Нефть" [14:02:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:02:37]line СНО: Общий режим [14:02:37]line Чек 164 23.10.2024 14:02 [14:02:37]line Смена: 537 ФФД: 1.0 [14:02:37]line ЗНМ: 0300000104 [14:02:37]line РНМ: 0000000000091764 [14:02:37]line Версия ККМ: 001 [14:02:37]line ФМ: 0000000000871759 [14:02:37]line ФД: 166749 [14:02:37]line ФПД: 123512909866913 [14:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166749&fm=123512909866913&tin=02508201610067®Number=0000000000091764&sum=50000 [14:02:38]OFD Sender: Processing packet 166749 [packets to send 48, broken 47] [14:02:38]ProducePacketName [14:02:38]name=ofd_packets/00166749 [14:02:38]OFD Sender: To server: pG, [14:02:38]CommunicateWithHost lk.salyk.kg:30040 [14:02:38]ConnectInit lk.salyk.kg [14:02:38]written 0, free lines is 4095 [14:02:38]Connected sock=10 [14:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 8C 07 01 24 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FD 01 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8B 02 00 35 04 06 00 70 55 97 1E 27 A1 11 03 A0 54 1A 77 75 30 [14:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 2B 47 00 F7 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8B 02 00 F4 03 04 00 65 A8 18 67 B6 04 01 00 00 5B 03 EA B6 01 D5 41 A8 [14:02:38]CommunicateWithHost err = 0 [14:02:38]CheckOFDResponse [14:02:38]1017 (14) - 77093643461234 [14:02:38]1041 (16) - 0000000000871759 [14:02:38]1040 (4) - 166749 [14:02:38]1012 (4) - 23.10.2024 07:40 [14:02:38]1206 (1) - 0 [14:02:38]OFD Sender: Remove packet 166749 [14:02:38]ProducePacketName [14:02:38]name=ofd_packets/00166749 [14:02:38]NVStorageDeleteData [14:02:38]Write to MH i2c: 01 00 00 BB 1E D9 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 B4 0C A0 [14:02:38]RasterBufferAndPrint [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]written 0, free lines is 3258 [14:02:38]MH_Cut [14:02:38]Write to MH i2c: D1 01 00 C2 1E 01 B2 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: D1 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: D1 01 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: D1 01 00 C2 1E 00 B1 [14:02:38]Write to MH i2c: 01 00 00 C3 1E E1 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:39]OFD Sender: No OFD packet to send [14:02:39]*** Cut start [14:02:39]*** Partial cut [14:02:39]*** CUTSNS_PIN = 1 [14:02:39]*** CUTSNS_PIN = 0 [14:02:39]*** Brake cut motor [14:02:40]Read from MH i2c: 01 [14:02:40]MH_I2C_Read... [14:02:40]*** Stop cut motor [14:02:40]*** Cut end [14:02:40]Read from MH i2c: 01 07 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: 01 07 00 C3 1E 00 00 00 00 00 FF 0F F6 [14:02:40]process_action close_receipt done [14:02:40]requested_data is exist [14:02:40]produce_requested_data [14:02:40]requested_item fm.sn is exist - process it [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 11 00 00 [14:02:40]Write to MH i2c: E2 08 00 C4 1E 80 11 00 00 00 00 00 00 5C [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 17 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 17 00 C4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B4 [14:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:40]wFMCommunicate OK [14:02:40]requested_item fd.num is exist - process it [14:02:40]SAM_PROTO_GetFieldsCounters [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 13 00 00 [14:02:40]Write to MH i2c: E2 08 00 C5 1E 80 13 00 00 00 00 00 00 5F [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 62 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 62 00 C5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [14:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:40]wFMCommunicate OK [14:02:40]SAM_PROTO_GetFieldsCounters done [14:02:40]requested_item shift.num is exist - process it [14:02:40]requested_item shift.opened is exist - process it [14:02:40]req_shift_opened [14:02:40]FM_GetShiftState [14:02:40]SAM_PROTO_GetShiftState [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 13 01 00 [14:02:40]Write to MH i2c: E2 08 00 C6 1E 80 13 01 00 00 00 00 00 61 [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 0E 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 0E 00 C6 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2C [14:02:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:02:40]wFMCommunicate OK [14:02:40]SAM_PROTO_GetShiftState done [14:02:40]FM_GetShiftState done [14:02:40]req_shift_opened done [14:02:40]requested_item shift.open_date is exist - process it [14:02:40]req_shift_open_date [14:02:40]req_shift_open_date done [14:02:40]produce_requested_data done [14:02:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166749,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:02:40]process_action_free close_receipt [14:02:40]json_value_free [14:02:40]json_value_free done [14:02:40]process_json_proto returns [14:02:40]Send response to host [14:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166749,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:02:40]free response buf [14:02:40]execute_script done [14:02:40]execute_script returns [14:02:40]free content buf [14:02:40]Sock 8.Close socket [14:02:40]Sock 8.Thread stoped [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:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:41]accept exits with 9 [14:05:41]New connection [14:05:41]New thread 3067034980 created [14:05:41]Thread 3067178340 joined [14:05:41]Waiting for new connection... [14:05:41] Sock 9.Parse request [14:05:41]Sock 9.Check first char [14:05:41]Sock 9.First char is OK [14:05:41]request: POST /json_proto HTTP/1.0 [14:05:41]Method: POST [14:05:41]URL: /json_proto [14:05:41]Method is POST - this is cgi request [14:05:41]url: /json_proto [14:05:41]query_string will be loaded in cgi processing [14:05:41]execute_cgi json_proto POST (null) [14:05:41]execute_cgi path=json_proto method=POST [14:05:41]POST find Content-Length [14:05:41]Host: 172.17.53.195:8080 [14:05:41]Content-Length: 679 [14:05:41]Content-Type: application/json [14:05:41] [14:05:41]POST finish read [14:05:41]Found Content-Length = 679 [14:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.020, "sum" : 1220.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]execute_script... [14:05:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.020, "sum" : 1220.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]POST & json_proto [14:05:41]process_json_proto [14:05:41]json parsed OK: [14:05:41]protocol is kg_v1.0 [14:05:41]action value=close_receipt [14:05:41]process_action close_receipt [14:05:41]cmd_close_receipt [14:05:41]MH_GetDate [14:05:41]Write to MH i2c: F0 00 00 C7 1E D4 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 C7 1E 00 B6 02 19 67 21 48 4A 65 2D [14:05:41]GetLastDocTimeStamp 1729692157 [14:05:41]current date 1729692342 [14:05:41]FM_GetShiftState [14:05:41]SAM_PROTO_GetShiftState [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 13 01 00 [14:05:41]Write to MH i2c: E2 08 00 C8 1E 80 13 01 00 00 00 00 00 63 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 C8 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2E [14:05:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_GetShiftState done [14:05:41]FM_GetShiftState done [14:05:41]opened in 1729643772 [14:05:41]opened+sec_in_day 1729730172 [14:05:41]quantity*price = 122072 [14:05:41]sum+1 = 122073 [14:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1220.00 Внесено: 1220.00 СДАЧА: 0.00 НСП 1% : 10.80 НДС 12% : 129.63 Наличными: 1220.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 165 23.10.2024 14:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166750 ФПД: 232324866786008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166750&fm=232324866786008&tin=02508201610067®Number=0000000000091764&sum=122000 [14:05:42]StoreToDocumentArchive [14:05:42]shift 537 fd 166750 [14:05:42]save to /storage/0537/doc_00166750 [14:05:42]save last doc name /storage/0537/doc_00166750 to /storage/kkm_last_doc_name [14:05:42]save OK [14:05:42]Clear old archive folders... [14:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:42]tlvbuf is 01FE85F0 [14:05:42]SAM_PROTO_ClearQueue [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 09 00 00 [14:05:42]Write to MH i2c: E2 08 00 D5 1E 80 09 00 00 00 00 00 00 65 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D5 1E 00 90 00 67 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_ClearQueue done [14:05:42]KKMCreateOFDPacket [14:05:42]OFDProtocolAddRootSTLVToBuf [14:05:42]FM_MakeSignedData [14:05:42]FM_MakeSignedData [14:05:42]SAM_PROTO_SignData [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 01 02 [14:05:42]Write to MH i2c: E2 08 00 D6 1E 80 0D 01 02 00 00 00 00 6D [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D6 1E 00 90 00 68 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=255 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 3E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D8 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 32 00 00 00 00 07 04 06 00 90 DC 01 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 B6 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8B 02 00 35 04 06 00 D3 4C 59 28 [14:05:42]Write to MH i2c: E2 02 01 D7 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 94 3E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D8 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 32 00 00 00 00 07 04 06 00 90 DC 01 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 B6 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8B 02 00 35 04 06 00 D3 4C 59 28 00 00 A7 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D7 1E 00 90 00 69 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=7 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 02 02 02 42 D8 [14:05:42]Write to MH i2c: E2 0A 00 D8 1E 80 0D 02 02 02 00 42 D8 00 00 8E [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D8 1E 00 90 00 6A [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 03 02 [14:05:42]Write to MH i2c: E2 08 00 D9 1E 80 0D 03 02 00 00 00 00 72 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0B 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0B 00 D9 1E 00 CB B4 C5 D2 A9 65 1A F3 90 00 A4 [14:05:42]RAPDU: CB B4 C5 D2 A9 65 1A F3 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_SignData done [14:05:42]FM_MakeSignedData done [14:05:42]CreateOFDProtocolMessage [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 11 00 00 [14:05:42]Write to MH i2c: E2 08 00 DA 1E 80 11 00 00 00 00 00 00 72 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 DA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [14:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:42]wFMCommunicate OK [14:05:42]CreateOFDProtocolMessage done [14:05:42]OFDSenderStorePacket 166750 [14:05:42]StoreOFDPacket docnum=166750 [14:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 32 F2 04 01 4D 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 94 3E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D8 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 32 00 00 00 00 07 04 06 00 90 DC 01 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 B6 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8B 02 00 35 04 06 00 D3 4C 59 28 42 D8 CB B4 C5 D2 A9 65 1A F3 [14:05:42]CheckFolder [14:05:42]dirname=/storage/ofd_packets [14:05:42]CheckFolder done [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00166750 [14:05:42]NVStorageSaveData ofd_packets/00166750 [14:05:42]File name is /storage/ofd_packets/00166750 [14:05:42]Write 298 bytes [14:05:42]NVStorageSaveData done [14:05:42]OFDSenderStorePacket done [14:05:42]KKMCreateOFDPacket done [14:05:42]NVStorageSaveData kkm_last_timestamp [14:05:42]File name is /storage/kkm_last_timestamp [14:05:42]Write 4 bytes [14:05:42]NVStorageSaveData done [14:05:42]ExternCall_PrintAddStr [14:05:42]wPrintStart [14:05:42]Write to MH i2c: 01 00 00 DB 1E F9 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 DB 1E 00 00 00 00 00 FF 0F 0E [14:05:42]RasterBufferAndPrint [14:05:42]line Счет N : (1)221335 [14:05:42]line ИНН: 02508201610067 [14:05:42]line Контрольно-Кассовый Чек [14:05:42]line ПРОДАЖА [14:05:42]line ТРК (МРК, ГНК) : 21 [14:05:42]line Товар: 2710194210 [14:05:42]line ДТ-К-5 [14:05:42]line 16.020 * 76.20 [14:05:42]line = 1220.72 [14:05:42]line НДС 12% НСП 1% [14:05:42]line > о реализуемом товаре [14:05:42]line ОКРУГЛЕНИЕ: -0.72 [14:05:42]line ИТОГО: 1220.00 [14:05:42]line Внесено: 1220.00 [14:05:42]line СДАЧА: 0.00 [14:05:42]line НСП 1% : 10.80 [14:05:42]line НДС 12% : 129.63 [14:05:42]line Наличными: 1220.00 [14:05:42]line Безнал.: 0.00 [14:05:42]line Место: АЗС № 161 "Партнер Нефть" [14:05:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:05:42]line СНО: Общий режим [14:05:42]line Чек 165 23.10.2024 14:05 [14:05:42]line Смена: 537 ФФД: 1.0 [14:05:42]line ЗНМ: 0300000104 [14:05:42]line РНМ: 0000000000091764 [14:05:42]line Версия ККМ: 001 [14:05:42]line ФМ: 0000000000871759 [14:05:42]line ФД: 166750 [14:05:42]line ФПД: 232324866786008 [14:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166750&fm=232324866786008&tin=02508201610067®Number=0000000000091764&sum=122000 [14:05:43]OFD Sender: Processing packet 166750 [packets to send 48, broken 47] [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00166750 [14:05:43]OFD Sender: To server: pG, [14:05:43]CommunicateWithHost lk.salyk.kg:30040 [14:05:43]ConnectInit lk.salyk.kg [14:05:43]written 0, free lines is 4095 [14:05:43]Connected sock=11 [14:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 32 F2 04 01 4D 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 94 3E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D8 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 32 00 00 00 00 07 04 06 00 90 DC 01 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 B6 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8B 02 00 35 04 06 00 D3 4C 59 28 42 D8 CB B4 C5 D2 A9 65 1A F3 [14:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C3 E7 47 00 E8 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8B 02 00 F4 03 04 00 1D A9 18 67 B6 04 01 00 00 C4 53 62 BF AB EF C8 72 [14:05:43]CommunicateWithHost err = 0 [14:05:43]CheckOFDResponse [14:05:43]1017 (14) - 77093643461234 [14:05:43]1041 (16) - 0000000000871759 [14:05:43]1040 (4) - 166750 [14:05:43]1012 (4) - 23.10.2024 07:43 [14:05:43]1206 (1) - 0 [14:05:43]OFD Sender: Remove packet 166750 [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00166750 [14:05:43]NVStorageDeleteData [14:05:43]Write to MH i2c: 01 00 00 06 1F 25 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 06 1F 00 00 00 00 00 B9 0C F1 [14:05:43]RasterBufferAndPrint [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]written 0, free lines is 3263 [14:05:43]MH_Cut [14:05:43]Write to MH i2c: D1 01 00 0D 1F 01 FE [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 01 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 01 00 0D 1F 00 FD [14:05:43]Write to MH i2c: 01 00 00 0E 1F 2D [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:44]OFD Sender: No OFD packet to send [14:05:44]*** Cut start [14:05:44]*** Partial cut [14:05:44]*** CUTSNS_PIN = 1 [14:05:44]*** CUTSNS_PIN = 0 [14:05:44]*** Brake cut motor [14:05:45]Read from MH i2c: 01 [14:05:45]MH_I2C_Read... [14:05:45]*** Stop cut motor [14:05:45]*** Cut end [14:05:45]Read from MH i2c: 01 07 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 07 00 0E 1F 00 00 00 00 00 FF 0F 42 [14:05:45]process_action close_receipt done [14:05:45]requested_data is exist [14:05:45]produce_requested_data [14:05:45]requested_item fm.sn is exist - process it [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 11 00 00 [14:05:45]Write to MH i2c: E2 08 00 0F 1F 80 11 00 00 00 00 00 00 A8 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 0F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [14:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:45]wFMCommunicate OK [14:05:45]requested_item fd.num is exist - process it [14:05:45]SAM_PROTO_GetFieldsCounters [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 00 00 [14:05:45]Write to MH i2c: E2 08 00 10 1F 80 13 00 00 00 00 00 00 AB [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 10 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetFieldsCounters done [14:05:45]requested_item shift.num is exist - process it [14:05:45]requested_item shift.opened is exist - process it [14:05:45]req_shift_opened [14:05:45]FM_GetShiftState [14:05:45]SAM_PROTO_GetShiftState [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 01 00 [14:05:45]Write to MH i2c: E2 08 00 11 1F 80 13 01 00 00 00 00 00 AD [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 11 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 78 [14:05:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetShiftState done [14:05:45]FM_GetShiftState done [14:05:45]req_shift_opened done [14:05:45]requested_item shift.open_date is exist - process it [14:05:45]req_shift_open_date [14:05:45]req_shift_open_date done [14:05:45]produce_requested_data done [14:05:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166750,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:05:45]process_action_free close_receipt [14:05:45]json_value_free [14:05:45]json_value_free done [14:05:45]process_json_proto returns [14:05:45]Send response to host [14:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166750,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:05:45]free response buf [14:05:45]execute_script done [14:05:45]execute_script returns [14:05:45]free content buf [14:05:45]Sock 9.Close socket [14:05:45]Sock 9.Thread stoped [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:34]accept exits with 8 [14:06:34]New connection [14:06:34]New thread 3067178340 created [14:06:34]Thread 3067034980 joined [14:06:34]Waiting for new connection... [14:06:34] Sock 8.Parse request [14:06:34]Sock 8.Check first char [14:06:34]Sock 8.First char is OK [14:06:34]request: POST /json_proto HTTP/1.0 [14:06:34]Method: POST [14:06:34]URL: /json_proto [14:06:34]Method is POST - this is cgi request [14:06:34]url: /json_proto [14:06:34]query_string will be loaded in cgi processing [14:06:34]execute_cgi json_proto POST (null) [14:06:34]execute_cgi path=json_proto method=POST [14:06:34]POST find Content-Length [14:06:34]Host: 172.17.53.195:8080 [14:06:34]Content-Length: 677 [14:06:34]Content-Type: application/json [14:06:34] [14:06:34]POST finish read [14:06:34]Found Content-Length = 677 [14:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:34]execute_script... [14:06: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)221336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:34]POST & json_proto [14:06:34]process_json_proto [14:06:34]json parsed OK: [14:06:34]protocol is kg_v1.0 [14:06:34]action value=close_receipt [14:06:34]process_action close_receipt [14:06:34]cmd_close_receipt [14:06:34]MH_GetDate [14:06:34]Write to MH i2c: F0 00 00 12 1F 20 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 09 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 09 00 12 1F 00 EC 02 19 67 21 48 4A 65 AF [14:06:34]GetLastDocTimeStamp 1729692342 [14:06:34]current date 1729692396 [14:06:34]FM_GetShiftState [14:06:34]SAM_PROTO_GetShiftState [14:06:34]wFMCommunicate request_size=4 [14:06:34]MH_SAM_APDU [14:06:34]CAPDU: 80 13 01 00 [14:06:34]Write to MH i2c: E2 08 00 13 1F 80 13 01 00 00 00 00 00 AF [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:34]Read from MH i2c: E2 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 0E 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 0E 00 13 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7A [14:06:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:06:34]wFMCommunicate OK [14:06:34]SAM_PROTO_GetShiftState done [14:06:34]FM_GetShiftState done [14:06:34]opened in 1729643772 [14:06:34]opened+sec_in_day 1729730172 [14:06:34]quantity*price = 49974 [14:06:34]sum+1 = 49975 [14:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 166 23.10.2024 14:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166751 ФПД: 264968686746643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166751&fm=264968686746643&tin=02508201610067®Number=0000000000091764&sum=49900 [14:06:35]StoreToDocumentArchive [14:06:35]shift 537 fd 166751 [14:06:35]save to /storage/0537/doc_00166751 [14:06:35]save last doc name /storage/0537/doc_00166751 to /storage/kkm_last_doc_name [14:06:35]save OK [14:06:35]Clear old archive folders... [14:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:35]tlvbuf is 01FB3B30 [14:06:35]SAM_PROTO_ClearQueue [14:06:35]wFMCommunicate request_size=4 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 09 00 00 [14:06:35]Write to MH i2c: E2 08 00 20 1F 80 09 00 00 00 00 00 00 B1 [14:06:35]Write i2c OK [14:06:35]MH_I2C_Read... [14:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:35]Read from MH i2c: E2 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 20 1F 00 90 00 B3 [14:06:35]RAPDU: 90 00 [14:06:35]wFMCommunicate OK [14:06:35]SAM_PROTO_ClearQueue done [14:06:35]KKMCreateOFDPacket [14:06:35]OFDProtocolAddRootSTLVToBuf [14:06:35]FM_MakeSignedData [14:06:35]FM_MakeSignedData [14:06:35]SAM_PROTO_SignData [14:06:35]wFMCommunicate request_size=4 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 0D 01 02 [14:06:35]Write to MH i2c: E2 08 00 21 1F 80 0D 01 02 00 00 00 00 B9 [14:06:35]Write i2c OK [14:06:35]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 21 1F 00 90 00 B4 [14:06:36]RAPDU: 90 00 [14:06:36]wFMCommunicate OK [14:06:36]wFMCommunicate request_size=255 [14:06:36]MH_SAM_APDU [14:06: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 EC 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8B 02 00 35 04 06 00 F0 [14:06:36]Write to MH i2c: E2 02 01 22 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 EC 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8B 02 00 35 04 06 00 F0 00 00 3B [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 22 1F 00 90 00 B5 [14:06:36]RAPDU: 90 00 [14:06:36]wFMCommunicate OK [14:06:36]wFMCommunicate request_size=10 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 0D 02 02 05 FC D4 73 3C 13 [14:06:36]Write to MH i2c: E2 0D 00 23 1F 80 0D 02 02 05 00 FC D4 73 3C 13 00 00 58 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [14:06:36]RAPDU: 90 00 [14:06:36]wFMCommunicate OK [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 0D 03 02 [14:06:36]Write to MH i2c: E2 08 00 24 1F 80 0D 03 02 00 00 00 00 BE [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0B 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0B 00 24 1F 00 AB 43 DB AA 6E A1 2A 86 90 00 F1 [14:06:36]RAPDU: AB 43 DB AA 6E A1 2A 86 90 00 [14:06:36]wFMCommunicate OK [14:06:36]SAM_PROTO_SignData done [14:06:36]FM_MakeSignedData done [14:06:36]CreateOFDProtocolMessage [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 11 00 00 [14:06:36]Write to MH i2c: E2 08 00 25 1F 80 11 00 00 00 00 00 00 BE [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 25 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [14:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:36]wFMCommunicate OK [14:06:36]CreateOFDProtocolMessage done [14:06:36]OFDSenderStorePacket 166751 [14:06:36]StoreOFDPacket docnum=166751 [14:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 15 07 01 F4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 EC 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8B 02 00 35 04 06 00 F0 FC D4 73 3C 13 AB 43 DB AA 6E A1 2A 86 [14:06:36]CheckFolder [14:06:36]dirname=/storage/ofd_packets [14:06:36]CheckFolder done [14:06:36]ProducePacketName [14:06:36]name=ofd_packets/00166751 [14:06:36]NVStorageSaveData ofd_packets/00166751 [14:06:36]File name is /storage/ofd_packets/00166751 [14:06:36]Write 301 bytes [14:06:36]NVStorageSaveData done [14:06:36]OFDSenderStorePacket done [14:06:36]KKMCreateOFDPacket done [14:06:36]NVStorageSaveData kkm_last_timestamp [14:06:36]File name is /storage/kkm_last_timestamp [14:06:36]Write 4 bytes [14:06:36]NVStorageSaveData done [14:06:36]ExternCall_PrintAddStr [14:06:36]wPrintStart [14:06:36]Write to MH i2c: 01 00 00 26 1F 45 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 07 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 07 00 26 1F 00 00 00 00 00 FF 0F 5A [14:06:36]RasterBufferAndPrint [14:06:36]line Счет N : (1)221336 [14:06:36]line ИНН: 02508201610067 [14:06:36]line Контрольно-Кассовый Чек [14:06:36]line ПРОДАЖА [14:06:36]line ТРК (МРК, ГНК) : 13 [14:06:36]line Товар: 2710124130 [14:06:36]line Аи-92-К-5 [14:06:36]line 7.470 * 66.90 [14:06:36]line = 499.74 [14:06:36]line НДС 12% НСП 1% [14:06:36]line > о реализуемом товаре [14:06:36]line ОКРУГЛЕНИЕ: -0.74 [14:06:36]line ИТОГО: 499.00 [14:06:36]line Внесено: 500.00 [14:06:36]line СДАЧА: 1.00 [14:06:36]line НСП 1% : 4.42 [14:06:36]line НДС 12% : 53.07 [14:06:36]line Наличными: 499.00 [14:06:36]line Безнал.: 0.00 [14:06:36]line Место: АЗС № 161 "Партнер Нефть" [14:06:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:06:36]line СНО: Общий режим [14:06:36]line Чек 166 23.10.2024 14:06 [14:06:36]line Смена: 537 ФФД: 1.0 [14:06:36]line ЗНМ: 0300000104 [14:06:36]line РНМ: 0000000000091764 [14:06:36]line Версия ККМ: 001 [14:06:36]line ФМ: 0000000000871759 [14:06:36]line ФД: 166751 [14:06:36]line ФПД: 264968686746643 [14:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166751&fm=264968686746643&tin=02508201610067®Number=0000000000091764&sum=49900 [14:06:36]OFD Sender: Processing packet 166751 [packets to send 48, broken 47] [14:06:36]ProducePacketName [14:06:36]name=ofd_packets/00166751 [14:06:36]OFD Sender: To server: pG, [14:06:36]CommunicateWithHost lk.salyk.kg:30040 [14:06:36]ConnectInit lk.salyk.kg [14:06:36]written 0, free lines is 4095 [14:06:36]Connected sock=10 [14:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 15 07 01 F4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 EC 02 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8B 02 00 35 04 06 00 F0 FC D4 73 3C 13 AB 43 DB AA 6E A1 2A 86 [14:06:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 26 47 00 25 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8B 02 00 F4 03 04 00 53 A9 18 67 B6 04 01 00 00 E4 9A 12 35 E2 E3 73 93 [14:06:37]CommunicateWithHost err = 0 [14:06:37]CheckOFDResponse [14:06:37]1017 (14) - 77093643461234 [14:06:37]1041 (16) - 0000000000871759 [14:06:37]1040 (4) - 166751 [14:06:37]1012 (4) - 23.10.2024 07:44 [14:06:37]1206 (1) - 0 [14:06:37]OFD Sender: Remove packet 166751 [14:06:37]ProducePacketName [14:06:37]name=ofd_packets/00166751 [14:06:37]NVStorageDeleteData [14:06:37]Write to MH i2c: 01 00 00 51 1F 70 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 51 1F 00 00 00 00 00 B2 0C 35 [14:06:37]RasterBufferAndPrint [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]written 0, free lines is 3257 [14:06:37]MH_Cut [14:06:37]Write to MH i2c: D1 01 00 58 1F 01 49 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 01 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 01 00 58 1F 00 48 [14:06:37]Write to MH i2c: 01 00 00 59 1F 78 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]OFD Sender: No OFD packet to send [14:06:38]*** Cut start [14:06:38]*** Partial cut [14:06:38]*** CUTSNS_PIN = 1 [14:06:38]*** CUTSNS_PIN = 0 [14:06:38]*** Brake cut motor [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]*** Stop cut motor [14:06:38]*** Cut end [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 59 1F 00 00 00 00 00 FF 0F 8D [14:06:38]process_action close_receipt done [14:06:38]requested_data is exist [14:06:38]produce_requested_data [14:06:38]requested_item fm.sn is exist - process it [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 11 00 00 [14:06:38]Write to MH i2c: E2 08 00 5A 1F 80 11 00 00 00 00 00 00 F3 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 5A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [14:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:38]wFMCommunicate OK [14:06:38]requested_item fd.num is exist - process it [14:06:38]SAM_PROTO_GetFieldsCounters [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 13 00 00 [14:06:38]Write to MH i2c: E2 08 00 5B 1F 80 13 00 00 00 00 00 00 F6 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 62 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 62 00 5B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:38]wFMCommunicate OK [14:06:38]SAM_PROTO_GetFieldsCounters done [14:06:38]requested_item shift.num is exist - process it [14:06:38]requested_item shift.opened is exist - process it [14:06:38]req_shift_opened [14:06:38]FM_GetShiftState [14:06:38]SAM_PROTO_GetShiftState [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 13 01 00 [14:06:38]Write to MH i2c: E2 08 00 5C 1F 80 13 01 00 00 00 00 00 F8 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:39]Read from MH i2c: E2 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: E2 0E 00 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: E2 0E 00 5C 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C3 [14:06:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:06:39]wFMCommunicate OK [14:06:39]SAM_PROTO_GetShiftState done [14:06:39]FM_GetShiftState done [14:06:39]req_shift_opened done [14:06:39]requested_item shift.open_date is exist - process it [14:06:39]req_shift_open_date [14:06:39]req_shift_open_date done [14:06:39]produce_requested_data done [14:06:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166751,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:06:39]process_action_free close_receipt [14:06:39]json_value_free [14:06:39]json_value_free done [14:06:39]process_json_proto returns [14:06:39]Send response to host [14:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166751,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:06:39]free response buf [14:06:39]execute_script done [14:06:39]execute_script returns [14:06:39]free content buf [14:06:39]Sock 8.Close socket [14:06:39]Sock 8.Thread stoped [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08: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:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:54]accept exits with 9 [14:11:54]New connection [14:11:54]New thread 3067034980 created [14:11:54]Thread 3067178340 joined [14:11:54]Waiting for new connection... [14:11:54] Sock 9.Parse request [14:11:54]Sock 9.Check first char [14:11:54]Sock 9.First char is OK [14:11:54]request: POST /json_proto HTTP/1.0 [14:11:54]Method: POST [14:11:54]URL: /json_proto [14:11:54]Method is POST - this is cgi request [14:11:54]url: /json_proto [14:11:54]query_string will be loaded in cgi processing [14:11:54]execute_cgi json_proto POST (null) [14:11:54]execute_cgi path=json_proto method=POST [14:11:54]POST find Content-Length [14:11:54]Host: 172.17.53.195:8080 [14:11:54]Content-Length: 769 [14:11:54]Content-Type: application/json [14:11:54] [14:11:54]POST finish read [14:11:54]Found Content-Length = 769 [14:11:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:54]execute_script... [14:11: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)221337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:54]POST & json_proto [14:11:54]process_json_proto [14:11:54]json parsed OK: [14:11:54]protocol is kg_v1.0 [14:11:54]action value=close_receipt [14:11:54]process_action close_receipt [14:11:54]cmd_close_receipt [14:11:54]MH_GetDate [14:11:54]Write to MH i2c: F0 00 00 5D 1F 6B [14:11:54]Write i2c OK [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: F0 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: F0 09 00 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: F0 09 00 5D 1F 00 2C 04 19 67 21 48 4A 65 3C [14:11:54]GetLastDocTimeStamp 1729692396 [14:11:54]current date 1729692716 [14:11:54]FM_GetShiftState [14:11:54]SAM_PROTO_GetShiftState [14:11:54]wFMCommunicate request_size=4 [14:11:54]MH_SAM_APDU [14:11:54]CAPDU: 80 13 01 00 [14:11:54]Write to MH i2c: E2 08 00 5E 1F 80 13 01 00 00 00 00 00 FA [14:11:54]Write i2c OK [14:11:54]MH_I2C_Read... [14:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:54]Read from MH i2c: E2 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: E2 0E 00 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: E2 0E 00 5E 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C5 [14:11:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:11:54]wFMCommunicate OK [14:11:54]SAM_PROTO_GetShiftState done [14:11:54]FM_GetShiftState done [14:11:54]opened in 1729643772 [14:11:54]opened+sec_in_day 1729730172 [14:11:54]quantity*price = 100015 [14:11:54]sum+1 = 100017 [14:11:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 167 23.10.2024 14:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166752 ФПД: 275971635496839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141156&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166752&fm=275971635496839&tin=02508201610067®Number=0000000000091764&sum=100016 [14:11:55]StoreToDocumentArchive [14:11:55]shift 537 fd 166752 [14:11:55]save to /storage/0537/doc_00166752 [14:11:55]save last doc name /storage/0537/doc_00166752 to /storage/kkm_last_doc_name [14:11:55]save OK [14:11:55]Clear old archive folders... [14:11:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:55]tlvbuf is 01FCBB70 [14:11:55]SAM_PROTO_ClearQueue [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 09 00 00 [14:11:55]Write to MH i2c: E2 08 00 6B 1F 80 09 00 00 00 00 00 00 FC [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:55]Read from MH i2c: E2 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 03 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 03 00 6B 1F 00 90 00 FE [14:11:55]RAPDU: 90 00 [14:11:55]wFMCommunicate OK [14:11:55]SAM_PROTO_ClearQueue done [14:11:55]KKMCreateOFDPacket [14:11:55]OFDProtocolAddRootSTLVToBuf [14:11:55]FM_MakeSignedData [14:11:55]FM_MakeSignedData [14:11:55]SAM_PROTO_SignData [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 0D 01 02 [14:11:55]Write to MH i2c: E2 08 00 6C 1F 80 0D 01 02 00 00 00 00 04 [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 6C 1F 00 90 00 FF [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]wFMCommunicate request_size=255 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2C 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8B 02 00 35 04 06 00 FA [14:11:56]Write to MH i2c: E2 02 01 6D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2C 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8B 02 00 35 04 06 00 FA 00 00 0D [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 6D 1F 00 90 00 00 [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]wFMCommunicate request_size=10 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 02 02 05 FE A7 4D 47 87 [14:11:56]Write to MH i2c: E2 0D 00 6E 1F 80 0D 02 02 05 00 FE A7 4D 47 87 00 00 D1 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 6E 1F 00 90 00 01 [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]wFMCommunicate request_size=4 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 03 02 [14:11:56]Write to MH i2c: E2 08 00 6F 1F 80 0D 03 02 00 00 00 00 09 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 0B 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 0B 00 6F 1F 00 DB B7 A4 F0 B7 42 1D 9D 90 00 E3 [14:11:56]RAPDU: DB B7 A4 F0 B7 42 1D 9D 90 00 [14:11:56]wFMCommunicate OK [14:11:56]SAM_PROTO_SignData done [14:11:56]FM_MakeSignedData done [14:11:56]CreateOFDProtocolMessage [14:11:56]wFMCommunicate request_size=4 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 11 00 00 [14:11:56]Write to MH i2c: E2 08 00 70 1F 80 11 00 00 00 00 00 00 09 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 17 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 17 00 70 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [14:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:11:56]wFMCommunicate OK [14:11:56]CreateOFDProtocolMessage done [14:11:56]OFDSenderStorePacket 166752 [14:11:56]StoreOFDPacket docnum=166752 [14:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E C1 07 01 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2C 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8B 02 00 35 04 06 00 FA FE A7 4D 47 87 DB B7 A4 F0 B7 42 1D 9D [14:11:56]CheckFolder [14:11:56]dirname=/storage/ofd_packets [14:11:56]CheckFolder done [14:11:56]ProducePacketName [14:11:56]name=ofd_packets/00166752 [14:11:56]NVStorageSaveData ofd_packets/00166752 [14:11:56]File name is /storage/ofd_packets/00166752 [14:11:56]Write 301 bytes [14:11:56]NVStorageSaveData done [14:11:56]OFDSenderStorePacket done [14:11:56]KKMCreateOFDPacket done [14:11:56]NVStorageSaveData kkm_last_timestamp [14:11:56]File name is /storage/kkm_last_timestamp [14:11:56]Write 4 bytes [14:11:56]NVStorageSaveData done [14:11:56]ExternCall_PrintAddStr [14:11:56]wPrintStart [14:11:56]Write to MH i2c: 01 00 00 71 1F 90 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: 01 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: 01 07 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: 01 07 00 71 1F 00 00 00 00 00 FF 0F A5 [14:11:56]RasterBufferAndPrint [14:11:56]line Счет N : (1)221337 [14:11:56]line ИНН: 02508201610067 [14:11:56]line Контрольно-Кассовый Чек [14:11:56]line ПРОДАЖА [14:11:56]line ТРК (МРК, ГНК) : 13 [14:11:56]line Товар: 2710124130 [14:11:56]line Аи-92-К-5 [14:11:56]line 14.950 * 66.90 [14:11:56]line = 1000.16 [14:11:56]line НДС 12% НСП 1% [14:11:56]line > о реализуемом товаре [14:11:56]line ИТОГО: 1000.16 [14:11:56]line НСП 1% : 8.85 [14:11:56]line НДС 12% : 106.21 [14:11:56]line Наличными: 0.00 [14:11:56]line Безнал.: 1000.16 [14:11:56]line Место: АЗС № 161 "Партнер Нефть" [14:11:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:11:56]line СНО: Общий режим [14:11:56]line Чек 167 23.10.2024 14:11 [14:11:56]line Смена: 537 ФФД: 1.0 [14:11:56]line ЗНМ: 0300000104 [14:11:56]line РНМ: 0000000000091764 [14:11:56]line Версия ККМ: 001 [14:11:56]line Платежная система: Mbank [14:11:56]line ФМ: 0000000000871759 [14:11:56]line ФД: 166752 [14:11:56]line ФПД: 275971635496839 [14:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141156&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166752&fm=275971635496839&tin=02508201610067®Number=0000000000091764&sum=100016 [14:11:56]OFD Sender: Processing packet 166752 [packets to send 48, broken 47] [14:11:56]ProducePacketName [14:11:56]name=ofd_packets/00166752 [14:11:56]OFD Sender: To server: pG, [14:11:56]CommunicateWithHost lk.salyk.kg:30040 [14:11:56]ConnectInit lk.salyk.kg [14:11:56]written 0, free lines is 4095 [14:11:56]Connected sock=10 [14:11:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E C1 07 01 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2C 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8B 02 00 35 04 06 00 FA FE A7 4D 47 87 DB B7 A4 F0 B7 42 1D 9D [14:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 09 F3 47 00 44 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8B 02 00 F4 03 04 00 93 AA 18 67 B6 04 01 00 00 66 54 85 EF BF 09 A5 60 [14:11:57]CommunicateWithHost err = 0 [14:11:57]CheckOFDResponse [14:11:57]1017 (14) - 77093643461234 [14:11:57]1041 (16) - 0000000000871759 [14:11:57]1040 (4) - 166752 [14:11:57]1012 (4) - 23.10.2024 07:49 [14:11:57]1206 (1) - 0 [14:11:57]OFD Sender: Remove packet 166752 [14:11:57]ProducePacketName [14:11:57]name=ofd_packets/00166752 [14:11:57]NVStorageDeleteData [14:11:57]Write to MH i2c: 01 00 00 9A 1F B9 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 9A 1F 00 00 00 00 00 DB 0C A7 [14:11:57]RasterBufferAndPrint [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]written 0, free lines is 3297 [14:11:57]MH_Cut [14:11:57]Write to MH i2c: D1 01 00 A1 1F 01 92 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 01 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 01 00 A1 1F 00 91 [14:11:57]Write to MH i2c: 01 00 00 A2 1F C1 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]OFD Sender: No OFD packet to send [14:11:58]*** Cut start [14:11:58]*** Partial cut [14:11:58]*** CUTSNS_PIN = 1 [14:11:58]*** CUTSNS_PIN = 0 [14:11:58]*** Brake cut motor [14:11:58]Read from MH i2c: 01 [14:11:58]MH_I2C_Read... [14:11:58]*** Stop cut motor [14:11:58]*** Cut end [14:11:58]Read from MH i2c: 01 07 00 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: 01 07 00 A2 1F 00 00 00 00 00 FF 0F D6 [14:11:58]process_action close_receipt done [14:11:58]requested_data is exist [14:11:58]produce_requested_data [14:11:58]requested_item fm.sn is exist - process it [14:11:58]wFMCommunicate request_size=4 [14:11:58]MH_SAM_APDU [14:11:58]CAPDU: 80 11 00 00 [14:11:58]Write to MH i2c: E2 08 00 A3 1F 80 11 00 00 00 00 00 00 3C [14:11:58]Write i2c OK [14:11:58]MH_I2C_Read... [14:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:58]Read from MH i2c: E2 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 17 00 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 17 00 A3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [14:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:11:58]wFMCommunicate OK [14:11:58]requested_item fd.num is exist - process it [14:11:58]SAM_PROTO_GetFieldsCounters [14:11:58]wFMCommunicate request_size=4 [14:11:58]MH_SAM_APDU [14:11:58]CAPDU: 80 13 00 00 [14:11:58]Write to MH i2c: E2 08 00 A4 1F 80 13 00 00 00 00 00 00 3F [14:11:58]Write i2c OK [14:11:58]MH_I2C_Read... [14:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:58]Read from MH i2c: E2 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 62 00 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 62 00 A4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:11:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:58]wFMCommunicate OK [14:11:58]SAM_PROTO_GetFieldsCounters done [14:11:58]requested_item shift.num is exist - process it [14:11:58]requested_item shift.opened is exist - process it [14:11:58]req_shift_opened [14:11:58]FM_GetShiftState [14:11:58]SAM_PROTO_GetShiftState [14:11:58]wFMCommunicate request_size=4 [14:11:58]MH_SAM_APDU [14:11:58]CAPDU: 80 13 01 00 [14:11:58]Write to MH i2c: E2 08 00 A5 1F 80 13 01 00 00 00 00 00 41 [14:11:58]Write i2c OK [14:11:58]MH_I2C_Read... [14:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:58]Read from MH i2c: E2 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 0E 00 [14:11:58]MH_I2C_Read... [14:11:58]Read from MH i2c: E2 0E 00 A5 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0C [14:11:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:11:58]wFMCommunicate OK [14:11:58]SAM_PROTO_GetShiftState done [14:11:58]FM_GetShiftState done [14:11:58]req_shift_opened done [14:11:58]requested_item shift.open_date is exist - process it [14:11:58]req_shift_open_date [14:11:58]req_shift_open_date done [14:11:58]produce_requested_data done [14:11:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166752,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:11:58]process_action_free close_receipt [14:11:58]json_value_free [14:11:58]json_value_free done [14:11:58]process_json_proto returns [14:11:58]Send response to host [14:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166752,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:11:58]free response buf [14:11:58]execute_script done [14:11:58]execute_script returns [14:11:58]free content buf [14:11:58]Sock 9.Close socket [14:11:58]Sock 9.Thread stoped [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:00]accept exits with 8 [14:13:00]New connection [14:13:00]New thread 3067178340 created [14:13:00]Thread 3067034980 joined [14:13:00]Waiting for new connection... [14:13:00] Sock 8.Parse request [14:13:00]Sock 8.Check first char [14:13:00]Sock 8.First char is OK [14:13:00]request: POST /json_proto HTTP/1.0 [14:13:00]Method: POST [14:13:00]URL: /json_proto [14:13:00]Method is POST - this is cgi request [14:13:00]url: /json_proto [14:13:00]query_string will be loaded in cgi processing [14:13:00]execute_cgi json_proto POST (null) [14:13:00]execute_cgi path=json_proto method=POST [14:13:00]POST find Content-Length [14:13:00]Host: 172.17.53.195:8080 [14:13:00]Content-Length: 677 [14:13:00]Content-Type: application/json [14:13:00] [14:13:00]POST finish read [14:13:00]Found Content-Length = 677 [14:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:00]execute_script... [14:13: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)221338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:00]POST & json_proto [14:13:00]process_json_proto [14:13:00]json parsed OK: [14:13:00]protocol is kg_v1.0 [14:13:00]action value=close_receipt [14:13:00]process_action close_receipt [14:13:00]cmd_close_receipt [14:13:00]MH_GetDate [14:13:00]Write to MH i2c: F0 00 00 A6 1F B4 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: F0 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: F0 09 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: F0 09 00 A6 1F 00 6D 04 19 67 21 48 4A 65 C6 [14:13:00]GetLastDocTimeStamp 1729692716 [14:13:00]current date 1729692781 [14:13:00]FM_GetShiftState [14:13:00]SAM_PROTO_GetShiftState [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 13 01 00 [14:13:00]Write to MH i2c: E2 08 00 A7 1F 80 13 01 00 00 00 00 00 43 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 A7 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0E [14:13:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_GetShiftState done [14:13:00]FM_GetShiftState done [14:13:00]opened in 1729643772 [14:13:00]opened+sec_in_day 1729730172 [14:13:00]quantity*price = 20003 [14:13:00]sum+1 = 20004 [14:13: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 168 23.10.2024 14:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166753 ФПД: 219234113313009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141301&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166753&fm=219234113313009&tin=02508201610067®Number=0000000000091764&sum=20000 [14:13:01]StoreToDocumentArchive [14:13:01]shift 537 fd 166753 [14:13:01]save to /storage/0537/doc_00166753 [14:13:01]save last doc name /storage/0537/doc_00166753 to /storage/kkm_last_doc_name [14:13:01]save OK [14:13:01]Clear old archive folders... [14:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:01]tlvbuf is 01FDAB60 [14:13:01]SAM_PROTO_ClearQueue [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 09 00 00 [14:13:01]Write to MH i2c: E2 08 00 B4 1F 80 09 00 00 00 00 00 00 45 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 B4 1F 00 90 00 47 [14:13:01]RAPDU: 90 00 [14:13:01]wFMCommunicate OK [14:13:01]SAM_PROTO_ClearQueue done [14:13:01]KKMCreateOFDPacket [14:13:01]OFDProtocolAddRootSTLVToBuf [14:13:01]FM_MakeSignedData [14:13:01]FM_MakeSignedData [14:13:01]SAM_PROTO_SignData [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 0D 01 02 [14:13:01]Write to MH i2c: E2 08 00 B5 1F 80 0D 01 02 00 00 00 00 4D [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 B5 1F 00 90 00 48 [14:13:01]RAPDU: 90 00 [14:13:01]wFMCommunicate OK [14:13:01]wFMCommunicate request_size=255 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6D 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8B 02 00 35 04 06 00 C7 [14:13:01]Write to MH i2c: E2 02 01 B6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6D 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8B 02 00 35 04 06 00 C7 00 00 0E [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 B6 1F 00 90 00 49 [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]wFMCommunicate request_size=10 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 0D 02 02 05 64 6B 72 58 F1 [14:13:02]Write to MH i2c: E2 0D 00 B7 1F 80 0D 02 02 05 00 64 6B 72 58 F1 00 00 E4 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 B7 1F 00 90 00 4A [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 0D 03 02 [14:13:02]Write to MH i2c: E2 08 00 B8 1F 80 0D 03 02 00 00 00 00 52 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0B 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0B 00 B8 1F 00 63 D0 12 10 DC 74 E0 A2 90 00 7A [14:13:02]RAPDU: 63 D0 12 10 DC 74 E0 A2 90 00 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_SignData done [14:13:02]FM_MakeSignedData done [14:13:02]CreateOFDProtocolMessage [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 11 00 00 [14:13:02]Write to MH i2c: E2 08 00 B9 1F 80 11 00 00 00 00 00 00 52 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 B9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [14:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:13:02]wFMCommunicate OK [14:13:02]CreateOFDProtocolMessage done [14:13:02]OFDSenderStorePacket 166753 [14:13:02]StoreOFDPacket docnum=166753 [14:13:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 BD 07 01 DE 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6D 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8B 02 00 35 04 06 00 C7 64 6B 72 58 F1 63 D0 12 10 DC 74 E0 A2 [14:13:02]CheckFolder [14:13:02]dirname=/storage/ofd_packets [14:13:02]CheckFolder done [14:13:02]ProducePacketName [14:13:02]name=ofd_packets/00166753 [14:13:02]NVStorageSaveData ofd_packets/00166753 [14:13:02]File name is /storage/ofd_packets/00166753 [14:13:02]Write 301 bytes [14:13:02]NVStorageSaveData done [14:13:02]OFDSenderStorePacket done [14:13:02]KKMCreateOFDPacket done [14:13:02]NVStorageSaveData kkm_last_timestamp [14:13:02]File name is /storage/kkm_last_timestamp [14:13:02]Write 4 bytes [14:13:02]NVStorageSaveData done [14:13:02]ExternCall_PrintAddStr [14:13:02]wPrintStart [14:13:02]Write to MH i2c: 01 00 00 BA 1F D9 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 07 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 07 00 BA 1F 00 00 00 00 00 FF 0F EE [14:13:02]RasterBufferAndPrint [14:13:02]line Счет N : (1)221338 [14:13:02]line ИНН: 02508201610067 [14:13:02]line Контрольно-Кассовый Чек [14:13:02]line ПРОДАЖА [14:13:02]line ТРК (МРК, ГНК) : 33 [14:13:02]line Товар: 2710124130 [14:13:02]line Аи-92-К-5 [14:13:02]line 2.990 * 66.90 [14:13:02]line = 200.03 [14:13:02]line НДС 12% НСП 1% [14:13:02]line > о реализуемом товаре [14:13:02]line ОКРУГЛЕНИЕ: -0.03 [14:13:02]line ИТОГО: 200.00 [14:13:02]line Внесено: 200.00 [14:13:02]line СДАЧА: 0.00 [14:13:02]line НСП 1% : 1.77 [14:13:02]line НДС 12% : 21.24 [14:13:02]line Наличными: 200.00 [14:13:02]line Безнал.: 0.00 [14:13:02]line Место: АЗС № 161 "Партнер Нефть" [14:13:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:13:02]line СНО: Общий режим [14:13:02]line Чек 168 23.10.2024 14:13 [14:13:02]line Смена: 537 ФФД: 1.0 [14:13:02]line ЗНМ: 0300000104 [14:13:02]line РНМ: 0000000000091764 [14:13:02]line Версия ККМ: 001 [14:13:02]line ФМ: 0000000000871759 [14:13:02]line ФД: 166753 [14:13:02]line ФПД: 219234113313009 [14:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141301&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166753&fm=219234113313009&tin=02508201610067®Number=0000000000091764&sum=20000 [14:13:02]OFD Sender: Processing packet 166753 [packets to send 48, broken 47] [14:13:02]ProducePacketName [14:13:02]name=ofd_packets/00166753 [14:13:02]OFD Sender: To server: pG, [14:13:02]CommunicateWithHost lk.salyk.kg:30040 [14:13:02]ConnectInit lk.salyk.kg [14:13:02]written 0, free lines is 4095 [14:13:02]Connected sock=10 [14:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 BD 07 01 DE 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6D 04 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8B 02 00 35 04 06 00 C7 64 6B 72 58 F1 63 D0 12 10 DC 74 E0 A2 [14:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 99 5A 47 00 90 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8B 02 00 F4 03 04 00 D5 AA 18 67 B6 04 01 00 00 4F EF 2E 69 38 E2 F3 43 [14:13:02]CommunicateWithHost err = 0 [14:13:02]CheckOFDResponse [14:13:02]1017 (14) - 77093643461234 [14:13:02]1041 (16) - 0000000000871759 [14:13:02]1040 (4) - 166753 [14:13:02]1012 (4) - 23.10.2024 07:50 [14:13:02]1206 (1) - 0 [14:13:02]OFD Sender: Remove packet 166753 [14:13:02]ProducePacketName [14:13:02]name=ofd_packets/00166753 [14:13:02]NVStorageDeleteData [14:13:02]Write to MH i2c: 01 00 00 E5 1F 04 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 07 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 A3 0C BA [14:13:02]RasterBufferAndPrint [14:13:02]line [14:13:02]line [14:13:02]line [14:13:02]line [14:13:02]line [14:13:02]written 0, free lines is 3241 [14:13:03]MH_Cut [14:13:03]Write to MH i2c: D1 01 00 EC 1F 01 DD [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 01 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 01 00 EC 1F 00 DC [14:13:03]Write to MH i2c: 01 00 00 ED 1F 0C [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]OFD Sender: No OFD packet to send [14:13:03]*** Cut start [14:13:03]*** Partial cut [14:13:03]*** CUTSNS_PIN = 1 [14:13:03]*** CUTSNS_PIN = 0 [14:13:04]*** Brake cut motor [14:13:04]Read from MH i2c: 01 [14:13:04]MH_I2C_Read... [14:13:04]*** Stop cut motor [14:13:04]*** Cut end [14:13:04]Read from MH i2c: 01 07 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 07 00 ED 1F 00 00 00 00 00 FF 0F 21 [14:13:04]process_action close_receipt done [14:13:04]requested_data is exist [14:13:04]produce_requested_data [14:13:04]requested_item fm.sn is exist - process it [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 11 00 00 [14:13:04]Write to MH i2c: E2 08 00 EE 1F 80 11 00 00 00 00 00 00 87 [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 17 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 17 00 EE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [14:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:13:04]wFMCommunicate OK [14:13:04]requested_item fd.num is exist - process it [14:13:04]SAM_PROTO_GetFieldsCounters [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 13 00 00 [14:13:04]Write to MH i2c: E2 08 00 EF 1F 80 13 00 00 00 00 00 00 8A [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 62 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 62 00 EF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:04]wFMCommunicate OK [14:13:04]SAM_PROTO_GetFieldsCounters done [14:13:04]requested_item shift.num is exist - process it [14:13:04]requested_item shift.opened is exist - process it [14:13:04]req_shift_opened [14:13:04]FM_GetShiftState [14:13:04]SAM_PROTO_GetShiftState [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 13 01 00 [14:13:04]Write to MH i2c: E2 08 00 F0 1F 80 13 01 00 00 00 00 00 8C [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0E 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0E 00 F0 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 57 [14:13:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:13:04]wFMCommunicate OK [14:13:04]SAM_PROTO_GetShiftState done [14:13:04]FM_GetShiftState done [14:13:04]req_shift_opened done [14:13:04]requested_item shift.open_date is exist - process it [14:13:04]req_shift_open_date [14:13:04]req_shift_open_date done [14:13:04]produce_requested_data done [14:13:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166753,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:13:04]process_action_free close_receipt [14:13:04]json_value_free [14:13:04]json_value_free done [14:13:04]process_json_proto returns [14:13:04]Send response to host [14:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166753,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:13:04]free response buf [14:13:04]execute_script done [14:13:04]execute_script returns [14:13:04]free content buf [14:13:04]Sock 8.Close socket [14:13:04]Sock 8.Thread stoped [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:02]accept exits with 9 [14:16:02]New connection [14:16:02]New thread 3067034980 created [14:16:02]Thread 3067178340 joined [14:16:02]Waiting for new connection... [14:16:02] Sock 9.Parse request [14:16:02]Sock 9.Check first char [14:16:02]Sock 9.First char is OK [14:16:02]request: POST /json_proto HTTP/1.0 [14:16:02]Method: POST [14:16:02]URL: /json_proto [14:16:02]Method is POST - this is cgi request [14:16:02]url: /json_proto [14:16:02]query_string will be loaded in cgi processing [14:16:02]execute_cgi json_proto POST (null) [14:16:02]execute_cgi path=json_proto method=POST [14:16:02]POST find Content-Length [14:16:02]Host: 172.17.53.195:8080 [14:16:02]Content-Length: 682 [14:16:02]Content-Type: application/json [14:16:02] [14:16:02]POST finish read [14:16:02]Found Content-Length = 682 [14:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:02]execute_script... [14:16:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:02]POST & json_proto [14:16:02]process_json_proto [14:16:02]json parsed OK: [14:16:02]protocol is kg_v1.0 [14:16:02]action value=close_receipt [14:16:02]process_action close_receipt [14:16:02]cmd_close_receipt [14:16:02]MH_GetDate [14:16:02]Write to MH i2c: F0 00 00 F1 1F FF [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 F1 1F 00 24 05 19 67 21 48 4A 65 C9 [14:16:02]GetLastDocTimeStamp 1729692781 [14:16:02]current date 1729692964 [14:16:02]FM_GetShiftState [14:16:02]SAM_PROTO_GetShiftState [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 13 01 00 [14:16:02]Write to MH i2c: E2 08 00 F2 1F 80 13 01 00 00 00 00 00 8E [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 F2 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 59 [14:16:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_GetShiftState done [14:16:02]FM_GetShiftState done [14:16:02]opened in 1729643772 [14:16:02]opened+sec_in_day 1729730172 [14:16:02]quantity*price = 100015 [14:16:02]sum+1 = 100017 [14:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 169 23.10.2024 14:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166754 ФПД: 9433579115590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166754&fm=9433579115590&tin=02508201610067®Number=0000000000091764&sum=100000 [14:16:03]StoreToDocumentArchive [14:16:03]shift 537 fd 166754 [14:16:03]save to /storage/0537/doc_00166754 [14:16:03]save last doc name /storage/0537/doc_00166754 to /storage/kkm_last_doc_name [14:16:03]save OK [14:16:03]Clear old archive folders... [14:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:03]tlvbuf is B6DDF7D0 [14:16:03]SAM_PROTO_ClearQueue [14:16:03]wFMCommunicate request_size=4 [14:16:03]MH_SAM_APDU [14:16:03]CAPDU: 80 09 00 00 [14:16:03]Write to MH i2c: E2 08 00 FF 1F 80 09 00 00 00 00 00 00 90 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 FF 1F 00 90 00 92 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_ClearQueue done [14:16:04]KKMCreateOFDPacket [14:16:04]OFDProtocolAddRootSTLVToBuf [14:16:04]FM_MakeSignedData [14:16:04]FM_MakeSignedData [14:16:04]SAM_PROTO_SignData [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 01 02 [14:16:04]Write to MH i2c: E2 08 00 00 20 80 0D 01 02 00 00 00 00 99 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 00 20 00 90 00 94 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=255 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 24 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8B 02 00 35 04 06 00 08 [14:16:04]Write to MH i2c: E2 02 01 01 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 24 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8B 02 00 35 04 06 00 08 00 00 8D [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 01 20 00 90 00 95 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=10 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 02 02 05 94 6D 21 D4 46 [14:16:04]Write to MH i2c: E2 0D 00 02 20 80 0D 02 02 05 00 94 6D 21 D4 46 00 00 E2 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 02 20 00 90 00 96 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 03 02 [14:16:04]Write to MH i2c: E2 08 00 03 20 80 0D 03 02 00 00 00 00 9E [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 03 20 00 F2 86 49 5D 1E 41 98 2D 90 00 E1 [14:16:04]RAPDU: F2 86 49 5D 1E 41 98 2D 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_SignData done [14:16:04]FM_MakeSignedData done [14:16:04]CreateOFDProtocolMessage [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 11 00 00 [14:16:04]Write to MH i2c: E2 08 00 04 20 80 11 00 00 00 00 00 00 9E [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 04 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [14:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:16:04]wFMCommunicate OK [14:16:04]CreateOFDProtocolMessage done [14:16:04]OFDSenderStorePacket 166754 [14:16:04]StoreOFDPacket docnum=166754 [14:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 8D 07 01 01 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 24 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8B 02 00 35 04 06 00 08 94 6D 21 D4 46 F2 86 49 5D 1E 41 98 2D [14:16:04]CheckFolder [14:16:04]dirname=/storage/ofd_packets [14:16:04]CheckFolder done [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00166754 [14:16:04]NVStorageSaveData ofd_packets/00166754 [14:16:04]File name is /storage/ofd_packets/00166754 [14:16:04]Write 301 bytes [14:16:04]NVStorageSaveData done [14:16:04]OFDSenderStorePacket done [14:16:04]KKMCreateOFDPacket done [14:16:04]NVStorageSaveData kkm_last_timestamp [14:16:04]File name is /storage/kkm_last_timestamp [14:16:04]Write 4 bytes [14:16:04]NVStorageSaveData done [14:16:04]ExternCall_PrintAddStr [14:16:04]wPrintStart [14:16:04]Write to MH i2c: 01 00 00 05 20 25 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 05 20 00 00 00 00 00 FF 0F 3A [14:16:04]RasterBufferAndPrint [14:16:04]line Счет N : (1)221339 [14:16:04]line ИНН: 02508201610067 [14:16:04]line Контрольно-Кассовый Чек [14:16:04]line ПРОДАЖА [14:16:04]line ТРК (МРК, ГНК) : 23 [14:16:04]line Товар: 2710124130 [14:16:04]line Аи-92-К-5 [14:16:04]line 14.950 * 66.90 [14:16:04]line = 1000.16 [14:16:04]line НДС 12% НСП 1% [14:16:04]line > о реализуемом товаре [14:16:04]line ОКРУГЛЕНИЕ: -0.16 [14:16:04]line ИТОГО: 1000.00 [14:16:04]line Внесено: 1000.00 [14:16:04]line СДАЧА: 0.00 [14:16:04]line НСП 1% : 8.85 [14:16:04]line НДС 12% : 106.21 [14:16:04]line Наличными: 1000.00 [14:16:04]line Безнал.: 0.00 [14:16:04]line Место: АЗС № 161 "Партнер Нефть" [14:16:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:16:04]line СНО: Общий режим [14:16:04]line Чек 169 23.10.2024 14:16 [14:16:04]line Смена: 537 ФФД: 1.0 [14:16:04]line ЗНМ: 0300000104 [14:16:04]line РНМ: 0000000000091764 [14:16:04]line Версия ККМ: 001 [14:16:04]line ФМ: 0000000000871759 [14:16:04]line ФД: 166754 [14:16:04]line ФПД: 9433579115590 [14:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166754&fm=9433579115590&tin=02508201610067®Number=0000000000091764&sum=100000 [14:16:04]OFD Sender: Processing packet 166754 [packets to send 48, broken 47] [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00166754 [14:16:04]OFD Sender: To server: pG, [14:16:04]CommunicateWithHost lk.salyk.kg:30040 [14:16:04]ConnectInit lk.salyk.kg [14:16:04]written 0, free lines is 4095 [14:16:04]Connected sock=10 [14:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 8D 07 01 01 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 24 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8B 02 00 35 04 06 00 08 94 6D 21 D4 46 F2 86 49 5D 1E 41 98 2D [14:16:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 55 BD 47 00 1A 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8B 02 00 F4 03 04 00 8B AB 18 67 B6 04 01 00 00 2D 42 27 21 C3 94 7D F2 [14:16:05]CommunicateWithHost err = 0 [14:16:05]CheckOFDResponse [14:16:05]1017 (14) - 77093643461234 [14:16:05]1041 (16) - 0000000000871759 [14:16:05]1040 (4) - 166754 [14:16:05]1012 (4) - 23.10.2024 07:53 [14:16:05]1206 (1) - 0 [14:16:05]OFD Sender: Remove packet 166754 [14:16:05]ProducePacketName [14:16:05]name=ofd_packets/00166754 [14:16:05]NVStorageDeleteData [14:16:05]Write to MH i2c: 01 00 00 30 20 50 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 07 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 07 00 30 20 00 00 00 00 00 B6 0C 19 [14:16:05]RasterBufferAndPrint [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]written 0, free lines is 3258 [14:16:05]MH_Cut [14:16:05]Write to MH i2c: D1 01 00 37 20 01 29 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 01 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 01 00 37 20 00 28 [14:16:05]Write to MH i2c: 01 00 00 38 20 58 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]OFD Sender: No OFD packet to send [14:16:06]*** Cut start [14:16:06]*** Partial cut [14:16:06]*** CUTSNS_PIN = 1 [14:16:06]*** CUTSNS_PIN = 0 [14:16:06]*** Brake cut motor [14:16:06]Read from MH i2c: 01 [14:16:06]MH_I2C_Read... [14:16:06]*** Stop cut motor [14:16:06]*** Cut end [14:16:06]Read from MH i2c: 01 07 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 07 00 38 20 00 00 00 00 00 FF 0F 6D [14:16:06]process_action close_receipt done [14:16:06]requested_data is exist [14:16:06]produce_requested_data [14:16:06]requested_item fm.sn is exist - process it [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 11 00 00 [14:16:06]Write to MH i2c: E2 08 00 39 20 80 11 00 00 00 00 00 00 D3 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 39 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [14:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:16:06]wFMCommunicate OK [14:16:06]requested_item fd.num is exist - process it [14:16:06]SAM_PROTO_GetFieldsCounters [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 13 00 00 [14:16:06]Write to MH i2c: E2 08 00 3A 20 80 13 00 00 00 00 00 00 D6 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 62 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 62 00 3A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_GetFieldsCounters done [14:16:07]requested_item shift.num is exist - process it [14:16:07]requested_item shift.opened is exist - process it [14:16:07]req_shift_opened [14:16:07]FM_GetShiftState [14:16:07]SAM_PROTO_GetShiftState [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 13 01 00 [14:16:07]Write to MH i2c: E2 08 00 3B 20 80 13 01 00 00 00 00 00 D8 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0E 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0E 00 3B 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A3 [14:16:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_GetShiftState done [14:16:07]FM_GetShiftState done [14:16:07]req_shift_opened done [14:16:07]requested_item shift.open_date is exist - process it [14:16:07]req_shift_open_date [14:16:07]req_shift_open_date done [14:16:07]produce_requested_data done [14:16:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166754,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:16:07]process_action_free close_receipt [14:16:07]json_value_free [14:16:07]json_value_free done [14:16:07]process_json_proto returns [14:16:07]Send response to host [14:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166754,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:16:07]free response buf [14:16:07]execute_script done [14:16:07]execute_script returns [14:16:07]free content buf [14:16:07]Sock 9.Close socket [14:16:07]Sock 9.Thread stoped [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:38]accept exits with 8 [14:18:38]New connection [14:18:38]New thread 3067178340 created [14:18:38]Thread 3067034980 joined [14:18:38]Waiting for new connection... [14:18:38] Sock 8.Parse request [14:18:38]Sock 8.Check first char [14:18:38]Sock 8.First char is OK [14:18:38]request: POST /json_proto HTTP/1.0 [14:18:38]Method: POST [14:18:38]URL: /json_proto [14:18:38]Method is POST - this is cgi request [14:18:38]url: /json_proto [14:18:38]query_string will be loaded in cgi processing [14:18:38]execute_cgi json_proto POST (null) [14:18:38]execute_cgi path=json_proto method=POST [14:18:38]POST find Content-Length [14:18:38]Host: 172.17.53.195:8080 [14:18:38]Content-Length: 677 [14:18:38]Content-Type: application/json [14:18:38] [14:18:38]POST finish read [14:18:38]Found Content-Length = 677 [14:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:38]execute_script... [14:18: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)221340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:38]POST & json_proto [14:18:38]process_json_proto [14:18:38]json parsed OK: [14:18:38]protocol is kg_v1.0 [14:18:38]action value=close_receipt [14:18:38]process_action close_receipt [14:18:38]cmd_close_receipt [14:18:38]MH_GetDate [14:18:38]Write to MH i2c: F0 00 00 3C 20 4B [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: F0 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: F0 09 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: F0 09 00 3C 20 00 BF 05 19 67 21 48 4A 65 B0 [14:18:38]GetLastDocTimeStamp 1729692964 [14:18:38]current date 1729693119 [14:18:38]FM_GetShiftState [14:18:38]SAM_PROTO_GetShiftState [14:18:38]wFMCommunicate request_size=4 [14:18:38]MH_SAM_APDU [14:18:38]CAPDU: 80 13 01 00 [14:18:38]Write to MH i2c: E2 08 00 3D 20 80 13 01 00 00 00 00 00 DA [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 0E 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 0E 00 3D 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A5 [14:18:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:18:38]wFMCommunicate OK [14:18:38]SAM_PROTO_GetShiftState done [14:18:38]FM_GetShiftState done [14:18:38]opened in 1729643772 [14:18:38]opened+sec_in_day 1729730172 [14:18:38]quantity*price = 50041 [14:18:38]sum+1 = 50042 [14:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 170 23.10.2024 14:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166755 ФПД: 264974054676411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166755&fm=264974054676411&tin=02508201610067®Number=0000000000091764&sum=50000 [14:18:39]StoreToDocumentArchive [14:18:39]shift 537 fd 166755 [14:18:39]save to /storage/0537/doc_00166755 [14:18:39]save last doc name /storage/0537/doc_00166755 to /storage/kkm_last_doc_name [14:18:39]save OK [14:18:39]Clear old archive folders... [14:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:39]tlvbuf is 01FB38B0 [14:18:39]SAM_PROTO_ClearQueue [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 09 00 00 [14:18:39]Write to MH i2c: E2 08 00 4A 20 80 09 00 00 00 00 00 00 DC [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 4A 20 00 90 00 DE [14:18:39]RAPDU: 90 00 [14:18:39]wFMCommunicate OK [14:18:39]SAM_PROTO_ClearQueue done [14:18:39]KKMCreateOFDPacket [14:18:39]OFDProtocolAddRootSTLVToBuf [14:18:39]FM_MakeSignedData [14:18:39]FM_MakeSignedData [14:18:39]SAM_PROTO_SignData [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 0D 01 02 [14:18:39]Write to MH i2c: E2 08 00 4B 20 80 0D 01 02 00 00 00 00 E4 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 4B 20 00 90 00 DF [14:18:39]RAPDU: 90 00 [14:18:39]wFMCommunicate OK [14:18:39]wFMCommunicate request_size=255 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8B 02 00 35 04 06 00 F0 [14:18:39]Write to MH i2c: E2 02 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8B 02 00 35 04 06 00 F0 00 00 63 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 4C 20 00 90 00 E0 [14:18:39]RAPDU: 90 00 [14:18:39]wFMCommunicate OK [14:18:39]wFMCommunicate request_size=10 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 0D 02 02 05 FE 14 67 57 BB [14:18:39]Write to MH i2c: E2 0D 00 4D 20 80 0D 02 02 05 00 FE 14 67 57 BB 00 00 7C [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 03 00 4D 20 00 90 00 E1 [14:18:39]RAPDU: 90 00 [14:18:39]wFMCommunicate OK [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 0D 03 02 [14:18:39]Write to MH i2c: E2 08 00 4E 20 80 0D 03 02 00 00 00 00 E9 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 0B 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 0B 00 4E 20 00 EB 9E EA 0B 43 6C 76 36 90 00 C3 [14:18:39]RAPDU: EB 9E EA 0B 43 6C 76 36 90 00 [14:18:39]wFMCommunicate OK [14:18:39]SAM_PROTO_SignData done [14:18:39]FM_MakeSignedData done [14:18:39]CreateOFDProtocolMessage [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 11 00 00 [14:18:39]Write to MH i2c: E2 08 00 4F 20 80 11 00 00 00 00 00 00 E9 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 17 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 17 00 4F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [14:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:18:39]wFMCommunicate OK [14:18:39]CreateOFDProtocolMessage done [14:18:39]OFDSenderStorePacket 166755 [14:18:39]StoreOFDPacket docnum=166755 [14:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 DF 07 01 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8B 02 00 35 04 06 00 F0 FE 14 67 57 BB EB 9E EA 0B 43 6C 76 36 [14:18:39]CheckFolder [14:18:39]dirname=/storage/ofd_packets [14:18:39]CheckFolder done [14:18:39]ProducePacketName [14:18:39]name=ofd_packets/00166755 [14:18:39]NVStorageSaveData ofd_packets/00166755 [14:18:39]File name is /storage/ofd_packets/00166755 [14:18:39]Write 301 bytes [14:18:39]NVStorageSaveData done [14:18:39]OFDSenderStorePacket done [14:18:39]KKMCreateOFDPacket done [14:18:39]NVStorageSaveData kkm_last_timestamp [14:18:39]File name is /storage/kkm_last_timestamp [14:18:39]Write 4 bytes [14:18:39]NVStorageSaveData done [14:18:39]ExternCall_PrintAddStr [14:18:39]wPrintStart [14:18:39]Write to MH i2c: 01 00 00 50 20 70 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 07 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 07 00 50 20 00 00 00 00 00 FF 0F 85 [14:18:39]RasterBufferAndPrint [14:18:39]line Счет N : (1)221340 [14:18:39]line ИНН: 02508201610067 [14:18:39]line Контрольно-Кассовый Чек [14:18:39]line ПРОДАЖА [14:18:39]line ТРК (МРК, ГНК) : 33 [14:18:39]line Товар: 2710124130 [14:18:39]line Аи-92-К-5 [14:18:39]line 7.480 * 66.90 [14:18:39]line = 500.41 [14:18:39]line НДС 12% НСП 1% [14:18:39]line > о реализуемом товаре [14:18:39]line ОКРУГЛЕНИЕ: -0.41 [14:18:39]line ИТОГО: 500.00 [14:18:39]line Внесено: 500.00 [14:18:39]line СДАЧА: 0.00 [14:18:39]line НСП 1% : 4.43 [14:18:39]line НДС 12% : 53.14 [14:18:39]line Наличными: 500.00 [14:18:39]line Безнал.: 0.00 [14:18:39]line Место: АЗС № 161 "Партнер Нефть" [14:18:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:18:39]line СНО: Общий режим [14:18:39]line Чек 170 23.10.2024 14:18 [14:18:39]line Смена: 537 ФФД: 1.0 [14:18:39]line ЗНМ: 0300000104 [14:18:39]line РНМ: 0000000000091764 [14:18:39]line Версия ККМ: 001 [14:18:39]line ФМ: 0000000000871759 [14:18:39]line ФД: 166755 [14:18:39]line ФПД: 264974054676411 [14:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166755&fm=264974054676411&tin=02508201610067®Number=0000000000091764&sum=50000 [14:18:40]OFD Sender: Processing packet 166755 [packets to send 48, broken 47] [14:18:40]ProducePacketName [14:18:40]name=ofd_packets/00166755 [14:18:40]OFD Sender: To server: pG, [14:18:40]CommunicateWithHost lk.salyk.kg:30040 [14:18:40]ConnectInit lk.salyk.kg [14:18:40]written 0, free lines is 4095 [14:18:40]Connected sock=10 [14:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 DF 07 01 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 05 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8B 02 00 35 04 06 00 F0 FE 14 67 57 BB EB 9E EA 0B 43 6C 76 36 [14:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7C E5 47 00 68 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8B 02 00 F4 03 04 00 27 AC 18 67 B6 04 01 00 00 11 4A 23 A9 AD D2 4C 85 [14:18:40]CommunicateWithHost err = 0 [14:18:40]CheckOFDResponse [14:18:40]1017 (14) - 77093643461234 [14:18:40]1041 (16) - 0000000000871759 [14:18:40]1040 (4) - 166755 [14:18:40]1012 (4) - 23.10.2024 07:56 [14:18:40]1206 (1) - 0 [14:18:40]OFD Sender: Remove packet 166755 [14:18:40]ProducePacketName [14:18:40]name=ofd_packets/00166755 [14:18:40]NVStorageDeleteData [14:18:40]Write to MH i2c: 01 00 00 7B 20 9B [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: 01 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: 01 07 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: 01 07 00 7B 20 00 00 00 00 00 A0 0C 4E [14:18:40]RasterBufferAndPrint [14:18:40]line [14:18:40]line [14:18:40]line [14:18:40]line [14:18:40]line [14:18:40]written 0, free lines is 3240 [14:18:40]MH_Cut [14:18:40]Write to MH i2c: D1 01 00 82 20 01 74 [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: D1 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: D1 01 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: D1 01 00 82 20 00 73 [14:18:40]Write to MH i2c: 01 00 00 83 20 A3 [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:41]OFD Sender: No OFD packet to send [14:18:41]*** Cut start [14:18:41]*** Partial cut [14:18:41]*** CUTSNS_PIN = 1 [14:18:41]*** CUTSNS_PIN = 0 [14:18:41]*** Brake cut motor [14:18:42]Read from MH i2c: 01 [14:18:42]MH_I2C_Read... [14:18:42]*** Stop cut motor [14:18:42]*** Cut end [14:18:42]Read from MH i2c: 01 07 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: 01 07 00 83 20 00 00 00 00 00 FF 0F B8 [14:18:42]process_action close_receipt done [14:18:42]requested_data is exist [14:18:42]produce_requested_data [14:18:42]requested_item fm.sn is exist - process it [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 11 00 00 [14:18:42]Write to MH i2c: E2 08 00 84 20 80 11 00 00 00 00 00 00 1E [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 17 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 17 00 84 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [14:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:18:42]wFMCommunicate OK [14:18:42]requested_item fd.num is exist - process it [14:18:42]SAM_PROTO_GetFieldsCounters [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 13 00 00 [14:18:42]Write to MH i2c: E2 08 00 85 20 80 13 00 00 00 00 00 00 21 [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 62 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 62 00 85 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [14:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:42]wFMCommunicate OK [14:18:42]SAM_PROTO_GetFieldsCounters done [14:18:42]requested_item shift.num is exist - process it [14:18:42]requested_item shift.opened is exist - process it [14:18:42]req_shift_opened [14:18:42]FM_GetShiftState [14:18:42]SAM_PROTO_GetShiftState [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 13 01 00 [14:18:42]Write to MH i2c: E2 08 00 86 20 80 13 01 00 00 00 00 00 23 [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 0E 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 0E 00 86 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EE [14:18:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:18:42]wFMCommunicate OK [14:18:42]SAM_PROTO_GetShiftState done [14:18:42]FM_GetShiftState done [14:18:42]req_shift_opened done [14:18:42]requested_item shift.open_date is exist - process it [14:18:42]req_shift_open_date [14:18:42]req_shift_open_date done [14:18:42]produce_requested_data done [14:18:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166755,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:18:42]process_action_free close_receipt [14:18:42]json_value_free [14:18:42]json_value_free done [14:18:42]process_json_proto returns [14:18:42]Send response to host [14:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166755,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:18:42]free response buf [14:18:42]execute_script done [14:18:42]execute_script returns [14:18:42]free content buf [14:18:42]Sock 8.Close socket [14:18:42]Sock 8.Thread stoped [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]accept exits with 9 [14:30:31]New connection [14:30:31]New thread 3067034980 created [14:30:31]Thread 3067178340 joined [14:30:31]Waiting for new connection... [14:30:31] Sock 9.Parse request [14:30:31]Sock 9.Check first char [14:30:31]Sock 9.First char is OK [14:30:31]request: POST /json_proto HTTP/1.0 [14:30:31]Method: POST [14:30:31]URL: /json_proto [14:30:31]Method is POST - this is cgi request [14:30:31]url: /json_proto [14:30:31]query_string will be loaded in cgi processing [14:30:31]execute_cgi json_proto POST (null) [14:30:31]execute_cgi path=json_proto method=POST [14:30:31]POST find Content-Length [14:30:31]Host: 172.17.53.195:8080 [14:30:31]Content-Length: 677 [14:30:31]Content-Type: application/json [14:30:31] [14:30:31]POST finish read [14:30:31]Found Content-Length = 677 [14:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:31]execute_script... [14:30: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)221341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:31]POST & json_proto [14:30:31]process_json_proto [14:30:31]json parsed OK: [14:30:31]protocol is kg_v1.0 [14:30:31]action value=close_receipt [14:30:31]process_action close_receipt [14:30:31]cmd_close_receipt [14:30:31]MH_GetDate [14:30:31]Write to MH i2c: F0 00 00 87 20 96 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: F0 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: F0 09 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: F0 09 00 87 20 00 89 08 19 67 21 48 4A 65 C8 [14:30:31]GetLastDocTimeStamp 1729693119 [14:30:31]current date 1729693833 [14:30:31]FM_GetShiftState [14:30:31]SAM_PROTO_GetShiftState [14:30:31]wFMCommunicate request_size=4 [14:30:31]MH_SAM_APDU [14:30:31]CAPDU: 80 13 01 00 [14:30:31]Write to MH i2c: E2 08 00 88 20 80 13 01 00 00 00 00 00 25 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:31]OFD Sender: No OFD packet to send [14:30:31]Read from MH i2c: E2 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 0E 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 0E 00 88 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F0 [14:30:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:30:31]wFMCommunicate OK [14:30:31]SAM_PROTO_GetShiftState done [14:30:31]FM_GetShiftState done [14:30:31]opened in 1729643772 [14:30:31]opened+sec_in_day 1729730172 [14:30:31]quantity*price = 60009 [14:30:31]sum+1 = 60010 [14:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 171 23.10.2024 14:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166756 ФПД: 244536628145622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166756&fm=244536628145622&tin=02508201610067®Number=0000000000091764&sum=60000 [14:30:32]StoreToDocumentArchive [14:30:32]shift 537 fd 166756 [14:30:32]save to /storage/0537/doc_00166756 [14:30:32]save last doc name /storage/0537/doc_00166756 to /storage/kkm_last_doc_name [14:30:32]save OK [14:30:32]Clear old archive folders... [14:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:32]tlvbuf is 01FE8340 [14:30:32]SAM_PROTO_ClearQueue [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 09 00 00 [14:30:32]Write to MH i2c: E2 08 00 95 20 80 09 00 00 00 00 00 00 27 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 03 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 03 00 95 20 00 90 00 29 [14:30:32]RAPDU: 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_ClearQueue done [14:30:32]KKMCreateOFDPacket [14:30:32]OFDProtocolAddRootSTLVToBuf [14:30:32]FM_MakeSignedData [14:30:32]FM_MakeSignedData [14:30:32]SAM_PROTO_SignData [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 0D 01 02 [14:30:32]Write to MH i2c: E2 08 00 96 20 80 0D 01 02 00 00 00 00 2F [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 03 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 03 00 96 20 00 90 00 2A [14:30:32]RAPDU: 90 00 [14:30:32]wFMCommunicate OK [14:30:32]wFMCommunicate request_size=255 [14:30:32]MH_SAM_APDU [14:30: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 89 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8B 02 00 35 04 06 00 DE [14:30:32]Write to MH i2c: E2 02 01 97 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 89 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8B 02 00 35 04 06 00 DE 00 00 48 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 97 20 00 90 00 2B [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]wFMCommunicate request_size=10 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 0D 02 02 05 67 9E DA ED D6 [14:30:33]Write to MH i2c: E2 0D 00 98 20 80 0D 02 02 05 00 67 9E DA ED D6 00 00 DE [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 98 20 00 90 00 2C [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 0D 03 02 [14:30:33]Write to MH i2c: E2 08 00 99 20 80 0D 03 02 00 00 00 00 34 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 0B 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 0B 00 99 20 00 BB BD 39 48 CA 13 D7 48 90 00 2A [14:30:33]RAPDU: BB BD 39 48 CA 13 D7 48 90 00 [14:30:33]wFMCommunicate OK [14:30:33]SAM_PROTO_SignData done [14:30:33]FM_MakeSignedData done [14:30:33]CreateOFDProtocolMessage [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 11 00 00 [14:30:33]Write to MH i2c: E2 08 00 9A 20 80 11 00 00 00 00 00 00 34 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 17 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 17 00 9A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [14:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:30:33]wFMCommunicate OK [14:30:33]CreateOFDProtocolMessage done [14:30:33]OFDSenderStorePacket 166756 [14:30:33]StoreOFDPacket docnum=166756 [14:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 A4 07 01 33 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 89 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8B 02 00 35 04 06 00 DE 67 9E DA ED D6 BB BD 39 48 CA 13 D7 48 [14:30:33]CheckFolder [14:30:33]dirname=/storage/ofd_packets [14:30:33]CheckFolder done [14:30:33]ProducePacketName [14:30:33]name=ofd_packets/00166756 [14:30:33]NVStorageSaveData ofd_packets/00166756 [14:30:33]File name is /storage/ofd_packets/00166756 [14:30:33]Write 301 bytes [14:30:33]NVStorageSaveData done [14:30:33]OFDSenderStorePacket done [14:30:33]KKMCreateOFDPacket done [14:30:33]NVStorageSaveData kkm_last_timestamp [14:30:33]File name is /storage/kkm_last_timestamp [14:30:33]Write 4 bytes [14:30:33]NVStorageSaveData done [14:30:33]ExternCall_PrintAddStr [14:30:33]wPrintStart [14:30:33]Write to MH i2c: 01 00 00 9B 20 BB [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 9B 20 00 00 00 00 00 FF 0F D0 [14:30:33]RasterBufferAndPrint [14:30:33]line Счет N : (1)221341 [14:30:33]line ИНН: 02508201610067 [14:30:33]line Контрольно-Кассовый Чек [14:30:33]line ПРОДАЖА [14:30:33]line ТРК (МРК, ГНК) : 23 [14:30:33]line Товар: 2710124130 [14:30:33]line Аи-92-К-5 [14:30:33]line 8.970 * 66.90 [14:30:33]line = 600.09 [14:30:33]line НДС 12% НСП 1% [14:30:33]line > о реализуемом товаре [14:30:33]line ОКРУГЛЕНИЕ: -0.09 [14:30:33]line ИТОГО: 600.00 [14:30:33]line Внесено: 600.00 [14:30:33]line СДАЧА: 0.00 [14:30:33]line НСП 1% : 5.31 [14:30:33]line НДС 12% : 63.73 [14:30:33]line Наличными: 600.00 [14:30:33]line Безнал.: 0.00 [14:30:33]line Место: АЗС № 161 "Партнер Нефть" [14:30:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:30:33]line СНО: Общий режим [14:30:33]line Чек 171 23.10.2024 14:30 [14:30:33]line Смена: 537 ФФД: 1.0 [14:30:33]line ЗНМ: 0300000104 [14:30:33]line РНМ: 0000000000091764 [14:30:33]line Версия ККМ: 001 [14:30:33]line ФМ: 0000000000871759 [14:30:33]line ФД: 166756 [14:30:33]line ФПД: 244536628145622 [14:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143033&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166756&fm=244536628145622&tin=02508201610067®Number=0000000000091764&sum=60000 [14:30:33]written 0, free lines is 4095 [14:30:33]OFD Sender: Processing packet 166756 [packets to send 48, broken 47] [14:30:33]ProducePacketName [14:30:33]name=ofd_packets/00166756 [14:30:33]OFD Sender: To server: pG, [14:30:33]CommunicateWithHost lk.salyk.kg:30040 [14:30:33]ConnectInit lk.salyk.kg [14:30:33]Connected sock=11 [14:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 A4 07 01 33 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 89 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8B 02 00 35 04 06 00 DE 67 9E DA ED D6 BB BD 39 48 CA 13 D7 48 [14:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 83 2C 47 00 AA FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8B 02 00 F4 03 04 00 F0 AE 18 67 B6 04 01 00 00 D2 CE FF B9 9B 3F 61 37 [14:30:33]CommunicateWithHost err = 0 [14:30:33]CheckOFDResponse [14:30:33]1017 (14) - 77093643461234 [14:30:33]1041 (16) - 0000000000871759 [14:30:33]1040 (4) - 166756 [14:30:33]1012 (4) - 23.10.2024 08:08 [14:30:33]1206 (1) - 0 [14:30:33]OFD Sender: Remove packet 166756 [14:30:33]ProducePacketName [14:30:33]name=ofd_packets/00166756 [14:30:33]NVStorageDeleteData [14:30:33]Write to MH i2c: 01 00 00 C6 20 E6 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 C6 20 00 00 00 00 00 AA 0C A3 [14:30:33]RasterBufferAndPrint [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]written 0, free lines is 3248 [14:30:33]MH_Cut [14:30:33]Write to MH i2c: D1 01 00 CD 20 01 BF [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: D1 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: D1 01 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: D1 01 00 CD 20 00 BE [14:30:33]Write to MH i2c: 01 00 00 CE 20 EE [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:34]OFD Sender: No OFD packet to send [14:30:34]*** Cut start [14:30:34]*** Partial cut [14:30:34]*** CUTSNS_PIN = 1 [14:30:34]*** CUTSNS_PIN = 0 [14:30:35]*** Brake cut motor [14:30:35]Read from MH i2c: 01 [14:30:35]MH_I2C_Read... [14:30:35]*** Stop cut motor [14:30:35]*** Cut end [14:30:35]Read from MH i2c: 01 07 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 FF 0F 03 [14:30:35]process_action close_receipt done [14:30:35]requested_data is exist [14:30:35]produce_requested_data [14:30:35]requested_item fm.sn is exist - process it [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 11 00 00 [14:30:35]Write to MH i2c: E2 08 00 CF 20 80 11 00 00 00 00 00 00 69 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:35]Read from MH i2c: E2 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 17 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 17 00 CF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [14:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:30:35]wFMCommunicate OK [14:30:35]requested_item fd.num is exist - process it [14:30:35]SAM_PROTO_GetFieldsCounters [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 13 00 00 [14:30:35]Write to MH i2c: E2 08 00 D0 20 80 13 00 00 00 00 00 00 6C [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:35]Read from MH i2c: E2 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 62 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 62 00 D0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [14:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:35]wFMCommunicate OK [14:30:35]SAM_PROTO_GetFieldsCounters done [14:30:35]requested_item shift.num is exist - process it [14:30:35]requested_item shift.opened is exist - process it [14:30:35]req_shift_opened [14:30:35]FM_GetShiftState [14:30:35]SAM_PROTO_GetShiftState [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 13 01 00 [14:30:35]Write to MH i2c: E2 08 00 D1 20 80 13 01 00 00 00 00 00 6E [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:35]Read from MH i2c: E2 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 0E 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 0E 00 D1 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 39 [14:30:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:30:35]wFMCommunicate OK [14:30:35]SAM_PROTO_GetShiftState done [14:30:35]FM_GetShiftState done [14:30:35]req_shift_opened done [14:30:35]requested_item shift.open_date is exist - process it [14:30:35]req_shift_open_date [14:30:35]req_shift_open_date done [14:30:35]produce_requested_data done [14:30:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166756,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:30:35]process_action_free close_receipt [14:30:35]json_value_free [14:30:35]json_value_free done [14:30:35]process_json_proto returns [14:30:35]Send response to host [14:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166756,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:30:35]free response buf [14:30:35]execute_script done [14:30:35]execute_script returns [14:30:35]free content buf [14:30:35]Sock 9.Close socket [14:30:35]Sock 9.Thread stoped [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:41]accept exits with 8 [14:31:41]New connection [14:31:41]New thread 3067178340 created [14:31:41]Thread 3067034980 joined [14:31:41]Waiting for new connection... [14:31:41] Sock 8.Parse request [14:31:41]Sock 8.Check first char [14:31:41]Sock 8.First char is OK [14:31:41]request: POST /json_proto HTTP/1.0 [14:31:41]Method: POST [14:31:41]URL: /json_proto [14:31:41]Method is POST - this is cgi request [14:31:41]url: /json_proto [14:31:41]query_string will be loaded in cgi processing [14:31:41]execute_cgi json_proto POST (null) [14:31:41]execute_cgi path=json_proto method=POST [14:31:41]POST find Content-Length [14:31:41]Host: 172.17.53.195:8080 [14:31:41]Content-Length: 677 [14:31:41]Content-Type: application/json [14:31:41] [14:31:41]POST finish read [14:31:41]Found Content-Length = 677 [14:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:41]execute_script... [14:31: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)221342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:41]POST & json_proto [14:31:41]process_json_proto [14:31:41]json parsed OK: [14:31:41]protocol is kg_v1.0 [14:31:41]action value=close_receipt [14:31:41]process_action close_receipt [14:31:41]cmd_close_receipt [14:31:41]MH_GetDate [14:31:41]Write to MH i2c: F0 00 00 D2 20 E1 [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 09 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 09 00 D2 20 00 CE 08 19 67 21 48 4A 65 58 [14:31:41]GetLastDocTimeStamp 1729693833 [14:31:41]current date 1729693902 [14:31:41]FM_GetShiftState [14:31:41]SAM_PROTO_GetShiftState [14:31:41]wFMCommunicate request_size=4 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 13 01 00 [14:31:41]Write to MH i2c: E2 08 00 D3 20 80 13 01 00 00 00 00 00 70 [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:41]Read from MH i2c: E2 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 0E 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 0E 00 D3 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3B [14:31:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:31:41]wFMCommunicate OK [14:31:41]SAM_PROTO_GetShiftState done [14:31:41]FM_GetShiftState done [14:31:41]opened in 1729643772 [14:31:41]opened+sec_in_day 1729730172 [14:31:41]quantity*price = 50041 [14:31:41]sum+1 = 50042 [14:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 172 23.10.2024 14:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166757 ФПД: 199172068680301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143142&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166757&fm=199172068680301&tin=02508201610067®Number=0000000000091764&sum=50000 [14:31:42]StoreToDocumentArchive [14:31:42]shift 537 fd 166757 [14:31:42]save to /storage/0537/doc_00166757 [14:31:42]save last doc name /storage/0537/doc_00166757 to /storage/kkm_last_doc_name [14:31:42]save OK [14:31:42]Clear old archive folders... [14:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:42]tlvbuf is 01FDAB50 [14:31:42]SAM_PROTO_ClearQueue [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 09 00 00 [14:31:42]Write to MH i2c: E2 08 00 E0 20 80 09 00 00 00 00 00 00 72 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 E0 20 00 90 00 74 [14:31:42]RAPDU: 90 00 [14:31:42]wFMCommunicate OK [14:31:42]SAM_PROTO_ClearQueue done [14:31:42]KKMCreateOFDPacket [14:31:42]OFDProtocolAddRootSTLVToBuf [14:31:42]FM_MakeSignedData [14:31:42]FM_MakeSignedData [14:31:42]SAM_PROTO_SignData [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 0D 01 02 [14:31:42]Write to MH i2c: E2 08 00 E1 20 80 0D 01 02 00 00 00 00 7A [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 E1 20 00 90 00 75 [14:31:42]RAPDU: 90 00 [14:31:42]wFMCommunicate OK [14:31:42]wFMCommunicate request_size=255 [14:31:42]MH_SAM_APDU [14:31: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CE 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8B 02 00 35 04 06 00 B5 [14:31:42]Write to MH i2c: E2 02 01 E2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CE 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8B 02 00 35 04 06 00 B5 00 00 D4 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 E2 20 00 90 00 76 [14:31:42]RAPDU: 90 00 [14:31:42]wFMCommunicate OK [14:31:42]wFMCommunicate request_size=10 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 0D 02 02 05 25 5C 67 22 6D [14:31:42]Write to MH i2c: E2 0D 00 E3 20 80 0D 02 02 05 00 25 5C 67 22 6D 00 00 FE [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 E3 20 00 90 00 77 [14:31:42]RAPDU: 90 00 [14:31:42]wFMCommunicate OK [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 0D 03 02 [14:31:42]Write to MH i2c: E2 08 00 E4 20 80 0D 03 02 00 00 00 00 7F [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0B 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0B 00 E4 20 00 44 E2 5C DF C0 48 52 27 90 00 62 [14:31:42]RAPDU: 44 E2 5C DF C0 48 52 27 90 00 [14:31:42]wFMCommunicate OK [14:31:42]SAM_PROTO_SignData done [14:31:42]FM_MakeSignedData done [14:31:42]CreateOFDProtocolMessage [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 11 00 00 [14:31:42]Write to MH i2c: E2 08 00 E5 20 80 11 00 00 00 00 00 00 7F [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 17 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 17 00 E5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [14:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:31:42]wFMCommunicate OK [14:31:42]CreateOFDProtocolMessage done [14:31:42]OFDSenderStorePacket 166757 [14:31:42]StoreOFDPacket docnum=166757 [14:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 FE 07 01 11 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CE 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8B 02 00 35 04 06 00 B5 25 5C 67 22 6D 44 E2 5C DF C0 48 52 27 [14:31:42]CheckFolder [14:31:42]dirname=/storage/ofd_packets [14:31:42]CheckFolder done [14:31:42]ProducePacketName [14:31:42]name=ofd_packets/00166757 [14:31:42]NVStorageSaveData ofd_packets/00166757 [14:31:42]File name is /storage/ofd_packets/00166757 [14:31:42]Write 301 bytes [14:31:42]NVStorageSaveData done [14:31:42]OFDSenderStorePacket done [14:31:42]KKMCreateOFDPacket done [14:31:42]NVStorageSaveData kkm_last_timestamp [14:31:42]File name is /storage/kkm_last_timestamp [14:31:42]Write 4 bytes [14:31:42]NVStorageSaveData done [14:31:42]ExternCall_PrintAddStr [14:31:42]wPrintStart [14:31:42]Write to MH i2c: 01 00 00 E6 20 06 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 E6 20 00 00 00 00 00 FF 0F 1B [14:31:42]RasterBufferAndPrint [14:31:42]line Счет N : (1)221342 [14:31:42]line ИНН: 02508201610067 [14:31:42]line Контрольно-Кассовый Чек [14:31:42]line ПРОДАЖА [14:31:42]line ТРК (МРК, ГНК) : 13 [14:31:42]line Товар: 2710124130 [14:31:42]line Аи-92-К-5 [14:31:42]line 7.480 * 66.90 [14:31:42]line = 500.41 [14:31:42]line НДС 12% НСП 1% [14:31:42]line > о реализуемом товаре [14:31:42]line ОКРУГЛЕНИЕ: -0.41 [14:31:42]line ИТОГО: 500.00 [14:31:42]line Внесено: 500.00 [14:31:42]line СДАЧА: 0.00 [14:31:42]line НСП 1% : 4.43 [14:31:42]line НДС 12% : 53.14 [14:31:42]line Наличными: 500.00 [14:31:42]line Безнал.: 0.00 [14:31:42]line Место: АЗС № 161 "Партнер Нефть" [14:31:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:31:42]line СНО: Общий режим [14:31:42]line Чек 172 23.10.2024 14:31 [14:31:42]line Смена: 537 ФФД: 1.0 [14:31:42]line ЗНМ: 0300000104 [14:31:42]line РНМ: 0000000000091764 [14:31:42]line Версия ККМ: 001 [14:31:42]line ФМ: 0000000000871759 [14:31:42]line ФД: 166757 [14:31:42]line ФПД: 199172068680301 [14:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143142&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166757&fm=199172068680301&tin=02508201610067®Number=0000000000091764&sum=50000 [14:31:43]OFD Sender: Processing packet 166757 [packets to send 48, broken 47] [14:31:43]ProducePacketName [14:31:43]name=ofd_packets/00166757 [14:31:43]OFD Sender: To server: pG, [14:31:43]CommunicateWithHost lk.salyk.kg:30040 [14:31:43]ConnectInit lk.salyk.kg [14:31:43]written 0, free lines is 4095 [14:31:43]Connected sock=10 [14:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 FE 07 01 11 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CE 08 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8B 02 00 35 04 06 00 B5 25 5C 67 22 6D 44 E2 5C DF C0 48 52 27 [14:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 F5 47 00 B7 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8B 02 00 F4 03 04 00 35 AF 18 67 B6 04 01 00 00 47 E3 D5 F1 5B EC F2 5A [14:31:43]CommunicateWithHost err = 0 [14:31:43]CheckOFDResponse [14:31:43]1017 (14) - 77093643461234 [14:31:43]1041 (16) - 0000000000871759 [14:31:43]1040 (4) - 166757 [14:31:43]1012 (4) - 23.10.2024 08:09 [14:31:43]1206 (1) - 0 [14:31:43]OFD Sender: Remove packet 166757 [14:31:43]ProducePacketName [14:31:43]name=ofd_packets/00166757 [14:31:43]NVStorageDeleteData [14:31:43]Write to MH i2c: 01 00 00 11 21 32 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 07 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 AD 0C F2 [14:31:43]RasterBufferAndPrint [14:31:43]line [14:31:43]line [14:31:43]line [14:31:43]line [14:31:43]line [14:31:43]written 0, free lines is 3251 [14:31:43]MH_Cut [14:31:43]Write to MH i2c: D1 01 00 18 21 01 0B [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: D1 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: D1 01 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: D1 01 00 18 21 00 0A [14:31:43]Write to MH i2c: 01 00 00 19 21 3A [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]OFD Sender: No OFD packet to send [14:31:44]*** Cut start [14:31:44]*** Partial cut [14:31:44]*** CUTSNS_PIN = 1 [14:31:44]*** CUTSNS_PIN = 0 [14:31:44]*** Brake cut motor [14:31:44]Read from MH i2c: 01 [14:31:45]MH_I2C_Read... [14:31:45]*** Stop cut motor [14:31:45]*** Cut end [14:31:45]Read from MH i2c: 01 07 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 FF 0F 4F [14:31:45]process_action close_receipt done [14:31:45]requested_data is exist [14:31:45]produce_requested_data [14:31:45]requested_item fm.sn is exist - process it [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 11 00 00 [14:31:45]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 17 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [14:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:31:45]wFMCommunicate OK [14:31:45]requested_item fd.num is exist - process it [14:31:45]SAM_PROTO_GetFieldsCounters [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 13 00 00 [14:31:45]Write to MH i2c: E2 08 00 1B 21 80 13 00 00 00 00 00 00 B8 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 62 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 62 00 1B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [14:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:45]wFMCommunicate OK [14:31:45]SAM_PROTO_GetFieldsCounters done [14:31:45]requested_item shift.num is exist - process it [14:31:45]requested_item shift.opened is exist - process it [14:31:45]req_shift_opened [14:31:45]FM_GetShiftState [14:31:45]SAM_PROTO_GetShiftState [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 13 01 00 [14:31:45]Write to MH i2c: E2 08 00 1C 21 80 13 01 00 00 00 00 00 BA [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 1C 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 85 [14:31:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:31:45]wFMCommunicate OK [14:31:45]SAM_PROTO_GetShiftState done [14:31:45]FM_GetShiftState done [14:31:45]req_shift_opened done [14:31:45]requested_item shift.open_date is exist - process it [14:31:45]req_shift_open_date [14:31:45]req_shift_open_date done [14:31:45]produce_requested_data done [14:31:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166757,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:31:45]process_action_free close_receipt [14:31:45]json_value_free [14:31:45]json_value_free done [14:31:45]process_json_proto returns [14:31:45]Send response to host [14:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166757,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:31:45]free response buf [14:31:45]execute_script done [14:31:45]execute_script returns [14:31:45]free content buf [14:31:45]Sock 8.Close socket [14:31:45]Sock 8.Thread stoped [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:04]accept exits with 9 [14:33:04]New connection [14:33:04]New thread 3067034980 created [14:33:04]Thread 3067178340 joined [14:33:04]Waiting for new connection... [14:33:04] Sock 9.Parse request [14:33:04]Sock 9.Check first char [14:33:04]Sock 9.First char is OK [14:33:04]request: POST /json_proto HTTP/1.0 [14:33:04]Method: POST [14:33:04]URL: /json_proto [14:33:04]Method is POST - this is cgi request [14:33:04]url: /json_proto [14:33:04]query_string will be loaded in cgi processing [14:33:04]execute_cgi json_proto POST (null) [14:33:04]execute_cgi path=json_proto method=POST [14:33:04]POST find Content-Length [14:33:04]Host: 172.17.53.195:8080 [14:33:04]Content-Length: 789 [14:33:04]Content-Type: application/json [14:33:04] [14:33:04]POST finish read [14:33:04]Found Content-Length = 789 [14:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:04]execute_script... [14:33: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)221343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:04]POST & json_proto [14:33:04]process_json_proto [14:33:04]json parsed OK: [14:33:04]protocol is kg_v1.0 [14:33:04]action value=close_receipt [14:33:04]process_action close_receipt [14:33:04]cmd_close_receipt [14:33:04]MH_GetDate [14:33:04]Write to MH i2c: F0 00 00 1D 21 2D [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 09 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: F0 09 00 1D 21 00 21 09 19 67 21 48 4A 65 F8 [14:33:04]GetLastDocTimeStamp 1729693902 [14:33:04]current date 1729693985 [14:33:04]FM_GetShiftState [14:33:04]SAM_PROTO_GetShiftState [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 13 01 00 [14:33:04]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 87 [14:33:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_GetShiftState done [14:33:04]FM_GetShiftState done [14:33:04]opened in 1729643772 [14:33:04]opened+sec_in_day 1729730172 [14:33:04]quantity*price = 0 [14:33:04]sum+1 = 1 [14:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 173 23.10.2024 14:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 53628 ФМ: 0000000000871759 ФД: 166758 ФПД: 74218450123248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166758&fm=74218450123248&tin=02508201610067®Number=0000000000091764&sum=0 [14:33:05]StoreToDocumentArchive [14:33:05]shift 537 fd 166758 [14:33:05]save to /storage/0537/doc_00166758 [14:33:05]save last doc name /storage/0537/doc_00166758 to /storage/kkm_last_doc_name [14:33:05]save OK [14:33:05]Clear old archive folders... [14:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:05]tlvbuf is 01FDA280 [14:33:05]SAM_PROTO_ClearQueue [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 09 00 00 [14:33:05]Write to MH i2c: E2 08 00 2B 21 80 09 00 00 00 00 00 00 BE [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]SAM_PROTO_ClearQueue done [14:33:05]KKMCreateOFDPacket [14:33:05]OFDProtocolAddRootSTLVToBuf [14:33:05]FM_MakeSignedData [14:33:05]FM_MakeSignedData [14:33:05]SAM_PROTO_SignData [14:33:05]wFMCommunicate request_size=4 [14:33:05]MH_SAM_APDU [14:33:05]CAPDU: 80 0D 01 02 [14:33:05]Write to MH i2c: E2 08 00 2C 21 80 0D 01 02 00 00 00 00 C6 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [14:33:05]RAPDU: 90 00 [14:33:05]wFMCommunicate OK [14:33:05]wFMCommunicate request_size=255 [14:33:05]MH_SAM_APDU [14:33: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 22 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8B 02 00 35 04 06 00 43 80 54 5A [14:33:05]Write to MH i2c: E2 02 01 2D 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 22 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8B 02 00 35 04 06 00 43 80 54 5A 00 00 F1 [14:33:05]Write i2c OK [14:33:05]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 03 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [14:33:06]RAPDU: 90 00 [14:33:06]wFMCommunicate OK [14:33:06]wFMCommunicate request_size=7 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 0D 02 02 02 F9 F0 [14:33:06]Write to MH i2c: E2 0A 00 2E 21 80 0D 02 02 02 00 F9 F0 00 00 B6 [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 03 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [14:33:06]RAPDU: 90 00 [14:33:06]wFMCommunicate OK [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 0D 03 02 [14:33:06]Write to MH i2c: E2 08 00 2F 21 80 0D 03 02 00 00 00 00 CB [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0B 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 0B 00 2F 21 00 4E 21 4C 46 12 D6 EC E0 90 00 81 [14:33:06]RAPDU: 4E 21 4C 46 12 D6 EC E0 90 00 [14:33:06]wFMCommunicate OK [14:33:06]SAM_PROTO_SignData done [14:33:06]FM_MakeSignedData done [14:33:06]CreateOFDProtocolMessage [14:33:06]wFMCommunicate request_size=4 [14:33:06]MH_SAM_APDU [14:33:06]CAPDU: 80 11 00 00 [14:33:06]Write to MH i2c: E2 08 00 30 21 80 11 00 00 00 00 00 00 CB [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:06]Read from MH i2c: E2 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 17 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: E2 17 00 30 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [14:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:33:06]wFMCommunicate OK [14:33:06]CreateOFDProtocolMessage done [14:33:06]OFDSenderStorePacket 166758 [14:33:06]StoreOFDPacket docnum=166758 [14:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EB 42 04 01 CC 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 22 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8B 02 00 35 04 06 00 43 80 54 5A F9 F0 4E 21 4C 46 12 D6 EC E0 [14:33:06]CheckFolder [14:33:06]dirname=/storage/ofd_packets [14:33:06]CheckFolder done [14:33:06]ProducePacketName [14:33:06]name=ofd_packets/00166758 [14:33:06]NVStorageSaveData ofd_packets/00166758 [14:33:06]File name is /storage/ofd_packets/00166758 [14:33:06]Write 298 bytes [14:33:06]NVStorageSaveData done [14:33:06]OFDSenderStorePacket done [14:33:06]KKMCreateOFDPacket done [14:33:06]NVStorageSaveData kkm_last_timestamp [14:33:06]File name is /storage/kkm_last_timestamp [14:33:06]Write 4 bytes [14:33:06]NVStorageSaveData done [14:33:06]ExternCall_PrintAddStr [14:33:06]wPrintStart [14:33:06]Write to MH i2c: 01 00 00 31 21 52 [14:33:06]Write i2c OK [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 07 00 [14:33:06]MH_I2C_Read... [14:33:06]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 FF 0F 67 [14:33:06]RasterBufferAndPrint [14:33:06]line Счет N : (1)221343 [14:33:06]line ИНН: 02508201610067 [14:33:06]line Контрольно-Кассовый Чек [14:33:06]line ПРОДАЖА [14:33:06]line ТРК (МРК, ГНК) : 41 [14:33:06]line Товар: 2710194210 [14:33:06]line ДТ-К-5 [14:33:06]line 26.250 * 0.00 [14:33:06]line = 0.00 [14:33:06]line НДС 12% НСП 1% [14:33:06]line > о реализуемом товаре [14:33:06]line ИТОГО: 0.00 [14:33:06]line НСП 1% : 0.00 [14:33:06]line НДС 12% : 0.00 [14:33:06]line Наличными: 0.00 [14:33:06]line Безнал.: 0.00 [14:33:06]line Место: АЗС № 161 "Партнер Нефть" [14:33:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:33:06]line СНО: Общий режим [14:33:06]line Чек 173 23.10.2024 14:33 [14:33:06]line Смена: 537 ФФД: 1.0 [14:33:06]line ЗНМ: 0300000104 [14:33:06]line РНМ: 0000000000091764 [14:33:06]line Версия ККМ: 001 [14:33:06]line Талоны: Топливная Карта [14:33:06]line 53628 [14:33:06]line ФМ: 0000000000871759 [14:33:06]line ФД: 166758 [14:33:06]line ФПД: 74218450123248 [14:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166758&fm=74218450123248&tin=02508201610067®Number=0000000000091764&sum=0 [14:33:06]OFD Sender: Processing packet 166758 [packets to send 48, broken 47] [14:33:06]ProducePacketName [14:33:06]name=ofd_packets/00166758 [14:33:06]OFD Sender: To server: pG, [14:33:06]CommunicateWithHost lk.salyk.kg:30040 [14:33:06]ConnectInit lk.salyk.kg [14:33:06]written 0, free lines is 4095 [14:33:06]Connected sock=10 [14:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EB 42 04 01 CC 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 22 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8B 02 00 35 04 06 00 43 80 54 5A F9 F0 4E 21 4C 46 12 D6 EC E0 [14:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 0E 47 00 E3 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8B 02 00 F4 03 04 00 89 AF 18 67 B6 04 01 00 00 0F 2C 09 31 79 70 79 89 [14:33:06]CommunicateWithHost err = 0 [14:33:06]CheckOFDResponse [14:33:06]1017 (14) - 77093643461234 [14:33:06]1041 (16) - 0000000000871759 [14:33:06]1040 (4) - 166758 [14:33:06]1012 (4) - 23.10.2024 08:10 [14:33:06]1206 (1) - 0 [14:33:06]OFD Sender: Remove packet 166758 [14:33:06]ProducePacketName [14:33:06]name=ofd_packets/00166758 [14:33:06]NVStorageDeleteData [14:33:07]Write to MH i2c: 01 00 00 5B 21 7C [14:33:07]Write i2c OK [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: 01 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: 01 07 00 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: 01 07 00 5B 21 00 00 00 00 00 C6 0C 55 [14:33:07]RasterBufferAndPrint [14:33:07]line [14:33:07]line [14:33:07]line [14:33:07]line [14:33:07]line [14:33:07]written 0, free lines is 3277 [14:33:07]MH_Cut [14:33:07]Write to MH i2c: D1 01 00 62 21 01 55 [14:33:07]Write i2c OK [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: D1 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: D1 01 00 [14:33:07]MH_I2C_Read... [14:33:07]Read from MH i2c: D1 01 00 62 21 00 54 [14:33:07]Write to MH i2c: 01 00 00 63 21 84 [14:33:07]Write i2c OK [14:33:07]MH_I2C_Read... [14:33:07]OFD Sender: No OFD packet to send [14:33:07]*** Cut start [14:33:07]*** Partial cut [14:33:07]*** CUTSNS_PIN = 1 [14:33:07]*** CUTSNS_PIN = 0 [14:33:08]*** Brake cut motor [14:33:08]Read from MH i2c: 01 [14:33:08]MH_I2C_Read... [14:33:08]*** Stop cut motor [14:33:08]*** Cut end [14:33:08]Read from MH i2c: 01 07 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: 01 07 00 63 21 00 00 00 00 00 FF 0F 99 [14:33:08]process_action close_receipt done [14:33:08]requested_data is exist [14:33:08]produce_requested_data [14:33:08]requested_item fm.sn is exist - process it [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 11 00 00 [14:33:08]Write to MH i2c: E2 08 00 64 21 80 11 00 00 00 00 00 00 FF [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 17 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 17 00 64 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [14:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:33:08]wFMCommunicate OK [14:33:08]requested_item fd.num is exist - process it [14:33:08]SAM_PROTO_GetFieldsCounters [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 13 00 00 [14:33:08]Write to MH i2c: E2 08 00 65 21 80 13 00 00 00 00 00 00 02 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 62 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 62 00 65 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [14:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:08]wFMCommunicate OK [14:33:08]SAM_PROTO_GetFieldsCounters done [14:33:08]requested_item shift.num is exist - process it [14:33:08]requested_item shift.opened is exist - process it [14:33:08]req_shift_opened [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 66 21 80 13 01 00 00 00 00 00 04 [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 66 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CF [14:33:08]RAPDU: 09 00 01 FC 44 18 67 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]req_shift_opened done [14:33:08]requested_item shift.open_date is exist - process it [14:33:08]req_shift_open_date [14:33:08]req_shift_open_date done [14:33:08]produce_requested_data done [14:33:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166758,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:33:08]process_action_free close_receipt [14:33:08]json_value_free [14:33:08]json_value_free done [14:33:08]process_json_proto returns [14:33:08]Send response to host [14:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166758,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:33:08]free response buf [14:33:08]execute_script done [14:33:08]execute_script returns [14:33:08]free content buf [14:33:08]Sock 9.Close socket [14:33:08]Sock 9.Thread stoped [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]accept exits with 8 [14:33:57]New connection [14:33:57]New thread 3067178340 created [14:33:57]Thread 3067034980 joined [14:33:57]Waiting for new connection... [14:33:57] Sock 8.Parse request [14:33:57]Sock 8.Check first char [14:33:57]Sock 8.First char is OK [14:33:57]request: POST /json_proto HTTP/1.0 [14:33:57]Method: POST [14:33:57]URL: /json_proto [14:33:57]Method is POST - this is cgi request [14:33:57]url: /json_proto [14:33:57]query_string will be loaded in cgi processing [14:33:57]execute_cgi json_proto POST (null) [14:33:57]execute_cgi path=json_proto method=POST [14:33:57]POST find Content-Length [14:33:57]Host: 172.17.53.195:8080 [14:33:57]Content-Length: 789 [14:33:57]Content-Type: application/json [14:33:57] [14:33:57]POST finish read [14:33:57]Found Content-Length = 789 [14:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:57]execute_script... [14:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:57]POST & json_proto [14:33:57]process_json_proto [14:33:57]json parsed OK: [14:33:57]protocol is kg_v1.0 [14:33:57]action value=close_receipt [14:33:57]process_action close_receipt [14:33:57]cmd_close_receipt [14:33:57]MH_GetDate [14:33:57]Write to MH i2c: F0 00 00 67 21 77 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 09 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 09 00 67 21 00 56 09 19 67 21 48 4A 65 77 [14:33:57]GetLastDocTimeStamp 1729693986 [14:33:57]current date 1729694038 [14:33:57]FM_GetShiftState [14:33:57]SAM_PROTO_GetShiftState [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 13 01 00 [14:33:57]Write to MH i2c: E2 08 00 68 21 80 13 01 00 00 00 00 00 06 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0E 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0E 00 68 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D1 [14:33:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_GetShiftState done [14:33:57]FM_GetShiftState done [14:33:57]opened in 1729643772 [14:33:57]opened+sec_in_day 1729730172 [14:33:57]quantity*price = 0 [14:33:57]sum+1 = 1 [14:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 174 23.10.2024 14:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 00933 ФМ: 0000000000871759 ФД: 166759 ФПД: 235113820864578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166759&fm=235113820864578&tin=02508201610067®Number=0000000000091764&sum=0 [14:33:58]StoreToDocumentArchive [14:33:58]shift 537 fd 166759 [14:33:58]save to /storage/0537/doc_00166759 [14:33:58]save last doc name /storage/0537/doc_00166759 to /storage/kkm_last_doc_name [14:33:58]save OK [14:33:58]Clear old archive folders... [14:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:58]tlvbuf is 02024400 [14:33:58]SAM_PROTO_ClearQueue [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 09 00 00 [14:33:58]Write to MH i2c: E2 08 00 75 21 80 09 00 00 00 00 00 00 08 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 75 21 00 90 00 0A [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_ClearQueue done [14:33:58]KKMCreateOFDPacket [14:33:58]OFDProtocolAddRootSTLVToBuf [14:33:58]FM_MakeSignedData [14:33:58]FM_MakeSignedData [14:33:58]SAM_PROTO_SignData [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 01 02 [14:33:58]Write to MH i2c: E2 08 00 76 21 80 0D 01 02 00 00 00 00 10 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=255 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 56 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8B 02 00 35 04 06 00 D5 D5 B3 C6 [14:33:58]Write to MH i2c: E2 02 01 77 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 56 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8B 02 00 35 04 06 00 D5 D5 B3 C6 00 00 23 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=7 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 02 02 02 40 42 [14:33:58]Write to MH i2c: E2 0A 00 78 21 80 0D 02 02 02 00 40 42 00 00 99 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 78 21 00 90 00 0D [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 03 02 [14:33:58]Write to MH i2c: E2 08 00 79 21 80 0D 03 02 00 00 00 00 15 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 79 21 00 FE E9 05 09 22 7C AF 1F 90 00 77 [14:33:58]RAPDU: FE E9 05 09 22 7C AF 1F 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_SignData done [14:33:58]FM_MakeSignedData done [14:33:58]CreateOFDProtocolMessage [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 11 00 00 [14:33:58]Write to MH i2c: E2 08 00 7A 21 80 11 00 00 00 00 00 00 15 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 7A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [14:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:33:58]wFMCommunicate OK [14:33:58]CreateOFDProtocolMessage done [14:33:58]OFDSenderStorePacket 166759 [14:33:58]StoreOFDPacket docnum=166759 [14:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 99 D1 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 56 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8B 02 00 35 04 06 00 D5 D5 B3 C6 40 42 FE E9 05 09 22 7C AF 1F [14:33:58]CheckFolder [14:33:58]dirname=/storage/ofd_packets [14:33:58]CheckFolder done [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00166759 [14:33:58]NVStorageSaveData ofd_packets/00166759 [14:33:58]File name is /storage/ofd_packets/00166759 [14:33:58]Write 298 bytes [14:33:58]NVStorageSaveData done [14:33:58]OFDSenderStorePacket done [14:33:58]KKMCreateOFDPacket done [14:33:58]NVStorageSaveData kkm_last_timestamp [14:33:58]File name is /storage/kkm_last_timestamp [14:33:58]Write 4 bytes [14:33:58]NVStorageSaveData done [14:33:58]ExternCall_PrintAddStr [14:33:58]wPrintStart [14:33:58]Write to MH i2c: 01 00 00 7B 21 9C [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 7B 21 00 00 00 00 00 FF 0F B1 [14:33:58]RasterBufferAndPrint [14:33:58]line Счет N : (1)221344 [14:33:58]line ИНН: 02508201610067 [14:33:58]line Контрольно-Кассовый Чек [14:33:58]line ПРОДАЖА [14:33:58]line ТРК (МРК, ГНК) : 31 [14:33:58]line Товар: 2710194210 [14:33:58]line ДТ-К-5 [14:33:58]line 26.250 * 0.00 [14:33:58]line = 0.00 [14:33:58]line НДС 12% НСП 1% [14:33:58]line > о реализуемом товаре [14:33:58]line ИТОГО: 0.00 [14:33:58]line НСП 1% : 0.00 [14:33:58]line НДС 12% : 0.00 [14:33:58]line Наличными: 0.00 [14:33:58]line Безнал.: 0.00 [14:33:58]line Место: АЗС № 161 "Партнер Нефть" [14:33:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:33:58]line СНО: Общий режим [14:33:58]line Чек 174 23.10.2024 14:33 [14:33:58]line Смена: 537 ФФД: 1.0 [14:33:58]line ЗНМ: 0300000104 [14:33:58]line РНМ: 0000000000091764 [14:33:58]line Версия ККМ: 001 [14:33:58]line Талоны: Топливная Карта [14:33:58]line 00933 [14:33:58]line ФМ: 0000000000871759 [14:33:58]line ФД: 166759 [14:33:58]line ФПД: 235113820864578 [14:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166759&fm=235113820864578&tin=02508201610067®Number=0000000000091764&sum=0 [14:33:58]written 0, free lines is 4095 [14:33:59]OFD Sender: Processing packet 166759 [packets to send 48, broken 47] [14:33:59]ProducePacketName [14:33:59]name=ofd_packets/00166759 [14:33:59]OFD Sender: To server: pG, [14:33:59]CommunicateWithHost lk.salyk.kg:30040 [14:33:59]ConnectInit lk.salyk.kg [14:33:59]Write to MH i2c: 01 00 00 A5 21 C6 [14:33:59]Connected sock=10 [14:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 99 D1 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 56 09 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8B 02 00 35 04 06 00 D5 D5 B3 C6 40 42 FE E9 05 09 22 7C AF 1F [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 A5 21 00 00 00 00 00 BA 0C 93 [14:33:59]RasterBufferAndPrint [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]written 0, free lines is 3289 [14:33:59]MH_Cut [14:33:59]Write to MH i2c: D1 01 00 AC 21 01 9F [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 AC 21 00 9E [14:33:59]Write to MH i2c: 01 00 00 AD 21 CE [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 05 47 00 3B 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8B 02 00 F4 03 04 00 BE AF 18 67 B6 04 01 00 00 0F 02 7C 35 59 DB B0 28 [14:33:59]CommunicateWithHost err = 0 [14:33:59]CheckOFDResponse [14:33:59]1017 (14) - 77093643461234 [14:33:59]1041 (16) - 0000000000871759 [14:33:59]1040 (4) - 166759 [14:33:59]1012 (4) - 23.10.2024 08:11 [14:33:59]1206 (1) - 0 [14:33:59]OFD Sender: Remove packet 166759 [14:33:59]ProducePacketName [14:33:59]name=ofd_packets/00166759 [14:33:59]NVStorageDeleteData [14:34:00]OFD Sender: No OFD packet to send [14:34:00]*** Cut start [14:34:00]*** Partial cut [14:34:00]*** CUTSNS_PIN = 1 [14:34:00]*** CUTSNS_PIN = 0 [14:34:00]*** Brake cut motor [14:34:00]Read from MH i2c: 01 [14:34:00]MH_I2C_Read... [14:34:00]*** Stop cut motor [14:34:00]*** Cut end [14:34:00]Read from MH i2c: 01 07 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FF 0F E3 [14:34:00]process_action close_receipt done [14:34:00]requested_data is exist [14:34:00]produce_requested_data [14:34:00]requested_item fm.sn is exist - process it [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 11 00 00 [14:34:00]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:00]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 17 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 17 00 AE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [14:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:34:00]wFMCommunicate OK [14:34:00]requested_item fd.num is exist - process it [14:34:00]SAM_PROTO_GetFieldsCounters [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 13 00 00 [14:34:00]Write to MH i2c: E2 08 00 AF 21 80 13 00 00 00 00 00 00 4C [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 62 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 62 00 AF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_GetFieldsCounters done [14:34:01]requested_item shift.num is exist - process it [14:34:01]requested_item shift.opened is exist - process it [14:34:01]req_shift_opened [14:34:01]FM_GetShiftState [14:34:01]SAM_PROTO_GetShiftState [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 13 01 00 [14:34:01]Write to MH i2c: E2 08 00 B0 21 80 13 01 00 00 00 00 00 4E [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0E 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0E 00 B0 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 19 [14:34:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_GetShiftState done [14:34:01]FM_GetShiftState done [14:34:01]req_shift_opened done [14:34:01]requested_item shift.open_date is exist - process it [14:34:01]req_shift_open_date [14:34:01]req_shift_open_date done [14:34:01]produce_requested_data done [14:34:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166759,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:34:01]process_action_free close_receipt [14:34:01]json_value_free [14:34:01]json_value_free done [14:34:01]process_json_proto returns [14:34:01]Send response to host [14:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166759,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:34:01]free response buf [14:34:01]execute_script done [14:34:01]execute_script returns [14:34:01]free content buf [14:34:01]Sock 8.Close socket [14:34:01]Sock 8.Thread stoped [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]accept exits with 9 [14:37:20]New connection [14:37:20]New thread 3067034980 created [14:37:20]Thread 3067178340 joined [14:37:20]Waiting for new connection... [14:37:20] Sock 9.Parse request [14:37:20]Sock 9.Check first char [14:37:20]Sock 9.First char is OK [14:37:20]request: POST /json_proto HTTP/1.0 [14:37:20]Method: POST [14:37:20]URL: /json_proto [14:37:20]Method is POST - this is cgi request [14:37:20]url: /json_proto [14:37:20]query_string will be loaded in cgi processing [14:37:20]execute_cgi json_proto POST (null) [14:37:20]execute_cgi path=json_proto method=POST [14:37:20]POST find Content-Length [14:37:20]Host: 172.17.53.195:8080 [14:37:20]Content-Length: 677 [14:37:20]Content-Type: application/json [14:37:20] [14:37:20]POST finish read [14:37:20]Found Content-Length = 677 [14:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:20]execute_script... [14:37: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)221345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:20]POST & json_proto [14:37:20]process_json_proto [14:37:20]json parsed OK: [14:37:20]protocol is kg_v1.0 [14:37:20]action value=close_receipt [14:37:20]process_action close_receipt [14:37:20]cmd_close_receipt [14:37:20]MH_GetDate [14:37:20]Write to MH i2c: F0 00 00 B1 21 C1 [14:37:20]Write i2c OK [14:37:20]MH_I2C_Read... [14:37:20]Read from MH i2c: F0 [14:37:20]MH_I2C_Read... [14:37:20]Read from MH i2c: F0 09 00 [14:37:20]MH_I2C_Read... [14:37:20]Read from MH i2c: F0 09 00 B1 21 00 21 0A 19 67 21 48 4A 65 8D [14:37:20]GetLastDocTimeStamp 1729694038 [14:37:20]current date 1729694241 [14:37:20]FM_GetShiftState [14:37:20]SAM_PROTO_GetShiftState [14:37:20]wFMCommunicate request_size=4 [14:37:20]MH_SAM_APDU [14:37:20]CAPDU: 80 13 01 00 [14:37:20]Write to MH i2c: E2 08 00 B2 21 80 13 01 00 00 00 00 00 50 [14:37:20]Write i2c OK [14:37:20]MH_I2C_Read... [14:37:20]OFD Sender: No OFD packet to send [14:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:20]Read from MH i2c: E2 [14:37:20]MH_I2C_Read... [14:37:20]Read from MH i2c: E2 0E 00 [14:37:20]MH_I2C_Read... [14:37:20]Read from MH i2c: E2 0E 00 B2 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1B [14:37:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:37:20]wFMCommunicate OK [14:37:20]SAM_PROTO_GetShiftState done [14:37:20]FM_GetShiftState done [14:37:20]opened in 1729643772 [14:37:20]opened+sec_in_day 1729730172 [14:37:20]quantity*price = 40006 [14:37:20]sum+1 = 40007 [14:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 175 23.10.2024 14:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166760 ФПД: 258281905767829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166760&fm=258281905767829&tin=02508201610067®Number=0000000000091764&sum=40000 [14:37:21]StoreToDocumentArchive [14:37:21]shift 537 fd 166760 [14:37:21]save to /storage/0537/doc_00166760 [14:37:21]save last doc name /storage/0537/doc_00166760 to /storage/kkm_last_doc_name [14:37:21]save OK [14:37:21]Clear old archive folders... [14:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:21]tlvbuf is 01FE1090 [14:37:21]SAM_PROTO_ClearQueue [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 09 00 00 [14:37:21]Write to MH i2c: E2 08 00 BF 21 80 09 00 00 00 00 00 00 52 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 BF 21 00 90 00 54 [14:37:21]RAPDU: 90 00 [14:37:21]wFMCommunicate OK [14:37:21]SAM_PROTO_ClearQueue done [14:37:21]KKMCreateOFDPacket [14:37:21]OFDProtocolAddRootSTLVToBuf [14:37:21]FM_MakeSignedData [14:37:21]FM_MakeSignedData [14:37:21]SAM_PROTO_SignData [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 0D 01 02 [14:37:21]Write to MH i2c: E2 08 00 C0 21 80 0D 01 02 00 00 00 00 5A [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 C0 21 00 90 00 55 [14:37:21]RAPDU: 90 00 [14:37:21]wFMCommunicate OK [14:37:21]wFMCommunicate request_size=255 [14:37:21]MH_SAM_APDU [14:37: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 21 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8B 02 00 35 04 06 00 EA [14:37:21]Write to MH i2c: E2 02 01 C1 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 21 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8B 02 00 35 04 06 00 EA 00 00 13 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 C1 21 00 90 00 56 [14:37:21]RAPDU: 90 00 [14:37:21]wFMCommunicate OK [14:37:21]wFMCommunicate request_size=10 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 0D 02 02 05 E7 F1 3E C5 95 [14:37:21]Write to MH i2c: E2 0D 00 C2 21 80 0D 02 02 05 00 E7 F1 3E C5 95 00 00 D7 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [14:37:21]RAPDU: 90 00 [14:37:21]wFMCommunicate OK [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 0D 03 02 [14:37:21]Write to MH i2c: E2 08 00 C3 21 80 0D 03 02 00 00 00 00 5F [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 0B 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 0B 00 C3 21 00 3C 01 10 A9 53 27 AD F7 90 00 74 [14:37:21]RAPDU: 3C 01 10 A9 53 27 AD F7 90 00 [14:37:21]wFMCommunicate OK [14:37:21]SAM_PROTO_SignData done [14:37:21]FM_MakeSignedData done [14:37:21]CreateOFDProtocolMessage [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 11 00 00 [14:37:21]Write to MH i2c: E2 08 00 C4 21 80 11 00 00 00 00 00 00 5F [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:22]Read from MH i2c: E2 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: E2 17 00 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: E2 17 00 C4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [14:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:37:22]wFMCommunicate OK [14:37:22]CreateOFDProtocolMessage done [14:37:22]OFDSenderStorePacket 166760 [14:37:22]StoreOFDPacket docnum=166760 [14:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 D7 07 01 5D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 21 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8B 02 00 35 04 06 00 EA E7 F1 3E C5 95 3C 01 10 A9 53 27 AD F7 [14:37:22]CheckFolder [14:37:22]dirname=/storage/ofd_packets [14:37:22]CheckFolder done [14:37:22]ProducePacketName [14:37:22]name=ofd_packets/00166760 [14:37:22]NVStorageSaveData ofd_packets/00166760 [14:37:22]File name is /storage/ofd_packets/00166760 [14:37:22]Write 301 bytes [14:37:22]NVStorageSaveData done [14:37:22]OFDSenderStorePacket done [14:37:22]KKMCreateOFDPacket done [14:37:22]NVStorageSaveData kkm_last_timestamp [14:37:22]File name is /storage/kkm_last_timestamp [14:37:22]Write 4 bytes [14:37:22]NVStorageSaveData done [14:37:22]ExternCall_PrintAddStr [14:37:22]wPrintStart [14:37:22]Write to MH i2c: 01 00 00 C5 21 E6 [14:37:22]Write i2c OK [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 07 00 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 FF 0F FB [14:37:22]RasterBufferAndPrint [14:37:22]line Счет N : (1)221345 [14:37:22]line ИНН: 02508201610067 [14:37:22]line Контрольно-Кассовый Чек [14:37:22]line ПРОДАЖА [14:37:22]line ТРК (МРК, ГНК) : 13 [14:37:22]line Товар: 2710124130 [14:37:22]line Аи-92-К-5 [14:37:22]line 5.980 * 66.90 [14:37:22]line = 400.06 [14:37:22]line НДС 12% НСП 1% [14:37:22]line > о реализуемом товаре [14:37:22]line ОКРУГЛЕНИЕ: -0.06 [14:37:22]line ИТОГО: 400.00 [14:37:22]line Внесено: 400.00 [14:37:22]line СДАЧА: 0.00 [14:37:22]line НСП 1% : 3.54 [14:37:22]line НДС 12% : 42.48 [14:37:22]line Наличными: 400.00 [14:37:22]line Безнал.: 0.00 [14:37:22]line Место: АЗС № 161 "Партнер Нефть" [14:37:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:37:22]line СНО: Общий режим [14:37:22]line Чек 175 23.10.2024 14:37 [14:37:22]line Смена: 537 ФФД: 1.0 [14:37:22]line ЗНМ: 0300000104 [14:37:22]line РНМ: 0000000000091764 [14:37:22]line Версия ККМ: 001 [14:37:22]line ФМ: 0000000000871759 [14:37:22]line ФД: 166760 [14:37:22]line ФПД: 258281905767829 [14:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166760&fm=258281905767829&tin=02508201610067®Number=0000000000091764&sum=40000 [14:37:22]OFD Sender: Processing packet 166760 [packets to send 48, broken 47] [14:37:22]ProducePacketName [14:37:22]name=ofd_packets/00166760 [14:37:22]OFD Sender: To server: pG, [14:37:22]CommunicateWithHost lk.salyk.kg:30040 [14:37:22]ConnectInit lk.salyk.kg [14:37:22]written 0, free lines is 4095 [14:37:22]Connected sock=10 [14:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 D7 07 01 5D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 21 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8B 02 00 35 04 06 00 EA E7 F1 3E C5 95 3C 01 10 A9 53 27 AD F7 [14:37:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 53 1E 47 00 ED 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8B 02 00 F4 03 04 00 89 B0 18 67 B6 04 01 00 00 D4 B5 A6 6D 32 36 CB 74 [14:37:22]CommunicateWithHost err = 0 [14:37:22]CheckOFDResponse [14:37:22]1017 (14) - 77093643461234 [14:37:22]1041 (16) - 0000000000871759 [14:37:22]1040 (4) - 166760 [14:37:22]1012 (4) - 23.10.2024 08:15 [14:37:22]1206 (1) - 0 [14:37:22]OFD Sender: Remove packet 166760 [14:37:22]ProducePacketName [14:37:22]name=ofd_packets/00166760 [14:37:22]NVStorageDeleteData [14:37:22]Write to MH i2c: 01 00 00 F0 21 11 [14:37:22]Write i2c OK [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 07 00 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 A5 0C C9 [14:37:22]RasterBufferAndPrint [14:37:22]line [14:37:22]line [14:37:22]line [14:37:22]line [14:37:22]line [14:37:22]written 0, free lines is 3242 [14:37:22]MH_Cut [14:37:22]Write to MH i2c: D1 01 00 F7 21 01 EA [14:37:22]Write i2c OK [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: D1 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: D1 01 00 [14:37:22]MH_I2C_Read... [14:37:22]Read from MH i2c: D1 01 00 F7 21 00 E9 [14:37:22]Write to MH i2c: 01 00 00 F8 21 19 [14:37:22]Write i2c OK [14:37:22]MH_I2C_Read... [14:37:23]OFD Sender: No OFD packet to send [14:37:23]*** Cut start [14:37:23]*** Partial cut [14:37:23]*** CUTSNS_PIN = 1 [14:37:23]*** CUTSNS_PIN = 0 [14:37:23]*** Brake cut motor [14:37:24]Read from MH i2c: 01 [14:37:24]MH_I2C_Read... [14:37:24]*** Stop cut motor [14:37:24]*** Cut end [14:37:24]Read from MH i2c: 01 07 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: 01 07 00 F8 21 00 00 00 00 00 FF 0F 2E [14:37:24]process_action close_receipt done [14:37:24]requested_data is exist [14:37:24]produce_requested_data [14:37:24]requested_item fm.sn is exist - process it [14:37:24]wFMCommunicate request_size=4 [14:37:24]MH_SAM_APDU [14:37:24]CAPDU: 80 11 00 00 [14:37:24]Write to MH i2c: E2 08 00 F9 21 80 11 00 00 00 00 00 00 94 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:24]Read from MH i2c: E2 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 17 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 17 00 F9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [14:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:37:24]wFMCommunicate OK [14:37:24]requested_item fd.num is exist - process it [14:37:24]SAM_PROTO_GetFieldsCounters [14:37:24]wFMCommunicate request_size=4 [14:37:24]MH_SAM_APDU [14:37:24]CAPDU: 80 13 00 00 [14:37:24]Write to MH i2c: E2 08 00 FA 21 80 13 00 00 00 00 00 00 97 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:24]Read from MH i2c: E2 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 62 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 62 00 FA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:24]wFMCommunicate OK [14:37:24]SAM_PROTO_GetFieldsCounters done [14:37:24]requested_item shift.num is exist - process it [14:37:24]requested_item shift.opened is exist - process it [14:37:24]req_shift_opened [14:37:24]FM_GetShiftState [14:37:24]SAM_PROTO_GetShiftState [14:37:24]wFMCommunicate request_size=4 [14:37:24]MH_SAM_APDU [14:37:24]CAPDU: 80 13 01 00 [14:37:24]Write to MH i2c: E2 08 00 FB 21 80 13 01 00 00 00 00 00 99 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:24]Read from MH i2c: E2 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 FB 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 64 [14:37:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:37:24]wFMCommunicate OK [14:37:24]SAM_PROTO_GetShiftState done [14:37:24]FM_GetShiftState done [14:37:24]req_shift_opened done [14:37:24]requested_item shift.open_date is exist - process it [14:37:24]req_shift_open_date [14:37:24]req_shift_open_date done [14:37:24]produce_requested_data done [14:37:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166760,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:37:24]process_action_free close_receipt [14:37:24]json_value_free [14:37:24]json_value_free done [14:37:24]process_json_proto returns [14:37:24]Send response to host [14:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166760,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:37:24]free response buf [14:37:24]execute_script done [14:37:24]execute_script returns [14:37:24]free content buf [14:37:24]Sock 9.Close socket [14:37:24]Sock 9.Thread stoped [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:57]accept exits with 8 [14:37:57]New connection [14:37:57]New thread 3067178340 created [14:37:57]Thread 3067034980 joined [14:37:57]Waiting for new connection... [14:37:57] Sock 8.Parse request [14:37:57]Sock 8.Check first char [14:37:57]Sock 8.First char is OK [14:37:57]request: POST /json_proto HTTP/1.0 [14:37:57]Method: POST [14:37:57]URL: /json_proto [14:37:57]Method is POST - this is cgi request [14:37:57]url: /json_proto [14:37:57]query_string will be loaded in cgi processing [14:37:57]execute_cgi json_proto POST (null) [14:37:57]execute_cgi path=json_proto method=POST [14:37:57]POST find Content-Length [14:37:57]Host: 172.17.53.195:8080 [14:37:57]Content-Length: 677 [14:37:57]Content-Type: application/json [14:37:57] [14:37:57]POST finish read [14:37:57]Found Content-Length = 677 [14:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:57]execute_script... [14:37: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)221346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:57]POST & json_proto [14:37:57]process_json_proto [14:37:57]json parsed OK: [14:37:57]protocol is kg_v1.0 [14:37:57]action value=close_receipt [14:37:57]process_action close_receipt [14:37:57]cmd_close_receipt [14:37:57]MH_GetDate [14:37:57]Write to MH i2c: F0 00 00 FC 21 0C [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 09 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 09 00 FC 21 00 47 0A 19 67 21 48 4A 65 FE [14:37:57]GetLastDocTimeStamp 1729694241 [14:37:57]current date 1729694279 [14:37:57]FM_GetShiftState [14:37:57]SAM_PROTO_GetShiftState [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 13 01 00 [14:37:57]Write to MH i2c: E2 08 00 FD 21 80 13 01 00 00 00 00 00 9B [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 FD 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 66 [14:37:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:37:57]wFMCommunicate OK [14:37:57]SAM_PROTO_GetShiftState done [14:37:57]FM_GetShiftState done [14:37:57]opened in 1729643772 [14:37:57]opened+sec_in_day 1729730172 [14:37:57]quantity*price = 25020 [14:37:57]sum+1 = 25022 [14:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 176 23.10.2024 14:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166761 ФПД: 94498639240317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143759&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166761&fm=94498639240317&tin=02508201610067®Number=0000000000091764&sum=25000 [14:37:59]StoreToDocumentArchive [14:37:59]shift 537 fd 166761 [14:37:59]save to /storage/0537/doc_00166761 [14:37:59]save last doc name /storage/0537/doc_00166761 to /storage/kkm_last_doc_name [14:37:59]save OK [14:37:59]Clear old archive folders... [14:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:59]tlvbuf is 02024400 [14:37:59]SAM_PROTO_ClearQueue [14:37:59]wFMCommunicate request_size=4 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 09 00 00 [14:37:59]Write to MH i2c: E2 08 00 0A 22 80 09 00 00 00 00 00 00 9E [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 0A 22 00 90 00 A0 [14:37:59]RAPDU: 90 00 [14:37:59]wFMCommunicate OK [14:37:59]SAM_PROTO_ClearQueue done [14:37:59]KKMCreateOFDPacket [14:37:59]OFDProtocolAddRootSTLVToBuf [14:37:59]FM_MakeSignedData [14:37:59]FM_MakeSignedData [14:37:59]SAM_PROTO_SignData [14:37:59]wFMCommunicate request_size=4 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 0D 01 02 [14:37:59]Write to MH i2c: E2 08 00 0B 22 80 0D 01 02 00 00 00 00 A6 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 0B 22 00 90 00 A1 [14:37:59]RAPDU: 90 00 [14:37:59]wFMCommunicate OK [14:37:59]wFMCommunicate request_size=255 [14:37:59]MH_SAM_APDU [14:37: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 47 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8B 02 00 35 04 06 00 55 [14:37:59]Write to MH i2c: E2 02 01 0C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 47 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8B 02 00 35 04 06 00 55 00 00 FC [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 0C 22 00 90 00 A2 [14:37:59]RAPDU: 90 00 [14:37:59]wFMCommunicate OK [14:37:59]wFMCommunicate request_size=10 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 0D 02 02 05 F2 2D D2 DC 7D [14:37:59]Write to MH i2c: E2 0D 00 0D 22 80 0D 02 02 05 00 F2 2D D2 DC 7D 00 00 FD [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 03 00 0D 22 00 90 00 A3 [14:37:59]RAPDU: 90 00 [14:37:59]wFMCommunicate OK [14:37:59]wFMCommunicate request_size=4 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 0D 03 02 [14:37:59]Write to MH i2c: E2 08 00 0E 22 80 0D 03 02 00 00 00 00 AB [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 0B 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 0B 00 0E 22 00 C2 85 03 66 63 2B F4 5F 90 00 3D [14:37:59]RAPDU: C2 85 03 66 63 2B F4 5F 90 00 [14:37:59]wFMCommunicate OK [14:37:59]SAM_PROTO_SignData done [14:37:59]FM_MakeSignedData done [14:37:59]CreateOFDProtocolMessage [14:37:59]wFMCommunicate request_size=4 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 11 00 00 [14:37:59]Write to MH i2c: E2 08 00 0F 22 80 11 00 00 00 00 00 00 AB [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 17 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 17 00 0F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [14:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:37:59]wFMCommunicate OK [14:37:59]CreateOFDProtocolMessage done [14:37:59]OFDSenderStorePacket 166761 [14:37:59]StoreOFDPacket docnum=166761 [14:37:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE EB 07 01 F7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 47 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8B 02 00 35 04 06 00 55 F2 2D D2 DC 7D C2 85 03 66 63 2B F4 5F [14:37:59]CheckFolder [14:37:59]dirname=/storage/ofd_packets [14:37:59]CheckFolder done [14:37:59]ProducePacketName [14:37:59]name=ofd_packets/00166761 [14:37:59]NVStorageSaveData ofd_packets/00166761 [14:37:59]File name is /storage/ofd_packets/00166761 [14:37:59]Write 301 bytes [14:37:59]NVStorageSaveData done [14:37:59]OFDSenderStorePacket done [14:37:59]KKMCreateOFDPacket done [14:37:59]NVStorageSaveData kkm_last_timestamp [14:37:59]File name is /storage/kkm_last_timestamp [14:37:59]Write 4 bytes [14:37:59]NVStorageSaveData done [14:37:59]ExternCall_PrintAddStr [14:37:59]wPrintStart [14:37:59]Write to MH i2c: 01 00 00 10 22 32 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 FF 0F 47 [14:37:59]RasterBufferAndPrint [14:37:59]line Счет N : (1)221346 [14:37:59]line ИНН: 02508201610067 [14:37:59]line Контрольно-Кассовый Чек [14:37:59]line ПРОДАЖА [14:37:59]line ТРК (МРК, ГНК) : 33 [14:37:59]line Товар: 2710124130 [14:37:59]line Аи-92-К-5 [14:37:59]line 3.740 * 66.90 [14:37:59]line = 250.21 [14:37:59]line НДС 12% НСП 1% [14:37:59]line > о реализуемом товаре [14:37:59]line ОКРУГЛЕНИЕ: -0.21 [14:37:59]line ИТОГО: 250.00 [14:37:59]line Внесено: 250.00 [14:37:59]line СДАЧА: 0.00 [14:37:59]line НСП 1% : 2.21 [14:37:59]line НДС 12% : 26.57 [14:37:59]line Наличными: 250.00 [14:37:59]line Безнал.: 0.00 [14:37:59]line Место: АЗС № 161 "Партнер Нефть" [14:37:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:37:59]line СНО: Общий режим [14:37:59]line Чек 176 23.10.2024 14:37 [14:37:59]line Смена: 537 ФФД: 1.0 [14:37:59]line ЗНМ: 0300000104 [14:37:59]line РНМ: 0000000000091764 [14:37:59]line Версия ККМ: 001 [14:37:59]line ФМ: 0000000000871759 [14:37:59]line ФД: 166761 [14:37:59]line ФПД: 94498639240317 [14:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143759&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166761&fm=94498639240317&tin=02508201610067®Number=0000000000091764&sum=25000 [14:37:59]OFD Sender: Processing packet 166761 [packets to send 48, broken 47] [14:37:59]ProducePacketName [14:37:59]name=ofd_packets/00166761 [14:37:59]OFD Sender: To server: pG, [14:37:59]CommunicateWithHost lk.salyk.kg:30040 [14:37:59]ConnectInit lk.salyk.kg [14:37:59]written 0, free lines is 4095 [14:38:00]Connected sock=10 [14:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE EB 07 01 F7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 47 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8B 02 00 35 04 06 00 55 F2 2D D2 DC 7D C2 85 03 66 63 2B F4 5F [14:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 93 6A 47 00 06 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8B 02 00 F4 03 04 00 AE B0 18 67 B6 04 01 00 00 E7 99 EE 60 EB 62 FD 14 [14:38:00]CommunicateWithHost err = 0 [14:38:00]CheckOFDResponse [14:38:00]1017 (14) - 77093643461234 [14:38:00]1041 (16) - 0000000000871759 [14:38:00]1040 (4) - 166761 [14:38:00]1012 (4) - 23.10.2024 08:15 [14:38:00]1206 (1) - 0 [14:38:00]OFD Sender: Remove packet 166761 [14:38:00]ProducePacketName [14:38:00]name=ofd_packets/00166761 [14:38:00]NVStorageDeleteData [14:38:00]Write to MH i2c: 01 00 00 3B 22 5D [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: 01 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: 01 07 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: 01 07 00 3B 22 00 00 00 00 00 A9 0C 19 [14:38:00]RasterBufferAndPrint [14:38:00]line [14:38:00]line [14:38:00]line [14:38:00]line [14:38:00]line [14:38:00]written 0, free lines is 3246 [14:38:00]MH_Cut [14:38:00]Write to MH i2c: D1 01 00 42 22 01 36 [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: D1 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: D1 01 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: D1 01 00 42 22 00 35 [14:38:00]Write to MH i2c: 01 00 00 43 22 65 [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]OFD Sender: No OFD packet to send [14:38:01]*** Cut start [14:38:01]*** Partial cut [14:38:01]*** CUTSNS_PIN = 1 [14:38:01]*** CUTSNS_PIN = 0 [14:38:01]*** Brake cut motor [14:38:01]Read from MH i2c: 01 [14:38:01]MH_I2C_Read... [14:38:01]*** Stop cut motor [14:38:01]*** Cut end [14:38:01]Read from MH i2c: 01 07 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 FF 0F 7A [14:38:01]process_action close_receipt done [14:38:01]requested_data is exist [14:38:01]produce_requested_data [14:38:01]requested_item fm.sn is exist - process it [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 11 00 00 [14:38:01]Write to MH i2c: E2 08 00 44 22 80 11 00 00 00 00 00 00 E0 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:01]Read from MH i2c: E2 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 17 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 17 00 44 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [14:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:38:01]wFMCommunicate OK [14:38:01]requested_item fd.num is exist - process it [14:38:01]SAM_PROTO_GetFieldsCounters [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 13 00 00 [14:38:01]Write to MH i2c: E2 08 00 45 22 80 13 00 00 00 00 00 00 E3 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 62 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 62 00 45 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_GetFieldsCounters done [14:38:02]requested_item shift.num is exist - process it [14:38:02]requested_item shift.opened is exist - process it [14:38:02]req_shift_opened [14:38:02]FM_GetShiftState [14:38:02]SAM_PROTO_GetShiftState [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 13 01 00 [14:38:02]Write to MH i2c: E2 08 00 46 22 80 13 01 00 00 00 00 00 E5 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0E 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0E 00 46 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B0 [14:38:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_GetShiftState done [14:38:02]FM_GetShiftState done [14:38:02]req_shift_opened done [14:38:02]requested_item shift.open_date is exist - process it [14:38:02]req_shift_open_date [14:38:02]req_shift_open_date done [14:38:02]produce_requested_data done [14:38:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166761,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:38:02]process_action_free close_receipt [14:38:02]json_value_free [14:38:02]json_value_free done [14:38:02]process_json_proto returns [14:38:02]Send response to host [14:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166761,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:38:02]free response buf [14:38:02]execute_script done [14:38:02]execute_script returns [14:38:02]free content buf [14:38:02]Sock 8.Close socket [14:38:02]Sock 8.Thread stoped [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:13]accept exits with 9 [14:39:13]New connection [14:39:13]New thread 3067034980 created [14:39:13]Thread 3067178340 joined [14:39:13]Waiting for new connection... [14:39:13] Sock 9.Parse request [14:39:13]Sock 9.Check first char [14:39:13]Sock 9.First char is OK [14:39:13]request: POST /json_proto HTTP/1.0 [14:39:13]Method: POST [14:39:13]URL: /json_proto [14:39:13]Method is POST - this is cgi request [14:39:13]url: /json_proto [14:39:13]query_string will be loaded in cgi processing [14:39:13]execute_cgi json_proto POST (null) [14:39:13]execute_cgi path=json_proto method=POST [14:39:13]POST find Content-Length [14:39:13]Host: 172.17.53.195:8080 [14:39:13]Content-Length: 677 [14:39:13]Content-Type: application/json [14:39:13] [14:39:13]POST finish read [14:39:13]Found Content-Length = 677 [14:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:13]execute_script... [14:39: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)221347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:13]POST & json_proto [14:39:13]process_json_proto [14:39:13]json parsed OK: [14:39:13]protocol is kg_v1.0 [14:39:13]action value=close_receipt [14:39:13]process_action close_receipt [14:39:13]cmd_close_receipt [14:39:13]MH_GetDate [14:39:13]Write to MH i2c: F0 00 00 47 22 58 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 09 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 09 00 47 22 00 92 0A 19 67 21 48 4A 65 95 [14:39:13]GetLastDocTimeStamp 1729694279 [14:39:13]current date 1729694354 [14:39:13]FM_GetShiftState [14:39:13]SAM_PROTO_GetShiftState [14:39:13]wFMCommunicate request_size=4 [14:39:13]MH_SAM_APDU [14:39:13]CAPDU: 80 13 01 00 [14:39:13]Write to MH i2c: E2 08 00 48 22 80 13 01 00 00 00 00 00 E7 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:13]Read from MH i2c: E2 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: E2 0E 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: E2 0E 00 48 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B2 [14:39:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:39:13]wFMCommunicate OK [14:39:13]SAM_PROTO_GetShiftState done [14:39:13]FM_GetShiftState done [14:39:13]opened in 1729643772 [14:39:13]opened+sec_in_day 1729730172 [14:39:13]quantity*price = 50041 [14:39:13]sum+1 = 50042 [14:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 177 23.10.2024 14:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166762 ФПД: 101010836950660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143914&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166762&fm=101010836950660&tin=02508201610067®Number=0000000000091764&sum=50000 [14:39:14]StoreToDocumentArchive [14:39:14]shift 537 fd 166762 [14:39:14]save to /storage/0537/doc_00166762 [14:39:14]save last doc name /storage/0537/doc_00166762 to /storage/kkm_last_doc_name [14:39:14]save OK [14:39:14]Clear old archive folders... [14:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:14]tlvbuf is 01F8D4E0 [14:39:14]SAM_PROTO_ClearQueue [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 09 00 00 [14:39:14]Write to MH i2c: E2 08 00 55 22 80 09 00 00 00 00 00 00 E9 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 55 22 00 90 00 EB [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]SAM_PROTO_ClearQueue done [14:39:14]KKMCreateOFDPacket [14:39:14]OFDProtocolAddRootSTLVToBuf [14:39:14]FM_MakeSignedData [14:39:14]FM_MakeSignedData [14:39:14]SAM_PROTO_SignData [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 01 02 [14:39:14]Write to MH i2c: E2 08 00 56 22 80 0D 01 02 00 00 00 00 F1 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 56 22 00 90 00 EC [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]wFMCommunicate request_size=255 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 92 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8B 02 00 35 04 06 00 5B [14:39:14]Write to MH i2c: E2 02 01 57 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 92 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8B 02 00 35 04 06 00 5B 00 00 C1 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 57 22 00 90 00 ED [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]wFMCommunicate request_size=10 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 02 02 05 DE 6B 0E 0E 84 [14:39:14]Write to MH i2c: E2 0D 00 58 22 80 0D 02 02 05 00 DE 6B 0E 0E 84 00 00 E7 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 58 22 00 90 00 EE [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 03 02 [14:39:14]Write to MH i2c: E2 08 00 59 22 80 0D 03 02 00 00 00 00 F6 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 0B 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 0B 00 59 22 00 6E A6 22 3A EE 27 C3 58 90 00 97 [14:39:14]RAPDU: 6E A6 22 3A EE 27 C3 58 90 00 [14:39:14]wFMCommunicate OK [14:39:14]SAM_PROTO_SignData done [14:39:14]FM_MakeSignedData done [14:39:14]CreateOFDProtocolMessage [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 11 00 00 [14:39:14]Write to MH i2c: E2 08 00 5A 22 80 11 00 00 00 00 00 00 F6 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 5A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [14:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:39:15]wFMCommunicate OK [14:39:15]CreateOFDProtocolMessage done [14:39:15]OFDSenderStorePacket 166762 [14:39:15]StoreOFDPacket docnum=166762 [14:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 38 9D 07 01 42 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 92 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8B 02 00 35 04 06 00 5B DE 6B 0E 0E 84 6E A6 22 3A EE 27 C3 58 [14:39:15]CheckFolder [14:39:15]dirname=/storage/ofd_packets [14:39:15]CheckFolder done [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00166762 [14:39:15]NVStorageSaveData ofd_packets/00166762 [14:39:15]File name is /storage/ofd_packets/00166762 [14:39:15]Write 301 bytes [14:39:15]NVStorageSaveData done [14:39:15]OFDSenderStorePacket done [14:39:15]KKMCreateOFDPacket done [14:39:15]NVStorageSaveData kkm_last_timestamp [14:39:15]File name is /storage/kkm_last_timestamp [14:39:15]Write 4 bytes [14:39:15]NVStorageSaveData done [14:39:15]ExternCall_PrintAddStr [14:39:15]wPrintStart [14:39:15]Write to MH i2c: 01 00 00 5B 22 7D [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 5B 22 00 00 00 00 00 FF 0F 92 [14:39:15]RasterBufferAndPrint [14:39:15]line Счет N : (1)221347 [14:39:15]line ИНН: 02508201610067 [14:39:15]line Контрольно-Кассовый Чек [14:39:15]line ПРОДАЖА [14:39:15]line ТРК (МРК, ГНК) : 23 [14:39:15]line Товар: 2710124130 [14:39:15]line Аи-92-К-5 [14:39:15]line 7.480 * 66.90 [14:39:15]line = 500.41 [14:39:15]line НДС 12% НСП 1% [14:39:15]line > о реализуемом товаре [14:39:15]line ОКРУГЛЕНИЕ: -0.41 [14:39:15]line ИТОГО: 500.00 [14:39:15]line Внесено: 500.00 [14:39:15]line СДАЧА: 0.00 [14:39:15]line НСП 1% : 4.43 [14:39:15]line НДС 12% : 53.14 [14:39:15]line Наличными: 500.00 [14:39:15]line Безнал.: 0.00 [14:39:15]line Место: АЗС № 161 "Партнер Нефть" [14:39:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:39:15]line СНО: Общий режим [14:39:15]line Чек 177 23.10.2024 14:39 [14:39:15]line Смена: 537 ФФД: 1.0 [14:39:15]line ЗНМ: 0300000104 [14:39:15]line РНМ: 0000000000091764 [14:39:15]line Версия ККМ: 001 [14:39:15]line ФМ: 0000000000871759 [14:39:15]line ФД: 166762 [14:39:15]line ФПД: 101010836950660 [14:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143914&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166762&fm=101010836950660&tin=02508201610067®Number=0000000000091764&sum=50000 [14:39:15]OFD Sender: Processing packet 166762 [packets to send 48, broken 47] [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00166762 [14:39:15]OFD Sender: To server: pG, [14:39:15]CommunicateWithHost lk.salyk.kg:30040 [14:39:15]ConnectInit lk.salyk.kg [14:39:15]written 0, free lines is 4095 [14:39:15]Connected sock=10 [14:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 38 9D 07 01 42 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 92 0A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8B 02 00 35 04 06 00 5B DE 6B 0E 0E 84 6E A6 22 3A EE 27 C3 58 [14:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 32 FB 47 00 F4 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8B 02 00 F4 03 04 00 FA B0 18 67 B6 04 01 00 00 FA 39 3A F6 2A CE CF E7 [14:39:15]CommunicateWithHost err = 0 [14:39:15]CheckOFDResponse [14:39:15]1017 (14) - 77093643461234 [14:39:15]1041 (16) - 0000000000871759 [14:39:15]1040 (4) - 166762 [14:39:15]1012 (4) - 23.10.2024 08:16 [14:39:15]1206 (1) - 0 [14:39:15]OFD Sender: Remove packet 166762 [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00166762 [14:39:15]NVStorageDeleteData [14:39:15]Write to MH i2c: 01 00 00 86 22 A8 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 86 22 00 00 00 00 00 A9 0C 64 [14:39:15]RasterBufferAndPrint [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]written 0, free lines is 3246 [14:39:15]MH_Cut [14:39:15]Write to MH i2c: D1 01 00 8D 22 01 81 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 01 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 01 00 8D 22 00 80 [14:39:15]Write to MH i2c: 01 00 00 8E 22 B0 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:16]OFD Sender: No OFD packet to send [14:39:16]*** Cut start [14:39:16]*** Partial cut [14:39:16]*** CUTSNS_PIN = 1 [14:39:16]*** CUTSNS_PIN = 0 [14:39:16]*** Brake cut motor [14:39:17]Read from MH i2c: 01 [14:39:17]MH_I2C_Read... [14:39:17]*** Stop cut motor [14:39:17]*** Cut end [14:39:17]Read from MH i2c: 01 07 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 8E 22 00 00 00 00 00 FF 0F C5 [14:39:17]process_action close_receipt done [14:39:17]requested_data is exist [14:39:17]produce_requested_data [14:39:17]requested_item fm.sn is exist - process it [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 11 00 00 [14:39:17]Write to MH i2c: E2 08 00 8F 22 80 11 00 00 00 00 00 00 2B [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 17 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 17 00 8F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [14:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:39:17]wFMCommunicate OK [14:39:17]requested_item fd.num is exist - process it [14:39:17]SAM_PROTO_GetFieldsCounters [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 13 00 00 [14:39:17]Write to MH i2c: E2 08 00 90 22 80 13 00 00 00 00 00 00 2E [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 62 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 62 00 90 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_GetFieldsCounters done [14:39:17]requested_item shift.num is exist - process it [14:39:17]requested_item shift.opened is exist - process it [14:39:17]req_shift_opened [14:39:17]FM_GetShiftState [14:39:17]SAM_PROTO_GetShiftState [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 13 01 00 [14:39:17]Write to MH i2c: E2 08 00 91 22 80 13 01 00 00 00 00 00 30 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 91 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FB [14:39:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_GetShiftState done [14:39:17]FM_GetShiftState done [14:39:17]req_shift_opened done [14:39:17]requested_item shift.open_date is exist - process it [14:39:17]req_shift_open_date [14:39:17]req_shift_open_date done [14:39:17]produce_requested_data done [14:39:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166762,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:39:17]process_action_free close_receipt [14:39:17]json_value_free [14:39:17]json_value_free done [14:39:17]process_json_proto returns [14:39:17]Send response to host [14:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166762,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:39:17]free response buf [14:39:17]execute_script done [14:39:17]execute_script returns [14:39:17]free content buf [14:39:17]Sock 9.Close socket [14:39:17]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:35]accept exits with 8 [14:41:35]New connection [14:41:35]New thread 3067178340 created [14:41:35]Thread 3067034980 joined [14:41:35]Waiting for new connection... [14:41:35] Sock 8.Parse request [14:41:35]Sock 8.Check first char [14:41:35]Sock 8.First char is OK [14:41:35]request: POST /json_proto HTTP/1.0 [14:41:35]Method: POST [14:41:35]URL: /json_proto [14:41:35]Method is POST - this is cgi request [14:41:35]url: /json_proto [14:41:35]query_string will be loaded in cgi processing [14:41:35]execute_cgi json_proto POST (null) [14:41:35]execute_cgi path=json_proto method=POST [14:41:35]POST find Content-Length [14:41:35]Host: 172.17.53.195:8080 [14:41:35]Content-Length: 679 [14:41:35]Content-Type: application/json [14:41:35] [14:41:35]POST finish read [14:41:35]Found Content-Length = 679 [14:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:35]execute_script... [14:41: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)221348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:35]POST & json_proto [14:41:35]process_json_proto [14:41:35]json parsed OK: [14:41:35]protocol is kg_v1.0 [14:41:35]action value=close_receipt [14:41:35]process_action close_receipt [14:41:35]cmd_close_receipt [14:41:35]MH_GetDate [14:41:35]Write to MH i2c: F0 00 00 92 22 A3 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 09 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 09 00 92 22 00 20 0B 19 67 21 48 4A 65 6F [14:41:35]GetLastDocTimeStamp 1729694354 [14:41:35]current date 1729694496 [14:41:35]FM_GetShiftState [14:41:35]SAM_PROTO_GetShiftState [14:41:35]wFMCommunicate request_size=4 [14:41:35]MH_SAM_APDU [14:41:35]CAPDU: 80 13 01 00 [14:41:35]Write to MH i2c: E2 08 00 93 22 80 13 01 00 00 00 00 00 32 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:35]Read from MH i2c: E2 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: E2 0E 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: E2 0E 00 93 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FD [14:41:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:41:35]wFMCommunicate OK [14:41:35]SAM_PROTO_GetShiftState done [14:41:35]FM_GetShiftState done [14:41:35]opened in 1729643772 [14:41:35]opened+sec_in_day 1729730172 [14:41:35]quantity*price = 99948 [14:41:35]sum+1 = 99950 [14:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 178 23.10.2024 14:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166763 ФПД: 217439720696925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166763&fm=217439720696925&tin=02508201610067®Number=0000000000091764&sum=99900 [14:41:36]StoreToDocumentArchive [14:41:36]shift 537 fd 166763 [14:41:36]save to /storage/0537/doc_00166763 [14:41:36]save last doc name /storage/0537/doc_00166763 to /storage/kkm_last_doc_name [14:41:36]save OK [14:41:36]Clear old archive folders... [14:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:36]tlvbuf is 01F7FB60 [14:41:36]SAM_PROTO_ClearQueue [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 09 00 00 [14:41:36]Write to MH i2c: E2 08 00 A0 22 80 09 00 00 00 00 00 00 34 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 A0 22 00 90 00 36 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_ClearQueue done [14:41:36]KKMCreateOFDPacket [14:41:36]OFDProtocolAddRootSTLVToBuf [14:41:36]FM_MakeSignedData [14:41:36]FM_MakeSignedData [14:41:36]SAM_PROTO_SignData [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 01 02 [14:41:36]Write to MH i2c: E2 08 00 A1 22 80 0D 01 02 00 00 00 00 3C [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 A1 22 00 90 00 37 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]wFMCommunicate request_size=255 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8B 02 00 35 04 06 00 C5 [14:41:36]Write to MH i2c: E2 02 01 A2 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8B 02 00 35 04 06 00 C5 00 00 E4 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 A2 22 00 90 00 38 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]wFMCommunicate request_size=10 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 02 02 05 C2 A1 4F EC 5D [14:41:36]Write to MH i2c: E2 0D 00 A3 22 80 0D 02 02 05 00 C2 A1 4F EC 5D 00 00 44 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 A3 22 00 90 00 39 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 03 02 [14:41:36]Write to MH i2c: E2 08 00 A4 22 80 0D 03 02 00 00 00 00 41 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0B 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0B 00 A4 22 00 CF 4B 01 AF 58 87 95 B1 90 00 31 [14:41:36]RAPDU: CF 4B 01 AF 58 87 95 B1 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_SignData done [14:41:36]FM_MakeSignedData done [14:41:36]CreateOFDProtocolMessage [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 11 00 00 [14:41:36]Write to MH i2c: E2 08 00 A5 22 80 11 00 00 00 00 00 00 41 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 17 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 17 00 A5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [14:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:41:36]wFMCommunicate OK [14:41:36]CreateOFDProtocolMessage done [14:41:36]OFDSenderStorePacket 166763 [14:41:36]StoreOFDPacket docnum=166763 [14:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 8B 07 01 3F 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8B 02 00 35 04 06 00 C5 C2 A1 4F EC 5D CF 4B 01 AF 58 87 95 B1 [14:41:36]CheckFolder [14:41:36]dirname=/storage/ofd_packets [14:41:36]CheckFolder done [14:41:36]ProducePacketName [14:41:36]name=ofd_packets/00166763 [14:41:36]NVStorageSaveData ofd_packets/00166763 [14:41:36]File name is /storage/ofd_packets/00166763 [14:41:36]Write 301 bytes [14:41:36]NVStorageSaveData done [14:41:36]OFDSenderStorePacket done [14:41:36]KKMCreateOFDPacket done [14:41:36]NVStorageSaveData kkm_last_timestamp [14:41:36]File name is /storage/kkm_last_timestamp [14:41:36]Write 4 bytes [14:41:36]NVStorageSaveData done [14:41:36]ExternCall_PrintAddStr [14:41:36]wPrintStart [14:41:36]Write to MH i2c: 01 00 00 A6 22 C8 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 A6 22 00 00 00 00 00 FF 0F DD [14:41:36]RasterBufferAndPrint [14:41:36]line Счет N : (1)221348 [14:41:36]line ИНН: 02508201610067 [14:41:36]line Контрольно-Кассовый Чек [14:41:36]line ПРОДАЖА [14:41:36]line ТРК (МРК, ГНК) : 43 [14:41:36]line Товар: 2710124130 [14:41:36]line Аи-92-К-5 [14:41:36]line 14.940 * 66.90 [14:41:36]line = 999.49 [14:41:36]line НДС 12% НСП 1% [14:41:36]line > о реализуемом товаре [14:41:36]line ОКРУГЛЕНИЕ: -0.49 [14:41:36]line ИТОГО: 999.00 [14:41:36]line Внесено: 1000.00 [14:41:36]line СДАЧА: 1.00 [14:41:36]line НСП 1% : 8.84 [14:41:36]line НДС 12% : 106.14 [14:41:36]line Наличными: 999.00 [14:41:36]line Безнал.: 0.00 [14:41:36]line Место: АЗС № 161 "Партнер Нефть" [14:41:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:41:36]line СНО: Общий режим [14:41:36]line Чек 178 23.10.2024 14:41 [14:41:36]line Смена: 537 ФФД: 1.0 [14:41:36]line ЗНМ: 0300000104 [14:41:36]line РНМ: 0000000000091764 [14:41:36]line Версия ККМ: 001 [14:41:36]line ФМ: 0000000000871759 [14:41:36]line ФД: 166763 [14:41:36]line ФПД: 217439720696925 [14:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166763&fm=217439720696925&tin=02508201610067®Number=0000000000091764&sum=99900 [14:41:37]OFD Sender: Processing packet 166763 [packets to send 48, broken 47] [14:41:37]ProducePacketName [14:41:37]name=ofd_packets/00166763 [14:41:37]OFD Sender: To server: pG, [14:41:37]CommunicateWithHost lk.salyk.kg:30040 [14:41:37]ConnectInit lk.salyk.kg [14:41:37]written 0, free lines is 4095 [14:41:37]Connected sock=10 [14:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 8B 07 01 3F 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8B 02 00 35 04 06 00 C5 C2 A1 4F EC 5D CF 4B 01 AF 58 87 95 B1 [14:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 47 17 47 00 D4 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8B 02 00 F4 03 04 00 88 B1 18 67 B6 04 01 00 00 B1 FF AC F7 2A 9A AB 23 [14:41:37]CommunicateWithHost err = 0 [14:41:37]CheckOFDResponse [14:41:37]1017 (14) - 77093643461234 [14:41:37]1041 (16) - 0000000000871759 [14:41:37]1040 (4) - 166763 [14:41:37]1012 (4) - 23.10.2024 08:19 [14:41:37]1206 (1) - 0 [14:41:37]OFD Sender: Remove packet 166763 [14:41:37]ProducePacketName [14:41:37]name=ofd_packets/00166763 [14:41:37]NVStorageDeleteData [14:41:37]Write to MH i2c: 01 00 00 D1 22 F3 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 07 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 07 00 D1 22 00 00 00 00 00 B8 0C BE [14:41:37]RasterBufferAndPrint [14:41:37]line [14:41:37]line [14:41:37]line [14:41:37]line [14:41:37]line [14:41:37]written 0, free lines is 3260 [14:41:37]MH_Cut [14:41:37]Write to MH i2c: D1 01 00 D8 22 01 CC [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: D1 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: D1 01 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: D1 01 00 D8 22 00 CB [14:41:37]Write to MH i2c: 01 00 00 D9 22 FB [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:38]OFD Sender: No OFD packet to send [14:41:38]*** Cut start [14:41:38]*** Partial cut [14:41:38]*** CUTSNS_PIN = 1 [14:41:38]*** CUTSNS_PIN = 0 [14:41:38]*** Brake cut motor [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]*** Stop cut motor [14:41:39]*** Cut end [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 D9 22 00 00 00 00 00 FF 0F 10 [14:41:39]process_action close_receipt done [14:41:39]requested_data is exist [14:41:39]produce_requested_data [14:41:39]requested_item fm.sn is exist - process it [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 11 00 00 [14:41:39]Write to MH i2c: E2 08 00 DA 22 80 11 00 00 00 00 00 00 76 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 17 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 17 00 DA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [14:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:41:39]wFMCommunicate OK [14:41:39]requested_item fd.num is exist - process it [14:41:39]SAM_PROTO_GetFieldsCounters [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 13 00 00 [14:41:39]Write to MH i2c: E2 08 00 DB 22 80 13 00 00 00 00 00 00 79 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 62 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 62 00 DB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_GetFieldsCounters done [14:41:39]requested_item shift.num is exist - process it [14:41:39]requested_item shift.opened is exist - process it [14:41:39]req_shift_opened [14:41:39]FM_GetShiftState [14:41:39]SAM_PROTO_GetShiftState [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 13 01 00 [14:41:39]Write to MH i2c: E2 08 00 DC 22 80 13 01 00 00 00 00 00 7B [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0E 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0E 00 DC 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 46 [14:41:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_GetShiftState done [14:41:39]FM_GetShiftState done [14:41:39]req_shift_opened done [14:41:39]requested_item shift.open_date is exist - process it [14:41:39]req_shift_open_date [14:41:39]req_shift_open_date done [14:41:39]produce_requested_data done [14:41:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166763,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:41:39]process_action_free close_receipt [14:41:39]json_value_free [14:41:39]json_value_free done [14:41:39]process_json_proto returns [14:41:39]Send response to host [14:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166763,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:41:39]free response buf [14:41:39]execute_script done [14:41:39]execute_script returns [14:41:39]free content buf [14:41:39]Sock 8.Close socket [14:41:39]Sock 8.Thread stoped [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:25]accept exits with 9 [14:42:25]New connection [14:42:25]New thread 3067034980 created [14:42:25]Thread 3067178340 joined [14:42:25]Waiting for new connection... [14:42:25] Sock 9.Parse request [14:42:25]Sock 9.Check first char [14:42:25]Sock 9.First char is OK [14:42:25]request: POST /json_proto HTTP/1.0 [14:42:25]Method: POST [14:42:25]URL: /json_proto [14:42:25]Method is POST - this is cgi request [14:42:25]url: /json_proto [14:42:25]query_string will be loaded in cgi processing [14:42:25]execute_cgi json_proto POST (null) [14:42:25]execute_cgi path=json_proto method=POST [14:42:25]POST find Content-Length [14:42:25]Host: 172.17.53.195:8080 [14:42:25]Content-Length: 677 [14:42:25]Content-Type: application/json [14:42:25] [14:42:25]POST finish read [14:42:25]Found Content-Length = 677 [14:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:25]execute_script... [14:42: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)221349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:25]POST & json_proto [14:42:25]process_json_proto [14:42:25]json parsed OK: [14:42:25]protocol is kg_v1.0 [14:42:25]action value=close_receipt [14:42:25]process_action close_receipt [14:42:25]cmd_close_receipt [14:42:25]MH_GetDate [14:42:25]Write to MH i2c: F0 00 00 DD 22 EE [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: F0 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: F0 09 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: F0 09 00 DD 22 00 53 0B 19 67 21 48 4A 65 ED [14:42:25]GetLastDocTimeStamp 1729694496 [14:42:25]current date 1729694547 [14:42:25]FM_GetShiftState [14:42:25]SAM_PROTO_GetShiftState [14:42:25]wFMCommunicate request_size=4 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 13 01 00 [14:42:25]Write to MH i2c: E2 08 00 DE 22 80 13 01 00 00 00 00 00 7D [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 0E 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 0E 00 DE 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 48 [14:42:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:42:25]wFMCommunicate OK [14:42:25]SAM_PROTO_GetShiftState done [14:42:25]FM_GetShiftState done [14:42:25]opened in 1729643772 [14:42:25]opened+sec_in_day 1729730172 [14:42:25]quantity*price = 30038 [14:42:25]sum+1 = 30039 [14:42:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 179 23.10.2024 14:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166764 ФПД: 161938201815715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166764&fm=161938201815715&tin=02508201610067®Number=0000000000091764&sum=30000 [14:42:26]StoreToDocumentArchive [14:42:26]shift 537 fd 166764 [14:42:26]save to /storage/0537/doc_00166764 [14:42:26]save last doc name /storage/0537/doc_00166764 to /storage/kkm_last_doc_name [14:42:26]save OK [14:42:26]Clear old archive folders... [14:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:26]tlvbuf is 01FCB970 [14:42:26]SAM_PROTO_ClearQueue [14:42:26]wFMCommunicate request_size=4 [14:42:26]MH_SAM_APDU [14:42:26]CAPDU: 80 09 00 00 [14:42:26]Write to MH i2c: E2 08 00 EB 22 80 09 00 00 00 00 00 00 7F [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:26]Read from MH i2c: E2 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 03 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 03 00 EB 22 00 90 00 81 [14:42:26]RAPDU: 90 00 [14:42:26]wFMCommunicate OK [14:42:26]SAM_PROTO_ClearQueue done [14:42:26]KKMCreateOFDPacket [14:42:26]OFDProtocolAddRootSTLVToBuf [14:42:26]FM_MakeSignedData [14:42:26]FM_MakeSignedData [14:42:26]SAM_PROTO_SignData [14:42:26]wFMCommunicate request_size=4 [14:42:26]MH_SAM_APDU [14:42:26]CAPDU: 80 0D 01 02 [14:42:26]Write to MH i2c: E2 08 00 EC 22 80 0D 01 02 00 00 00 00 87 [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:26]Read from MH i2c: E2 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 03 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: E2 03 00 EC 22 00 90 00 82 [14:42:26]RAPDU: 90 00 [14:42:26]wFMCommunicate OK [14:42:26]wFMCommunicate request_size=255 [14:42:26]MH_SAM_APDU [14:42: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8B 02 00 35 04 06 00 93 [14:42:26]Write to MH i2c: E2 02 01 ED 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8B 02 00 35 04 06 00 93 00 00 49 [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 03 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 03 00 ED 22 00 90 00 83 [14:42:27]RAPDU: 90 00 [14:42:27]wFMCommunicate OK [14:42:27]wFMCommunicate request_size=10 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 0D 02 02 05 48 2C FE AA A3 [14:42:27]Write to MH i2c: E2 0D 00 EE 22 80 0D 02 02 05 00 48 2C FE AA A3 00 00 53 [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 03 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 03 00 EE 22 00 90 00 84 [14:42:27]RAPDU: 90 00 [14:42:27]wFMCommunicate OK [14:42:27]wFMCommunicate request_size=4 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 0D 03 02 [14:42:27]Write to MH i2c: E2 08 00 EF 22 80 0D 03 02 00 00 00 00 8C [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 0B 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 0B 00 EF 22 00 29 D3 7C 50 05 AC 91 B2 90 00 49 [14:42:27]RAPDU: 29 D3 7C 50 05 AC 91 B2 90 00 [14:42:27]wFMCommunicate OK [14:42:27]SAM_PROTO_SignData done [14:42:27]FM_MakeSignedData done [14:42:27]CreateOFDProtocolMessage [14:42:27]wFMCommunicate request_size=4 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 11 00 00 [14:42:27]Write to MH i2c: E2 08 00 F0 22 80 11 00 00 00 00 00 00 8C [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 17 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 17 00 F0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [14:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:42:27]wFMCommunicate OK [14:42:27]CreateOFDProtocolMessage done [14:42:27]OFDSenderStorePacket 166764 [14:42:27]StoreOFDPacket docnum=166764 [14:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 94 07 01 09 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8B 02 00 35 04 06 00 93 48 2C FE AA A3 29 D3 7C 50 05 AC 91 B2 [14:42:27]CheckFolder [14:42:27]dirname=/storage/ofd_packets [14:42:27]CheckFolder done [14:42:27]ProducePacketName [14:42:27]name=ofd_packets/00166764 [14:42:27]NVStorageSaveData ofd_packets/00166764 [14:42:27]File name is /storage/ofd_packets/00166764 [14:42:27]Write 301 bytes [14:42:27]NVStorageSaveData done [14:42:27]OFDSenderStorePacket done [14:42:27]KKMCreateOFDPacket done [14:42:27]NVStorageSaveData kkm_last_timestamp [14:42:27]File name is /storage/kkm_last_timestamp [14:42:27]Write 4 bytes [14:42:27]NVStorageSaveData done [14:42:27]ExternCall_PrintAddStr [14:42:27]wPrintStart [14:42:27]Write to MH i2c: 01 00 00 F1 22 13 [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: 01 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: 01 07 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: 01 07 00 F1 22 00 00 00 00 00 FF 0F 28 [14:42:27]RasterBufferAndPrint [14:42:27]line Счет N : (1)221349 [14:42:27]line ИНН: 02508201610067 [14:42:27]line Контрольно-Кассовый Чек [14:42:27]line ПРОДАЖА [14:42:27]line ТРК (МРК, ГНК) : 23 [14:42:27]line Товар: 2710124130 [14:42:27]line Аи-92-К-5 [14:42:27]line 4.490 * 66.90 [14:42:27]line = 300.38 [14:42:27]line НДС 12% НСП 1% [14:42:27]line > о реализуемом товаре [14:42:27]line ОКРУГЛЕНИЕ: -0.38 [14:42:27]line ИТОГО: 300.00 [14:42:27]line Внесено: 300.00 [14:42:27]line СДАЧА: 0.00 [14:42:27]line НСП 1% : 2.66 [14:42:27]line НДС 12% : 31.90 [14:42:27]line Наличными: 300.00 [14:42:27]line Безнал.: 0.00 [14:42:27]line Место: АЗС № 161 "Партнер Нефть" [14:42:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:42:27]line СНО: Общий режим [14:42:27]line Чек 179 23.10.2024 14:42 [14:42:27]line Смена: 537 ФФД: 1.0 [14:42:27]line ЗНМ: 0300000104 [14:42:27]line РНМ: 0000000000091764 [14:42:27]line Версия ККМ: 001 [14:42:27]line ФМ: 0000000000871759 [14:42:27]line ФД: 166764 [14:42:27]line ФПД: 161938201815715 [14:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166764&fm=161938201815715&tin=02508201610067®Number=0000000000091764&sum=30000 [14:42:27]OFD Sender: Processing packet 166764 [packets to send 48, broken 47] [14:42:27]ProducePacketName [14:42:27]name=ofd_packets/00166764 [14:42:27]OFD Sender: To server: pG, [14:42:27]CommunicateWithHost lk.salyk.kg:30040 [14:42:27]ConnectInit lk.salyk.kg [14:42:27]written 0, free lines is 4095 [14:42:27]Connected sock=10 [14:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 94 07 01 09 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 0B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8B 02 00 35 04 06 00 93 48 2C FE AA A3 29 D3 7C 50 05 AC 91 B2 [14:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 7D 47 00 B6 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8B 02 00 F4 03 04 00 BA B1 18 67 B6 04 01 00 00 2D 95 FD 18 59 0E C9 42 [14:42:28]CommunicateWithHost err = 0 [14:42:28]CheckOFDResponse [14:42:28]1017 (14) - 77093643461234 [14:42:28]1041 (16) - 0000000000871759 [14:42:28]1040 (4) - 166764 [14:42:28]1012 (4) - 23.10.2024 08:20 [14:42:28]1206 (1) - 0 [14:42:28]OFD Sender: Remove packet 166764 [14:42:28]ProducePacketName [14:42:28]name=ofd_packets/00166764 [14:42:28]NVStorageDeleteData [14:42:28]Write to MH i2c: 01 00 00 1C 23 3F [14:42:28]Write i2c OK [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: 01 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: 01 07 00 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: 01 07 00 1C 23 00 00 00 00 00 A7 0C F9 [14:42:28]RasterBufferAndPrint [14:42:28]line [14:42:28]line [14:42:28]line [14:42:28]line [14:42:28]line [14:42:28]written 0, free lines is 3245 [14:42:28]MH_Cut [14:42:28]Write to MH i2c: D1 01 00 23 23 01 18 [14:42:28]Write i2c OK [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: D1 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: D1 01 00 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: D1 01 00 23 23 00 17 [14:42:28]Write to MH i2c: 01 00 00 24 23 47 [14:42:28]Write i2c OK [14:42:28]MH_I2C_Read... [14:42:28]OFD Sender: No OFD packet to send [14:42:28]*** Cut start [14:42:28]*** Partial cut [14:42:28]*** CUTSNS_PIN = 1 [14:42:29]*** CUTSNS_PIN = 0 [14:42:29]*** Brake cut motor [14:42:29]Read from MH i2c: 01 [14:42:29]MH_I2C_Read... [14:42:29]*** Stop cut motor [14:42:29]*** Cut end [14:42:29]Read from MH i2c: 01 07 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: 01 07 00 24 23 00 00 00 00 00 FF 0F 5C [14:42:29]process_action close_receipt done [14:42:29]requested_data is exist [14:42:29]produce_requested_data [14:42:29]requested_item fm.sn is exist - process it [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 11 00 00 [14:42:29]Write to MH i2c: E2 08 00 25 23 80 11 00 00 00 00 00 00 C2 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 17 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 17 00 25 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [14:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:42:29]wFMCommunicate OK [14:42:29]requested_item fd.num is exist - process it [14:42:29]SAM_PROTO_GetFieldsCounters [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 13 00 00 [14:42:29]Write to MH i2c: E2 08 00 26 23 80 13 00 00 00 00 00 00 C5 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 62 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 62 00 26 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:42:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:29]wFMCommunicate OK [14:42:29]SAM_PROTO_GetFieldsCounters done [14:42:29]requested_item shift.num is exist - process it [14:42:29]requested_item shift.opened is exist - process it [14:42:29]req_shift_opened [14:42:29]FM_GetShiftState [14:42:29]SAM_PROTO_GetShiftState [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 13 01 00 [14:42:29]Write to MH i2c: E2 08 00 27 23 80 13 01 00 00 00 00 00 C7 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 0E 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 0E 00 27 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 92 [14:42:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:42:29]wFMCommunicate OK [14:42:29]SAM_PROTO_GetShiftState done [14:42:29]FM_GetShiftState done [14:42:29]req_shift_opened done [14:42:29]requested_item shift.open_date is exist - process it [14:42:29]req_shift_open_date [14:42:29]req_shift_open_date done [14:42:29]produce_requested_data done [14:42:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166764,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:42:29]process_action_free close_receipt [14:42:29]json_value_free [14:42:29]json_value_free done [14:42:29]process_json_proto returns [14:42:29]Send response to host [14:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166764,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:42:29]free response buf [14:42:29]execute_script done [14:42:29]execute_script returns [14:42:29]free content buf [14:42:29]Sock 9.Close socket [14:42:29]Sock 9.Thread stoped [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:19]accept exits with 8 [14:46:19]New connection [14:46:19]New thread 3067178340 created [14:46:19]Thread 3067034980 joined [14:46:19]Waiting for new connection... [14:46:19] Sock 8.Parse request [14:46:19]Sock 8.Check first char [14:46:19]Sock 8.First char is OK [14:46:19]request: POST /json_proto HTTP/1.0 [14:46:19]Method: POST [14:46:19]URL: /json_proto [14:46:19]Method is POST - this is cgi request [14:46:19]url: /json_proto [14:46:19]query_string will be loaded in cgi processing [14:46:19]execute_cgi json_proto POST (null) [14:46:19]execute_cgi path=json_proto method=POST [14:46:19]POST find Content-Length [14:46:19]Host: 172.17.53.195:8080 [14:46:19]Content-Length: 677 [14:46:19]Content-Type: application/json [14:46:19] [14:46:19]POST finish read [14:46:19]Found Content-Length = 677 [14:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.030, "sum" : 269.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 269.00, "payments": [ { "type": 0, "sum" : 269.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:19]execute_script... [14:46: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)221350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.030, "sum" : 269.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 269.00, "payments": [ { "type": 0, "sum" : 269.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:19]POST & json_proto [14:46:19]process_json_proto [14:46:19]json parsed OK: [14:46:19]protocol is kg_v1.0 [14:46:19]action value=close_receipt [14:46:19]process_action close_receipt [14:46:19]cmd_close_receipt [14:46:19]MH_GetDate [14:46:19]Write to MH i2c: F0 00 00 28 23 3A [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 09 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 09 00 28 23 00 3D 0C 19 67 21 48 4A 65 24 [14:46:19]GetLastDocTimeStamp 1729694547 [14:46:19]current date 1729694781 [14:46:19]FM_GetShiftState [14:46:19]SAM_PROTO_GetShiftState [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 13 01 00 [14:46:19]Write to MH i2c: E2 08 00 29 23 80 13 01 00 00 00 00 00 C9 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 29 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 94 [14:46:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_GetShiftState done [14:46:19]FM_GetShiftState done [14:46:19]opened in 1729643772 [14:46:19]opened+sec_in_day 1729730172 [14:46:19]quantity*price = 26960 [14:46:19]sum+1 = 26962 [14:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 269.00 Внесено: 270.00 СДАЧА: 1.00 НСП 1% : 2.39 НДС 12% : 28.63 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 180 23.10.2024 14:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166765 ФПД: 29434630487009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166765&fm=29434630487009&tin=02508201610067®Number=0000000000091764&sum=26900 [14:46:20]StoreToDocumentArchive [14:46:20]shift 537 fd 166765 [14:46:20]save to /storage/0537/doc_00166765 [14:46:20]save last doc name /storage/0537/doc_00166765 to /storage/kkm_last_doc_name [14:46:20]save OK [14:46:20]Clear old archive folders... [14:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:20]tlvbuf is 01F7FB60 [14:46:20]SAM_PROTO_ClearQueue [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 09 00 00 [14:46:20]Write to MH i2c: E2 08 00 36 23 80 09 00 00 00 00 00 00 CB [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 36 23 00 90 00 CD [14:46:20]RAPDU: 90 00 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_ClearQueue done [14:46:20]KKMCreateOFDPacket [14:46:20]OFDProtocolAddRootSTLVToBuf [14:46:20]FM_MakeSignedData [14:46:20]FM_MakeSignedData [14:46:20]SAM_PROTO_SignData [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 0D 01 02 [14:46:20]Write to MH i2c: E2 08 00 37 23 80 0D 01 02 00 00 00 00 D3 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 03 00 37 23 00 90 00 CE [14:46:20]RAPDU: 90 00 [14:46:20]wFMCommunicate OK [14:46:20]wFMCommunicate request_size=255 [14:46:20]MH_SAM_APDU [14:46: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 BE 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 2F 0B 00 00 00 00 07 04 06 00 14 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 B4 00 00 00 F4 03 04 00 3D 0C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8B 02 00 35 04 06 00 1A [14:46:20]Write to MH i2c: E2 02 01 38 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 BE 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 2F 0B 00 00 00 00 07 04 06 00 14 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 B4 00 00 00 F4 03 04 00 3D 0C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8B 02 00 35 04 06 00 1A 00 00 76 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 38 23 00 90 00 CF [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]wFMCommunicate request_size=10 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 02 02 05 C5 48 B1 BB E1 [14:46:21]Write to MH i2c: E2 0D 00 39 23 80 0D 02 02 05 00 C5 48 B1 BB E1 00 00 3A [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 03 02 [14:46:21]Write to MH i2c: E2 08 00 3A 23 80 0D 03 02 00 00 00 00 D8 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0B 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0B 00 3A 23 00 C6 54 E2 27 21 AE 34 22 90 00 21 [14:46:21]RAPDU: C6 54 E2 27 21 AE 34 22 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_SignData done [14:46:21]FM_MakeSignedData done [14:46:21]CreateOFDProtocolMessage [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 11 00 00 [14:46:21]Write to MH i2c: E2 08 00 3B 23 80 11 00 00 00 00 00 00 D8 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 3B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [14:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:21]wFMCommunicate OK [14:46:21]CreateOFDProtocolMessage done [14:46:21]OFDSenderStorePacket 166765 [14:46:21]StoreOFDPacket docnum=166765 [14:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 5C 07 01 A0 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 2F 0B 00 00 00 00 07 04 06 00 14 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 B4 00 00 00 F4 03 04 00 3D 0C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8B 02 00 35 04 06 00 1A C5 48 B1 BB E1 C6 54 E2 27 21 AE 34 22 [14:46:21]CheckFolder [14:46:21]dirname=/storage/ofd_packets [14:46:21]CheckFolder done [14:46:21]ProducePacketName [14:46:21]name=ofd_packets/00166765 [14:46:21]NVStorageSaveData ofd_packets/00166765 [14:46:21]File name is /storage/ofd_packets/00166765 [14:46:21]Write 301 bytes [14:46:21]NVStorageSaveData done [14:46:21]OFDSenderStorePacket done [14:46:21]KKMCreateOFDPacket done [14:46:21]NVStorageSaveData kkm_last_timestamp [14:46:21]File name is /storage/kkm_last_timestamp [14:46:21]Write 4 bytes [14:46:21]NVStorageSaveData done [14:46:21]ExternCall_PrintAddStr [14:46:21]wPrintStart [14:46:21]Write to MH i2c: 01 00 00 3C 23 5F [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 3C 23 00 00 00 00 00 FF 0F 74 [14:46:21]RasterBufferAndPrint [14:46:21]line Счет N : (1)221350 [14:46:21]line ИНН: 02508201610067 [14:46:21]line Контрольно-Кассовый Чек [14:46:21]line ПРОДАЖА [14:46:21]line ТРК (МРК, ГНК) : 13 [14:46:21]line Товар: 2710124130 [14:46:21]line Аи-92-К-5 [14:46:21]line 4.030 * 66.90 [14:46:21]line = 269.61 [14:46:21]line НДС 12% НСП 1% [14:46:21]line > о реализуемом товаре [14:46:21]line ОКРУГЛЕНИЕ: -0.61 [14:46:21]line ИТОГО: 269.00 [14:46:21]line Внесено: 270.00 [14:46:21]line СДАЧА: 1.00 [14:46:21]line НСП 1% : 2.39 [14:46:21]line НДС 12% : 28.63 [14:46:21]line Наличными: 269.00 [14:46:21]line Безнал.: 0.00 [14:46:21]line Место: АЗС № 161 "Партнер Нефть" [14:46:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:46:21]line СНО: Общий режим [14:46:21]line Чек 180 23.10.2024 14:46 [14:46:21]line Смена: 537 ФФД: 1.0 [14:46:21]line ЗНМ: 0300000104 [14:46:21]line РНМ: 0000000000091764 [14:46:21]line Версия ККМ: 001 [14:46:21]line ФМ: 0000000000871759 [14:46:21]line ФД: 166765 [14:46:21]line ФПД: 29434630487009 [14:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166765&fm=29434630487009&tin=02508201610067®Number=0000000000091764&sum=26900 [14:46:21]OFD Sender: Processing packet 166765 [packets to send 48, broken 47] [14:46:21]ProducePacketName [14:46:21]name=ofd_packets/00166765 [14:46:21]OFD Sender: To server: pG, [14:46:21]CommunicateWithHost lk.salyk.kg:30040 [14:46:21]ConnectInit lk.salyk.kg [14:46:21]written 0, free lines is 4095 [14:46:21]Connected sock=10 [14:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 5C 07 01 A0 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 51 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 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 2F 0B 00 00 00 00 07 04 06 00 14 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 B4 00 00 00 F4 03 04 00 3D 0C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8B 02 00 35 04 06 00 1A C5 48 B1 BB E1 C6 54 E2 27 21 AE 34 22 [14:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE 68 47 00 A8 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8B 02 00 F4 03 04 00 A4 B2 18 67 B6 04 01 00 00 08 97 5A 52 E5 3F 74 AB [14:46:21]CommunicateWithHost err = 0 [14:46:21]CheckOFDResponse [14:46:21]1017 (14) - 77093643461234 [14:46:21]1041 (16) - 0000000000871759 [14:46:21]1040 (4) - 166765 [14:46:21]1012 (4) - 23.10.2024 08:24 [14:46:21]1206 (1) - 0 [14:46:21]OFD Sender: Remove packet 166765 [14:46:21]ProducePacketName [14:46:21]name=ofd_packets/00166765 [14:46:21]NVStorageDeleteData [14:46:22]Write to MH i2c: 01 00 00 67 23 8A [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 07 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 07 00 67 23 00 00 00 00 00 A5 0C 42 [14:46:22]RasterBufferAndPrint [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]written 0, free lines is 3242 [14:46:22]MH_Cut [14:46:22]Write to MH i2c: D1 01 00 6E 23 01 63 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 01 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 01 00 6E 23 00 62 [14:46:22]Write to MH i2c: 01 00 00 6F 23 92 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]OFD Sender: No OFD packet to send [14:46:22]*** Cut start [14:46:22]*** Partial cut [14:46:22]*** CUTSNS_PIN = 1 [14:46:22]*** CUTSNS_PIN = 0 [14:46:23]*** Brake cut motor [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]*** Stop cut motor [14:46:23]*** Cut end [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 6F 23 00 00 00 00 00 FF 0F A7 [14:46:23]process_action close_receipt done [14:46:23]requested_data is exist [14:46:23]produce_requested_data [14:46:23]requested_item fm.sn is exist - process it [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 11 00 00 [14:46:23]Write to MH i2c: E2 08 00 70 23 80 11 00 00 00 00 00 00 0D [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 70 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [14:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:23]wFMCommunicate OK [14:46:23]requested_item fd.num is exist - process it [14:46:23]SAM_PROTO_GetFieldsCounters [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 13 00 00 [14:46:23]Write to MH i2c: E2 08 00 71 23 80 13 00 00 00 00 00 00 10 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 62 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 62 00 71 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:23]wFMCommunicate OK [14:46:23]SAM_PROTO_GetFieldsCounters done [14:46:23]requested_item shift.num is exist - process it [14:46:23]requested_item shift.opened is exist - process it [14:46:23]req_shift_opened [14:46:23]FM_GetShiftState [14:46:23]SAM_PROTO_GetShiftState [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 13 01 00 [14:46:23]Write to MH i2c: E2 08 00 72 23 80 13 01 00 00 00 00 00 12 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0E 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0E 00 72 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DD [14:46:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:46:23]wFMCommunicate OK [14:46:23]SAM_PROTO_GetShiftState done [14:46:23]FM_GetShiftState done [14:46:23]req_shift_opened done [14:46:23]requested_item shift.open_date is exist - process it [14:46:23]req_shift_open_date [14:46:23]req_shift_open_date done [14:46:23]produce_requested_data done [14:46:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166765,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:46:23]process_action_free close_receipt [14:46:23]json_value_free [14:46:23]json_value_free done [14:46:23]process_json_proto returns [14:46:23]Send response to host [14:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166765,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:46:23]free response buf [14:46:23]execute_script done [14:46:23]execute_script returns [14:46:23]free content buf [14:46:23]Sock 8.Close socket [14:46:23]Sock 8.Thread stoped [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:33]accept exits with 9 [14:50:33]New connection [14:50:33]New thread 3067034980 created [14:50:33]Thread 3067178340 joined [14:50:33]Waiting for new connection... [14:50:33] Sock 9.Parse request [14:50:33]Sock 9.Check first char [14:50:33]Sock 9.First char is OK [14:50:33]request: POST /json_proto HTTP/1.0 [14:50:33]Method: POST [14:50:33]URL: /json_proto [14:50:33]Method is POST - this is cgi request [14:50:33]url: /json_proto [14:50:33]query_string will be loaded in cgi processing [14:50:33]execute_cgi json_proto POST (null) [14:50:33]execute_cgi path=json_proto method=POST [14:50:33]POST find Content-Length [14:50:33]Host: 172.17.53.195:8080 [14:50:33]Content-Length: 769 [14:50:33]Content-Type: application/json [14:50:33] [14:50:33]POST finish read [14:50:33]Found Content-Length = 769 [14:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:33]execute_script... [14:50: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)221351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:33]POST & json_proto [14:50:33]process_json_proto [14:50:33]json parsed OK: [14:50:33]protocol is kg_v1.0 [14:50:33]action value=close_receipt [14:50:33]process_action close_receipt [14:50:33]cmd_close_receipt [14:50:33]MH_GetDate [14:50:33]Write to MH i2c: F0 00 00 73 23 85 [14:50:33]Write i2c OK [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: F0 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: F0 09 00 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: F0 09 00 73 23 00 3B 0D 19 67 21 48 4A 65 6E [14:50:33]GetLastDocTimeStamp 1729694781 [14:50:33]current date 1729695035 [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 74 23 80 13 01 00 00 00 00 00 14 [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 74 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DF [14:50:33]RAPDU: 09 00 01 FC 44 18 67 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]opened in 1729643772 [14:50:33]opened+sec_in_day 1729730172 [14:50:33]quantity*price = 300064 [14:50:33]sum+1 = 300066 [14:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 181 23.10.2024 14:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166766 ФПД: 188022335268060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166766&fm=188022335268060&tin=02508201610067®Number=0000000000091764&sum=300065 [14:50:35]StoreToDocumentArchive [14:50:35]shift 537 fd 166766 [14:50:35]save to /storage/0537/doc_00166766 [14:50:35]save last doc name /storage/0537/doc_00166766 to /storage/kkm_last_doc_name [14:50:35]save OK [14:50:35]Clear old archive folders... [14:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:35]tlvbuf is 01FC73E0 [14:50:35]SAM_PROTO_ClearQueue [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 09 00 00 [14:50:35]Write to MH i2c: E2 08 00 81 23 80 09 00 00 00 00 00 00 16 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 81 23 00 90 00 18 [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]SAM_PROTO_ClearQueue done [14:50:35]KKMCreateOFDPacket [14:50:35]OFDProtocolAddRootSTLVToBuf [14:50:35]FM_MakeSignedData [14:50:35]FM_MakeSignedData [14:50:35]SAM_PROTO_SignData [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 0D 01 02 [14:50:35]Write to MH i2c: E2 08 00 82 23 80 0D 01 02 00 00 00 00 1E [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 82 23 00 90 00 19 [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]wFMCommunicate request_size=255 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 3B 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8B 02 00 35 04 06 00 AB [14:50:35]Write to MH i2c: E2 02 01 83 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 3B 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8B 02 00 35 04 06 00 AB 00 00 A7 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 83 23 00 90 00 1A [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]wFMCommunicate request_size=10 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 0D 02 02 05 01 5C 80 E4 DC [14:50:35]Write to MH i2c: E2 0D 00 84 23 80 0D 02 02 05 00 01 5C 80 E4 DC 00 00 C8 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 0D 03 02 [14:50:35]Write to MH i2c: E2 08 00 85 23 80 0D 03 02 00 00 00 00 23 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 0B 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 0B 00 85 23 00 4C 8D 74 7C 0A 55 99 84 90 00 69 [14:50:35]RAPDU: 4C 8D 74 7C 0A 55 99 84 90 00 [14:50:35]wFMCommunicate OK [14:50:35]SAM_PROTO_SignData done [14:50:35]FM_MakeSignedData done [14:50:35]CreateOFDProtocolMessage [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 11 00 00 [14:50:35]Write to MH i2c: E2 08 00 86 23 80 11 00 00 00 00 00 00 23 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 17 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 17 00 86 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [14:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:50:35]wFMCommunicate OK [14:50:35]CreateOFDProtocolMessage done [14:50:35]OFDSenderStorePacket 166766 [14:50:35]StoreOFDPacket docnum=166766 [14:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D 1E 07 01 BC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 3B 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8B 02 00 35 04 06 00 AB 01 5C 80 E4 DC 4C 8D 74 7C 0A 55 99 84 [14:50:35]CheckFolder [14:50:35]dirname=/storage/ofd_packets [14:50:35]CheckFolder done [14:50:35]ProducePacketName [14:50:35]name=ofd_packets/00166766 [14:50:35]NVStorageSaveData ofd_packets/00166766 [14:50:35]File name is /storage/ofd_packets/00166766 [14:50:35]Write 301 bytes [14:50:35]NVStorageSaveData done [14:50:35]OFDSenderStorePacket done [14:50:35]KKMCreateOFDPacket done [14:50:35]NVStorageSaveData kkm_last_timestamp [14:50:35]File name is /storage/kkm_last_timestamp [14:50:35]Write 4 bytes [14:50:35]NVStorageSaveData done [14:50:35]ExternCall_PrintAddStr [14:50:35]wPrintStart [14:50:35]Write to MH i2c: 01 00 00 87 23 AA [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: 01 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: 01 07 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: 01 07 00 87 23 00 00 00 00 00 FF 0F BF [14:50:35]RasterBufferAndPrint [14:50:35]line Счет N : (1)221351 [14:50:35]line ИНН: 02508201610067 [14:50:35]line Контрольно-Кассовый Чек [14:50:35]line ПРОДАЖА [14:50:35]line ТРК (МРК, ГНК) : 14 [14:50:35]line Товар: 2710124500 [14:50:35]line Аи-95-К-5 [14:50:35]line 40.440 * 74.20 [14:50:35]line = 3000.65 [14:50:35]line НДС 12% НСП 1% [14:50:35]line > о реализуемом товаре [14:50:35]line ИТОГО: 3000.65 [14:50:35]line НСП 1% : 26.55 [14:50:35]line НДС 12% : 318.65 [14:50:35]line Наличными: 0.00 [14:50:35]line Безнал.: 3000.65 [14:50:35]line Место: АЗС № 161 "Партнер Нефть" [14:50:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:50:35]line СНО: Общий режим [14:50:35]line Чек 181 23.10.2024 14:50 [14:50:35]line Смена: 537 ФФД: 1.0 [14:50:35]line ЗНМ: 0300000104 [14:50:35]line РНМ: 0000000000091764 [14:50:35]line Версия ККМ: 001 [14:50:35]line Платежная система: Mbank [14:50:35]line ФМ: 0000000000871759 [14:50:35]line ФД: 166766 [14:50:35]line ФПД: 188022335268060 [14:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166766&fm=188022335268060&tin=02508201610067®Number=0000000000091764&sum=300065 [14:50:35]written 0, free lines is 4095 [14:50:35]OFD Sender: Processing packet 166766 [packets to send 48, broken 47] [14:50:35]ProducePacketName [14:50:35]name=ofd_packets/00166766 [14:50:35]OFD Sender: To server: pG, [14:50:35]CommunicateWithHost lk.salyk.kg:30040 [14:50:35]ConnectInit lk.salyk.kg [14:50:35]Connected sock=10 [14:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D 1E 07 01 BC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 3B 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8B 02 00 35 04 06 00 AB 01 5C 80 E4 DC 4C 8D 74 7C 0A 55 99 84 [14:50:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD 37 47 00 D1 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8B 02 00 F4 03 04 00 A2 B3 18 67 B6 04 01 00 00 1C 02 17 37 2B C3 92 98 [14:50:36]CommunicateWithHost err = 0 [14:50:36]CheckOFDResponse [14:50:36]1017 (14) - 77093643461234 [14:50:36]1041 (16) - 0000000000871759 [14:50:36]1040 (4) - 166766 [14:50:36]1012 (4) - 23.10.2024 08:28 [14:50:36]1206 (1) - 0 [14:50:36]OFD Sender: Remove packet 166766 [14:50:36]ProducePacketName [14:50:36]name=ofd_packets/00166766 [14:50:36]NVStorageDeleteData [14:50:36]Write to MH i2c: 01 00 00 B0 23 D3 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 B0 23 00 00 00 00 00 D7 0C BD [14:50:36]RasterBufferAndPrint [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]written 0, free lines is 3294 [14:50:36]MH_Cut [14:50:36]Write to MH i2c: D1 01 00 B7 23 01 AC [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 01 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 01 00 B7 23 00 AB [14:50:36]Write to MH i2c: 01 00 00 B8 23 DB [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]OFD Sender: No OFD packet to send [14:50:37]*** Cut start [14:50:37]*** Partial cut [14:50:37]*** CUTSNS_PIN = 1 [14:50:37]*** CUTSNS_PIN = 0 [14:50:37]*** Brake cut motor [14:50:37]Read from MH i2c: 01 [14:50:37]MH_I2C_Read... [14:50:37]*** Stop cut motor [14:50:37]*** Cut end [14:50:37]Read from MH i2c: 01 07 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: 01 07 00 B8 23 00 00 00 00 00 FF 0F F0 [14:50:37]process_action close_receipt done [14:50:37]requested_data is exist [14:50:37]produce_requested_data [14:50:37]requested_item fm.sn is exist - process it [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 11 00 00 [14:50:37]Write to MH i2c: E2 08 00 B9 23 80 11 00 00 00 00 00 00 56 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 17 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 17 00 B9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [14:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:50:37]wFMCommunicate OK [14:50:37]requested_item fd.num is exist - process it [14:50:37]SAM_PROTO_GetFieldsCounters [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 13 00 00 [14:50:37]Write to MH i2c: E2 08 00 BA 23 80 13 00 00 00 00 00 00 59 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 62 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 62 00 BA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:38]wFMCommunicate OK [14:50:38]SAM_PROTO_GetFieldsCounters done [14:50:38]requested_item shift.num is exist - process it [14:50:38]requested_item shift.opened is exist - process it [14:50:38]req_shift_opened [14:50:38]FM_GetShiftState [14:50:38]SAM_PROTO_GetShiftState [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 13 01 00 [14:50:38]Write to MH i2c: E2 08 00 BB 23 80 13 01 00 00 00 00 00 5B [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0E 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0E 00 BB 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 26 [14:50:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:50:38]wFMCommunicate OK [14:50:38]SAM_PROTO_GetShiftState done [14:50:38]FM_GetShiftState done [14:50:38]req_shift_opened done [14:50:38]requested_item shift.open_date is exist - process it [14:50:38]req_shift_open_date [14:50:38]req_shift_open_date done [14:50:38]produce_requested_data done [14:50:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166766,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:50:38]process_action_free close_receipt [14:50:38]json_value_free [14:50:38]json_value_free done [14:50:38]process_json_proto returns [14:50:38]Send response to host [14:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166766,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:50:38]free response buf [14:50:38]execute_script done [14:50:38]execute_script returns [14:50:38]free content buf [14:50:38]Sock 9.Close socket [14:50:38]Sock 9.Thread stoped [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51: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:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]accept exits with 8 [14:52:11]New connection [14:52:11]New thread 3067178340 created [14:52:11]Thread 3067034980 joined [14:52:11]Waiting for new connection... [14:52:11] Sock 8.Parse request [14:52:11]Sock 8.Check first char [14:52:11]Sock 8.First char is OK [14:52:11]request: POST /json_proto HTTP/1.0 [14:52:11]Method: POST [14:52:11]URL: /json_proto [14:52:11]Method is POST - this is cgi request [14:52:11]url: /json_proto [14:52:11]query_string will be loaded in cgi processing [14:52:11]execute_cgi json_proto POST (null) [14:52:11]execute_cgi path=json_proto method=POST [14:52:11]POST find Content-Length [14:52:11]Host: 172.17.53.195:8080 [14:52:11]Content-Length: 678 [14:52:11]Content-Type: application/json [14:52:11] [14:52:11]POST finish read [14:52:11]Found Content-Length = 678 [14:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:11]execute_script... [14:52: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)221352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:11]POST & json_proto [14:52:11]process_json_proto [14:52:11]json parsed OK: [14:52:11]protocol is kg_v1.0 [14:52:11]action value=close_receipt [14:52:11]process_action close_receipt [14:52:11]cmd_close_receipt [14:52:11]MH_GetDate [14:52:11]Write to MH i2c: F0 00 00 BC 23 CE [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: F0 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: F0 09 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: F0 09 00 BC 23 00 9C 0D 19 67 21 48 4A 65 18 [14:52:11]GetLastDocTimeStamp 1729695035 [14:52:11]current date 1729695132 [14:52:11]FM_GetShiftState [14:52:11]SAM_PROTO_GetShiftState [14:52:11]wFMCommunicate request_size=4 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 13 01 00 [14:52:11]Write to MH i2c: E2 08 00 BD 23 80 13 01 00 00 00 00 00 5D [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 0E 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 0E 00 BD 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 28 [14:52:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:52:11]wFMCommunicate OK [14:52:11]SAM_PROTO_GetShiftState done [14:52:11]FM_GetShiftState done [14:52:11]opened in 1729643772 [14:52:11]opened+sec_in_day 1729730172 [14:52:11]quantity*price = 67033 [14:52:11]sum+1 = 67035 [14:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 182 23.10.2024 14:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166767 ФПД: 41870811957296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166767&fm=41870811957296&tin=02508201610067®Number=0000000000091764&sum=67000 [14:52:12]StoreToDocumentArchive [14:52:12]shift 537 fd 166767 [14:52:12]save to /storage/0537/doc_00166767 [14:52:12]save last doc name /storage/0537/doc_00166767 to /storage/kkm_last_doc_name [14:52:12]save OK [14:52:12]Clear old archive folders... [14:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:12]tlvbuf is 01FB38B0 [14:52:12]SAM_PROTO_ClearQueue [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 09 00 00 [14:52:12]Write to MH i2c: E2 08 00 CA 23 80 09 00 00 00 00 00 00 5F [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 03 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 03 00 CA 23 00 90 00 61 [14:52:12]RAPDU: 90 00 [14:52:12]wFMCommunicate OK [14:52:12]SAM_PROTO_ClearQueue done [14:52:12]KKMCreateOFDPacket [14:52:12]OFDProtocolAddRootSTLVToBuf [14:52:12]FM_MakeSignedData [14:52:12]FM_MakeSignedData [14:52:12]SAM_PROTO_SignData [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 0D 01 02 [14:52:12]Write to MH i2c: E2 08 00 CB 23 80 0D 01 02 00 00 00 00 67 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 03 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 03 00 CB 23 00 90 00 62 [14:52:12]RAPDU: 90 00 [14:52:12]wFMCommunicate OK [14:52:12]wFMCommunicate request_size=255 [14:52:12]MH_SAM_APDU [14:52: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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9D 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8B 02 00 35 04 06 00 26 [14:52:12]Write to MH i2c: E2 02 01 CC 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9D 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8B 02 00 35 04 06 00 26 00 00 B5 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 CC 23 00 90 00 63 [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]wFMCommunicate request_size=10 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 02 02 05 14 CE DF 88 30 [14:52:13]Write to MH i2c: E2 0D 00 CD 23 80 0D 02 02 05 00 14 CE DF 88 30 00 00 ED [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 CD 23 00 90 00 64 [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 03 02 [14:52:13]Write to MH i2c: E2 08 00 CE 23 80 0D 03 02 00 00 00 00 6C [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0B 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0B 00 CE 23 00 5B 2F DF 13 BB 7F 30 73 90 00 C6 [14:52:13]RAPDU: 5B 2F DF 13 BB 7F 30 73 90 00 [14:52:13]wFMCommunicate OK [14:52:13]SAM_PROTO_SignData done [14:52:13]FM_MakeSignedData done [14:52:13]CreateOFDProtocolMessage [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 11 00 00 [14:52:13]Write to MH i2c: E2 08 00 CF 23 80 11 00 00 00 00 00 00 6C [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 CF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [14:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:52:13]wFMCommunicate OK [14:52:13]CreateOFDProtocolMessage done [14:52:13]OFDSenderStorePacket 166767 [14:52:13]StoreOFDPacket docnum=166767 [14:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3E 4F 07 01 C8 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9D 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8B 02 00 35 04 06 00 26 14 CE DF 88 30 5B 2F DF 13 BB 7F 30 73 [14:52:13]CheckFolder [14:52:13]dirname=/storage/ofd_packets [14:52:13]CheckFolder done [14:52:13]ProducePacketName [14:52:13]name=ofd_packets/00166767 [14:52:13]NVStorageSaveData ofd_packets/00166767 [14:52:13]File name is /storage/ofd_packets/00166767 [14:52:13]Write 301 bytes [14:52:13]NVStorageSaveData done [14:52:13]OFDSenderStorePacket done [14:52:13]KKMCreateOFDPacket done [14:52:13]NVStorageSaveData kkm_last_timestamp [14:52:13]File name is /storage/kkm_last_timestamp [14:52:13]Write 4 bytes [14:52:13]NVStorageSaveData done [14:52:13]ExternCall_PrintAddStr [14:52:13]wPrintStart [14:52:13]Write to MH i2c: 01 00 00 D0 23 F3 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 D0 23 00 00 00 00 00 FF 0F 08 [14:52:13]RasterBufferAndPrint [14:52:13]line Счет N : (1)221352 [14:52:13]line ИНН: 02508201610067 [14:52:13]line Контрольно-Кассовый Чек [14:52:13]line ПРОДАЖА [14:52:13]line ТРК (МРК, ГНК) : 33 [14:52:13]line Товар: 2710124130 [14:52:13]line Аи-92-К-5 [14:52:13]line 10.020 * 66.90 [14:52:13]line = 670.34 [14:52:13]line НДС 12% НСП 1% [14:52:13]line > о реализуемом товаре [14:52:13]line ОКРУГЛЕНИЕ: -0.34 [14:52:13]line ИТОГО: 670.00 [14:52:13]line Внесено: 670.00 [14:52:13]line СДАЧА: 0.00 [14:52:13]line НСП 1% : 5.93 [14:52:13]line НДС 12% : 71.19 [14:52:13]line Наличными: 670.00 [14:52:13]line Безнал.: 0.00 [14:52:13]line Место: АЗС № 161 "Партнер Нефть" [14:52:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:52:13]line СНО: Общий режим [14:52:13]line Чек 182 23.10.2024 14:52 [14:52:13]line Смена: 537 ФФД: 1.0 [14:52:13]line ЗНМ: 0300000104 [14:52:13]line РНМ: 0000000000091764 [14:52:13]line Версия ККМ: 001 [14:52:13]line ФМ: 0000000000871759 [14:52:13]line ФД: 166767 [14:52:13]line ФПД: 41870811957296 [14:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166767&fm=41870811957296&tin=02508201610067®Number=0000000000091764&sum=67000 [14:52:13]OFD Sender: Processing packet 166767 [packets to send 48, broken 47] [14:52:13]ProducePacketName [14:52:13]name=ofd_packets/00166767 [14:52:13]OFD Sender: To server: pG, [14:52:13]CommunicateWithHost lk.salyk.kg:30040 [14:52:13]ConnectInit lk.salyk.kg [14:52:13]written 0, free lines is 4095 [14:52:13]Connected sock=10 [14:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3E 4F 07 01 C8 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9D 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8B 02 00 35 04 06 00 26 14 CE DF 88 30 5B 2F DF 13 BB 7F 30 73 [14:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 99 47 00 F6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8B 02 00 F4 03 04 00 04 B4 18 67 B6 04 01 00 00 CC 22 6C 90 FC B6 27 4C [14:52:13]CommunicateWithHost err = 0 [14:52:13]CheckOFDResponse [14:52:13]1017 (14) - 77093643461234 [14:52:13]1041 (16) - 0000000000871759 [14:52:13]1040 (4) - 166767 [14:52:13]1012 (4) - 23.10.2024 08:29 [14:52:13]1206 (1) - 0 [14:52:13]OFD Sender: Remove packet 166767 [14:52:13]ProducePacketName [14:52:13]name=ofd_packets/00166767 [14:52:13]NVStorageDeleteData [14:52:13]Write to MH i2c: 01 00 00 FB 23 1E [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 FB 23 00 00 00 00 00 A3 0C D4 [14:52:13]RasterBufferAndPrint [14:52:13]line [14:52:13]line [14:52:13]line [14:52:13]line [14:52:13]line [14:52:13]written 0, free lines is 3241 [14:52:13]MH_Cut [14:52:13]Write to MH i2c: D1 01 00 02 24 01 F8 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: D1 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: D1 01 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: D1 01 00 02 24 00 F7 [14:52:13]Write to MH i2c: 01 00 00 03 24 27 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:14]OFD Sender: No OFD packet to send [14:52:14]*** Cut start [14:52:14]*** Partial cut [14:52:14]*** CUTSNS_PIN = 1 [14:52:14]*** CUTSNS_PIN = 0 [14:52:15]*** Brake cut motor [14:52:15]Read from MH i2c: 01 [14:52:15]MH_I2C_Read... [14:52:15]*** Stop cut motor [14:52:15]*** Cut end [14:52:15]Read from MH i2c: 01 07 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 03 24 00 00 00 00 00 FF 0F 3C [14:52:15]process_action close_receipt done [14:52:15]requested_data is exist [14:52:15]produce_requested_data [14:52:15]requested_item fm.sn is exist - process it [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 11 00 00 [14:52:15]Write to MH i2c: E2 08 00 04 24 80 11 00 00 00 00 00 00 A2 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 04 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [14:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:52:15]wFMCommunicate OK [14:52:15]requested_item fd.num is exist - process it [14:52:15]SAM_PROTO_GetFieldsCounters [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 13 00 00 [14:52:15]Write to MH i2c: E2 08 00 05 24 80 13 00 00 00 00 00 00 A5 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 62 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 62 00 05 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:15]wFMCommunicate OK [14:52:15]SAM_PROTO_GetFieldsCounters done [14:52:15]requested_item shift.num is exist - process it [14:52:15]requested_item shift.opened is exist - process it [14:52:15]req_shift_opened [14:52:15]FM_GetShiftState [14:52:15]SAM_PROTO_GetShiftState [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 13 01 00 [14:52:15]Write to MH i2c: E2 08 00 06 24 80 13 01 00 00 00 00 00 A7 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 0E 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 0E 00 06 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 72 [14:52:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:52:15]wFMCommunicate OK [14:52:15]SAM_PROTO_GetShiftState done [14:52:15]FM_GetShiftState done [14:52:15]req_shift_opened done [14:52:15]requested_item shift.open_date is exist - process it [14:52:15]req_shift_open_date [14:52:15]req_shift_open_date done [14:52:15]produce_requested_data done [14:52:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166767,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:52:15]process_action_free close_receipt [14:52:15]json_value_free [14:52:15]json_value_free done [14:52:15]process_json_proto returns [14:52:15]Send response to host [14:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166767,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:52:15]free response buf [14:52:15]execute_script done [14:52:15]execute_script returns [14:52:15]free content buf [14:52:15]Sock 8.Close socket [14:52:15]Sock 8.Thread stoped [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:48]accept exits with 9 [14:53:48]New connection [14:53:48]New thread 3067034980 created [14:53:48]Thread 3067178340 joined [14:53:48]Waiting for new connection... [14:53:48] Sock 9.Parse request [14:53:48]Sock 9.Check first char [14:53:48]Sock 9.First char is OK [14:53:48]request: POST /json_proto HTTP/1.0 [14:53:48]Method: POST [14:53:48]URL: /json_proto [14:53:48]Method is POST - this is cgi request [14:53:48]url: /json_proto [14:53:48]query_string will be loaded in cgi processing [14:53:48]execute_cgi json_proto POST (null) [14:53:48]execute_cgi path=json_proto method=POST [14:53:48]POST find Content-Length [14:53:48]Host: 172.17.53.195:8080 [14:53:48]Content-Length: 677 [14:53:48]Content-Type: application/json [14:53:48] [14:53:48]POST finish read [14:53:48]Found Content-Length = 677 [14:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:48]execute_script... [14:53: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)221353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:48]POST & json_proto [14:53:48]process_json_proto [14:53:48]json parsed OK: [14:53:48]protocol is kg_v1.0 [14:53:48]action value=close_receipt [14:53:48]process_action close_receipt [14:53:48]cmd_close_receipt [14:53:48]MH_GetDate [14:53:48]Write to MH i2c: F0 00 00 07 24 1A [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: F0 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: F0 09 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: F0 09 00 07 24 00 FD 0D 19 67 21 48 4A 65 C5 [14:53:48]GetLastDocTimeStamp 1729695133 [14:53:48]current date 1729695229 [14:53:48]FM_GetShiftState [14:53:48]SAM_PROTO_GetShiftState [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 13 01 00 [14:53:48]Write to MH i2c: E2 08 00 08 24 80 13 01 00 00 00 00 00 A9 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0E 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0E 00 08 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 74 [14:53:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:53:48]wFMCommunicate OK [14:53:48]SAM_PROTO_GetShiftState done [14:53:48]FM_GetShiftState done [14:53:48]opened in 1729643772 [14:53:48]opened+sec_in_day 1729730172 [14:53:48]quantity*price = 50041 [14:53:48]sum+1 = 50042 [14:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 183 23.10.2024 14:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166768 ФПД: 16178408943626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166768&fm=16178408943626&tin=02508201610067®Number=0000000000091764&sum=50000 [14:53:49]StoreToDocumentArchive [14:53:49]shift 537 fd 166768 [14:53:49]save to /storage/0537/doc_00166768 [14:53:49]save last doc name /storage/0537/doc_00166768 to /storage/kkm_last_doc_name [14:53:49]save OK [14:53:49]Clear old archive folders... [14:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:49]tlvbuf is 01FE0F70 [14:53:49]SAM_PROTO_ClearQueue [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 09 00 00 [14:53:49]Write to MH i2c: E2 08 00 15 24 80 09 00 00 00 00 00 00 AB [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 15 24 00 90 00 AD [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]SAM_PROTO_ClearQueue done [14:53:49]KKMCreateOFDPacket [14:53:49]OFDProtocolAddRootSTLVToBuf [14:53:49]FM_MakeSignedData [14:53:49]FM_MakeSignedData [14:53:49]SAM_PROTO_SignData [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 01 02 [14:53:49]Write to MH i2c: E2 08 00 16 24 80 0D 01 02 00 00 00 00 B3 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=255 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 FD 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8B 02 00 35 04 06 00 0E [14:53:49]Write to MH i2c: E2 02 01 17 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FD 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8B 02 00 35 04 06 00 0E 00 00 B0 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]OFD Sender: No OFD packet to send [14:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=10 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 02 02 05 B6 D4 51 70 0A [14:53:49]Write to MH i2c: E2 0D 00 18 24 80 0D 02 02 05 00 B6 D4 51 70 0A 00 00 15 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [14:53:49]RAPDU: 90 00 [14:53:49]wFMCommunicate OK [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 0D 03 02 [14:53:49]Write to MH i2c: E2 08 00 19 24 80 0D 03 02 00 00 00 00 B8 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0B 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0B 00 19 24 00 2D FF 5E EE E0 36 CF 9A 90 00 B0 [14:53:49]RAPDU: 2D FF 5E EE E0 36 CF 9A 90 00 [14:53:49]wFMCommunicate OK [14:53:49]SAM_PROTO_SignData done [14:53:49]FM_MakeSignedData done [14:53:49]CreateOFDProtocolMessage [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 11 00 00 [14:53:49]Write to MH i2c: E2 08 00 1A 24 80 11 00 00 00 00 00 00 B8 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 17 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 17 00 1A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [14:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:53:49]wFMCommunicate OK [14:53:49]CreateOFDProtocolMessage done [14:53:49]OFDSenderStorePacket 166768 [14:53:49]StoreOFDPacket docnum=166768 [14:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 41 07 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FD 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8B 02 00 35 04 06 00 0E B6 D4 51 70 0A 2D FF 5E EE E0 36 CF 9A [14:53:49]CheckFolder [14:53:49]dirname=/storage/ofd_packets [14:53:49]CheckFolder done [14:53:49]ProducePacketName [14:53:49]name=ofd_packets/00166768 [14:53:49]NVStorageSaveData ofd_packets/00166768 [14:53:49]File name is /storage/ofd_packets/00166768 [14:53:49]Write 301 bytes [14:53:49]NVStorageSaveData done [14:53:49]OFDSenderStorePacket done [14:53:49]KKMCreateOFDPacket done [14:53:49]NVStorageSaveData kkm_last_timestamp [14:53:49]File name is /storage/kkm_last_timestamp [14:53:49]Write 4 bytes [14:53:49]NVStorageSaveData done [14:53:49]ExternCall_PrintAddStr [14:53:49]wPrintStart [14:53:49]Write to MH i2c: 01 00 00 1B 24 3F [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 1B 24 00 00 00 00 00 FF 0F 54 [14:53:49]RasterBufferAndPrint [14:53:49]line Счет N : (1)221353 [14:53:49]line ИНН: 02508201610067 [14:53:49]line Контрольно-Кассовый Чек [14:53:49]line ПРОДАЖА [14:53:49]line ТРК (МРК, ГНК) : 43 [14:53:49]line Товар: 2710124130 [14:53:49]line Аи-92-К-5 [14:53:49]line 7.480 * 66.90 [14:53:49]line = 500.41 [14:53:49]line НДС 12% НСП 1% [14:53:49]line > о реализуемом товаре [14:53:49]line ОКРУГЛЕНИЕ: -0.41 [14:53:49]line ИТОГО: 500.00 [14:53:49]line Внесено: 500.00 [14:53:49]line СДАЧА: 0.00 [14:53:49]line НСП 1% : 4.43 [14:53:49]line НДС 12% : 53.14 [14:53:49]line Наличными: 500.00 [14:53:49]line Безнал.: 0.00 [14:53:49]line Место: АЗС № 161 "Партнер Нефть" [14:53:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:53:49]line СНО: Общий режим [14:53:49]line Чек 183 23.10.2024 14:53 [14:53:49]line Смена: 537 ФФД: 1.0 [14:53:49]line ЗНМ: 0300000104 [14:53:49]line РНМ: 0000000000091764 [14:53:49]line Версия ККМ: 001 [14:53:49]line ФМ: 0000000000871759 [14:53:49]line ФД: 166768 [14:53:49]line ФПД: 16178408943626 [14:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166768&fm=16178408943626&tin=02508201610067®Number=0000000000091764&sum=50000 [14:53:50]OFD Sender: Processing packet 166768 [packets to send 48, broken 47] [14:53:50]ProducePacketName [14:53:50]name=ofd_packets/00166768 [14:53:50]OFD Sender: To server: pG, [14:53:50]CommunicateWithHost lk.salyk.kg:30040 [14:53:50]ConnectInit lk.salyk.kg [14:53:50]written 0, free lines is 4095 [14:53:50]Connected sock=10 [14:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 41 07 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FD 0D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8B 02 00 35 04 06 00 0E B6 D4 51 70 0A 2D FF 5E EE E0 36 CF 9A [14:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D B2 47 00 B9 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8B 02 00 F4 03 04 00 64 B4 18 67 B6 04 01 00 00 DC 59 24 A1 F5 28 1D 84 [14:53:50]CommunicateWithHost err = 0 [14:53:50]CheckOFDResponse [14:53:50]1017 (14) - 77093643461234 [14:53:50]1041 (16) - 0000000000871759 [14:53:50]1040 (4) - 166768 [14:53:50]1012 (4) - 23.10.2024 08:31 [14:53:50]1206 (1) - 0 [14:53:50]OFD Sender: Remove packet 166768 [14:53:50]ProducePacketName [14:53:50]name=ofd_packets/00166768 [14:53:50]NVStorageDeleteData [14:53:50]Write to MH i2c: 01 00 00 46 24 6A [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 A6 0C 23 [14:53:50]RasterBufferAndPrint [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]line [14:53:50]written 0, free lines is 3246 [14:53:50]MH_Cut [14:53:50]Write to MH i2c: D1 01 00 4D 24 01 43 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 01 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: D1 01 00 4D 24 00 42 [14:53:50]Write to MH i2c: 01 00 00 4E 24 72 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]OFD Sender: No OFD packet to send [14:53:51]*** Cut start [14:53:51]*** Partial cut [14:53:51]*** CUTSNS_PIN = 1 [14:53:51]*** CUTSNS_PIN = 0 [14:53:51]*** Brake cut motor [14:53:52]Read from MH i2c: 01 [14:53:52]MH_I2C_Read... [14:53:52]*** Stop cut motor [14:53:52]*** Cut end [14:53:52]Read from MH i2c: 01 07 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [14:53:52]process_action close_receipt done [14:53:52]requested_data is exist [14:53:52]produce_requested_data [14:53:52]requested_item fm.sn is exist - process it [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 11 00 00 [14:53:52]Write to MH i2c: E2 08 00 4F 24 80 11 00 00 00 00 00 00 ED [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 4F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [14:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:53:52]wFMCommunicate OK [14:53:52]requested_item fd.num is exist - process it [14:53:52]SAM_PROTO_GetFieldsCounters [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 00 00 [14:53:52]Write to MH i2c: E2 08 00 50 24 80 13 00 00 00 00 00 00 F0 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 50 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetFieldsCounters done [14:53:52]requested_item shift.num is exist - process it [14:53:52]requested_item shift.opened is exist - process it [14:53:52]req_shift_opened [14:53:52]FM_GetShiftState [14:53:52]SAM_PROTO_GetShiftState [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 01 00 [14:53:52]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BD [14:53:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetShiftState done [14:53:52]FM_GetShiftState done [14:53:52]req_shift_opened done [14:53:52]requested_item shift.open_date is exist - process it [14:53:52]req_shift_open_date [14:53:52]req_shift_open_date done [14:53:52]produce_requested_data done [14:53:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166768,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:53:52]process_action_free close_receipt [14:53:52]json_value_free [14:53:52]json_value_free done [14:53:52]process_json_proto returns [14:53:52]Send response to host [14:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166768,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:53:52]free response buf [14:53:52]execute_script done [14:53:52]execute_script returns [14:53:52]free content buf [14:53:52]Sock 9.Close socket [14:53:52]Sock 9.Thread stoped [14:53:55]OFD Sender: No OFD packet to send [14:53:59]accept exits with 8 [14:53:59]New connection [14:53:59]New thread 3067178340 created [14:53:59]Thread 3067034980 joined [14:53:59]Waiting for new connection... [14:53:59] Sock 8.Parse request [14:53:59]Sock 8.Check first char [14:53:59]Sock 8.First char is OK [14:53:59]request: POST /json_proto HTTP/1.0 [14:53:59]Method: POST [14:53:59]URL: /json_proto [14:53:59]Method is POST - this is cgi request [14:53:59]url: /json_proto [14:53:59]query_string will be loaded in cgi processing [14:53:59]execute_cgi json_proto POST (null) [14:53:59]execute_cgi path=json_proto method=POST [14:53:59]POST find Content-Length [14:53:59]Host: 172.17.53.195:8080 [14:53:59]Content-Length: 674 [14:53:59]Content-Type: application/json [14:53:59] [14:53:59]POST finish read [14:53:59]Found Content-Length = 674 [14:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:59]execute_script... [14:53: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)221355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:59]POST & json_proto [14:53:59]process_json_proto [14:53:59]json parsed OK: [14:53:59]protocol is kg_v1.0 [14:53:59]action value=close_receipt [14:53:59]process_action close_receipt [14:53:59]cmd_close_receipt [14:53:59]MH_GetDate [14:53:59]Write to MH i2c: F0 00 00 52 24 65 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 09 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 09 00 52 24 00 08 0E 19 67 21 48 4A 65 1C [14:53:59]GetLastDocTimeStamp 1729695229 [14:53:59]current date 1729695240 [14:53:59]FM_GetShiftState [14:53:59]SAM_PROTO_GetShiftState [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 13 01 00 [14:53:59]Write to MH i2c: E2 08 00 53 24 80 13 01 00 00 00 00 00 F4 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0E 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0E 00 53 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BF [14:53:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:53:59]wFMCommunicate OK [14:53:59]SAM_PROTO_GetShiftState done [14:53:59]FM_GetShiftState done [14:53:59]opened in 1729643772 [14:53:59]opened+sec_in_day 1729730172 [14:53:59]quantity*price = 70027 [14:53:59]sum+1 = 70029 [14:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 184 23.10.2024 14:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166769 ФПД: 235623980738999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145400&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166769&fm=235623980738999&tin=02508201610067®Number=0000000000091764&sum=70000 [14:54:00]StoreToDocumentArchive [14:54:00]shift 537 fd 166769 [14:54:00]save to /storage/0537/doc_00166769 [14:54:00]save last doc name /storage/0537/doc_00166769 to /storage/kkm_last_doc_name [14:54:00]save OK [14:54:00]Clear old archive folders... [14:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:00]tlvbuf is 01FB4020 [14:54:00]SAM_PROTO_ClearQueue [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 09 00 00 [14:54:00]Write to MH i2c: E2 08 00 60 24 80 09 00 00 00 00 00 00 F6 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_ClearQueue done [14:54:00]KKMCreateOFDPacket [14:54:00]OFDProtocolAddRootSTLVToBuf [14:54:00]FM_MakeSignedData [14:54:00]FM_MakeSignedData [14:54:00]SAM_PROTO_SignData [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 01 02 [14:54:00]Write to MH i2c: E2 08 00 61 24 80 0D 01 02 00 00 00 00 FE [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=255 [14:54:00]MH_SAM_APDU [14:54: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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 08 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8B 02 00 35 04 06 00 D6 4C 7B AC [14:54:00]Write to MH i2c: E2 02 01 62 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 08 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8B 02 00 35 04 06 00 D6 4C 7B AC 00 00 36 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 62 24 00 90 00 FA [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=7 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 02 02 02 29 B7 [14:54:00]Write to MH i2c: E2 0A 00 63 24 80 0D 02 02 02 00 29 B7 00 00 E5 [14:54:00]OFD Sender: No OFD packet to send [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 63 24 00 90 00 FB [14:54:01]RAPDU: 90 00 [14:54:01]wFMCommunicate OK [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 0D 03 02 [14:54:01]Write to MH i2c: E2 08 00 64 24 80 0D 03 02 00 00 00 00 03 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0B 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0B 00 64 24 00 66 AB 5C 0D FB 00 C4 13 90 00 50 [14:54:01]RAPDU: 66 AB 5C 0D FB 00 C4 13 90 00 [14:54:01]wFMCommunicate OK [14:54:01]SAM_PROTO_SignData done [14:54:01]FM_MakeSignedData done [14:54:01]CreateOFDProtocolMessage [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 11 00 00 [14:54:01]Write to MH i2c: E2 08 00 65 24 80 11 00 00 00 00 00 00 03 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 65 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [14:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:54:01]wFMCommunicate OK [14:54:01]CreateOFDProtocolMessage done [14:54:01]OFDSenderStorePacket 166769 [14:54:01]StoreOFDPacket docnum=166769 [14:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 89 04 01 B3 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 08 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8B 02 00 35 04 06 00 D6 4C 7B AC 29 B7 66 AB 5C 0D FB 00 C4 13 [14:54:01]CheckFolder [14:54:01]dirname=/storage/ofd_packets [14:54:01]CheckFolder done [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00166769 [14:54:01]NVStorageSaveData ofd_packets/00166769 [14:54:01]File name is /storage/ofd_packets/00166769 [14:54:01]Write 298 bytes [14:54:01]NVStorageSaveData done [14:54:01]OFDSenderStorePacket done [14:54:01]KKMCreateOFDPacket done [14:54:01]NVStorageSaveData kkm_last_timestamp [14:54:01]File name is /storage/kkm_last_timestamp [14:54:01]Write 4 bytes [14:54:01]NVStorageSaveData done [14:54:01]ExternCall_PrintAddStr [14:54:01]wPrintStart [14:54:01]Write to MH i2c: 01 00 00 66 24 8A [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 FF 0F 9F [14:54:01]RasterBufferAndPrint [14:54:01]line Счет N : (1)221355 [14:54:01]line ИНН: 02508201610067 [14:54:01]line Контрольно-Кассовый Чек [14:54:01]line ПРОДАЖА [14:54:01]line ТРК (МРК, ГНК) : 31 [14:54:01]line Товар: 2710194210 [14:54:01]line ДТ-К-5 [14:54:01]line 9.190 * 76.20 [14:54:01]line = 700.28 [14:54:01]line НДС 12% НСП 1% [14:54:01]line > о реализуемом товаре [14:54:01]line ОКРУГЛЕНИЕ: -0.28 [14:54:01]line ИТОГО: 700.00 [14:54:01]line Внесено: 700.00 [14:54:01]line СДАЧА: 0.00 [14:54:01]line НСП 1% : 6.20 [14:54:01]line НДС 12% : 74.37 [14:54:01]line Наличными: 700.00 [14:54:01]line Безнал.: 0.00 [14:54:01]line Место: АЗС № 161 "Партнер Нефть" [14:54:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:54:01]line СНО: Общий режим [14:54:01]line Чек 184 23.10.2024 14:54 [14:54:01]line Смена: 537 ФФД: 1.0 [14:54:01]line ЗНМ: 0300000104 [14:54:01]line РНМ: 0000000000091764 [14:54:01]line Версия ККМ: 001 [14:54:01]line ФМ: 0000000000871759 [14:54:01]line ФД: 166769 [14:54:01]line ФПД: 235623980738999 [14:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145400&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166769&fm=235623980738999&tin=02508201610067®Number=0000000000091764&sum=70000 [14:54:01]written 0, free lines is 4095 [14:54:01]OFD Sender: Processing packet 166769 [packets to send 48, broken 47] [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00166769 [14:54:01]OFD Sender: To server: pG, [14:54:01]CommunicateWithHost lk.salyk.kg:30040 [14:54:01]ConnectInit lk.salyk.kg [14:54:01]Connected sock=10 [14:54:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 89 04 01 B3 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 08 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8B 02 00 35 04 06 00 D6 4C 7B AC 29 B7 66 AB 5C 0D FB 00 C4 13 [14:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 72 44 47 00 26 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8B 02 00 F4 03 04 00 70 B4 18 67 B6 04 01 00 00 01 63 9E EB D3 F8 60 8A [14:54:01]CommunicateWithHost err = 0 [14:54:01]CheckOFDResponse [14:54:01]1017 (14) - 77093643461234 [14:54:01]1041 (16) - 0000000000871759 [14:54:01]1040 (4) - 166769 [14:54:01]1012 (4) - 23.10.2024 08:31 [14:54:01]1206 (1) - 0 [14:54:01]OFD Sender: Remove packet 166769 [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00166769 [14:54:01]NVStorageDeleteData [14:54:01]Write to MH i2c: 01 00 00 91 24 B5 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 91 24 00 00 00 00 00 B1 0C 79 [14:54:01]RasterBufferAndPrint [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]written 0, free lines is 3260 [14:54:01]MH_Cut [14:54:01]Write to MH i2c: D1 01 00 98 24 01 8E [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 98 24 00 8D [14:54:01]Write to MH i2c: 01 00 00 99 24 BD [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:02]OFD Sender: No OFD packet to send [14:54:02]*** Cut start [14:54:02]*** Partial cut [14:54:02]*** CUTSNS_PIN = 1 [14:54:02]*** CUTSNS_PIN = 0 [14:54:02]*** Brake cut motor [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]*** Stop cut motor [14:54:03]*** Cut end [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 FF 0F D2 [14:54:03]process_action close_receipt done [14:54:03]requested_data is exist [14:54:03]produce_requested_data [14:54:03]requested_item fm.sn is exist - process it [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 9A 24 80 11 00 00 00 00 00 00 38 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 9A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:54:03]wFMCommunicate OK [14:54:03]requested_item fd.num is exist - process it [14:54:03]SAM_PROTO_GetFieldsCounters [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 00 00 [14:54:03]Write to MH i2c: E2 08 00 9B 24 80 13 00 00 00 00 00 00 3B [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 9B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetFieldsCounters done [14:54:03]requested_item shift.num is exist - process it [14:54:03]requested_item shift.opened is exist - process it [14:54:03]req_shift_opened [14:54:03]FM_GetShiftState [14:54:03]SAM_PROTO_GetShiftState [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 01 00 [14:54:03]Write to MH i2c: E2 08 00 9C 24 80 13 01 00 00 00 00 00 3D [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 9C 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 08 [14:54:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetShiftState done [14:54:03]FM_GetShiftState done [14:54:03]req_shift_opened done [14:54:03]requested_item shift.open_date is exist - process it [14:54:03]req_shift_open_date [14:54:03]req_shift_open_date done [14:54:03]produce_requested_data done [14:54:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166769,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:54:03]process_action_free close_receipt [14:54:03]json_value_free [14:54:03]json_value_free done [14:54:03]process_json_proto returns [14:54:03]Send response to host [14:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166769,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:54:03]free response buf [14:54:03]execute_script done [14:54:03]execute_script returns [14:54:03]free content buf [14:54:03]Sock 8.Close socket [14:54:03]Sock 8.Thread stoped [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:31]accept exits with 9 [14:55:31]New connection [14:55:31]New thread 3067034980 created [14:55:31]Thread 3067178340 joined [14:55:31]Waiting for new connection... [14:55:31] Sock 9.Parse request [14:55:31]Sock 9.Check first char [14:55:31]Sock 9.First char is OK [14:55:31]request: POST /json_proto HTTP/1.0 [14:55:31]Method: POST [14:55:31]URL: /json_proto [14:55:31]Method is POST - this is cgi request [14:55:31]url: /json_proto [14:55:31]query_string will be loaded in cgi processing [14:55:31]execute_cgi json_proto POST (null) [14:55:31]execute_cgi path=json_proto method=POST [14:55:31]POST find Content-Length [14:55:31]Host: 172.17.53.195:8080 [14:55:31]Content-Length: 682 [14:55:31]Content-Type: application/json [14:55:31] [14:55:31]POST finish read [14:55:31]Found Content-Length = 682 [14:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:31]execute_script... [14:55: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)221354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:31]POST & json_proto [14:55:31]process_json_proto [14:55:31]json parsed OK: [14:55:31]protocol is kg_v1.0 [14:55:31]action value=close_receipt [14:55:31]process_action close_receipt [14:55:31]cmd_close_receipt [14:55:31]MH_GetDate [14:55:31]Write to MH i2c: F0 00 00 9D 24 B0 [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 09 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 09 00 9D 24 00 64 0E 19 67 21 48 4A 65 C3 [14:55:31]GetLastDocTimeStamp 1729695240 [14:55:31]current date 1729695332 [14:55:31]FM_GetShiftState [14:55:31]SAM_PROTO_GetShiftState [14:55:31]wFMCommunicate request_size=4 [14:55:31]MH_SAM_APDU [14:55:31]CAPDU: 80 13 01 00 [14:55:31]Write to MH i2c: E2 08 00 9E 24 80 13 01 00 00 00 00 00 3F [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:31]Read from MH i2c: E2 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 0E 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 0E 00 9E 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0A [14:55:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:55:31]wFMCommunicate OK [14:55:31]SAM_PROTO_GetShiftState done [14:55:31]FM_GetShiftState done [14:55:31]opened in 1729643772 [14:55:31]opened+sec_in_day 1729730172 [14:55:31]quantity*price = 200031 [14:55:31]sum+1 = 200032 [14:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 185 23.10.2024 14:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166770 ФПД: 235762941477344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166770&fm=235762941477344&tin=02508201610067®Number=0000000000091764&sum=200000 [14:55:32]StoreToDocumentArchive [14:55:32]shift 537 fd 166770 [14:55:32]save to /storage/0537/doc_00166770 [14:55:32]save last doc name /storage/0537/doc_00166770 to /storage/kkm_last_doc_name [14:55:32]save OK [14:55:32]Clear old archive folders... [14:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:32]tlvbuf is B6F8F9B0 [14:55:32]SAM_PROTO_ClearQueue [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 09 00 00 [14:55:32]Write to MH i2c: E2 08 00 AB 24 80 09 00 00 00 00 00 00 41 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 AB 24 00 90 00 43 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_ClearQueue done [14:55:32]KKMCreateOFDPacket [14:55:32]OFDProtocolAddRootSTLVToBuf [14:55:32]FM_MakeSignedData [14:55:32]FM_MakeSignedData [14:55:32]SAM_PROTO_SignData [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 01 02 [14:55:32]Write to MH i2c: E2 08 00 AC 24 80 0D 01 02 00 00 00 00 49 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 AC 24 00 90 00 44 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=255 [14:55:32]MH_SAM_APDU [14:55: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 64 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8B 02 00 35 04 06 00 D6 [14:55:32]Write to MH i2c: E2 02 01 AD 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 64 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8B 02 00 35 04 06 00 D6 00 00 BC [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 AD 24 00 90 00 45 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=10 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 02 02 05 6C D6 60 C1 E0 [14:55:32]Write to MH i2c: E2 0D 00 AE 24 80 0D 02 02 05 00 6C D6 60 C1 E0 00 00 99 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 AE 24 00 90 00 46 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 03 02 [14:55:32]Write to MH i2c: E2 08 00 AF 24 80 0D 03 02 00 00 00 00 4E [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0B 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0B 00 AF 24 00 44 C0 DF B0 35 7F 63 86 90 00 7F [14:55:32]RAPDU: 44 C0 DF B0 35 7F 63 86 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_SignData done [14:55:32]FM_MakeSignedData done [14:55:32]CreateOFDProtocolMessage [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 11 00 00 [14:55:32]Write to MH i2c: E2 08 00 B0 24 80 11 00 00 00 00 00 00 4E [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 B0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [14:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:55:32]wFMCommunicate OK [14:55:32]CreateOFDProtocolMessage done [14:55:32]OFDSenderStorePacket 166770 [14:55:32]StoreOFDPacket docnum=166770 [14:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 5D 07 01 32 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 64 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8B 02 00 35 04 06 00 D6 6C D6 60 C1 E0 44 C0 DF B0 35 7F 63 86 [14:55:32]CheckFolder [14:55:32]dirname=/storage/ofd_packets [14:55:32]CheckFolder done [14:55:32]ProducePacketName [14:55:32]name=ofd_packets/00166770 [14:55:32]NVStorageSaveData ofd_packets/00166770 [14:55:32]File name is /storage/ofd_packets/00166770 [14:55:32]Write 301 bytes [14:55:32]NVStorageSaveData done [14:55:32]OFDSenderStorePacket done [14:55:32]KKMCreateOFDPacket done [14:55:32]NVStorageSaveData kkm_last_timestamp [14:55:32]File name is /storage/kkm_last_timestamp [14:55:32]Write 4 bytes [14:55:32]NVStorageSaveData done [14:55:32]ExternCall_PrintAddStr [14:55:32]wPrintStart [14:55:32]Write to MH i2c: 01 00 00 B1 24 D5 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 B1 24 00 00 00 00 00 FF 0F EA [14:55:32]RasterBufferAndPrint [14:55:32]line Счет N : (1)221354 [14:55:32]line ИНН: 02508201610067 [14:55:32]line Контрольно-Кассовый Чек [14:55:32]line ПРОДАЖА [14:55:32]line ТРК (МРК, ГНК) : 23 [14:55:32]line Товар: 2710124130 [14:55:32]line Аи-92-К-5 [14:55:32]line 29.900 * 66.90 [14:55:32]line = 2000.31 [14:55:32]line НДС 12% НСП 1% [14:55:32]line > о реализуемом товаре [14:55:32]line ОКРУГЛЕНИЕ: -0.31 [14:55:32]line ИТОГО: 2000.00 [14:55:32]line Внесено: 2000.00 [14:55:32]line СДАЧА: 0.00 [14:55:32]line НСП 1% : 17.70 [14:55:32]line НДС 12% : 212.42 [14:55:32]line Наличными: 2000.00 [14:55:32]line Безнал.: 0.00 [14:55:32]line Место: АЗС № 161 "Партнер Нефть" [14:55:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:55:32]line СНО: Общий режим [14:55:32]line Чек 185 23.10.2024 14:55 [14:55:32]line Смена: 537 ФФД: 1.0 [14:55:32]line ЗНМ: 0300000104 [14:55:32]line РНМ: 0000000000091764 [14:55:32]line Версия ККМ: 001 [14:55:32]line ФМ: 0000000000871759 [14:55:32]line ФД: 166770 [14:55:32]line ФПД: 235762941477344 [14:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166770&fm=235762941477344&tin=02508201610067®Number=0000000000091764&sum=200000 [14:55:33]OFD Sender: Processing packet 166770 [packets to send 48, broken 47] [14:55:33]ProducePacketName [14:55:33]name=ofd_packets/00166770 [14:55:33]OFD Sender: To server: pG, [14:55:33]CommunicateWithHost lk.salyk.kg:30040 [14:55:33]ConnectInit lk.salyk.kg [14:55:33]written 0, free lines is 4095 [14:55:33]Connected sock=10 [14:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 5D 07 01 32 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 64 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8B 02 00 35 04 06 00 D6 6C D6 60 C1 E0 44 C0 DF B0 35 7F 63 86 [14:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D5 5D 47 00 CB 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8B 02 00 F4 03 04 00 CC B4 18 67 B6 04 01 00 00 FC FA CB 29 F3 95 47 E2 [14:55:33]CommunicateWithHost err = 0 [14:55:33]CheckOFDResponse [14:55:33]1017 (14) - 77093643461234 [14:55:33]1041 (16) - 0000000000871759 [14:55:33]1040 (4) - 166770 [14:55:33]1012 (4) - 23.10.2024 08:33 [14:55:33]1206 (1) - 0 [14:55:33]OFD Sender: Remove packet 166770 [14:55:33]ProducePacketName [14:55:33]name=ofd_packets/00166770 [14:55:33]NVStorageDeleteData [14:55:33]Write to MH i2c: 01 00 00 DC 24 00 [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 07 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 07 00 DC 24 00 00 00 00 00 A7 0C BA [14:55:33]RasterBufferAndPrint [14:55:33]line [14:55:33]line [14:55:33]line [14:55:33]line [14:55:33]line [14:55:33]written 0, free lines is 3242 [14:55:33]MH_Cut [14:55:33]Write to MH i2c: D1 01 00 E3 24 01 D9 [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: D1 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: D1 01 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: D1 01 00 E3 24 00 D8 [14:55:33]Write to MH i2c: 01 00 00 E4 24 08 [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:34]OFD Sender: No OFD packet to send [14:55:34]*** Cut start [14:55:34]*** Partial cut [14:55:34]*** CUTSNS_PIN = 1 [14:55:34]*** CUTSNS_PIN = 0 [14:55:34]*** Brake cut motor [14:55:35]Read from MH i2c: 01 [14:55:35]MH_I2C_Read... [14:55:35]*** Stop cut motor [14:55:35]*** Cut end [14:55:35]Read from MH i2c: 01 07 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: 01 07 00 E4 24 00 00 00 00 00 FF 0F 1D [14:55:35]process_action close_receipt done [14:55:35]requested_data is exist [14:55:35]produce_requested_data [14:55:35]requested_item fm.sn is exist - process it [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 11 00 00 [14:55:35]Write to MH i2c: E2 08 00 E5 24 80 11 00 00 00 00 00 00 83 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 17 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 17 00 E5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [14:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:55:35]wFMCommunicate OK [14:55:35]requested_item fd.num is exist - process it [14:55:35]SAM_PROTO_GetFieldsCounters [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 13 00 00 [14:55:35]Write to MH i2c: E2 08 00 E6 24 80 13 00 00 00 00 00 00 86 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 62 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 62 00 E6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:35]wFMCommunicate OK [14:55:35]SAM_PROTO_GetFieldsCounters done [14:55:35]requested_item shift.num is exist - process it [14:55:35]requested_item shift.opened is exist - process it [14:55:35]req_shift_opened [14:55:35]FM_GetShiftState [14:55:35]SAM_PROTO_GetShiftState [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 13 01 00 [14:55:35]Write to MH i2c: E2 08 00 E7 24 80 13 01 00 00 00 00 00 88 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 0E 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 0E 00 E7 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 53 [14:55:35]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:55:35]wFMCommunicate OK [14:55:35]SAM_PROTO_GetShiftState done [14:55:35]FM_GetShiftState done [14:55:35]req_shift_opened done [14:55:35]requested_item shift.open_date is exist - process it [14:55:35]req_shift_open_date [14:55:35]req_shift_open_date done [14:55:35]produce_requested_data done [14:55:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166770,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:55:35]process_action_free close_receipt [14:55:35]json_value_free [14:55:35]json_value_free done [14:55:35]process_json_proto returns [14:55:35]Send response to host [14:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166770,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:55:35]free response buf [14:55:35]execute_script done [14:55:35]execute_script returns [14:55:35]free content buf [14:55:35]Sock 9.Close socket [14:55:35]Sock 9.Thread stoped [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:28]accept exits with 8 [14:56:28]New connection [14:56:28]New thread 3067178340 created [14:56:28]Thread 3067034980 joined [14:56:28]Waiting for new connection... [14:56:28] Sock 8.Parse request [14:56:28]Sock 8.Check first char [14:56:28]Sock 8.First char is OK [14:56:28]request: POST /json_proto HTTP/1.0 [14:56:28]Method: POST [14:56:28]URL: /json_proto [14:56:28]Method is POST - this is cgi request [14:56:28]url: /json_proto [14:56:28]query_string will be loaded in cgi processing [14:56:28]execute_cgi json_proto POST (null) [14:56:28]execute_cgi path=json_proto method=POST [14:56:28]POST find Content-Length [14:56:28]Host: 172.17.53.195:8080 [14:56:28]Content-Length: 682 [14:56:28]Content-Type: application/json [14:56:28] [14:56:28]POST finish read [14:56:28]Found Content-Length = 682 [14:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:28]execute_script... [14:56: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)221356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:28]POST & json_proto [14:56:28]process_json_proto [14:56:28]json parsed OK: [14:56:28]protocol is kg_v1.0 [14:56:28]action value=close_receipt [14:56:28]process_action close_receipt [14:56:28]cmd_close_receipt [14:56:28]MH_GetDate [14:56:28]Write to MH i2c: F0 00 00 E8 24 FB [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: F0 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: F0 09 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: F0 09 00 E8 24 00 9D 0E 19 67 21 48 4A 65 47 [14:56:28]GetLastDocTimeStamp 1729695332 [14:56:28]current date 1729695389 [14:56:28]FM_GetShiftState [14:56:28]SAM_PROTO_GetShiftState [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 13 01 00 [14:56:28]Write to MH i2c: E2 08 00 E9 24 80 13 01 00 00 00 00 00 8A [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0E 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0E 00 E9 24 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 55 [14:56:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_GetShiftState done [14:56:28]FM_GetShiftState done [14:56:28]opened in 1729643772 [14:56:28]opened+sec_in_day 1729730172 [14:56:28]quantity*price = 100015 [14:56:28]sum+1 = 100017 [14:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 186 23.10.2024 14:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166771 ФПД: 56478335478803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145630&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166771&fm=56478335478803&tin=02508201610067®Number=0000000000091764&sum=100000 [14:56:29]StoreToDocumentArchive [14:56:29]shift 537 fd 166771 [14:56:29]save to /storage/0537/doc_00166771 [14:56:29]save last doc name /storage/0537/doc_00166771 to /storage/kkm_last_doc_name [14:56:29]save OK [14:56:29]Clear old archive folders... [14:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:29]tlvbuf is 01FDA9E0 [14:56:29]SAM_PROTO_ClearQueue [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 09 00 00 [14:56:29]Write to MH i2c: E2 08 00 F6 24 80 09 00 00 00 00 00 00 8C [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 F6 24 00 90 00 8E [14:56:29]RAPDU: 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_ClearQueue done [14:56:29]KKMCreateOFDPacket [14:56:29]OFDProtocolAddRootSTLVToBuf [14:56:29]FM_MakeSignedData [14:56:29]FM_MakeSignedData [14:56:29]SAM_PROTO_SignData [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 0D 01 02 [14:56:29]Write to MH i2c: E2 08 00 F7 24 80 0D 01 02 00 00 00 00 94 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [14:56:29]RAPDU: 90 00 [14:56:29]wFMCommunicate OK [14:56:29]wFMCommunicate request_size=255 [14:56:29]MH_SAM_APDU [14:56: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8B 02 00 35 04 06 00 33 [14:56:29]Write to MH i2c: E2 02 01 F8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8B 02 00 35 04 06 00 33 00 00 58 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 03 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [14:56:30]RAPDU: 90 00 [14:56:30]wFMCommunicate OK [14:56:30]wFMCommunicate request_size=10 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 0D 02 02 05 5D E3 1F AC 13 [14:56:30]Write to MH i2c: E2 0D 00 F9 24 80 0D 02 02 05 00 5D E3 1F AC 13 00 00 BF [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 03 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [14:56:30]RAPDU: 90 00 [14:56:30]wFMCommunicate OK [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 0D 03 02 [14:56:30]Write to MH i2c: E2 08 00 FA 24 80 0D 03 02 00 00 00 00 99 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0B 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0B 00 FA 24 00 15 9A 85 CE 5B B4 98 18 90 00 5B [14:56:30]RAPDU: 15 9A 85 CE 5B B4 98 18 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_SignData done [14:56:30]FM_MakeSignedData done [14:56:30]CreateOFDProtocolMessage [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 11 00 00 [14:56:30]Write to MH i2c: E2 08 00 FB 24 80 11 00 00 00 00 00 00 99 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 FB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [14:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:30]wFMCommunicate OK [14:56:30]CreateOFDProtocolMessage done [14:56:30]OFDSenderStorePacket 166771 [14:56:30]StoreOFDPacket docnum=166771 [14:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 20 07 01 A5 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 9E 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8B 02 00 35 04 06 00 33 5D E3 1F AC 13 15 9A 85 CE 5B B4 98 18 [14:56:30]CheckFolder [14:56:30]dirname=/storage/ofd_packets [14:56:30]CheckFolder done [14:56:30]ProducePacketName [14:56:30]name=ofd_packets/00166771 [14:56:30]NVStorageSaveData ofd_packets/00166771 [14:56:30]File name is /storage/ofd_packets/00166771 [14:56:30]Write 301 bytes [14:56:30]NVStorageSaveData done [14:56:30]OFDSenderStorePacket done [14:56:30]KKMCreateOFDPacket done [14:56:30]NVStorageSaveData kkm_last_timestamp [14:56:30]File name is /storage/kkm_last_timestamp [14:56:30]Write 4 bytes [14:56:30]NVStorageSaveData done [14:56:30]ExternCall_PrintAddStr [14:56:30]wPrintStart [14:56:30]Write to MH i2c: 01 00 00 FC 24 20 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 FC 24 00 00 00 00 00 FF 0F 35 [14:56:30]RasterBufferAndPrint [14:56:30]line Счет N : (1)221356 [14:56:30]line ИНН: 02508201610067 [14:56:30]line Контрольно-Кассовый Чек [14:56:30]line ПРОДАЖА [14:56:30]line ТРК (МРК, ГНК) : 43 [14:56:30]line Товар: 2710124130 [14:56:30]line Аи-92-К-5 [14:56:30]line 14.950 * 66.90 [14:56:30]line = 1000.16 [14:56:30]line НДС 12% НСП 1% [14:56:30]line > о реализуемом товаре [14:56:30]line ОКРУГЛЕНИЕ: -0.16 [14:56:30]line ИТОГО: 1000.00 [14:56:30]line Внесено: 1000.00 [14:56:30]line СДАЧА: 0.00 [14:56:30]line НСП 1% : 8.85 [14:56:30]line НДС 12% : 106.21 [14:56:30]line Наличными: 1000.00 [14:56:30]line Безнал.: 0.00 [14:56:30]line Место: АЗС № 161 "Партнер Нефть" [14:56:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:56:30]line СНО: Общий режим [14:56:30]line Чек 186 23.10.2024 14:56 [14:56:30]line Смена: 537 ФФД: 1.0 [14:56:30]line ЗНМ: 0300000104 [14:56:30]line РНМ: 0000000000091764 [14:56:30]line Версия ККМ: 001 [14:56:30]line ФМ: 0000000000871759 [14:56:30]line ФД: 166771 [14:56:30]line ФПД: 56478335478803 [14:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145630&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166771&fm=56478335478803&tin=02508201610067®Number=0000000000091764&sum=100000 [14:56:30]OFD Sender: Processing packet 166771 [packets to send 48, broken 47] [14:56:30]ProducePacketName [14:56:30]name=ofd_packets/00166771 [14:56:30]OFD Sender: To server: pG, [14:56:30]CommunicateWithHost lk.salyk.kg:30040 [14:56:30]ConnectInit lk.salyk.kg [14:56:30]written 0, free lines is 4095 [14:56:30]Connected sock=10 [14:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 20 07 01 A5 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 9E 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8B 02 00 35 04 06 00 33 5D E3 1F AC 13 15 9A 85 CE 5B B4 98 18 [14:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 43 47 00 3D EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8B 02 00 F4 03 04 00 05 B5 18 67 B6 04 01 00 00 29 A7 D4 B0 12 5C A6 F7 [14:56:31]CommunicateWithHost err = 0 [14:56:31]CheckOFDResponse [14:56:31]1017 (14) - 77093643461234 [14:56:31]1041 (16) - 0000000000871759 [14:56:31]1040 (4) - 166771 [14:56:31]1012 (4) - 23.10.2024 08:34 [14:56:31]1206 (1) - 0 [14:56:31]OFD Sender: Remove packet 166771 [14:56:31]ProducePacketName [14:56:31]name=ofd_packets/00166771 [14:56:31]NVStorageDeleteData [14:56:31]Write to MH i2c: 01 00 00 27 25 4C [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: 01 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: 01 07 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: 01 07 00 27 25 00 00 00 00 00 BC 0C 1B [14:56:31]RasterBufferAndPrint [14:56:31]line [14:56:31]line [14:56:31]line [14:56:31]line [14:56:31]line [14:56:31]written 0, free lines is 3267 [14:56:31]MH_Cut [14:56:31]Write to MH i2c: D1 01 00 2E 25 01 25 [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: D1 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: D1 01 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: D1 01 00 2E 25 00 24 [14:56:31]Write to MH i2c: 01 00 00 2F 25 54 [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]OFD Sender: No OFD packet to send [14:56:31]*** Cut start [14:56:31]*** Partial cut [14:56:31]*** CUTSNS_PIN = 1 [14:56:31]*** CUTSNS_PIN = 0 [14:56:32]*** Brake cut motor [14:56:32]Read from MH i2c: 01 [14:56:32]MH_I2C_Read... [14:56:32]*** Stop cut motor [14:56:32]*** Cut end [14:56:32]Read from MH i2c: 01 07 00 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: 01 07 00 2F 25 00 00 00 00 00 FF 0F 69 [14:56:32]process_action close_receipt done [14:56:32]requested_data is exist [14:56:32]produce_requested_data [14:56:32]requested_item fm.sn is exist - process it [14:56:32]wFMCommunicate request_size=4 [14:56:32]MH_SAM_APDU [14:56:32]CAPDU: 80 11 00 00 [14:56:32]Write to MH i2c: E2 08 00 30 25 80 11 00 00 00 00 00 00 CF [14:56:32]Write i2c OK [14:56:32]MH_I2C_Read... [14:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:32]Read from MH i2c: E2 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 17 00 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 17 00 30 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [14:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:32]wFMCommunicate OK [14:56:32]requested_item fd.num is exist - process it [14:56:32]SAM_PROTO_GetFieldsCounters [14:56:32]wFMCommunicate request_size=4 [14:56:32]MH_SAM_APDU [14:56:32]CAPDU: 80 13 00 00 [14:56:32]Write to MH i2c: E2 08 00 31 25 80 13 00 00 00 00 00 00 D2 [14:56:32]Write i2c OK [14:56:32]MH_I2C_Read... [14:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:32]Read from MH i2c: E2 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 62 00 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 62 00 31 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:56:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:32]wFMCommunicate OK [14:56:32]SAM_PROTO_GetFieldsCounters done [14:56:32]requested_item shift.num is exist - process it [14:56:32]requested_item shift.opened is exist - process it [14:56:32]req_shift_opened [14:56:32]FM_GetShiftState [14:56:32]SAM_PROTO_GetShiftState [14:56:32]wFMCommunicate request_size=4 [14:56:32]MH_SAM_APDU [14:56:32]CAPDU: 80 13 01 00 [14:56:32]Write to MH i2c: E2 08 00 32 25 80 13 01 00 00 00 00 00 D4 [14:56:32]Write i2c OK [14:56:32]MH_I2C_Read... [14:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:32]Read from MH i2c: E2 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 0E 00 [14:56:32]MH_I2C_Read... [14:56:32]Read from MH i2c: E2 0E 00 32 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9F [14:56:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:56:32]wFMCommunicate OK [14:56:32]SAM_PROTO_GetShiftState done [14:56:32]FM_GetShiftState done [14:56:32]req_shift_opened done [14:56:32]requested_item shift.open_date is exist - process it [14:56:32]req_shift_open_date [14:56:32]req_shift_open_date done [14:56:32]produce_requested_data done [14:56:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166771,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:56:32]process_action_free close_receipt [14:56:32]json_value_free [14:56:32]json_value_free done [14:56:32]process_json_proto returns [14:56:32]Send response to host [14:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166771,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:56:32]free response buf [14:56:32]execute_script done [14:56:32]execute_script returns [14:56:32]free content buf [14:56:32]Sock 8.Close socket [14:56:32]Sock 8.Thread stoped [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:55]accept exits with 9 [14:56:55]New connection [14:56:55]New thread 3067034980 created [14:56:55]Thread 3067178340 joined [14:56:55]Waiting for new connection... [14:56:55] Sock 9.Parse request [14:56:55]Sock 9.Check first char [14:56:55]Sock 9.First char is OK [14:56:55]request: POST /json_proto HTTP/1.0 [14:56:55]Method: POST [14:56:55]URL: /json_proto [14:56:55]Method is POST - this is cgi request [14:56:55]url: /json_proto [14:56:55]query_string will be loaded in cgi processing [14:56:55]execute_cgi json_proto POST (null) [14:56:55]execute_cgi path=json_proto method=POST [14:56:55]POST find Content-Length [14:56:55]Host: 172.17.53.195:8080 [14:56:55]Content-Length: 677 [14:56:55]Content-Type: application/json [14:56:55] [14:56:55]POST finish read [14:56:55]Found Content-Length = 677 [14:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:55]execute_script... [14:56: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)221357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:55]POST & json_proto [14:56:55]process_json_proto [14:56:55]json parsed OK: [14:56:55]protocol is kg_v1.0 [14:56:55]action value=close_receipt [14:56:55]process_action close_receipt [14:56:55]cmd_close_receipt [14:56:55]MH_GetDate [14:56:55]Write to MH i2c: F0 00 00 33 25 47 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 09 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 09 00 33 25 00 B8 0E 19 67 21 48 4A 65 AE [14:56:55]GetLastDocTimeStamp 1729695390 [14:56:55]current date 1729695416 [14:56:55]FM_GetShiftState [14:56:55]SAM_PROTO_GetShiftState [14:56:55]wFMCommunicate request_size=4 [14:56:55]MH_SAM_APDU [14:56:55]CAPDU: 80 13 01 00 [14:56:55]Write to MH i2c: E2 08 00 34 25 80 13 01 00 00 00 00 00 D6 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:55]Read from MH i2c: E2 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 34 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A1 [14:56:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:56:55]wFMCommunicate OK [14:56:55]SAM_PROTO_GetShiftState done [14:56:55]FM_GetShiftState done [14:56:55]opened in 1729643772 [14:56:55]opened+sec_in_day 1729730172 [14:56:55]quantity*price = 40006 [14:56:55]sum+1 = 40007 [14:56: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 187 23.10.2024 14:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166772 ФПД: 277926491245662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145656&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166772&fm=277926491245662&tin=02508201610067®Number=0000000000091764&sum=40000 [14:56:56]StoreToDocumentArchive [14:56:56]shift 537 fd 166772 [14:56:56]save to /storage/0537/doc_00166772 [14:56:56]save last doc name /storage/0537/doc_00166772 to /storage/kkm_last_doc_name [14:56:56]save OK [14:56:56]Clear old archive folders... [14:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:56]tlvbuf is B6DDF7A0 [14:56:56]SAM_PROTO_ClearQueue [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 09 00 00 [14:56:56]Write to MH i2c: E2 08 00 41 25 80 09 00 00 00 00 00 00 D8 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_ClearQueue done [14:56:56]KKMCreateOFDPacket [14:56:56]OFDProtocolAddRootSTLVToBuf [14:56:56]FM_MakeSignedData [14:56:56]FM_MakeSignedData [14:56:56]SAM_PROTO_SignData [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 01 02 [14:56:56]Write to MH i2c: E2 08 00 42 25 80 0D 01 02 00 00 00 00 E0 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=255 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8B 02 00 35 04 06 00 FC [14:56:56]Write to MH i2c: E2 02 01 43 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8B 02 00 35 04 06 00 FC 00 00 5E [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]OFD Sender: No OFD packet to send [14:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 43 25 00 90 00 DC [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=10 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 02 02 05 C5 CD C8 CC 5E [14:56:56]Write to MH i2c: E2 0D 00 44 25 80 0D 02 02 05 00 C5 CD C8 CC 5E 00 00 71 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 44 25 00 90 00 DD [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 03 02 [14:56:56]Write to MH i2c: E2 08 00 45 25 80 0D 03 02 00 00 00 00 E5 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0B 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0B 00 45 25 00 D5 0B 8C 44 8B 6A B7 DD 90 00 1F [14:56:56]RAPDU: D5 0B 8C 44 8B 6A B7 DD 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_SignData done [14:56:56]FM_MakeSignedData done [14:56:56]CreateOFDProtocolMessage [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 11 00 00 [14:56:56]Write to MH i2c: E2 08 00 46 25 80 11 00 00 00 00 00 00 E5 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 46 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [14:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:56]wFMCommunicate OK [14:56:56]CreateOFDProtocolMessage done [14:56:56]OFDSenderStorePacket 166772 [14:56:56]StoreOFDPacket docnum=166772 [14:56:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 98 E5 07 01 59 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8B 02 00 35 04 06 00 FC C5 CD C8 CC 5E D5 0B 8C 44 8B 6A B7 DD [14:56:56]CheckFolder [14:56:56]dirname=/storage/ofd_packets [14:56:56]CheckFolder done [14:56:56]ProducePacketName [14:56:56]name=ofd_packets/00166772 [14:56:56]NVStorageSaveData ofd_packets/00166772 [14:56:56]File name is /storage/ofd_packets/00166772 [14:56:56]Write 301 bytes [14:56:56]NVStorageSaveData done [14:56:56]OFDSenderStorePacket done [14:56:56]KKMCreateOFDPacket done [14:56:56]NVStorageSaveData kkm_last_timestamp [14:56:56]File name is /storage/kkm_last_timestamp [14:56:56]Write 4 bytes [14:56:56]NVStorageSaveData done [14:56:56]ExternCall_PrintAddStr [14:56:56]wPrintStart [14:56:56]Write to MH i2c: 01 00 00 47 25 6C [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 47 25 00 00 00 00 00 FF 0F 81 [14:56:56]RasterBufferAndPrint [14:56:56]line Счет N : (1)221357 [14:56:56]line ИНН: 02508201610067 [14:56:56]line Контрольно-Кассовый Чек [14:56:56]line ПРОДАЖА [14:56:56]line ТРК (МРК, ГНК) : 33 [14:56:56]line Товар: 2710124130 [14:56:56]line Аи-92-К-5 [14:56:56]line 5.980 * 66.90 [14:56:56]line = 400.06 [14:56:56]line НДС 12% НСП 1% [14:56:56]line > о реализуемом товаре [14:56:56]line ОКРУГЛЕНИЕ: -0.06 [14:56:56]line ИТОГО: 400.00 [14:56:56]line Внесено: 400.00 [14:56:56]line СДАЧА: 0.00 [14:56:56]line НСП 1% : 3.54 [14:56:56]line НДС 12% : 42.48 [14:56:56]line Наличными: 400.00 [14:56:56]line Безнал.: 0.00 [14:56:56]line Место: АЗС № 161 "Партнер Нефть" [14:56:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:56:56]line СНО: Общий режим [14:56:56]line Чек 187 23.10.2024 14:56 [14:56:56]line Смена: 537 ФФД: 1.0 [14:56:56]line ЗНМ: 0300000104 [14:56:56]line РНМ: 0000000000091764 [14:56:56]line Версия ККМ: 001 [14:56:56]line ФМ: 0000000000871759 [14:56:56]line ФД: 166772 [14:56:56]line ФПД: 277926491245662 [14:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145656&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166772&fm=277926491245662&tin=02508201610067®Number=0000000000091764&sum=40000 [14:56:57]OFD Sender: Processing packet 166772 [packets to send 48, broken 47] [14:56:57]ProducePacketName [14:56:57]name=ofd_packets/00166772 [14:56:57]OFD Sender: To server: pG, [14:56:57]CommunicateWithHost lk.salyk.kg:30040 [14:56:57]ConnectInit lk.salyk.kg [14:56:57]written 0, free lines is 4095 [14:56:57]Connected sock=10 [14:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 98 E5 07 01 59 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8B 02 00 35 04 06 00 FC C5 CD C8 CC 5E D5 0B 8C 44 8B 6A B7 DD [14:56:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 0E 47 00 39 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8B 02 00 F4 03 04 00 1F B5 18 67 B6 04 01 00 00 B9 1C CD 48 38 57 A7 13 [14:56:57]CommunicateWithHost err = 0 [14:56:57]CheckOFDResponse [14:56:57]1017 (14) - 77093643461234 [14:56:57]1041 (16) - 0000000000871759 [14:56:57]1040 (4) - 166772 [14:56:57]1012 (4) - 23.10.2024 08:34 [14:56:57]1206 (1) - 0 [14:56:57]OFD Sender: Remove packet 166772 [14:56:57]ProducePacketName [14:56:57]name=ofd_packets/00166772 [14:56:57]NVStorageDeleteData [14:56:57]Write to MH i2c: 01 00 00 72 25 97 [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 07 00 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 C1 0C 6B [14:56:57]RasterBufferAndPrint [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]written 0, free lines is 3271 [14:56:57]MH_Cut [14:56:57]Write to MH i2c: D1 01 00 79 25 01 70 [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 01 00 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 01 00 79 25 00 6F [14:56:57]Write to MH i2c: 01 00 00 7A 25 9F [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]OFD Sender: No OFD packet to send [14:56:58]*** Cut start [14:56:58]*** Partial cut [14:56:58]*** CUTSNS_PIN = 1 [14:56:58]*** CUTSNS_PIN = 0 [14:56:58]*** Brake cut motor [14:56:59]Read from MH i2c: 01 [14:56:59]MH_I2C_Read... [14:56:59]*** Stop cut motor [14:56:59]*** Cut end [14:56:59]Read from MH i2c: 01 07 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: 01 07 00 7A 25 00 00 00 00 00 FF 0F B4 [14:56:59]process_action close_receipt done [14:56:59]requested_data is exist [14:56:59]produce_requested_data [14:56:59]requested_item fm.sn is exist - process it [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 11 00 00 [14:56:59]Write to MH i2c: E2 08 00 7B 25 80 11 00 00 00 00 00 00 1A [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 17 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 17 00 7B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [14:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:59]wFMCommunicate OK [14:56:59]requested_item fd.num is exist - process it [14:56:59]SAM_PROTO_GetFieldsCounters [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 13 00 00 [14:56:59]Write to MH i2c: E2 08 00 7C 25 80 13 00 00 00 00 00 00 1D [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 62 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 62 00 7C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_GetFieldsCounters done [14:56:59]requested_item shift.num is exist - process it [14:56:59]requested_item shift.opened is exist - process it [14:56:59]req_shift_opened [14:56:59]FM_GetShiftState [14:56:59]SAM_PROTO_GetShiftState [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 13 01 00 [14:56:59]Write to MH i2c: E2 08 00 7D 25 80 13 01 00 00 00 00 00 1F [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 7D 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EA [14:56:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_GetShiftState done [14:56:59]FM_GetShiftState done [14:56:59]req_shift_opened done [14:56:59]requested_item shift.open_date is exist - process it [14:56:59]req_shift_open_date [14:56:59]req_shift_open_date done [14:56:59]produce_requested_data done [14:56:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166772,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:56:59]process_action_free close_receipt [14:56:59]json_value_free [14:56:59]json_value_free done [14:56:59]process_json_proto returns [14:56:59]Send response to host [14:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166772,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:56:59]free response buf [14:56:59]execute_script done [14:56:59]execute_script returns [14:56:59]free content buf [14:56:59]Sock 9.Close socket [14:56:59]Sock 9.Thread stoped [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:43]accept exits with 8 [14:57:43]New connection [14:57:43]New thread 3067178340 created [14:57:43]Thread 3067034980 joined [14:57:43]Waiting for new connection... [14:57:43] Sock 8.Parse request [14:57:43]Sock 8.Check first char [14:57:43]Sock 8.First char is OK [14:57:43]request: POST /json_proto HTTP/1.0 [14:57:43]Method: POST [14:57:43]URL: /json_proto [14:57:43]Method is POST - this is cgi request [14:57:43]url: /json_proto [14:57:43]query_string will be loaded in cgi processing [14:57:43]execute_cgi json_proto POST (null) [14:57:43]execute_cgi path=json_proto method=POST [14:57:43]POST find Content-Length [14:57:43]Host: 172.17.53.195:8080 [14:57:43]Content-Length: 789 [14:57:43]Content-Type: application/json [14:57:43] [14:57:43]POST finish read [14:57:43]Found Content-Length = 789 [14:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:43]execute_script... [14:57: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)221358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:43]POST & json_proto [14:57:43]process_json_proto [14:57:43]json parsed OK: [14:57:43]protocol is kg_v1.0 [14:57:43]action value=close_receipt [14:57:43]process_action close_receipt [14:57:43]cmd_close_receipt [14:57:43]MH_GetDate [14:57:43]Write to MH i2c: F0 00 00 7E 25 92 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 09 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 09 00 7E 25 00 E8 0E 19 67 21 48 4A 65 29 [14:57:43]GetLastDocTimeStamp 1729695416 [14:57:43]current date 1729695464 [14:57:43]FM_GetShiftState [14:57:43]SAM_PROTO_GetShiftState [14:57:43]wFMCommunicate request_size=4 [14:57:43]MH_SAM_APDU [14:57:43]CAPDU: 80 13 01 00 [14:57:43]Write to MH i2c: E2 08 00 7F 25 80 13 01 00 00 00 00 00 21 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:43]Read from MH i2c: E2 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 7F 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EC [14:57:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:57:43]wFMCommunicate OK [14:57:43]SAM_PROTO_GetShiftState done [14:57:43]FM_GetShiftState done [14:57:43]opened in 1729643772 [14:57:43]opened+sec_in_day 1729730172 [14:57:43]quantity*price = 0 [14:57:43]sum+1 = 1 [14:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 188 23.10.2024 14:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85742 ФМ: 0000000000871759 ФД: 166773 ФПД: 122283981239252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166773&fm=122283981239252&tin=02508201610067®Number=0000000000091764&sum=0 [14:57:44]StoreToDocumentArchive [14:57:44]shift 537 fd 166773 [14:57:44]save to /storage/0537/doc_00166773 [14:57:44]save last doc name /storage/0537/doc_00166773 to /storage/kkm_last_doc_name [14:57:44]save OK [14:57:44]Clear old archive folders... [14:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:57:44]tlvbuf is 01FB3D90 [14:57:44]SAM_PROTO_ClearQueue [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 09 00 00 [14:57:44]Write to MH i2c: E2 08 00 8C 25 80 09 00 00 00 00 00 00 23 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]SAM_PROTO_ClearQueue done [14:57:44]KKMCreateOFDPacket [14:57:44]OFDProtocolAddRootSTLVToBuf [14:57:44]FM_MakeSignedData [14:57:44]FM_MakeSignedData [14:57:44]SAM_PROTO_SignData [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 0D 01 02 [14:57:44]Write to MH i2c: E2 08 00 8D 25 80 0D 01 02 00 00 00 00 2B [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 8D 25 00 90 00 26 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]wFMCommunicate request_size=255 [14:57:44]MH_SAM_APDU [14:57: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8B 02 00 35 04 06 00 6F 37 75 43 [14:57:44]Write to MH i2c: E2 02 01 8E 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8B 02 00 35 04 06 00 6F 37 75 43 00 00 2C [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]wFMCommunicate request_size=7 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 0D 02 02 02 73 D4 [14:57:44]Write to MH i2c: E2 0A 00 8F 25 80 0D 02 02 02 00 73 D4 00 00 79 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 0D 03 02 [14:57:44]Write to MH i2c: E2 08 00 90 25 80 0D 03 02 00 00 00 00 30 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 0B 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 0B 00 90 25 00 89 04 49 B8 18 04 74 FF 90 00 4E [14:57:44]RAPDU: 89 04 49 B8 18 04 74 FF 90 00 [14:57:44]wFMCommunicate OK [14:57:44]SAM_PROTO_SignData done [14:57:44]FM_MakeSignedData done [14:57:44]CreateOFDProtocolMessage [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 11 00 00 [14:57:44]Write to MH i2c: E2 08 00 91 25 80 11 00 00 00 00 00 00 30 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 17 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 17 00 91 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [14:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:57:44]wFMCommunicate OK [14:57:44]CreateOFDProtocolMessage done [14:57:44]OFDSenderStorePacket 166773 [14:57:44]StoreOFDPacket docnum=166773 [14:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 80 04 01 D4 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8B 02 00 35 04 06 00 6F 37 75 43 73 D4 89 04 49 B8 18 04 74 FF [14:57:44]CheckFolder [14:57:44]dirname=/storage/ofd_packets [14:57:44]CheckFolder done [14:57:44]ProducePacketName [14:57:44]name=ofd_packets/00166773 [14:57:44]NVStorageSaveData ofd_packets/00166773 [14:57:44]File name is /storage/ofd_packets/00166773 [14:57:44]Write 298 bytes [14:57:44]NVStorageSaveData done [14:57:44]OFDSenderStorePacket done [14:57:44]KKMCreateOFDPacket done [14:57:44]NVStorageSaveData kkm_last_timestamp [14:57:44]File name is /storage/kkm_last_timestamp [14:57:44]Write 4 bytes [14:57:44]NVStorageSaveData done [14:57:44]ExternCall_PrintAddStr [14:57:44]wPrintStart [14:57:44]Write to MH i2c: 01 00 00 92 25 B7 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: 01 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: 01 07 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 FF 0F CC [14:57:44]RasterBufferAndPrint [14:57:44]line Счет N : (1)221358 [14:57:44]line ИНН: 02508201610067 [14:57:44]line Контрольно-Кассовый Чек [14:57:44]line ПРОДАЖА [14:57:44]line ТРК (МРК, ГНК) : 21 [14:57:44]line Товар: 2710194210 [14:57:44]line ДТ-К-5 [14:57:44]line 26.250 * 0.00 [14:57:44]line = 0.00 [14:57:44]line НДС 12% НСП 1% [14:57:44]line > о реализуемом товаре [14:57:44]line ИТОГО: 0.00 [14:57:44]line НСП 1% : 0.00 [14:57:44]line НДС 12% : 0.00 [14:57:44]line Наличными: 0.00 [14:57:44]line Безнал.: 0.00 [14:57:44]line Место: АЗС № 161 "Партнер Нефть" [14:57:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:57:44]line СНО: Общий режим [14:57:44]line Чек 188 23.10.2024 14:57 [14:57:44]line Смена: 537 ФФД: 1.0 [14:57:44]line ЗНМ: 0300000104 [14:57:44]line РНМ: 0000000000091764 [14:57:44]line Версия ККМ: 001 [14:57:44]line Талоны: Топливная Карта [14:57:44]line 85742 [14:57:44]line ФМ: 0000000000871759 [14:57:44]line ФД: 166773 [14:57:44]line ФПД: 122283981239252 [14:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166773&fm=122283981239252&tin=02508201610067®Number=0000000000091764&sum=0 [14:57:44]written 0, free lines is 4095 [14:57:44]OFD Sender: Processing packet 166773 [packets to send 48, broken 47] [14:57:44]ProducePacketName [14:57:44]name=ofd_packets/00166773 [14:57:44]OFD Sender: To server: pG, [14:57:44]CommunicateWithHost lk.salyk.kg:30040 [14:57:44]ConnectInit lk.salyk.kg [14:57:45]Connected sock=10 [14:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 80 04 01 D4 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E8 0E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8B 02 00 35 04 06 00 6F 37 75 43 73 D4 89 04 49 B8 18 04 74 FF [14:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 7B 47 00 7B D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8B 02 00 F4 03 04 00 4F B5 18 67 B6 04 01 00 00 0F 2F 47 1C DC 4D DE 9F [14:57:45]CommunicateWithHost err = 0 [14:57:45]CheckOFDResponse [14:57:45]1017 (14) - 77093643461234 [14:57:45]1041 (16) - 0000000000871759 [14:57:45]1040 (4) - 166773 [14:57:45]1012 (4) - 23.10.2024 08:35 [14:57:45]1206 (1) - 0 [14:57:45]OFD Sender: Remove packet 166773 [14:57:45]ProducePacketName [14:57:45]name=ofd_packets/00166773 [14:57:45]NVStorageDeleteData [14:57:45]Write to MH i2c: 01 00 00 BC 25 E1 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 C9 0C BD [14:57:45]RasterBufferAndPrint [14:57:45]line [14:57:45]line [14:57:45]line [14:57:45]line [14:57:45]line [14:57:45]written 0, free lines is 3277 [14:57:45]MH_Cut [14:57:45]Write to MH i2c: D1 01 00 C3 25 01 BA [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: D1 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: D1 01 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: D1 01 00 C3 25 00 B9 [14:57:45]Write to MH i2c: 01 00 00 C4 25 E9 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]OFD Sender: No OFD packet to send [14:57:46]*** Cut start [14:57:46]*** Partial cut [14:57:46]*** CUTSNS_PIN = 1 [14:57:46]*** CUTSNS_PIN = 0 [14:57:46]*** Brake cut motor [14:57:46]Read from MH i2c: 01 [14:57:46]MH_I2C_Read... [14:57:46]*** Stop cut motor [14:57:46]*** Cut end [14:57:46]Read from MH i2c: 01 07 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 C4 25 00 00 00 00 00 FF 0F FE [14:57:46]process_action close_receipt done [14:57:46]requested_data is exist [14:57:46]produce_requested_data [14:57:46]requested_item fm.sn is exist - process it [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 11 00 00 [14:57:46]Write to MH i2c: E2 08 00 C5 25 80 11 00 00 00 00 00 00 64 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 17 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 17 00 C5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [14:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:57:46]wFMCommunicate OK [14:57:46]requested_item fd.num is exist - process it [14:57:46]SAM_PROTO_GetFieldsCounters [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 13 00 00 [14:57:46]Write to MH i2c: E2 08 00 C6 25 80 13 00 00 00 00 00 00 67 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 62 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 62 00 C6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_GetFieldsCounters done [14:57:47]requested_item shift.num is exist - process it [14:57:47]requested_item shift.opened is exist - process it [14:57:47]req_shift_opened [14:57:47]FM_GetShiftState [14:57:47]SAM_PROTO_GetShiftState [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 13 01 00 [14:57:47]Write to MH i2c: E2 08 00 C7 25 80 13 01 00 00 00 00 00 69 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 C7 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 34 [14:57:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_GetShiftState done [14:57:47]FM_GetShiftState done [14:57:47]req_shift_opened done [14:57:47]requested_item shift.open_date is exist - process it [14:57:47]req_shift_open_date [14:57:47]req_shift_open_date done [14:57:47]produce_requested_data done [14:57:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166773,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:57:47]process_action_free close_receipt [14:57:47]json_value_free [14:57:47]json_value_free done [14:57:47]process_json_proto returns [14:57:47]Send response to host [14:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166773,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:57:47]free response buf [14:57:47]execute_script done [14:57:47]execute_script returns [14:57:47]free content buf [14:57:47]Sock 8.Close socket [14:57:47]Sock 8.Thread stoped [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:57:56]int [14:57:56]Write to MH i2c: 01 00 00 C8 25 ED [14:57:56]*** FLAG_PRN_KEY set [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 07 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 07 00 C8 25 00 08 00 00 00 FF 0F 0A [14:57:56]state=0 [14:57:56]Key pressed [14:57:56]Feed [14:57:56]Write to MH i2c: D8 00 00 C9 25 C5 [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: D8 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: D8 01 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: D8 01 00 C9 25 00 C6 [14:57:56]int [14:57:56]Write to MH i2c: 01 00 00 CA 25 EF [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 07 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: 01 07 00 CA 25 00 48 00 00 00 3C 00 7A [14:57:56]state=2 [14:57:56]Key pressed [14:57:57]int [14:57:57]Write to MH i2c: 01 00 00 CB 25 F0 [14:57:57]*** FLAG_PRN_KEY reset [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 FF 0F 05 [14:57:57]state=2 [14:57:57]Stop feed [14:57:57]int [14:57:57]Write to MH i2c: 01 00 00 CC 25 F1 [14:57:57]*** FLAG_PRN_KEY set [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 CC 25 00 08 00 00 00 FF 0F 0E [14:57:57]state=0 [14:57:57]Key pressed [14:57:57]Feed [14:57:57]Write to MH i2c: D8 00 00 CD 25 C9 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: D8 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: D8 01 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: D8 01 00 CD 25 00 CA [14:57:57]int [14:57:57]Write to MH i2c: 01 00 00 CE 25 F3 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 CE 25 00 48 00 00 00 3C 00 7E [14:57:57]state=2 [14:57:57]Key pressed [14:57:57]int [14:57:57]Write to MH i2c: 01 00 00 CF 25 F4 [14:57:57]*** FLAG_PRN_KEY reset [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 CF 25 00 00 00 00 00 F6 0F 00 [14:57:57]state=2 [14:57:57]Stop feed [14:57:58]int [14:57:58]Write to MH i2c: 01 00 00 D0 25 F5 [14:57:58]*** FLAG_PRN_KEY set [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 D0 25 00 08 00 00 00 FF 0F 12 [14:57:58]state=0 [14:57:58]Key pressed [14:57:58]Feed [14:57:58]Write to MH i2c: D8 00 00 D1 25 CD [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D8 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D8 01 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D8 01 00 D1 25 00 CE [14:57:58]int [14:57:58]Write to MH i2c: 01 00 00 D2 25 F7 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 D2 25 00 48 00 00 00 3C 00 82 [14:57:58]state=2 [14:57:58]Key pressed [14:57:58]int [14:57:58]Write to MH i2c: 01 00 00 D3 25 F8 [14:57:58]*** FLAG_PRN_KEY reset [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 D3 25 00 00 00 00 00 F6 0F 04 [14:57:58]state=2 [14:57:58]Stop feed [14:57:59]int [14:57:59]Write to MH i2c: 01 00 00 D4 25 F9 [14:57:59]*** FLAG_PRN_KEY set [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 D4 25 00 08 00 00 00 FF 0F 16 [14:57:59]state=0 [14:57:59]Key pressed [14:57:59]Feed [14:57:59]Write to MH i2c: D8 00 00 D5 25 D1 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: D8 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: D8 01 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: D8 01 00 D5 25 00 D2 [14:57:59]int [14:57:59]Write to MH i2c: 01 00 00 D6 25 FB [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 D6 25 00 48 00 00 00 3C 00 86 [14:57:59]state=2 [14:57:59]Key pressed [14:57:59]int [14:57:59]Write to MH i2c: 01 00 00 D7 25 FC [14:57:59]*** FLAG_PRN_KEY reset [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 F6 0F 08 [14:57:59]state=2 [14:57:59]Stop feed [14:58:00]int [14:58:00]Write to MH i2c: 01 00 00 D8 25 FD [14:58:00]*** FLAG_PRN_KEY set [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 D8 25 00 08 00 00 00 FF 0F 1A [14:58:00]state=0 [14:58:00]Key pressed [14:58:00]Feed [14:58:00]Write to MH i2c: D8 00 00 D9 25 D5 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: D8 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: D8 01 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: D8 01 00 D9 25 00 D6 [14:58:00]int [14:58:00]Write to MH i2c: 01 00 00 DA 25 FF [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 DA 25 00 48 00 00 00 3C 00 8A [14:58:00]state=2 [14:58:00]Key pressed [14:58:00]int [14:58:00]Write to MH i2c: 01 00 00 DB 25 00 [14:58:00]*** FLAG_PRN_KEY reset [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 DB 25 00 00 00 00 00 F6 0F 0C [14:58:00]state=2 [14:58:00]Stop feed [14:58:00]OFD Sender: No OFD packet to send [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 DC 25 01 [14:58:01]*** FLAG_PRN_KEY set [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 DC 25 00 08 00 00 00 FF 0F 1E [14:58:01]state=0 [14:58:01]Key pressed [14:58:01]Feed [14:58:01]Write to MH i2c: D8 00 00 DD 25 D9 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 DD 25 00 DA [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 DE 25 03 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 DE 25 00 48 00 00 00 3C 00 8E [14:58:01]state=2 [14:58:01]Key pressed [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 DF 25 04 [14:58:01]*** FLAG_PRN_KEY reset [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 F7 0F 11 [14:58:01]state=2 [14:58:01]Stop feed [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 E0 25 05 [14:58:01]*** FLAG_PRN_KEY set [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 E0 25 00 08 00 00 00 FF 0F 22 [14:58:01]state=0 [14:58:01]Key pressed [14:58:01]Feed [14:58:01]Write to MH i2c: D8 00 00 E1 25 DD [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 E1 25 00 DE [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 E2 25 07 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 E2 25 00 48 00 00 00 3C 00 92 [14:58:01]state=2 [14:58:01]Key pressed [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 E3 25 08 [14:58:01]*** FLAG_PRN_KEY reset [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 E3 25 00 00 00 00 00 F6 0F 14 [14:58:01]state=2 [14:58:01]Stop feed [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 E4 25 09 [14:58:01]*** FLAG_PRN_KEY set [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 E4 25 00 08 00 00 00 FF 0F 26 [14:58:01]state=0 [14:58:01]Key pressed [14:58:01]Feed [14:58:01]Write to MH i2c: D8 00 00 E5 25 E1 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D8 01 00 E5 25 00 E2 [14:58:01]int [14:58:01]Write to MH i2c: 01 00 00 E6 25 0B [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 E6 25 00 48 00 00 00 3C 00 96 [14:58:01]state=2 [14:58:01]Key pressed [14:58:02]int [14:58:02]Write to MH i2c: 01 00 00 E7 25 0C [14:58:02]*** FLAG_PRN_KEY reset [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 E7 25 00 00 00 00 00 F6 0F 18 [14:58:02]state=2 [14:58:02]Stop feed [14:58:02]int [14:58:02]Write to MH i2c: 01 00 00 E8 25 0D [14:58:02]*** FLAG_PRN_KEY set [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 E8 25 00 08 00 00 00 FF 0F 2A [14:58:02]state=0 [14:58:02]Key pressed [14:58:02]Feed [14:58:02]Write to MH i2c: D8 00 00 E9 25 E5 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: D8 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: D8 01 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: D8 01 00 E9 25 00 E6 [14:58:02]int [14:58:02]Write to MH i2c: 01 00 00 EA 25 0F [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 EA 25 00 48 00 00 00 3C 00 9A [14:58:02]state=2 [14:58:02]Key pressed [14:58:02]int [14:58:02]Write to MH i2c: 01 00 00 EB 25 10 [14:58:02]*** FLAG_PRN_KEY reset [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 F7 0F 1D [14:58:02]state=2 [14:58:02]Stop feed [14:58:03]int [14:58:03]Write to MH i2c: 01 00 00 EC 25 11 [14:58:03]*** FLAG_PRN_KEY set [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 EC 25 00 08 00 00 00 FF 0F 2E [14:58:03]state=0 [14:58:03]Key pressed [14:58:03]Feed [14:58:03]Write to MH i2c: D8 00 00 ED 25 E9 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 01 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 01 00 ED 25 00 EA [14:58:03]int [14:58:03]Write to MH i2c: 01 00 00 EE 25 13 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 EE 25 00 48 00 00 00 3C 00 9E [14:58:03]state=2 [14:58:03]Key pressed [14:58:03]int [14:58:03]Write to MH i2c: 01 00 00 EF 25 14 [14:58:03]*** FLAG_PRN_KEY reset [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 EF 25 00 00 00 00 00 F7 0F 21 [14:58:03]state=2 [14:58:03]Stop feed [14:58:03]int [14:58:03]Write to MH i2c: 01 00 00 F0 25 15 [14:58:03]*** FLAG_PRN_KEY set [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 F0 25 00 08 00 00 00 FF 0F 32 [14:58:03]state=0 [14:58:03]Key pressed [14:58:03]Feed [14:58:03]Write to MH i2c: D8 00 00 F1 25 ED [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 01 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D8 01 00 F1 25 00 EE [14:58:03]int [14:58:03]Write to MH i2c: 01 00 00 F2 25 17 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 F2 25 00 48 00 00 00 3C 00 A2 [14:58:03]state=2 [14:58:03]Key pressed [14:58:04]int [14:58:04]Write to MH i2c: 01 00 00 F3 25 18 [14:58:04]*** FLAG_PRN_KEY reset [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 F6 0F 24 [14:58:04]state=2 [14:58:04]Stop feed [14:58:04]int [14:58:04]Write to MH i2c: 01 00 00 F4 25 19 [14:58:04]*** FLAG_PRN_KEY set [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 F4 25 00 08 00 00 00 FF 0F 36 [14:58:04]state=0 [14:58:04]Key pressed [14:58:04]Feed [14:58:04]Write to MH i2c: D8 00 00 F5 25 F1 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: D8 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: D8 01 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: D8 01 00 F5 25 00 F2 [14:58:04]int [14:58:04]Write to MH i2c: 01 00 00 F6 25 1B [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 F6 25 00 48 00 00 00 3C 00 A6 [14:58:04]state=2 [14:58:04]Key pressed [14:58:04]int [14:58:04]Write to MH i2c: 01 00 00 F7 25 1C [14:58:04]*** FLAG_PRN_KEY reset [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 F7 25 00 00 00 00 00 F6 0F 28 [14:58:04]state=2 [14:58:04]Stop feed [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:12]accept exits with 9 [14:58:12]New connection [14:58:12]New thread 3067034980 created [14:58:12]Thread 3067178340 joined [14:58:12]Waiting for new connection... [14:58:12] Sock 9.Parse request [14:58:12]Sock 9.Check first char [14:58:12]Sock 9.First char is OK [14:58:12]request: POST /json_proto HTTP/1.0 [14:58:12]Method: POST [14:58:12]URL: /json_proto [14:58:12]Method is POST - this is cgi request [14:58:12]url: /json_proto [14:58:12]query_string will be loaded in cgi processing [14:58:12]execute_cgi json_proto POST (null) [14:58:12]execute_cgi path=json_proto method=POST [14:58:12]POST find Content-Length [14:58:12]Host: 172.17.53.195:8080 [14:58:12]Content-Length: 674 [14:58:12]Content-Type: application/json [14:58:12] [14:58:12]POST finish read [14:58:12]Found Content-Length = 674 [14:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]execute_script... [14:58: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)221359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]POST & json_proto [14:58:12]process_json_proto [14:58:12]json parsed OK: [14:58:12]protocol is kg_v1.0 [14:58:12]action value=close_receipt [14:58:12]process_action close_receipt [14:58:12]cmd_close_receipt [14:58:12]MH_GetDate [14:58:12]Write to MH i2c: F0 00 00 F8 25 0C [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 09 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 09 00 F8 25 00 05 0F 19 67 21 48 4A 65 C1 [14:58:12]GetLastDocTimeStamp 1729695464 [14:58:12]current date 1729695493 [14:58:12]FM_GetShiftState [14:58:12]SAM_PROTO_GetShiftState [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 13 01 00 [14:58:12]Write to MH i2c: E2 08 00 F9 25 80 13 01 00 00 00 00 00 9B [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0E 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0E 00 F9 25 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 66 [14:58:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_GetShiftState done [14:58:12]FM_GetShiftState done [14:58:12]opened in 1729643772 [14:58:12]opened+sec_in_day 1729730172 [14:58:12]quantity*price = 49987 [14:58:12]sum+1 = 49988 [14:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 189 23.10.2024 14:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166774 ФПД: 95553036535447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166774&fm=95553036535447&tin=02508201610067®Number=0000000000091764&sum=49900 [14:58:13]StoreToDocumentArchive [14:58:13]shift 537 fd 166774 [14:58:13]save to /storage/0537/doc_00166774 [14:58:13]save last doc name /storage/0537/doc_00166774 to /storage/kkm_last_doc_name [14:58:13]save OK [14:58:13]Clear old archive folders... [14:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:58:13]tlvbuf is B6DDF610 [14:58:13]SAM_PROTO_ClearQueue [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 09 00 00 [14:58:13]Write to MH i2c: E2 08 00 06 26 80 09 00 00 00 00 00 00 9E [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_ClearQueue done [14:58:13]KKMCreateOFDPacket [14:58:13]OFDProtocolAddRootSTLVToBuf [14:58:13]FM_MakeSignedData [14:58:13]FM_MakeSignedData [14:58:13]SAM_PROTO_SignData [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 0D 01 02 [14:58:13]Write to MH i2c: E2 08 00 07 26 80 0D 01 02 00 00 00 00 A6 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]wFMCommunicate request_size=255 [14:58:13]MH_SAM_APDU [14: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 05 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8B 02 00 35 04 06 00 56 E7 AC CC [14:58:13]Write to MH i2c: E2 02 01 08 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 05 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8B 02 00 35 04 06 00 56 E7 AC CC 00 00 B5 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]wFMCommunicate request_size=7 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 0D 02 02 02 C6 97 [14:58:13]Write to MH i2c: E2 0A 00 09 26 80 0D 02 02 02 00 C6 97 00 00 0A [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [14:58:14]RAPDU: 90 00 [14:58:14]wFMCommunicate OK [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 0D 03 02 [14:58:14]Write to MH i2c: E2 08 00 0A 26 80 0D 03 02 00 00 00 00 AB [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0B 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0B 00 0A 26 00 70 76 A2 3A 04 B8 FD 45 90 00 6C [14:58:14]RAPDU: 70 76 A2 3A 04 B8 FD 45 90 00 [14:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_SignData done [14:58:14]FM_MakeSignedData done [14:58:14]CreateOFDProtocolMessage [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 11 00 00 [14:58:14]Write to MH i2c: E2 08 00 0B 26 80 11 00 00 00 00 00 00 AB [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 17 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 17 00 0B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [14:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:58:14]wFMCommunicate OK [14:58:14]CreateOFDProtocolMessage done [14:58:14]OFDSenderStorePacket 166774 [14:58:14]StoreOFDPacket docnum=166774 [14:58:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CC B7 04 01 F9 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 05 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8B 02 00 35 04 06 00 56 E7 AC CC C6 97 70 76 A2 3A 04 B8 FD 45 [14:58:14]CheckFolder [14:58:14]dirname=/storage/ofd_packets [14:58:14]CheckFolder done [14:58:14]ProducePacketName [14:58:14]name=ofd_packets/00166774 [14:58:14]NVStorageSaveData ofd_packets/00166774 [14:58:14]File name is /storage/ofd_packets/00166774 [14:58:14]Write 298 bytes [14:58:14]NVStorageSaveData done [14:58:14]OFDSenderStorePacket done [14:58:14]KKMCreateOFDPacket done [14:58:14]NVStorageSaveData kkm_last_timestamp [14:58:14]File name is /storage/kkm_last_timestamp [14:58:14]Write 4 bytes [14:58:14]NVStorageSaveData done [14:58:14]ExternCall_PrintAddStr [14:58:14]wPrintStart [14:58:14]Write to MH i2c: 01 00 00 0C 26 32 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 0C 26 00 00 00 00 00 FF 0F 47 [14:58:14]RasterBufferAndPrint [14:58:14]line Счет N : (1)221359 [14:58:14]line ИНН: 02508201610067 [14:58:14]line Контрольно-Кассовый Чек [14:58:14]line ПРОДАЖА [14:58:14]line ТРК (МРК, ГНК) : 41 [14:58:14]line Товар: 2710194210 [14:58:14]line ДТ-К-5 [14:58:14]line 6.560 * 76.20 [14:58:14]line = 499.87 [14:58:14]line НДС 12% НСП 1% [14:58:14]line > о реализуемом товаре [14:58:14]line ОКРУГЛЕНИЕ: -0.87 [14:58:14]line ИТОГО: 499.00 [14:58:14]line Внесено: 500.00 [14:58:14]line СДАЧА: 1.00 [14:58:14]line НСП 1% : 4.42 [14:58:14]line НДС 12% : 53.08 [14:58:14]line Наличными: 499.00 [14:58:14]line Безнал.: 0.00 [14:58:14]line Место: АЗС № 161 "Партнер Нефть" [14:58:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:58:14]line СНО: Общий режим [14:58:14]line Чек 189 23.10.2024 14:58 [14:58:14]line Смена: 537 ФФД: 1.0 [14:58:14]line ЗНМ: 0300000104 [14:58:14]line РНМ: 0000000000091764 [14:58:14]line Версия ККМ: 001 [14:58:14]line ФМ: 0000000000871759 [14:58:14]line ФД: 166774 [14:58:14]line ФПД: 95553036535447 [14:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166774&fm=95553036535447&tin=02508201610067®Number=0000000000091764&sum=49900 [14:58:14]OFD Sender: Processing packet 166774 [packets to send 48, broken 47] [14:58:14]ProducePacketName [14:58:14]name=ofd_packets/00166774 [14:58:14]OFD Sender: To server: pG, [14:58:14]CommunicateWithHost lk.salyk.kg:30040 [14:58:14]ConnectInit lk.salyk.kg [14:58:14]written 0, free lines is 4095 [14:58:14]Connected sock=10 [14: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 31 37 35 39 0C 01 00 00 CC B7 04 01 F9 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 05 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8B 02 00 35 04 06 00 56 E7 AC CC C6 97 70 76 A2 3A 04 B8 FD 45 [14:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 60 95 47 00 97 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8B 02 00 F4 03 04 00 6D B5 18 67 B6 04 01 00 00 28 4D BB 37 61 01 A7 8F [14:58:14]CommunicateWithHost err = 0 [14:58:14]CheckOFDResponse [14:58:14]1017 (14) - 77093643461234 [14:58:14]1041 (16) - 0000000000871759 [14:58:14]1040 (4) - 166774 [14:58:14]1012 (4) - 23.10.2024 08:35 [14:58:14]1206 (1) - 0 [14:58:14]OFD Sender: Remove packet 166774 [14:58:14]ProducePacketName [14:58:14]name=ofd_packets/00166774 [14:58:14]NVStorageDeleteData [14:58:14]Write to MH i2c: 01 00 00 37 26 5D [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 37 26 00 00 00 00 00 C9 0C 39 [14:58:14]RasterBufferAndPrint [14:58:14]line [14:58:14]line [14:58:14]line [14:58:14]line [14:58:14]line [14:58:14]written 0, free lines is 3280 [14:58:14]MH_Cut [14:58:14]Write to MH i2c: D1 01 00 3E 26 01 36 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D1 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D1 01 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D1 01 00 3E 26 00 35 [14:58:14]Write to MH i2c: 01 00 00 3F 26 65 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:15]OFD Sender: No OFD packet to send [14:58:15]*** Cut start [14:58:15]*** Partial cut [14:58:15]*** CUTSNS_PIN = 1 [14:58:15]*** CUTSNS_PIN = 0 [14:58:16]*** Brake cut motor [14:58:16]Read from MH i2c: 01 [14:58:16]MH_I2C_Read... [14:58:16]*** Stop cut motor [14:58:16]*** Cut end [14:58:16]Read from MH i2c: 01 07 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 07 00 3F 26 00 00 00 00 00 FF 0F 7A [14:58:16]process_action close_receipt done [14:58:16]requested_data is exist [14:58:16]produce_requested_data [14:58:16]requested_item fm.sn is exist - process it [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 11 00 00 [14:58:16]Write to MH i2c: E2 08 00 40 26 80 11 00 00 00 00 00 00 E0 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 40 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [14:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:58:16]wFMCommunicate OK [14:58:16]requested_item fd.num is exist - process it [14:58:16]SAM_PROTO_GetFieldsCounters [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 00 00 [14:58:16]Write to MH i2c: E2 08 00 41 26 80 13 00 00 00 00 00 00 E3 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 62 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 62 00 41 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [14: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_GetFieldsCounters done [14:58:16]requested_item shift.num is exist - process it [14:58:16]requested_item shift.opened is exist - process it [14:58:16]req_shift_opened [14:58:16]FM_GetShiftState [14:58:16]SAM_PROTO_GetShiftState [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 01 00 [14:58:16]Write to MH i2c: E2 08 00 42 26 80 13 01 00 00 00 00 00 E5 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 42 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B0 [14:58:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_GetShiftState done [14:58:16]FM_GetShiftState done [14:58:16]req_shift_opened done [14:58:16]requested_item shift.open_date is exist - process it [14:58:16]req_shift_open_date [14:58:16]req_shift_open_date done [14:58:16]produce_requested_data done [14:58:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166774,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:58:16]process_action_free close_receipt [14:58:16]json_value_free [14:58:16]json_value_free done [14:58:16]process_json_proto returns [14:58:16]Send response to host [14:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166774,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:58:16]free response buf [14:58:16]execute_script done [14:58:16]execute_script returns [14:58:16]free content buf [14:58:16]Sock 9.Close socket [14:58:16]Sock 9.Thread stoped [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:17]accept exits with 8 [14:59:17]New connection [14:59:17]New thread 3067178340 created [14:59:17]Thread 3067034980 joined [14:59:17]Waiting for new connection... [14:59:17] Sock 8.Parse request [14:59:17]Sock 8.Check first char [14:59:17]Sock 8.First char is OK [14:59:17]request: POST /json_proto HTTP/1.0 [14:59:17]Method: POST [14:59:17]URL: /json_proto [14:59:17]Method is POST - this is cgi request [14:59:17]url: /json_proto [14:59:17]query_string will be loaded in cgi processing [14:59:17]execute_cgi json_proto POST (null) [14:59:17]execute_cgi path=json_proto method=POST [14:59:17]POST find Content-Length [14:59:17]Host: 172.17.53.195:8080 [14:59:17]Content-Length: 682 [14:59:17]Content-Type: application/json [14:59:17] [14:59:17]POST finish read [14:59:17]Found Content-Length = 682 [14:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:17]execute_script... [14:59: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)221360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:17]POST & json_proto [14:59:17]process_json_proto [14:59:17]json parsed OK: [14:59:17]protocol is kg_v1.0 [14:59:17]action value=close_receipt [14:59:17]process_action close_receipt [14:59:17]cmd_close_receipt [14:59:17]MH_GetDate [14:59:17]Write to MH i2c: F0 00 00 43 26 58 [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: F0 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: F0 09 00 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: F0 09 00 43 26 00 47 0F 19 67 21 48 4A 65 4F [14:59:17]GetLastDocTimeStamp 1729695493 [14:59:17]current date 1729695559 [14:59:17]FM_GetShiftState [14:59:17]SAM_PROTO_GetShiftState [14:59:17]wFMCommunicate request_size=4 [14:59:17]MH_SAM_APDU [14:59:17]CAPDU: 80 13 01 00 [14:59:17]Write to MH i2c: E2 08 00 44 26 80 13 01 00 00 00 00 00 E7 [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:17]Read from MH i2c: E2 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: E2 0E 00 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: E2 0E 00 44 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B2 [14:59:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:59:17]wFMCommunicate OK [14:59:17]SAM_PROTO_GetShiftState done [14:59:17]FM_GetShiftState done [14:59:17]opened in 1729643772 [14:59:17]opened+sec_in_day 1729730172 [14:59:17]quantity*price = 100021 [14:59:17]sum+1 = 100023 [14:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 190 23.10.2024 14:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166775 ФПД: 987767751030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166775&fm=987767751030&tin=02508201610067®Number=0000000000091764&sum=100000 [14:59:18]StoreToDocumentArchive [14:59:18]shift 537 fd 166775 [14:59:18]save to /storage/0537/doc_00166775 [14:59:18]save last doc name /storage/0537/doc_00166775 to /storage/kkm_last_doc_name [14:59:18]save OK [14:59:18]Clear old archive folders... [14:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:18]tlvbuf is 01FE8550 [14:59:18]SAM_PROTO_ClearQueue [14:59:18]wFMCommunicate request_size=4 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 09 00 00 [14:59:18]Write to MH i2c: E2 08 00 51 26 80 09 00 00 00 00 00 00 E9 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 51 26 00 90 00 EB [14:59:18]RAPDU: 90 00 [14:59:18]wFMCommunicate OK [14:59:18]SAM_PROTO_ClearQueue done [14:59:18]KKMCreateOFDPacket [14:59:18]OFDProtocolAddRootSTLVToBuf [14:59:18]FM_MakeSignedData [14:59:18]FM_MakeSignedData [14:59:18]SAM_PROTO_SignData [14:59:18]wFMCommunicate request_size=4 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 0D 01 02 [14:59:18]Write to MH i2c: E2 08 00 52 26 80 0D 01 02 00 00 00 00 F1 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [14:59:18]RAPDU: 90 00 [14:59:18]wFMCommunicate OK [14:59:18]wFMCommunicate request_size=255 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 47 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8B 02 00 35 04 06 00 00 [14:59:18]Write to MH i2c: E2 02 01 53 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 47 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8B 02 00 35 04 06 00 00 00 00 57 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 03 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [14:59:19]RAPDU: 90 00 [14:59:19]wFMCommunicate OK [14:59:19]wFMCommunicate request_size=10 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 0D 02 02 05 E5 FB 8B C1 76 [14:59:19]Write to MH i2c: E2 0D 00 54 26 80 0D 02 02 05 00 E5 FB 8B C1 76 00 00 A0 [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 03 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [14:59:19]RAPDU: 90 00 [14:59:19]wFMCommunicate OK [14:59:19]wFMCommunicate request_size=4 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 0D 03 02 [14:59:19]Write to MH i2c: E2 08 00 55 26 80 0D 03 02 00 00 00 00 F6 [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 0B 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 0B 00 55 26 00 57 94 36 65 88 A5 01 6F 90 00 1A [14:59:19]RAPDU: 57 94 36 65 88 A5 01 6F 90 00 [14:59:19]wFMCommunicate OK [14:59:19]SAM_PROTO_SignData done [14:59:19]FM_MakeSignedData done [14:59:19]CreateOFDProtocolMessage [14:59:19]wFMCommunicate request_size=4 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 11 00 00 [14:59:19]Write to MH i2c: E2 08 00 56 26 80 11 00 00 00 00 00 00 F6 [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 17 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 17 00 56 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [14:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:19]wFMCommunicate OK [14:59:19]CreateOFDProtocolMessage done [14:59:19]OFDSenderStorePacket 166775 [14:59:19]StoreOFDPacket docnum=166775 [14:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 EA 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 47 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8B 02 00 35 04 06 00 00 E5 FB 8B C1 76 57 94 36 65 88 A5 01 6F [14:59:19]CheckFolder [14:59:19]dirname=/storage/ofd_packets [14:59:19]CheckFolder done [14:59:19]ProducePacketName [14:59:19]name=ofd_packets/00166775 [14:59:19]NVStorageSaveData ofd_packets/00166775 [14:59:19]File name is /storage/ofd_packets/00166775 [14:59:19]Write 301 bytes [14:59:19]NVStorageSaveData done [14:59:19]OFDSenderStorePacket done [14:59:19]KKMCreateOFDPacket done [14:59:19]NVStorageSaveData kkm_last_timestamp [14:59:19]File name is /storage/kkm_last_timestamp [14:59:19]Write 4 bytes [14:59:19]NVStorageSaveData done [14:59:19]ExternCall_PrintAddStr [14:59:19]wPrintStart [14:59:19]Write to MH i2c: 01 00 00 57 26 7D [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: 01 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: 01 07 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: 01 07 00 57 26 00 00 00 00 00 FF 0F 92 [14:59:19]RasterBufferAndPrint [14:59:19]line Счет N : (1)221360 [14:59:19]line ИНН: 02508201610067 [14:59:19]line Контрольно-Кассовый Чек [14:59:19]line ПРОДАЖА [14:59:19]line ТРК (МРК, ГНК) : 24 [14:59:19]line Товар: 2710124500 [14:59:19]line Аи-95-К-5 [14:59:19]line 13.480 * 74.20 [14:59:19]line = 1000.22 [14:59:19]line НДС 12% НСП 1% [14:59:19]line > о реализуемом товаре [14:59:19]line ОКРУГЛЕНИЕ: -0.22 [14:59:19]line ИТОГО: 1000.00 [14:59:19]line Внесено: 1000.00 [14:59:19]line СДАЧА: 0.00 [14:59:19]line НСП 1% : 8.85 [14:59:19]line НДС 12% : 106.22 [14:59:19]line Наличными: 1000.00 [14:59:19]line Безнал.: 0.00 [14:59:19]line Место: АЗС № 161 "Партнер Нефть" [14:59:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:19]line СНО: Общий режим [14:59:19]line Чек 190 23.10.2024 14:59 [14:59:19]line Смена: 537 ФФД: 1.0 [14:59:19]line ЗНМ: 0300000104 [14:59:19]line РНМ: 0000000000091764 [14:59:19]line Версия ККМ: 001 [14:59:19]line ФМ: 0000000000871759 [14:59:19]line ФД: 166775 [14:59:19]line ФПД: 987767751030 [14:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166775&fm=987767751030&tin=02508201610067®Number=0000000000091764&sum=100000 [14:59:19]OFD Sender: Processing packet 166775 [packets to send 48, broken 47] [14:59:19]ProducePacketName [14:59:19]name=ofd_packets/00166775 [14:59:19]OFD Sender: To server: pG, [14:59:19]CommunicateWithHost lk.salyk.kg:30040 [14:59:19]ConnectInit lk.salyk.kg [14:59:19]written 0, free lines is 4095 [14:59:19]Connected sock=10 [14:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 EA 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 47 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8B 02 00 35 04 06 00 00 E5 FB 8B C1 76 57 94 36 65 88 A5 01 6F [14:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 10 2F 47 00 07 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8B 02 00 F4 03 04 00 AE B5 18 67 B6 04 01 00 00 E9 20 A9 D5 3C CF 89 57 [14:59:19]CommunicateWithHost err = 0 [14:59:19]CheckOFDResponse [14:59:19]1017 (14) - 77093643461234 [14:59:19]1041 (16) - 0000000000871759 [14:59:19]1040 (4) - 166775 [14:59:19]1012 (4) - 23.10.2024 08:37 [14:59:19]1206 (1) - 0 [14:59:19]OFD Sender: Remove packet 166775 [14:59:19]ProducePacketName [14:59:19]name=ofd_packets/00166775 [14:59:19]NVStorageDeleteData [14:59:20]Write to MH i2c: 01 00 00 82 26 A8 [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: 01 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: 01 07 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 AF 0C 6A [14:59:20]RasterBufferAndPrint [14:59:20]line [14:59:20]line [14:59:20]line [14:59:20]line [14:59:20]line [14:59:20]written 0, free lines is 3252 [14:59:20]MH_Cut [14:59:20]Write to MH i2c: D1 01 00 89 26 01 81 [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: D1 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: D1 01 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: D1 01 00 89 26 00 80 [14:59:20]Write to MH i2c: 01 00 00 8A 26 B0 [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]OFD Sender: No OFD packet to send [14:59:20]*** Cut start [14:59:20]*** Partial cut [14:59:20]*** CUTSNS_PIN = 1 [14:59:20]*** CUTSNS_PIN = 0 [14:59:21]*** Brake cut motor [14:59:21]Read from MH i2c: 01 [14:59:21]MH_I2C_Read... [14:59:21]*** Stop cut motor [14:59:21]*** Cut end [14:59:21]Read from MH i2c: 01 07 00 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: 01 07 00 8A 26 00 00 00 00 00 FF 0F C5 [14:59:21]process_action close_receipt done [14:59:21]requested_data is exist [14:59:21]produce_requested_data [14:59:21]requested_item fm.sn is exist - process it [14:59:21]wFMCommunicate request_size=4 [14:59:21]MH_SAM_APDU [14:59:21]CAPDU: 80 11 00 00 [14:59:21]Write to MH i2c: E2 08 00 8B 26 80 11 00 00 00 00 00 00 2B [14:59:21]Write i2c OK [14:59:21]MH_I2C_Read... [14:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:21]Read from MH i2c: E2 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 17 00 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 17 00 8B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [14:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:21]wFMCommunicate OK [14:59:21]requested_item fd.num is exist - process it [14:59:21]SAM_PROTO_GetFieldsCounters [14:59:21]wFMCommunicate request_size=4 [14:59:21]MH_SAM_APDU [14:59:21]CAPDU: 80 13 00 00 [14:59:21]Write to MH i2c: E2 08 00 8C 26 80 13 00 00 00 00 00 00 2E [14:59:21]Write i2c OK [14:59:21]MH_I2C_Read... [14:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:21]Read from MH i2c: E2 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 62 00 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 62 00 8C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [14:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:21]wFMCommunicate OK [14:59:21]SAM_PROTO_GetFieldsCounters done [14:59:21]requested_item shift.num is exist - process it [14:59:21]requested_item shift.opened is exist - process it [14:59:21]req_shift_opened [14:59:21]FM_GetShiftState [14:59:21]SAM_PROTO_GetShiftState [14:59:21]wFMCommunicate request_size=4 [14:59:21]MH_SAM_APDU [14:59:21]CAPDU: 80 13 01 00 [14:59:21]Write to MH i2c: E2 08 00 8D 26 80 13 01 00 00 00 00 00 30 [14:59:21]Write i2c OK [14:59:21]MH_I2C_Read... [14:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:21]Read from MH i2c: E2 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 0E 00 [14:59:21]MH_I2C_Read... [14:59:21]Read from MH i2c: E2 0E 00 8D 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FB [14:59:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [14:59:21]wFMCommunicate OK [14:59:21]SAM_PROTO_GetShiftState done [14:59:21]FM_GetShiftState done [14:59:21]req_shift_opened done [14:59:21]requested_item shift.open_date is exist - process it [14:59:21]req_shift_open_date [14:59:21]req_shift_open_date done [14:59:21]produce_requested_data done [14:59:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166775,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [14:59:21]process_action_free close_receipt [14:59:21]json_value_free [14:59:21]json_value_free done [14:59:21]process_json_proto returns [14:59:21]Send response to host [14:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166775,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [14:59:21]free response buf [14:59:21]execute_script done [14:59:21]execute_script returns [14:59:21]free content buf [14:59:21]Sock 8.Close socket [14:59:21]Sock 8.Thread stoped [14:59:25]OFD Sender: No OFD packet to send [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:00:57]accept exits with 9 [15:00:57]New connection [15:00:57]New thread 3067034980 created [15:00:57]Thread 3067178340 joined [15:00:57]Waiting for new connection... [15:00:57] Sock 9.Parse request [15:00:57]Sock 9.Check first char [15:00:57]Sock 9.First char is OK [15:00:57]request: POST /json_proto HTTP/1.0 [15:00:57]Method: POST [15:00:57]URL: /json_proto [15:00:57]Method is POST - this is cgi request [15:00:57]url: /json_proto [15:00:57]query_string will be loaded in cgi processing [15:00:57]execute_cgi json_proto POST (null) [15:00:57]execute_cgi path=json_proto method=POST [15:00:57]POST find Content-Length [15:00:57]Host: 172.17.53.195:8080 [15:00:57]Content-Length: 769 [15:00:57]Content-Type: application/json [15:00:57] [15:00:57]POST finish read [15:00:57]Found Content-Length = 769 [15:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:57]execute_script... [15:00:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:57]POST & json_proto [15:00:57]process_json_proto [15:00:57]json parsed OK: [15:00:57]protocol is kg_v1.0 [15:00:57]action value=close_receipt [15:00:57]process_action close_receipt [15:00:57]cmd_close_receipt [15:00:57]MH_GetDate [15:00:57]Write to MH i2c: F0 00 00 8E 26 A3 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: F0 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: F0 09 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: F0 09 00 8E 26 00 AA 0F 19 67 21 48 4A 65 FD [15:00:57]GetLastDocTimeStamp 1729695559 [15:00:57]current date 1729695658 [15:00:57]FM_GetShiftState [15:00:57]SAM_PROTO_GetShiftState [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 13 01 00 [15:00:57]Write to MH i2c: E2 08 00 8F 26 80 13 01 00 00 00 00 00 32 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0E 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0E 00 8F 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FD [15:00:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:00:57]wFMCommunicate OK [15:00:57]SAM_PROTO_GetShiftState done [15:00:57]FM_GetShiftState done [15:00:57]opened in 1729643772 [15:00:57]opened+sec_in_day 1729730172 [15:00:57]quantity*price = 100021 [15:00:57]sum+1 = 100023 [15:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 191 23.10.2024 15:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166776 ФПД: 124322766374171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166776&fm=124322766374171&tin=02508201610067®Number=0000000000091764&sum=100022 [15:00:58]StoreToDocumentArchive [15:00:58]shift 537 fd 166776 [15:00:58]save to /storage/0537/doc_00166776 [15:00:58]save last doc name /storage/0537/doc_00166776 to /storage/kkm_last_doc_name [15:00:58]save OK [15:00:58]Clear old archive folders... [15:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:58]tlvbuf is 01FFAA60 [15:00:58]SAM_PROTO_ClearQueue [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 09 00 00 [15:00:58]Write to MH i2c: E2 08 00 9C 26 80 09 00 00 00 00 00 00 34 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [15:00:58]RAPDU: 90 00 [15:00:58]wFMCommunicate OK [15:00:58]SAM_PROTO_ClearQueue done [15:00:58]KKMCreateOFDPacket [15:00:58]OFDProtocolAddRootSTLVToBuf [15:00:58]FM_MakeSignedData [15:00:58]FM_MakeSignedData [15:00:58]SAM_PROTO_SignData [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 0D 01 02 [15:00:58]Write to MH i2c: E2 08 00 9D 26 80 0D 01 02 00 00 00 00 3C [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [15:00:58]RAPDU: 90 00 [15:00:58]wFMCommunicate OK [15:00:58]wFMCommunicate request_size=255 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AA 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8B 02 00 35 04 06 00 71 [15:00:58]Write to MH i2c: E2 02 01 9E 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AA 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8B 02 00 35 04 06 00 71 00 00 A4 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 9E 26 00 90 00 38 [15:00:58]RAPDU: 90 00 [15:00:58]wFMCommunicate OK [15:00:58]wFMCommunicate request_size=10 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 0D 02 02 05 12 26 53 C5 1B [15:00:58]Write to MH i2c: E2 0D 00 9F 26 80 0D 02 02 05 00 12 26 53 C5 1B 00 00 B4 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [15:00:58]RAPDU: 90 00 [15:00:58]wFMCommunicate OK [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 0D 03 02 [15:00:58]Write to MH i2c: E2 08 00 A0 26 80 0D 03 02 00 00 00 00 41 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 0B 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 0B 00 A0 26 00 02 D1 6B C3 D2 3C B9 88 90 00 92 [15:00:58]RAPDU: 02 D1 6B C3 D2 3C B9 88 90 00 [15:00:58]wFMCommunicate OK [15:00:58]SAM_PROTO_SignData done [15:00:58]FM_MakeSignedData done [15:00:58]CreateOFDProtocolMessage [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 11 00 00 [15:00:58]Write to MH i2c: E2 08 00 A1 26 80 11 00 00 00 00 00 00 41 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 17 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 17 00 A1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [15:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:00:58]wFMCommunicate OK [15:00:58]CreateOFDProtocolMessage done [15:00:58]OFDSenderStorePacket 166776 [15:00:58]StoreOFDPacket docnum=166776 [15:00:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 27 07 01 3E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AA 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8B 02 00 35 04 06 00 71 12 26 53 C5 1B 02 D1 6B C3 D2 3C B9 88 [15:00:58]CheckFolder [15:00:58]dirname=/storage/ofd_packets [15:00:58]CheckFolder done [15:00:58]ProducePacketName [15:00:58]name=ofd_packets/00166776 [15:00:58]NVStorageSaveData ofd_packets/00166776 [15:00:58]File name is /storage/ofd_packets/00166776 [15:00:58]Write 301 bytes [15:00:58]NVStorageSaveData done [15:00:58]OFDSenderStorePacket done [15:00:58]KKMCreateOFDPacket done [15:00:58]NVStorageSaveData kkm_last_timestamp [15:00:58]File name is /storage/kkm_last_timestamp [15:00:58]Write 4 bytes [15:00:58]NVStorageSaveData done [15:00:58]ExternCall_PrintAddStr [15:00:58]wPrintStart [15:00:58]Write to MH i2c: 01 00 00 A2 26 C8 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 A2 26 00 00 00 00 00 FF 0F DD [15:00:58]RasterBufferAndPrint [15:00:58]line Счет N : (1)221362 [15:00:58]line ИНН: 02508201610067 [15:00:58]line Контрольно-Кассовый Чек [15:00:58]line ПРОДАЖА [15:00:58]line ТРК (МРК, ГНК) : 34 [15:00:58]line Товар: 2710124500 [15:00:58]line Аи-95-К-5 [15:00:58]line 13.480 * 74.20 [15:00:58]line = 1000.22 [15:00:58]line НДС 12% НСП 1% [15:00:58]line > о реализуемом товаре [15:00:58]line ИТОГО: 1000.22 [15:00:58]line НСП 1% : 8.85 [15:00:58]line НДС 12% : 106.22 [15:00:58]line Наличными: 0.00 [15:00:58]line Безнал.: 1000.22 [15:00:58]line Место: АЗС № 161 "Партнер Нефть" [15:00:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:00:58]line СНО: Общий режим [15:00:58]line Чек 191 23.10.2024 15:00 [15:00:58]line Смена: 537 ФФД: 1.0 [15:00:58]line ЗНМ: 0300000104 [15:00:58]line РНМ: 0000000000091764 [15:00:58]line Версия ККМ: 001 [15:00:58]line Платежная система: Mbank [15:00:58]line ФМ: 0000000000871759 [15:00:58]line ФД: 166776 [15:00:58]line ФПД: 124322766374171 [15:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166776&fm=124322766374171&tin=02508201610067®Number=0000000000091764&sum=100022 [15:00:59]written 0, free lines is 4095 [15:00:59]OFD Sender: Processing packet 166776 [packets to send 48, broken 47] [15:00:59]ProducePacketName [15:00:59]name=ofd_packets/00166776 [15:00:59]OFD Sender: To server: pG, [15:00:59]CommunicateWithHost lk.salyk.kg:30040 [15:00:59]ConnectInit lk.salyk.kg [15:00:59]Connected sock=10 [15:00:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 27 07 01 3E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AA 0F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8B 02 00 35 04 06 00 71 12 26 53 C5 1B 02 D1 6B C3 D2 3C B9 88 [15:00:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 0D 47 00 29 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8B 02 00 F4 03 04 00 11 B6 18 67 B6 04 01 00 00 FE E6 1E 11 13 57 FF 65 [15:00:59]CommunicateWithHost err = 0 [15:00:59]CheckOFDResponse [15:00:59]1017 (14) - 77093643461234 [15:00:59]1041 (16) - 0000000000871759 [15:00:59]1040 (4) - 166776 [15:00:59]1012 (4) - 23.10.2024 08:38 [15:00:59]1206 (1) - 0 [15:00:59]OFD Sender: Remove packet 166776 [15:00:59]ProducePacketName [15:00:59]name=ofd_packets/00166776 [15:00:59]NVStorageDeleteData [15:00:59]Write to MH i2c: 01 00 00 CB 26 F1 [15:00:59]Write i2c OK [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: 01 [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: 01 07 00 [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: 01 07 00 CB 26 00 00 00 00 00 DD 0C E1 [15:00:59]RasterBufferAndPrint [15:00:59]line [15:00:59]line [15:00:59]line [15:00:59]line [15:00:59]line [15:00:59]written 0, free lines is 3299 [15:00:59]MH_Cut [15:00:59]Write to MH i2c: D1 01 00 D2 26 01 CA [15:00:59]Write i2c OK [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: D1 [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: D1 01 00 [15:00:59]MH_I2C_Read... [15:00:59]Read from MH i2c: D1 01 00 D2 26 00 C9 [15:00:59]Write to MH i2c: 01 00 00 D3 26 F9 [15:00:59]Write i2c OK [15:00:59]MH_I2C_Read... [15:00:59]OFD Sender: No OFD packet to send [15:01:00]*** Cut start [15:01:00]*** Partial cut [15:01:00]*** CUTSNS_PIN = 1 [15:01:00]*** CUTSNS_PIN = 0 [15:01:00]*** Brake cut motor [15:01:00]Read from MH i2c: 01 [15:01:01]MH_I2C_Read... [15:01:01]*** Stop cut motor [15:01:01]*** Cut end [15:01:01]Read from MH i2c: 01 07 00 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 FF 0F 0E [15:01:01]process_action close_receipt done [15:01:01]requested_data is exist [15:01:01]produce_requested_data [15:01:01]requested_item fm.sn is exist - process it [15:01:01]wFMCommunicate request_size=4 [15:01:01]MH_SAM_APDU [15:01:01]CAPDU: 80 11 00 00 [15:01:01]Write to MH i2c: E2 08 00 D4 26 80 11 00 00 00 00 00 00 74 [15:01:01]Write i2c OK [15:01:01]MH_I2C_Read... [15:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:01]Read from MH i2c: E2 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 17 00 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 17 00 D4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [15:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:01:01]wFMCommunicate OK [15:01:01]requested_item fd.num is exist - process it [15:01:01]SAM_PROTO_GetFieldsCounters [15:01:01]wFMCommunicate request_size=4 [15:01:01]MH_SAM_APDU [15:01:01]CAPDU: 80 13 00 00 [15:01:01]Write to MH i2c: E2 08 00 D5 26 80 13 00 00 00 00 00 00 77 [15:01:01]Write i2c OK [15:01:01]MH_I2C_Read... [15:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:01]Read from MH i2c: E2 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 62 00 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 62 00 D5 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [15:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:01]wFMCommunicate OK [15:01:01]SAM_PROTO_GetFieldsCounters done [15:01:01]requested_item shift.num is exist - process it [15:01:01]requested_item shift.opened is exist - process it [15:01:01]req_shift_opened [15:01:01]FM_GetShiftState [15:01:01]SAM_PROTO_GetShiftState [15:01:01]wFMCommunicate request_size=4 [15:01:01]MH_SAM_APDU [15:01:01]CAPDU: 80 13 01 00 [15:01:01]Write to MH i2c: E2 08 00 D6 26 80 13 01 00 00 00 00 00 79 [15:01:01]Write i2c OK [15:01:01]MH_I2C_Read... [15:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:01]Read from MH i2c: E2 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 0E 00 [15:01:01]MH_I2C_Read... [15:01:01]Read from MH i2c: E2 0E 00 D6 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 44 [15:01:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:01:01]wFMCommunicate OK [15:01:01]SAM_PROTO_GetShiftState done [15:01:01]FM_GetShiftState done [15:01:01]req_shift_opened done [15:01:01]requested_item shift.open_date is exist - process it [15:01:01]req_shift_open_date [15:01:01]req_shift_open_date done [15:01:01]produce_requested_data done [15:01:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166776,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:01:01]process_action_free close_receipt [15:01:01]json_value_free [15:01:01]json_value_free done [15:01:01]process_json_proto returns [15:01:01]Send response to host [15:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166776,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:01:01]free response buf [15:01:01]execute_script done [15:01:01]execute_script returns [15:01:01]free content buf [15:01:01]Sock 9.Close socket [15:01:01]Sock 9.Thread stoped [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]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:39]accept exits with 8 [15:03:39]New connection [15:03:39]New thread 3067178340 created [15:03:39]Thread 3067034980 joined [15:03:39]Waiting for new connection... [15:03:39] Sock 8.Parse request [15:03:39]Sock 8.Check first char [15:03:39]Sock 8.First char is OK [15:03:39]request: POST /json_proto HTTP/1.0 [15:03:39]Method: POST [15:03:39]URL: /json_proto [15:03:39]Method is POST - this is cgi request [15:03:39]url: /json_proto [15:03:39]query_string will be loaded in cgi processing [15:03:39]execute_cgi json_proto POST (null) [15:03:39]execute_cgi path=json_proto method=POST [15:03:39]POST find Content-Length [15:03:39]Host: 172.17.53.195:8080 [15:03:39]Content-Length: 790 [15:03:39]Content-Type: application/json [15:03:39] [15:03:39]POST finish read [15:03:39]Found Content-Length = 790 [15:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 223.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:39]execute_script... [15:03: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)221361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 223.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:39]POST & json_proto [15:03:39]process_json_proto [15:03:39]json parsed OK: [15:03:39]protocol is kg_v1.0 [15:03:39]action value=close_receipt [15:03:39]process_action close_receipt [15:03:39]cmd_close_receipt [15:03:39]MH_GetDate [15:03:39]Write to MH i2c: F0 00 00 D7 26 EC [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: F0 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: F0 09 00 [15:03:39]MH_I2C_Read... [15:03:39]Read from MH i2c: F0 09 00 D7 26 00 4D 10 19 67 21 48 4A 65 EA [15:03:39]GetLastDocTimeStamp 1729695658 [15:03:39]current date 1729695821 [15:03:39]FM_GetShiftState [15:03:39]SAM_PROTO_GetShiftState [15:03:39]wFMCommunicate request_size=4 [15:03:39]MH_SAM_APDU [15:03:39]CAPDU: 80 13 01 00 [15:03:39]Write to MH i2c: E2 08 00 D8 26 80 13 01 00 00 00 00 00 7B [15:03:39]Write i2c OK [15:03:39]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [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 D8 26 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 46 [15:03:40]RAPDU: 09 00 01 FC 44 18 67 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 1729643772 [15:03:40]opened+sec_in_day 1729730172 [15:03:40]quantity*price = 0 [15:03:40]sum+1 = 1 [15:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 192 23.10.2024 15:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85742 ФМ: 0000000000871759 ФД: 166777 ФПД: 99295898585851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166777&fm=99295898585851&tin=02508201610067®Number=0000000000091764&sum=0 [15:03:41]StoreToDocumentArchive [15:03:41]shift 537 fd 166777 [15:03:41]save to /storage/0537/doc_00166777 [15:03:41]save last doc name /storage/0537/doc_00166777 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=248 [15:03:41]tlvbuf is B6F8F9B0 [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 E5 26 80 09 00 00 00 00 00 00 7D [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [15:03:41]RAPDU: 90 00 [15:03:41]wFMCommunicate OK [15:03:41]SAM_PROTO_ClearQueue done [15:03:41]KKMCreateOFDPacket [15:03:41]OFDProtocolAddRootSTLVToBuf [15:03:41]FM_MakeSignedData [15:03:41]FM_MakeSignedData [15:03:41]SAM_PROTO_SignData [15:03:41]wFMCommunicate request_size=4 [15:03:41]MH_SAM_APDU [15:03:41]CAPDU: 80 0D 01 02 [15:03:41]Write to MH i2c: E2 08 00 E6 26 80 0D 01 02 00 00 00 00 85 [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [15:03:41]RAPDU: 90 00 [15:03:41]wFMCommunicate OK [15:03:41]wFMCommunicate request_size=255 [15:03:41]MH_SAM_APDU [15:03: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 7C 67 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 4D 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8B 02 00 35 04 06 00 5A 4F 20 C3 [15:03:41]Write to MH i2c: E2 02 01 E7 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 67 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 4D 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8B 02 00 35 04 06 00 5A 4F 20 C3 00 00 19 [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 E7 26 00 90 00 81 [15:03:41]RAPDU: 90 00 [15:03:41]wFMCommunicate OK [15:03:41]wFMCommunicate request_size=7 [15:03:41]MH_SAM_APDU [15:03:41]CAPDU: 80 0D 02 02 02 4A FB [15:03:41]Write to MH i2c: E2 0A 00 E8 26 80 0D 02 02 02 00 4A FB 00 00 D1 [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [15:03:41]RAPDU: 90 00 [15:03:41]wFMCommunicate OK [15:03:41]wFMCommunicate request_size=4 [15:03:41]MH_SAM_APDU [15:03:41]CAPDU: 80 0D 03 02 [15:03:41]Write to MH i2c: E2 08 00 E9 26 80 0D 03 02 00 00 00 00 8A [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 0B 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 0B 00 E9 26 00 51 A6 80 92 E9 53 83 79 90 00 CC [15:03:41]RAPDU: 51 A6 80 92 E9 53 83 79 90 00 [15:03:41]wFMCommunicate OK [15:03:41]SAM_PROTO_SignData done [15:03:41]FM_MakeSignedData done [15:03:41]CreateOFDProtocolMessage [15:03:41]wFMCommunicate request_size=4 [15:03:41]MH_SAM_APDU [15:03:41]CAPDU: 80 11 00 00 [15:03:41]Write to MH i2c: E2 08 00 EA 26 80 11 00 00 00 00 00 00 8A [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:41]Read from MH i2c: E2 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 17 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: E2 17 00 EA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [15:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:03:41]wFMCommunicate OK [15:03:41]CreateOFDProtocolMessage done [15:03:41]OFDSenderStorePacket 166777 [15:03:41]StoreOFDPacket docnum=166777 [15:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 03 04 01 1B 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 67 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 4D 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8B 02 00 35 04 06 00 5A 4F 20 C3 4A FB 51 A6 80 92 E9 53 83 79 [15:03:41]CheckFolder [15:03:41]dirname=/storage/ofd_packets [15:03:41]CheckFolder done [15:03:41]ProducePacketName [15:03:41]name=ofd_packets/00166777 [15:03:41]NVStorageSaveData ofd_packets/00166777 [15:03:41]File name is /storage/ofd_packets/00166777 [15:03:41]Write 298 bytes [15:03:41]NVStorageSaveData done [15:03:41]OFDSenderStorePacket done [15:03:41]KKMCreateOFDPacket done [15:03:41]NVStorageSaveData kkm_last_timestamp [15:03:41]File name is /storage/kkm_last_timestamp [15:03:41]Write 4 bytes [15:03:41]NVStorageSaveData done [15:03:41]ExternCall_PrintAddStr [15:03:41]wPrintStart [15:03:41]Write to MH i2c: 01 00 00 EB 26 11 [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: 01 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: 01 07 00 [15:03:41]MH_I2C_Read... [15:03:41]Read from MH i2c: 01 07 00 EB 26 00 00 00 00 00 FF 0F 26 [15:03:41]RasterBufferAndPrint [15:03:41]line Счет N : (1)221361 [15:03:41]line ИНН: 02508201610067 [15:03:41]line Контрольно-Кассовый Чек [15:03:41]line ПРОДАЖА [15:03:41]line ТРК (МРК, ГНК) : 11 [15:03:41]line Товар: 2710194210 [15:03:41]line ДТ-К-5 [15:03:41]line 223.100 * 0.00 [15:03:41]line = 0.00 [15:03:41]line НДС 12% НСП 1% [15:03:41]line > о реализуемом товаре [15:03:41]line ИТОГО: 0.00 [15:03:41]line НСП 1% : 0.00 [15:03:41]line НДС 12% : 0.00 [15:03:41]line Наличными: 0.00 [15:03:41]line Безнал.: 0.00 [15:03:41]line Место: АЗС № 161 "Партнер Нефть" [15:03:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:03:41]line СНО: Общий режим [15:03:41]line Чек 192 23.10.2024 15:03 [15:03:41]line Смена: 537 ФФД: 1.0 [15:03:41]line ЗНМ: 0300000104 [15:03:41]line РНМ: 0000000000091764 [15:03:41]line Версия ККМ: 001 [15:03:41]line Талоны: Топливная Карта [15:03:41]line 85742 [15:03:41]line ФМ: 0000000000871759 [15:03:41]line ФД: 166777 [15:03:41]line ФПД: 99295898585851 [15:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166777&fm=99295898585851&tin=02508201610067®Number=0000000000091764&sum=0 [15:03:42]OFD Sender: Processing packet 166777 [packets to send 48, broken 47] [15:03:42]ProducePacketName [15:03:42]name=ofd_packets/00166777 [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]written 0, free lines is 4095 [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 31 37 35 39 0C 01 00 00 84 03 04 01 1B 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 67 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 4D 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8B 02 00 35 04 06 00 5A 4F 20 C3 4A FB 51 A6 80 92 E9 53 83 79 [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 31 37 35 39 4F 00 00 00 0C 44 47 00 19 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8B 02 00 F4 03 04 00 B4 B6 18 67 B6 04 01 00 00 98 88 5C 83 2A 00 E4 DB [15:03:42]CommunicateWithHost err = 0 [15:03:42]CheckOFDResponse [15:03:42]1017 (14) - 77093643461234 [15:03:42]1041 (16) - 0000000000871759 [15:03:42]1040 (4) - 166777 [15:03:42]1012 (4) - 23.10.2024 08:41 [15:03:42]1206 (1) - 0 [15:03:42]OFD Sender: Remove packet 166777 [15:03:42]ProducePacketName [15:03:42]name=ofd_packets/00166777 [15:03:42]NVStorageDeleteData [15:03:42]Write to MH i2c: 01 00 00 15 27 3C [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 15 27 00 00 00 00 00 C0 0C 0F [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 3268 [15:03:42]MH_Cut [15:03:42]Write to MH i2c: D1 01 00 1C 27 01 15 [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 1C 27 00 14 [15:03:42]Write to MH i2c: 01 00 00 1D 27 44 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]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:43]Read from MH i2c: 01 [15:03:43]MH_I2C_Read... [15:03:43]*** Stop cut motor [15:03:43]*** Cut end [15:03:43]Read from MH i2c: 01 07 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: 01 07 00 1D 27 00 00 00 00 00 FF 0F 59 [15:03:43]process_action close_receipt done [15:03:43]requested_data is exist [15:03:43]produce_requested_data [15:03:43]requested_item fm.sn is exist - process it [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 11 00 00 [15:03:43]Write to MH i2c: E2 08 00 1E 27 80 11 00 00 00 00 00 00 BF [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 17 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 17 00 1E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [15:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:03:43]wFMCommunicate OK [15:03:43]requested_item fd.num is exist - process it [15:03:43]SAM_PROTO_GetFieldsCounters [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 13 00 00 [15:03:43]Write to MH i2c: E2 08 00 1F 27 80 13 00 00 00 00 00 00 C2 [15:03:43]Write i2c OK [15:03:43]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 1F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15: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 20 27 80 13 01 00 00 00 00 00 C4 [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 20 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8F [15:03:44]RAPDU: 09 00 01 FC 44 18 67 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":"0000000000871759","fd.num":166777,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [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":"0000000000871759","fd.num":166777,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [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 8.Close socket [15:03:44]Sock 8.Thread stoped [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:51]accept exits with 9 [15:04:51]New connection [15:04:51]New thread 3067034980 created [15:04:51]Thread 3067178340 joined [15:04:51]Waiting for new connection... [15:04:51] Sock 9.Parse request [15:04:51]Sock 9.Check first char [15:04:51]Sock 9.First char is OK [15:04:51]request: POST /json_proto HTTP/1.0 [15:04:51]Method: POST [15:04:51]URL: /json_proto [15:04:51]Method is POST - this is cgi request [15:04:51]url: /json_proto [15:04:51]query_string will be loaded in cgi processing [15:04:51]execute_cgi json_proto POST (null) [15:04:51]execute_cgi path=json_proto method=POST [15:04:51]POST find Content-Length [15:04:51]Host: 172.17.53.195:8080 [15:04:51]Content-Length: 677 [15:04:51]Content-Type: application/json [15:04:51] [15:04:51]POST finish read [15:04:51]Found Content-Length = 677 [15:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:51]execute_script... [15:04: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)221363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:51]POST & json_proto [15:04:51]process_json_proto [15:04:51]json parsed OK: [15:04:51]protocol is kg_v1.0 [15:04:51]action value=close_receipt [15:04:51]process_action close_receipt [15:04:51]cmd_close_receipt [15:04:51]MH_GetDate [15:04:51]Write to MH i2c: F0 00 00 21 27 37 [15:04:51]Write i2c OK [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: F0 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: F0 09 00 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: F0 09 00 21 27 00 95 10 19 67 21 48 4A 65 7D [15:04:51]GetLastDocTimeStamp 1729695821 [15:04:51]current date 1729695893 [15:04:51]FM_GetShiftState [15:04:51]SAM_PROTO_GetShiftState [15:04:51]wFMCommunicate request_size=4 [15:04:51]MH_SAM_APDU [15:04:51]CAPDU: 80 13 01 00 [15:04:51]Write to MH i2c: E2 08 00 22 27 80 13 01 00 00 00 00 00 C6 [15:04:51]Write i2c OK [15:04:51]MH_I2C_Read... [15:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:51]Read from MH i2c: E2 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 22 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 91 [15:04:51]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:04:51]wFMCommunicate OK [15:04:51]SAM_PROTO_GetShiftState done [15:04:51]FM_GetShiftState done [15:04:51]opened in 1729643772 [15:04:51]opened+sec_in_day 1729730172 [15:04:51]quantity*price = 50041 [15:04:51]sum+1 = 50042 [15:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 193 23.10.2024 15:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166778 ФПД: 160931457348881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166778&fm=160931457348881&tin=02508201610067®Number=0000000000091764&sum=50000 [15:04:52]StoreToDocumentArchive [15:04:52]shift 537 fd 166778 [15:04:52]save to /storage/0537/doc_00166778 [15:04:52]save last doc name /storage/0537/doc_00166778 to /storage/kkm_last_doc_name [15:04:52]save OK [15:04:52]Clear old archive folders... [15:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:52]tlvbuf is 01F8D8F0 [15:04:52]SAM_PROTO_ClearQueue [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 09 00 00 [15:04:52]Write to MH i2c: E2 08 00 2F 27 80 09 00 00 00 00 00 00 C8 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [15:04:53]RAPDU: 90 00 [15:04:53]wFMCommunicate OK [15:04:53]SAM_PROTO_ClearQueue done [15:04:53]KKMCreateOFDPacket [15:04:53]OFDProtocolAddRootSTLVToBuf [15:04:53]FM_MakeSignedData [15:04:53]FM_MakeSignedData [15:04:53]SAM_PROTO_SignData [15:04:53]wFMCommunicate request_size=4 [15:04:53]MH_SAM_APDU [15:04:53]CAPDU: 80 0D 01 02 [15:04:53]Write to MH i2c: E2 08 00 30 27 80 0D 01 02 00 00 00 00 D0 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [15:04:53]RAPDU: 90 00 [15:04:53]wFMCommunicate OK [15:04:53]wFMCommunicate request_size=255 [15:04:53]MH_SAM_APDU [15:04: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 95 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8B 02 00 35 04 06 00 92 [15:04:53]Write to MH i2c: E2 02 01 31 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 95 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8B 02 00 35 04 06 00 92 00 00 00 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [15:04:53]RAPDU: 90 00 [15:04:53]wFMCommunicate OK [15:04:53]wFMCommunicate request_size=10 [15:04:53]MH_SAM_APDU [15:04:53]CAPDU: 80 0D 02 02 05 5D C6 59 35 11 [15:04:53]Write to MH i2c: E2 0D 00 32 27 80 0D 02 02 05 00 5D C6 59 35 11 00 00 9F [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 03 00 32 27 00 90 00 CD [15:04:53]RAPDU: 90 00 [15:04:53]wFMCommunicate OK [15:04:53]wFMCommunicate request_size=4 [15:04:53]MH_SAM_APDU [15:04:53]CAPDU: 80 0D 03 02 [15:04:53]Write to MH i2c: E2 08 00 33 27 80 0D 03 02 00 00 00 00 D5 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 0B 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 0B 00 33 27 00 1F 5E 76 28 95 1D 51 60 90 00 54 [15:04:53]RAPDU: 1F 5E 76 28 95 1D 51 60 90 00 [15:04:53]wFMCommunicate OK [15:04:53]SAM_PROTO_SignData done [15:04:53]FM_MakeSignedData done [15:04:53]CreateOFDProtocolMessage [15:04:53]wFMCommunicate request_size=4 [15:04:53]MH_SAM_APDU [15:04:53]CAPDU: 80 11 00 00 [15:04:53]Write to MH i2c: E2 08 00 34 27 80 11 00 00 00 00 00 00 D5 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:53]Read from MH i2c: E2 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 17 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: E2 17 00 34 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [15:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:04:53]wFMCommunicate OK [15:04:53]CreateOFDProtocolMessage done [15:04:53]OFDSenderStorePacket 166778 [15:04:53]StoreOFDPacket docnum=166778 [15:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B E7 07 01 DB A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 95 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8B 02 00 35 04 06 00 92 5D C6 59 35 11 1F 5E 76 28 95 1D 51 60 [15:04:53]CheckFolder [15:04:53]dirname=/storage/ofd_packets [15:04:53]CheckFolder done [15:04:53]ProducePacketName [15:04:53]name=ofd_packets/00166778 [15:04:53]NVStorageSaveData ofd_packets/00166778 [15:04:53]File name is /storage/ofd_packets/00166778 [15:04:53]Write 301 bytes [15:04:53]NVStorageSaveData done [15:04:53]OFDSenderStorePacket done [15:04:53]KKMCreateOFDPacket done [15:04:53]NVStorageSaveData kkm_last_timestamp [15:04:53]File name is /storage/kkm_last_timestamp [15:04:53]Write 4 bytes [15:04:53]NVStorageSaveData done [15:04:53]ExternCall_PrintAddStr [15:04:53]wPrintStart [15:04:53]Write to MH i2c: 01 00 00 35 27 5C [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 35 27 00 00 00 00 00 FF 0F 71 [15:04:53]RasterBufferAndPrint [15:04:53]line Счет N : (1)221363 [15:04:53]line ИНН: 02508201610067 [15:04:53]line Контрольно-Кассовый Чек [15:04:53]line ПРОДАЖА [15:04:53]line ТРК (МРК, ГНК) : 23 [15:04:53]line Товар: 2710124130 [15:04:53]line Аи-92-К-5 [15:04:53]line 7.480 * 66.90 [15:04:53]line = 500.41 [15:04:53]line НДС 12% НСП 1% [15:04:53]line > о реализуемом товаре [15:04:53]line ОКРУГЛЕНИЕ: -0.41 [15:04:53]line ИТОГО: 500.00 [15:04:53]line Внесено: 500.00 [15:04:53]line СДАЧА: 0.00 [15:04:53]line НСП 1% : 4.43 [15:04:53]line НДС 12% : 53.14 [15:04:53]line Наличными: 500.00 [15:04:53]line Безнал.: 0.00 [15:04:53]line Место: АЗС № 161 "Партнер Нефть" [15:04:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:04:53]line СНО: Общий режим [15:04:53]line Чек 193 23.10.2024 15:04 [15:04:53]line Смена: 537 ФФД: 1.0 [15:04:53]line ЗНМ: 0300000104 [15:04:53]line РНМ: 0000000000091764 [15:04:53]line Версия ККМ: 001 [15:04:53]line ФМ: 0000000000871759 [15:04:53]line ФД: 166778 [15:04:53]line ФПД: 160931457348881 [15:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166778&fm=160931457348881&tin=02508201610067®Number=0000000000091764&sum=50000 [15:04:53]OFD Sender: Processing packet 166778 [packets to send 48, broken 47] [15:04:53]ProducePacketName [15:04:53]name=ofd_packets/00166778 [15:04:53]OFD Sender: To server: pG, [15:04:53]CommunicateWithHost lk.salyk.kg:30040 [15:04:53]ConnectInit lk.salyk.kg [15:04:53]written 0, free lines is 4095 [15:04:53]Connected sock=10 [15:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B E7 07 01 DB A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 95 10 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8B 02 00 35 04 06 00 92 5D C6 59 35 11 1F 5E 76 28 95 1D 51 60 [15:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1C 0E 47 00 8D 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8B 02 00 F4 03 04 00 FC B6 18 67 B6 04 01 00 00 C8 4B C8 E3 C4 E9 5E 71 [15:04:54]CommunicateWithHost err = 0 [15:04:54]CheckOFDResponse [15:04:54]1017 (14) - 77093643461234 [15:04:54]1041 (16) - 0000000000871759 [15:04:54]1040 (4) - 166778 [15:04:54]1012 (4) - 23.10.2024 08:42 [15:04:54]1206 (1) - 0 [15:04:54]OFD Sender: Remove packet 166778 [15:04:54]ProducePacketName [15:04:54]name=ofd_packets/00166778 [15:04:54]NVStorageDeleteData [15:04:54]Write to MH i2c: 01 00 00 60 27 87 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: 01 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: 01 07 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: 01 07 00 60 27 00 00 00 00 00 C0 0C 5A [15:04:54]RasterBufferAndPrint [15:04:54]line [15:04:54]line [15:04:54]line [15:04:54]line [15:04:54]line [15:04:54]written 0, free lines is 3271 [15:04:54]MH_Cut [15:04:54]Write to MH i2c: D1 01 00 67 27 01 60 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: D1 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: D1 01 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: D1 01 00 67 27 00 5F [15:04:54]Write to MH i2c: 01 00 00 68 27 8F [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]OFD Sender: No OFD packet to send [15:04:55]*** Cut start [15:04:55]*** Partial cut [15:04:55]*** CUTSNS_PIN = 1 [15:04:55]*** CUTSNS_PIN = 0 [15:04:55]*** Brake cut motor [15:04:55]Read from MH i2c: 01 [15:04:55]MH_I2C_Read... [15:04:55]*** Stop cut motor [15:04:55]*** Cut end [15:04:55]Read from MH i2c: 01 07 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: 01 07 00 68 27 00 00 00 00 00 FF 0F A4 [15:04:55]process_action close_receipt done [15:04:55]requested_data is exist [15:04:55]produce_requested_data [15:04:55]requested_item fm.sn is exist - process it [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 11 00 00 [15:04:55]Write to MH i2c: E2 08 00 69 27 80 11 00 00 00 00 00 00 0A [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 17 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 17 00 69 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [15:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:04:55]wFMCommunicate OK [15:04:55]requested_item fd.num is exist - process it [15:04:55]SAM_PROTO_GetFieldsCounters [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 13 00 00 [15:04:55]Write to MH i2c: E2 08 00 6A 27 80 13 00 00 00 00 00 00 0D [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 62 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 62 00 6A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [15:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_GetFieldsCounters done [15:04:55]requested_item shift.num is exist - process it [15:04:55]requested_item shift.opened is exist - process it [15:04:55]req_shift_opened [15:04:55]FM_GetShiftState [15:04:55]SAM_PROTO_GetShiftState [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 13 01 00 [15:04:55]Write to MH i2c: E2 08 00 6B 27 80 13 01 00 00 00 00 00 0F [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0E 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0E 00 6B 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DA [15:04:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:04:56]wFMCommunicate OK [15:04:56]SAM_PROTO_GetShiftState done [15:04:56]FM_GetShiftState done [15:04:56]req_shift_opened done [15:04:56]requested_item shift.open_date is exist - process it [15:04:56]req_shift_open_date [15:04:56]req_shift_open_date done [15:04:56]produce_requested_data done [15:04:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166778,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:04:56]process_action_free close_receipt [15:04:56]json_value_free [15:04:56]json_value_free done [15:04:56]process_json_proto returns [15:04:56]Send response to host [15:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166778,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:04:56]free response buf [15:04:56]execute_script done [15:04:56]execute_script returns [15:04:56]free content buf [15:04:56]Sock 9.Close socket [15:04:56]Sock 9.Thread stoped [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:41]accept exits with 8 [15:07:41]New connection [15:07:41]New thread 3067178340 created [15:07:41]Thread 3067034980 joined [15:07:41]Waiting for new connection... [15:07:41] Sock 8.Parse request [15:07:41]Sock 8.Check first char [15:07:41]Sock 8.First char is OK [15:07:41]request: POST /json_proto HTTP/1.0 [15:07:41]Method: POST [15:07:41]URL: /json_proto [15:07:41]Method is POST - this is cgi request [15:07:41]url: /json_proto [15:07:41]query_string will be loaded in cgi processing [15:07:41]execute_cgi json_proto POST (null) [15:07:41]execute_cgi path=json_proto method=POST [15:07:41]POST find Content-Length [15:07:41]Host: 172.17.53.195:8080 [15:07:41]Content-Length: 677 [15:07:41]Content-Type: application/json [15:07:41] [15:07:41]POST finish read [15:07:41]Found Content-Length = 677 [15:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:41]execute_script... [15:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:41]POST & json_proto [15:07:41]process_json_proto [15:07:41]json parsed OK: [15:07:41]protocol is kg_v1.0 [15:07:41]action value=close_receipt [15:07:41]process_action close_receipt [15:07:41]cmd_close_receipt [15:07:41]MH_GetDate [15:07:41]Write to MH i2c: F0 00 00 6C 27 82 [15:07:41]Write i2c OK [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: F0 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: F0 09 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: F0 09 00 6C 27 00 3F 11 19 67 21 48 4A 65 73 [15:07:41]GetLastDocTimeStamp 1729695893 [15:07:41]current date 1729696063 [15:07:41]FM_GetShiftState [15:07:41]SAM_PROTO_GetShiftState [15:07:41]wFMCommunicate request_size=4 [15:07:41]MH_SAM_APDU [15:07:41]CAPDU: 80 13 01 00 [15:07:41]Write to MH i2c: E2 08 00 6D 27 80 13 01 00 00 00 00 00 11 [15:07:41]Write i2c OK [15:07:41]MH_I2C_Read... [15:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:41]Read from MH i2c: E2 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 0E 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 0E 00 6D 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DC [15:07:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:07:41]wFMCommunicate OK [15:07:41]SAM_PROTO_GetShiftState done [15:07:41]FM_GetShiftState done [15:07:41]opened in 1729643772 [15:07:41]opened+sec_in_day 1729730172 [15:07:41]quantity*price = 40006 [15:07:41]sum+1 = 40007 [15:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 194 23.10.2024 15:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166779 ФПД: 25441705108258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166779&fm=25441705108258&tin=02508201610067®Number=0000000000091764&sum=40000 [15:07:42]StoreToDocumentArchive [15:07:42]shift 537 fd 166779 [15:07:42]save to /storage/0537/doc_00166779 [15:07:42]save last doc name /storage/0537/doc_00166779 to /storage/kkm_last_doc_name [15:07:42]save OK [15:07:42]Clear old archive folders... [15:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:42]tlvbuf is B6F11630 [15:07:42]SAM_PROTO_ClearQueue [15:07:42]wFMCommunicate request_size=4 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 09 00 00 [15:07:42]Write to MH i2c: E2 08 00 7A 27 80 09 00 00 00 00 00 00 13 [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:42]Read from MH i2c: E2 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 03 00 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [15:07:42]RAPDU: 90 00 [15:07:42]wFMCommunicate OK [15:07:42]SAM_PROTO_ClearQueue done [15:07:42]KKMCreateOFDPacket [15:07:42]OFDProtocolAddRootSTLVToBuf [15:07:42]FM_MakeSignedData [15:07:42]FM_MakeSignedData [15:07:42]SAM_PROTO_SignData [15:07:42]wFMCommunicate request_size=4 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 0D 01 02 [15:07:42]Write to MH i2c: E2 08 00 7B 27 80 0D 01 02 00 00 00 00 1B [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:42]Read from MH i2c: E2 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 03 00 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [15:07:42]RAPDU: 90 00 [15:07:42]wFMCommunicate OK [15:07:42]wFMCommunicate request_size=255 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 3F 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8B 02 00 35 04 06 00 17 [15:07:42]Write to MH i2c: E2 02 01 7C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 3F 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8B 02 00 35 04 06 00 17 00 00 4C [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:43]Read from MH i2c: E2 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 03 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [15:07:43]RAPDU: 90 00 [15:07:43]wFMCommunicate OK [15:07:43]wFMCommunicate request_size=10 [15:07:43]MH_SAM_APDU [15:07:43]CAPDU: 80 0D 02 02 05 23 9B CB A3 22 [15:07:43]Write to MH i2c: E2 0D 00 7D 27 80 0D 02 02 05 00 23 9B CB A3 22 00 00 76 [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:43]Read from MH i2c: E2 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 03 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [15:07:43]RAPDU: 90 00 [15:07:43]wFMCommunicate OK [15:07:43]wFMCommunicate request_size=4 [15:07:43]MH_SAM_APDU [15:07:43]CAPDU: 80 0D 03 02 [15:07:43]Write to MH i2c: E2 08 00 7E 27 80 0D 03 02 00 00 00 00 20 [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:43]Read from MH i2c: E2 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 0B 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 0B 00 7E 27 00 77 08 F9 3D E6 61 8E 0B 90 00 B6 [15:07:43]RAPDU: 77 08 F9 3D E6 61 8E 0B 90 00 [15:07:43]wFMCommunicate OK [15:07:43]SAM_PROTO_SignData done [15:07:43]FM_MakeSignedData done [15:07:43]CreateOFDProtocolMessage [15:07:43]wFMCommunicate request_size=4 [15:07:43]MH_SAM_APDU [15:07:43]CAPDU: 80 11 00 00 [15:07:43]Write to MH i2c: E2 08 00 7F 27 80 11 00 00 00 00 00 00 20 [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:43]Read from MH i2c: E2 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 17 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: E2 17 00 7F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [15:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:07:43]wFMCommunicate OK [15:07:43]CreateOFDProtocolMessage done [15:07:43]OFDSenderStorePacket 166779 [15:07:43]StoreOFDPacket docnum=166779 [15:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B DD 07 01 14 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 3F 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8B 02 00 35 04 06 00 17 23 9B CB A3 22 77 08 F9 3D E6 61 8E 0B [15:07:43]CheckFolder [15:07:43]dirname=/storage/ofd_packets [15:07:43]CheckFolder done [15:07:43]ProducePacketName [15:07:43]name=ofd_packets/00166779 [15:07:43]NVStorageSaveData ofd_packets/00166779 [15:07:43]File name is /storage/ofd_packets/00166779 [15:07:43]Write 301 bytes [15:07:43]NVStorageSaveData done [15:07:43]OFDSenderStorePacket done [15:07:43]KKMCreateOFDPacket done [15:07:43]NVStorageSaveData kkm_last_timestamp [15:07:43]File name is /storage/kkm_last_timestamp [15:07:43]Write 4 bytes [15:07:43]NVStorageSaveData done [15:07:43]ExternCall_PrintAddStr [15:07:43]wPrintStart [15:07:43]Write to MH i2c: 01 00 00 80 27 A7 [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 07 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 07 00 80 27 00 00 00 00 00 FF 0F BC [15:07:43]RasterBufferAndPrint [15:07:43]line Счет N : (1)221365 [15:07:43]line ИНН: 02508201610067 [15:07:43]line Контрольно-Кассовый Чек [15:07:43]line ПРОДАЖА [15:07:43]line ТРК (МРК, ГНК) : 33 [15:07:43]line Товар: 2710124130 [15:07:43]line Аи-92-К-5 [15:07:43]line 5.980 * 66.90 [15:07:43]line = 400.06 [15:07:43]line НДС 12% НСП 1% [15:07:43]line > о реализуемом товаре [15:07:43]line ОКРУГЛЕНИЕ: -0.06 [15:07:43]line ИТОГО: 400.00 [15:07:43]line Внесено: 400.00 [15:07:43]line СДАЧА: 0.00 [15:07:43]line НСП 1% : 3.54 [15:07:43]line НДС 12% : 42.48 [15:07:43]line Наличными: 400.00 [15:07:43]line Безнал.: 0.00 [15:07:43]line Место: АЗС № 161 "Партнер Нефть" [15:07:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:07:43]line СНО: Общий режим [15:07:43]line Чек 194 23.10.2024 15:07 [15:07:43]line Смена: 537 ФФД: 1.0 [15:07:43]line ЗНМ: 0300000104 [15:07:43]line РНМ: 0000000000091764 [15:07:43]line Версия ККМ: 001 [15:07:43]line ФМ: 0000000000871759 [15:07:43]line ФД: 166779 [15:07:43]line ФПД: 25441705108258 [15:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166779&fm=25441705108258&tin=02508201610067®Number=0000000000091764&sum=40000 [15:07:43]OFD Sender: Processing packet 166779 [packets to send 48, broken 47] [15:07:43]ProducePacketName [15:07:43]name=ofd_packets/00166779 [15:07:43]OFD Sender: To server: pG, [15:07:43]CommunicateWithHost lk.salyk.kg:30040 [15:07:43]ConnectInit lk.salyk.kg [15:07:43]written 0, free lines is 4095 [15:07:43]Connected sock=10 [15:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B DD 07 01 14 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 3F 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8B 02 00 35 04 06 00 17 23 9B CB A3 22 77 08 F9 3D E6 61 8E 0B [15:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F 23 47 00 12 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8B 02 00 F4 03 04 00 A6 B7 18 67 B6 04 01 00 00 43 23 56 F0 D3 7C 70 51 [15:07:43]CommunicateWithHost err = 0 [15:07:43]CheckOFDResponse [15:07:43]1017 (14) - 77093643461234 [15:07:43]1041 (16) - 0000000000871759 [15:07:43]1040 (4) - 166779 [15:07:43]1012 (4) - 23.10.2024 08:45 [15:07:43]1206 (1) - 0 [15:07:43]OFD Sender: Remove packet 166779 [15:07:43]ProducePacketName [15:07:43]name=ofd_packets/00166779 [15:07:43]NVStorageDeleteData [15:07:43]Write to MH i2c: 01 00 00 AB 27 D2 [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 07 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: 01 07 00 AB 27 00 00 00 00 00 C0 0C A5 [15:07:43]RasterBufferAndPrint [15:07:43]line [15:07:43]line [15:07:43]line [15:07:43]line [15:07:43]line [15:07:43]written 0, free lines is 3270 [15:07:43]MH_Cut [15:07:43]Write to MH i2c: D1 01 00 B2 27 01 AB [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: D1 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: D1 01 00 [15:07:43]MH_I2C_Read... [15:07:43]Read from MH i2c: D1 01 00 B2 27 00 AA [15:07:43]Write to MH i2c: 01 00 00 B3 27 DA [15:07:43]Write i2c OK [15:07:43]MH_I2C_Read... [15:07:44]OFD Sender: No OFD packet to send [15:07:44]*** Cut start [15:07:44]*** Partial cut [15:07:44]*** CUTSNS_PIN = 1 [15:07:44]*** CUTSNS_PIN = 0 [15:07:45]*** Brake cut motor [15:07:45]Read from MH i2c: 01 [15:07:45]MH_I2C_Read... [15:07:45]*** Stop cut motor [15:07:45]*** Cut end [15:07:45]Read from MH i2c: 01 07 00 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: 01 07 00 B3 27 00 00 00 00 00 FF 0F EF [15:07:45]process_action close_receipt done [15:07:45]requested_data is exist [15:07:45]produce_requested_data [15:07:45]requested_item fm.sn is exist - process it [15:07:45]wFMCommunicate request_size=4 [15:07:45]MH_SAM_APDU [15:07:45]CAPDU: 80 11 00 00 [15:07:45]Write to MH i2c: E2 08 00 B4 27 80 11 00 00 00 00 00 00 55 [15:07:45]Write i2c OK [15:07:45]MH_I2C_Read... [15:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:45]Read from MH i2c: E2 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 17 00 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 17 00 B4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [15:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:07:45]wFMCommunicate OK [15:07:45]requested_item fd.num is exist - process it [15:07:45]SAM_PROTO_GetFieldsCounters [15:07:45]wFMCommunicate request_size=4 [15:07:45]MH_SAM_APDU [15:07:45]CAPDU: 80 13 00 00 [15:07:45]Write to MH i2c: E2 08 00 B5 27 80 13 00 00 00 00 00 00 58 [15:07:45]Write i2c OK [15:07:45]MH_I2C_Read... [15:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:45]Read from MH i2c: E2 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 62 00 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 62 00 B5 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [15:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:45]wFMCommunicate OK [15:07:45]SAM_PROTO_GetFieldsCounters done [15:07:45]requested_item shift.num is exist - process it [15:07:45]requested_item shift.opened is exist - process it [15:07:45]req_shift_opened [15:07:45]FM_GetShiftState [15:07:45]SAM_PROTO_GetShiftState [15:07:45]wFMCommunicate request_size=4 [15:07:45]MH_SAM_APDU [15:07:45]CAPDU: 80 13 01 00 [15:07:45]Write to MH i2c: E2 08 00 B6 27 80 13 01 00 00 00 00 00 5A [15:07:45]Write i2c OK [15:07:45]MH_I2C_Read... [15:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:45]Read from MH i2c: E2 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 0E 00 [15:07:45]MH_I2C_Read... [15:07:45]Read from MH i2c: E2 0E 00 B6 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 25 [15:07:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:07:45]wFMCommunicate OK [15:07:45]SAM_PROTO_GetShiftState done [15:07:45]FM_GetShiftState done [15:07:45]req_shift_opened done [15:07:45]requested_item shift.open_date is exist - process it [15:07:45]req_shift_open_date [15:07:45]req_shift_open_date done [15:07:45]produce_requested_data done [15:07:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166779,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:07:45]process_action_free close_receipt [15:07:45]json_value_free [15:07:45]json_value_free done [15:07:45]process_json_proto returns [15:07:45]Send response to host [15:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166779,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:07:45]free response buf [15:07:45]execute_script done [15:07:45]execute_script returns [15:07:45]free content buf [15:07:45]Sock 8.Close socket [15:07:45]Sock 8.Thread stoped [15:07:46]accept exits with 9 [15:07:46]New connection [15:07:46]New thread 3067034980 created [15:07:46]Thread 3067178340 joined [15:07:46]Waiting for new connection... [15:07:46] Sock 9.Parse request [15:07:46]Sock 9.Check first char [15:07:46]Sock 9.First char is OK [15:07:46]request: POST /json_proto HTTP/1.0 [15:07:46]Method: POST [15:07:46]URL: /json_proto [15:07:46]Method is POST - this is cgi request [15:07:46]url: /json_proto [15:07:46]query_string will be loaded in cgi processing [15:07:46]execute_cgi json_proto POST (null) [15:07:46]execute_cgi path=json_proto method=POST [15:07:46]POST find Content-Length [15:07:46]Host: 172.17.53.195:8080 [15:07:46]Content-Length: 674 [15:07:46]Content-Type: application/json [15:07:46] [15:07:46]POST finish read [15:07:46]Found Content-Length = 674 [15:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:46]execute_script... [15:07: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)221364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:46]POST & json_proto [15:07:46]process_json_proto [15:07:46]json parsed OK: [15:07:46]protocol is kg_v1.0 [15:07:46]action value=close_receipt [15:07:46]process_action close_receipt [15:07:46]cmd_close_receipt [15:07:46]MH_GetDate [15:07:46]Write to MH i2c: F0 00 00 B7 27 CD [15:07:46]Write i2c OK [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: F0 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: F0 09 00 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: F0 09 00 B7 27 00 43 11 19 67 21 48 4A 65 C2 [15:07:46]GetLastDocTimeStamp 1729696063 [15:07:46]current date 1729696067 [15:07:46]FM_GetShiftState [15:07:46]SAM_PROTO_GetShiftState [15:07:46]wFMCommunicate request_size=4 [15:07:46]MH_SAM_APDU [15:07:46]CAPDU: 80 13 01 00 [15:07:46]Write to MH i2c: E2 08 00 B8 27 80 13 01 00 00 00 00 00 5C [15:07:46]Write i2c OK [15:07:46]MH_I2C_Read... [15:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:46]Read from MH i2c: E2 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: E2 0E 00 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: E2 0E 00 B8 27 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 27 [15:07:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:07:46]wFMCommunicate OK [15:07:46]SAM_PROTO_GetShiftState done [15:07:46]FM_GetShiftState done [15:07:46]opened in 1729643772 [15:07:46]opened+sec_in_day 1729730172 [15:07:46]quantity*price = 49987 [15:07:46]sum+1 = 49988 [15:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 195 23.10.2024 15:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166780 ФПД: 199860659041006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150747&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166780&fm=199860659041006&tin=02508201610067®Number=0000000000091764&sum=49900 [15:07:47]StoreToDocumentArchive [15:07:47]shift 537 fd 166780 [15:07:47]save to /storage/0537/doc_00166780 [15:07:47]save last doc name /storage/0537/doc_00166780 to /storage/kkm_last_doc_name [15:07:47]save OK [15:07:47]Clear old archive folders... [15:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:47]tlvbuf is 0206A340 [15:07:47]SAM_PROTO_ClearQueue [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 09 00 00 [15:07:47]Write to MH i2c: E2 08 00 C5 27 80 09 00 00 00 00 00 00 5E [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 C5 27 00 90 00 60 [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]SAM_PROTO_ClearQueue done [15:07:47]KKMCreateOFDPacket [15:07:47]OFDProtocolAddRootSTLVToBuf [15:07:47]FM_MakeSignedData [15:07:47]FM_MakeSignedData [15:07:47]SAM_PROTO_SignData [15:07:47]wFMCommunicate request_size=4 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 01 02 [15:07:47]Write to MH i2c: E2 08 00 C6 27 80 0D 01 02 00 00 00 00 66 [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 C6 27 00 90 00 61 [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]wFMCommunicate request_size=255 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 43 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8B 02 00 35 04 06 00 B5 C5 AF 96 [15:07:47]Write to MH i2c: E2 02 01 C7 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 43 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8B 02 00 35 04 06 00 B5 C5 AF 96 00 00 CB [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:47]Read from MH i2c: E2 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 [15:07:47]MH_I2C_Read... [15:07:47]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [15:07:47]RAPDU: 90 00 [15:07:47]wFMCommunicate OK [15:07:47]wFMCommunicate request_size=7 [15:07:47]MH_SAM_APDU [15:07:47]CAPDU: 80 0D 02 02 02 32 EE [15:07:47]Write to MH i2c: E2 0A 00 C8 27 80 0D 02 02 02 00 32 EE 00 00 8D [15:07:47]Write i2c OK [15:07:47]MH_I2C_Read... [15:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:48]Read from MH i2c: E2 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 03 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 03 00 C8 27 00 90 00 63 [15:07:48]RAPDU: 90 00 [15:07:48]wFMCommunicate OK [15:07:48]wFMCommunicate request_size=4 [15:07:48]MH_SAM_APDU [15:07:48]CAPDU: 80 0D 03 02 [15:07:48]Write to MH i2c: E2 08 00 C9 27 80 0D 03 02 00 00 00 00 6B [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:48]Read from MH i2c: E2 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 0B 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 0B 00 C9 27 00 BE 2A BF 8C 8B CA A3 3E 90 00 D5 [15:07:48]RAPDU: BE 2A BF 8C 8B CA A3 3E 90 00 [15:07:48]wFMCommunicate OK [15:07:48]SAM_PROTO_SignData done [15:07:48]FM_MakeSignedData done [15:07:48]CreateOFDProtocolMessage [15:07:48]wFMCommunicate request_size=4 [15:07:48]MH_SAM_APDU [15:07:48]CAPDU: 80 11 00 00 [15:07:48]Write to MH i2c: E2 08 00 CA 27 80 11 00 00 00 00 00 00 6B [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:48]Read from MH i2c: E2 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 17 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: E2 17 00 CA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [15:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:07:48]wFMCommunicate OK [15:07:48]CreateOFDProtocolMessage done [15:07:48]OFDSenderStorePacket 166780 [15:07:48]StoreOFDPacket docnum=166780 [15:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 09 04 01 02 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 43 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8B 02 00 35 04 06 00 B5 C5 AF 96 32 EE BE 2A BF 8C 8B CA A3 3E [15:07:48]CheckFolder [15:07:48]dirname=/storage/ofd_packets [15:07:48]CheckFolder done [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00166780 [15:07:48]NVStorageSaveData ofd_packets/00166780 [15:07:48]File name is /storage/ofd_packets/00166780 [15:07:48]Write 298 bytes [15:07:48]NVStorageSaveData done [15:07:48]OFDSenderStorePacket done [15:07:48]KKMCreateOFDPacket done [15:07:48]NVStorageSaveData kkm_last_timestamp [15:07:48]File name is /storage/kkm_last_timestamp [15:07:48]Write 4 bytes [15:07:48]NVStorageSaveData done [15:07:48]ExternCall_PrintAddStr [15:07:48]wPrintStart [15:07:48]Write to MH i2c: 01 00 00 CB 27 F2 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 CB 27 00 00 00 00 00 FF 0F 07 [15:07:48]RasterBufferAndPrint [15:07:48]line Счет N : (1)221364 [15:07:48]line ИНН: 02508201610067 [15:07:48]line Контрольно-Кассовый Чек [15:07:48]line ПРОДАЖА [15:07:48]line ТРК (МРК, ГНК) : 11 [15:07:48]line Товар: 2710194210 [15:07:48]line ДТ-К-5 [15:07:48]line 6.560 * 76.20 [15:07:48]line = 499.87 [15:07:48]line НДС 12% НСП 1% [15:07:48]line > о реализуемом товаре [15:07:48]line ОКРУГЛЕНИЕ: -0.87 [15:07:48]line ИТОГО: 499.00 [15:07:48]line Внесено: 500.00 [15:07:48]line СДАЧА: 1.00 [15:07:48]line НСП 1% : 4.42 [15:07:48]line НДС 12% : 53.08 [15:07:48]line Наличными: 499.00 [15:07:48]line Безнал.: 0.00 [15:07:48]line Место: АЗС № 161 "Партнер Нефть" [15:07:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:07:48]line СНО: Общий режим [15:07:48]line Чек 195 23.10.2024 15:07 [15:07:48]line Смена: 537 ФФД: 1.0 [15:07:48]line ЗНМ: 0300000104 [15:07:48]line РНМ: 0000000000091764 [15:07:48]line Версия ККМ: 001 [15:07:48]line ФМ: 0000000000871759 [15:07:48]line ФД: 166780 [15:07:48]line ФПД: 199860659041006 [15:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150747&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166780&fm=199860659041006&tin=02508201610067®Number=0000000000091764&sum=49900 [15:07:48]OFD Sender: Processing packet 166780 [packets to send 48, broken 47] [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00166780 [15:07:48]OFD Sender: To server: pG, [15:07:48]CommunicateWithHost lk.salyk.kg:30040 [15:07:48]ConnectInit lk.salyk.kg [15:07:48]written 0, free lines is 4095 [15:07:48]Connected sock=10 [15:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 09 04 01 02 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 43 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8B 02 00 35 04 06 00 B5 C5 AF 96 32 EE BE 2A BF 8C 8B CA A3 3E [15:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DE C5 47 00 44 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8B 02 00 F4 03 04 00 AB B7 18 67 B6 04 01 00 00 9D B7 31 F5 F2 46 FB 70 [15:07:48]CommunicateWithHost err = 0 [15:07:48]CheckOFDResponse [15:07:48]1017 (14) - 77093643461234 [15:07:48]1041 (16) - 0000000000871759 [15:07:48]1040 (4) - 166780 [15:07:48]1012 (4) - 23.10.2024 08:45 [15:07:48]1206 (1) - 0 [15:07:48]OFD Sender: Remove packet 166780 [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00166780 [15:07:48]NVStorageDeleteData [15:07:48]Write to MH i2c: 01 00 00 F6 27 1D [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 F6 27 00 00 00 00 00 C2 0C F2 [15:07:48]RasterBufferAndPrint [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]written 0, free lines is 3278 [15:07:48]MH_Cut [15:07:48]Write to MH i2c: D1 01 00 FD 27 01 F6 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 FD 27 00 F5 [15:07:48]Write to MH i2c: 01 00 00 FE 27 25 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:49]OFD Sender: No OFD packet to send [15:07:49]*** Cut start [15:07:49]*** Partial cut [15:07:49]*** CUTSNS_PIN = 1 [15:07:49]*** CUTSNS_PIN = 0 [15:07:49]*** Brake cut motor [15:07:50]Read from MH i2c: 01 [15:07:50]MH_I2C_Read... [15:07:50]*** Stop cut motor [15:07:50]*** Cut end [15:07:50]Read from MH i2c: 01 07 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: 01 07 00 FE 27 00 00 00 00 00 FF 0F 3A [15:07:50]process_action close_receipt done [15:07:50]requested_data is exist [15:07:50]produce_requested_data [15:07:50]requested_item fm.sn is exist - process it [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 11 00 00 [15:07:50]Write to MH i2c: E2 08 00 FF 27 80 11 00 00 00 00 00 00 A0 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 17 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 17 00 FF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [15:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:07:50]wFMCommunicate OK [15:07:50]requested_item fd.num is exist - process it [15:07:50]SAM_PROTO_GetFieldsCounters [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 13 00 00 [15:07:50]Write to MH i2c: E2 08 00 00 28 80 13 00 00 00 00 00 00 A4 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 62 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 62 00 00 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:50]wFMCommunicate OK [15:07:50]SAM_PROTO_GetFieldsCounters done [15:07:50]requested_item shift.num is exist - process it [15:07:50]requested_item shift.opened is exist - process it [15:07:50]req_shift_opened [15:07:50]FM_GetShiftState [15:07:50]SAM_PROTO_GetShiftState [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 13 01 00 [15:07:50]Write to MH i2c: E2 08 00 01 28 80 13 01 00 00 00 00 00 A6 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 01 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 71 [15:07:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:07:50]wFMCommunicate OK [15:07:50]SAM_PROTO_GetShiftState done [15:07:50]FM_GetShiftState done [15:07:50]req_shift_opened done [15:07:50]requested_item shift.open_date is exist - process it [15:07:50]req_shift_open_date [15:07:50]req_shift_open_date done [15:07:50]produce_requested_data done [15:07:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166780,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:07:50]process_action_free close_receipt [15:07:50]json_value_free [15:07:50]json_value_free done [15:07:50]process_json_proto returns [15:07:50]Send response to host [15:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166780,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:07:50]free response buf [15:07:50]execute_script done [15:07:50]execute_script returns [15:07:50]free content buf [15:07:50]Sock 9.Close socket [15:07:50]Sock 9.Thread stoped [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:02]accept exits with 8 [15:09:02]New connection [15:09:02]New thread 3067178340 created [15:09:02]Thread 3067034980 joined [15:09:02]Waiting for new connection... [15:09:02] Sock 8.Parse request [15:09:02]Sock 8.Check first char [15:09:02]Sock 8.First char is OK [15:09:02]request: POST /json_proto HTTP/1.0 [15:09:02]Method: POST [15:09:02]URL: /json_proto [15:09:02]Method is POST - this is cgi request [15:09:02]url: /json_proto [15:09:02]query_string will be loaded in cgi processing [15:09:02]execute_cgi json_proto POST (null) [15:09:02]execute_cgi path=json_proto method=POST [15:09:02]POST find Content-Length [15:09:02]Host: 172.17.53.195:8080 [15:09:02]Content-Length: 677 [15:09:02]Content-Type: application/json [15:09:02] [15:09:02]POST finish read [15:09:02]Found Content-Length = 677 [15:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:02]execute_script... [15:09: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)221366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:02]POST & json_proto [15:09:02]process_json_proto [15:09:02]json parsed OK: [15:09:02]protocol is kg_v1.0 [15:09:02]action value=close_receipt [15:09:02]process_action close_receipt [15:09:02]cmd_close_receipt [15:09:02]MH_GetDate [15:09:02]Write to MH i2c: F0 00 00 02 28 19 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: F0 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: F0 09 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: F0 09 00 02 28 00 90 11 19 67 21 48 4A 65 5B [15:09:02]GetLastDocTimeStamp 1729696067 [15:09:02]current date 1729696144 [15:09:02]FM_GetShiftState [15:09:02]SAM_PROTO_GetShiftState [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 13 01 00 [15:09:02]Write to MH i2c: E2 08 00 03 28 80 13 01 00 00 00 00 00 A8 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0E 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0E 00 03 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 73 [15:09:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_GetShiftState done [15:09:02]FM_GetShiftState done [15:09:02]opened in 1729643772 [15:09:02]opened+sec_in_day 1729730172 [15:09:02]quantity*price = 50041 [15:09:02]sum+1 = 50042 [15:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 196 23.10.2024 15:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166781 ФПД: 180338695316895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150904&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166781&fm=180338695316895&tin=02508201610067®Number=0000000000091764&sum=50000 [15:09:03]StoreToDocumentArchive [15:09:03]shift 537 fd 166781 [15:09:03]save to /storage/0537/doc_00166781 [15:09:03]save last doc name /storage/0537/doc_00166781 to /storage/kkm_last_doc_name [15:09:03]save OK [15:09:03]Clear old archive folders... [15:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:03]tlvbuf is 01FC6F90 [15:09:03]SAM_PROTO_ClearQueue [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 09 00 00 [15:09:03]Write to MH i2c: E2 08 00 10 28 80 09 00 00 00 00 00 00 AA [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 03 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 03 00 10 28 00 90 00 AC [15:09:03]RAPDU: 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_ClearQueue done [15:09:03]KKMCreateOFDPacket [15:09:03]OFDProtocolAddRootSTLVToBuf [15:09:03]FM_MakeSignedData [15:09:03]FM_MakeSignedData [15:09:03]SAM_PROTO_SignData [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 0D 01 02 [15:09:03]Write to MH i2c: E2 08 00 11 28 80 0D 01 02 00 00 00 00 B2 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 03 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [15:09:03]RAPDU: 90 00 [15:09:03]wFMCommunicate OK [15:09:03]wFMCommunicate request_size=255 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 90 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8B 02 00 35 04 06 00 A4 [15:09:03]Write to MH i2c: E2 02 01 12 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 90 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8B 02 00 35 04 06 00 A4 00 00 F6 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 03 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [15:09:04]RAPDU: 90 00 [15:09:04]wFMCommunicate OK [15:09:04]wFMCommunicate request_size=10 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 0D 02 02 05 04 5F DF A5 9F [15:09:04]Write to MH i2c: E2 0D 00 13 28 80 0D 02 02 05 00 04 5F DF A5 9F 00 00 45 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 03 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [15:09:04]RAPDU: 90 00 [15:09:04]wFMCommunicate OK [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 0D 03 02 [15:09:04]Write to MH i2c: E2 08 00 14 28 80 0D 03 02 00 00 00 00 B7 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:04]OFD Sender: No OFD packet to send [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0B 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0B 00 14 28 00 6F B4 41 E1 4D 71 32 50 90 00 3D [15:09:04]RAPDU: 6F B4 41 E1 4D 71 32 50 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_SignData done [15:09:04]FM_MakeSignedData done [15:09:04]CreateOFDProtocolMessage [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 11 00 00 [15:09:04]Write to MH i2c: E2 08 00 15 28 80 11 00 00 00 00 00 00 B7 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 15 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [15:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:04]wFMCommunicate OK [15:09:04]CreateOFDProtocolMessage done [15:09:04]OFDSenderStorePacket 166781 [15:09:04]StoreOFDPacket docnum=166781 [15:09:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F 9B 07 01 A0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 90 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8B 02 00 35 04 06 00 A4 04 5F DF A5 9F 6F B4 41 E1 4D 71 32 50 [15:09:04]CheckFolder [15:09:04]dirname=/storage/ofd_packets [15:09:04]CheckFolder done [15:09:04]ProducePacketName [15:09:04]name=ofd_packets/00166781 [15:09:04]NVStorageSaveData ofd_packets/00166781 [15:09:04]File name is /storage/ofd_packets/00166781 [15:09:04]Write 301 bytes [15:09:04]NVStorageSaveData done [15:09:04]OFDSenderStorePacket done [15:09:04]KKMCreateOFDPacket done [15:09:04]NVStorageSaveData kkm_last_timestamp [15:09:04]File name is /storage/kkm_last_timestamp [15:09:04]Write 4 bytes [15:09:04]NVStorageSaveData done [15:09:04]ExternCall_PrintAddStr [15:09:04]wPrintStart [15:09:04]Write to MH i2c: 01 00 00 16 28 3E [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 16 28 00 00 00 00 00 FF 0F 53 [15:09:04]RasterBufferAndPrint [15:09:04]line Счет N : (1)221366 [15:09:04]line ИНН: 02508201610067 [15:09:04]line Контрольно-Кассовый Чек [15:09:04]line ПРОДАЖА [15:09:04]line ТРК (МРК, ГНК) : 33 [15:09:04]line Товар: 2710124130 [15:09:04]line Аи-92-К-5 [15:09:04]line 7.480 * 66.90 [15:09:04]line = 500.41 [15:09:04]line НДС 12% НСП 1% [15:09:04]line > о реализуемом товаре [15:09:04]line ОКРУГЛЕНИЕ: -0.41 [15:09:04]line ИТОГО: 500.00 [15:09:04]line Внесено: 500.00 [15:09:04]line СДАЧА: 0.00 [15:09:04]line НСП 1% : 4.43 [15:09:04]line НДС 12% : 53.14 [15:09:04]line Наличными: 500.00 [15:09:04]line Безнал.: 0.00 [15:09:04]line Место: АЗС № 161 "Партнер Нефть" [15:09:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:09:04]line СНО: Общий режим [15:09:04]line Чек 196 23.10.2024 15:09 [15:09:04]line Смена: 537 ФФД: 1.0 [15:09:04]line ЗНМ: 0300000104 [15:09:04]line РНМ: 0000000000091764 [15:09:04]line Версия ККМ: 001 [15:09:04]line ФМ: 0000000000871759 [15:09:04]line ФД: 166781 [15:09:04]line ФПД: 180338695316895 [15:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150904&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166781&fm=180338695316895&tin=02508201610067®Number=0000000000091764&sum=50000 [15:09:04]OFD Sender: Processing packet 166781 [packets to send 48, broken 47] [15:09:04]ProducePacketName [15:09:04]name=ofd_packets/00166781 [15:09:04]OFD Sender: To server: pG, [15:09:04]CommunicateWithHost lk.salyk.kg:30040 [15:09:04]ConnectInit lk.salyk.kg [15:09:04]written 0, free lines is 4095 [15:09:04]Connected sock=10 [15:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F 9B 07 01 A0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 90 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8B 02 00 35 04 06 00 A4 04 5F DF A5 9F 6F B4 41 E1 4D 71 32 50 [15:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 85 B3 47 00 09 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8B 02 00 F4 03 04 00 F7 B7 18 67 B6 04 01 00 00 51 CA 01 5C 42 F8 01 2D [15:09:04]CommunicateWithHost err = 0 [15:09:04]CheckOFDResponse [15:09:04]1017 (14) - 77093643461234 [15:09:04]1041 (16) - 0000000000871759 [15:09:04]1040 (4) - 166781 [15:09:04]1012 (4) - 23.10.2024 08:46 [15:09:04]1206 (1) - 0 [15:09:04]OFD Sender: Remove packet 166781 [15:09:04]ProducePacketName [15:09:04]name=ofd_packets/00166781 [15:09:04]NVStorageDeleteData [15:09:04]Write to MH i2c: 01 00 00 41 28 69 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 41 28 00 00 00 00 00 B8 0C 34 [15:09:05]RasterBufferAndPrint [15:09:05]line [15:09:05]line [15:09:05]line [15:09:05]line [15:09:05]line [15:09:05]written 0, free lines is 3263 [15:09:05]MH_Cut [15:09:05]Write to MH i2c: D1 01 00 48 28 01 42 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: D1 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: D1 01 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: D1 01 00 48 28 00 41 [15:09:05]Write to MH i2c: 01 00 00 49 28 71 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]OFD Sender: No OFD packet to send [15:09:05]*** Cut start [15:09:05]*** Partial cut [15:09:05]*** CUTSNS_PIN = 1 [15:09:05]*** CUTSNS_PIN = 0 [15:09:06]*** Brake cut motor [15:09:06]Read from MH i2c: 01 [15:09:06]MH_I2C_Read... [15:09:06]*** Stop cut motor [15:09:06]*** Cut end [15:09:06]Read from MH i2c: 01 07 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: 01 07 00 49 28 00 00 00 00 00 FF 0F 86 [15:09:06]process_action close_receipt done [15:09:06]requested_data is exist [15:09:06]produce_requested_data [15:09:06]requested_item fm.sn is exist - process it [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 11 00 00 [15:09:06]Write to MH i2c: E2 08 00 4A 28 80 11 00 00 00 00 00 00 EC [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 17 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 17 00 4A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [15:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:06]wFMCommunicate OK [15:09:06]requested_item fd.num is exist - process it [15:09:06]SAM_PROTO_GetFieldsCounters [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 13 00 00 [15:09:06]Write to MH i2c: E2 08 00 4B 28 80 13 00 00 00 00 00 00 EF [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 62 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 62 00 4B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [15:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:06]wFMCommunicate OK [15:09:06]SAM_PROTO_GetFieldsCounters done [15:09:06]requested_item shift.num is exist - process it [15:09:06]requested_item shift.opened is exist - process it [15:09:06]req_shift_opened [15:09:06]FM_GetShiftState [15:09:06]SAM_PROTO_GetShiftState [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 13 01 00 [15:09:06]Write to MH i2c: E2 08 00 4C 28 80 13 01 00 00 00 00 00 F1 [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 0E 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 0E 00 4C 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [15:09:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:09:06]wFMCommunicate OK [15:09:06]SAM_PROTO_GetShiftState done [15:09:06]FM_GetShiftState done [15:09:06]req_shift_opened done [15:09:06]requested_item shift.open_date is exist - process it [15:09:06]req_shift_open_date [15:09:06]req_shift_open_date done [15:09:06]produce_requested_data done [15:09:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166781,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:09:06]process_action_free close_receipt [15:09:06]json_value_free [15:09:06]json_value_free done [15:09:06]process_json_proto returns [15:09:06]Send response to host [15:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166781,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:09:06]free response buf [15:09:06]execute_script done [15:09:06]execute_script returns [15:09:06]free content buf [15:09:06]Sock 8.Close socket [15:09:06]Sock 8.Thread stoped [15:09:10]OFD Sender: No OFD packet to send [15:09:11]accept exits with 9 [15:09:11]New connection [15:09:11]New thread 3067034980 created [15:09:11]Thread 3067178340 joined [15:09:11]Waiting for new connection... [15:09:11] Sock 9.Parse request [15:09:11]Sock 9.Check first char [15:09:11]Sock 9.First char is OK [15:09:11]request: POST /json_proto HTTP/1.0 [15:09:11]Method: POST [15:09:11]URL: /json_proto [15:09:11]Method is POST - this is cgi request [15:09:11]url: /json_proto [15:09:11]query_string will be loaded in cgi processing [15:09:11]execute_cgi json_proto POST (null) [15:09:11]execute_cgi path=json_proto method=POST [15:09:11]POST find Content-Length [15:09:11]Host: 172.17.53.195:8080 [15:09:11]Content-Length: 789 [15:09:11]Content-Type: application/json [15:09:11] [15:09:11]POST finish read [15:09:11]Found Content-Length = 789 [15:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:11]execute_script... [15:09: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)221367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:11]POST & json_proto [15:09:11]process_json_proto [15:09:11]json parsed OK: [15:09:11]protocol is kg_v1.0 [15:09:11]action value=close_receipt [15:09:11]process_action close_receipt [15:09:11]cmd_close_receipt [15:09:11]MH_GetDate [15:09:11]Write to MH i2c: F0 00 00 4D 28 64 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: F0 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: F0 09 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: F0 09 00 4D 28 00 98 11 19 67 21 48 4A 65 AE [15:09:11]GetLastDocTimeStamp 1729696144 [15:09:11]current date 1729696152 [15:09:11]FM_GetShiftState [15:09:11]SAM_PROTO_GetShiftState [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 13 01 00 [15:09:11]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0E 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BE [15:09:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:09:11]wFMCommunicate OK [15:09:11]SAM_PROTO_GetShiftState done [15:09:11]FM_GetShiftState done [15:09:11]opened in 1729643772 [15:09:11]opened+sec_in_day 1729730172 [15:09:11]quantity*price = 0 [15:09:11]sum+1 = 1 [15:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 197 23.10.2024 15:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 53628 ФМ: 0000000000871759 ФД: 166782 ФПД: 245003123658724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166782&fm=245003123658724&tin=02508201610067®Number=0000000000091764&sum=0 [15:09:12]StoreToDocumentArchive [15:09:12]shift 537 fd 166782 [15:09:12]save to /storage/0537/doc_00166782 [15:09:12]save last doc name /storage/0537/doc_00166782 to /storage/kkm_last_doc_name [15:09:12]save OK [15:09:12]Clear old archive folders... [15:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:12]tlvbuf is 01F63D60 [15:09:12]SAM_PROTO_ClearQueue [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 09 00 00 [15:09:12]Write to MH i2c: E2 08 00 5B 28 80 09 00 00 00 00 00 00 F5 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_ClearQueue done [15:09:12]KKMCreateOFDPacket [15:09:12]OFDProtocolAddRootSTLVToBuf [15:09:12]FM_MakeSignedData [15:09:12]FM_MakeSignedData [15:09:12]SAM_PROTO_SignData [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 01 02 [15:09:12]Write to MH i2c: E2 08 00 5C 28 80 0D 01 02 00 00 00 00 FD [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=255 [15:09:12]MH_SAM_APDU [15:09: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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8B 02 00 35 04 06 00 DE D4 3C 27 [15:09:12]Write to MH i2c: E2 02 01 5D 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8B 02 00 35 04 06 00 DE D4 3C 27 00 00 C0 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=7 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 02 02 02 8F E4 [15:09:12]Write to MH i2c: E2 0A 00 5E 28 80 0D 02 02 02 00 8F E4 00 00 77 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 03 02 [15:09:12]Write to MH i2c: E2 08 00 5F 28 80 0D 03 02 00 00 00 00 02 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0B 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0B 00 5F 28 00 0F 68 84 45 80 01 42 BF 90 00 C5 [15:09:12]RAPDU: 0F 68 84 45 80 01 42 BF 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_SignData done [15:09:12]FM_MakeSignedData done [15:09:12]CreateOFDProtocolMessage [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 11 00 00 [15:09:12]Write to MH i2c: E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [15:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:12]wFMCommunicate OK [15:09:12]CreateOFDProtocolMessage done [15:09:12]OFDSenderStorePacket 166782 [15:09:12]StoreOFDPacket docnum=166782 [15:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A5 48 04 01 2F 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8B 02 00 35 04 06 00 DE D4 3C 27 8F E4 0F 68 84 45 80 01 42 BF [15:09:12]CheckFolder [15:09:12]dirname=/storage/ofd_packets [15:09:12]CheckFolder done [15:09:12]ProducePacketName [15:09:12]name=ofd_packets/00166782 [15:09:12]NVStorageSaveData ofd_packets/00166782 [15:09:12]File name is /storage/ofd_packets/00166782 [15:09:12]Write 298 bytes [15:09:12]NVStorageSaveData done [15:09:12]OFDSenderStorePacket done [15:09:12]KKMCreateOFDPacket done [15:09:12]NVStorageSaveData kkm_last_timestamp [15:09:12]File name is /storage/kkm_last_timestamp [15:09:12]Write 4 bytes [15:09:12]NVStorageSaveData done [15:09:12]ExternCall_PrintAddStr [15:09:12]wPrintStart [15:09:12]Write to MH i2c: 01 00 00 61 28 89 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 61 28 00 00 00 00 00 FF 0F 9E [15:09:12]RasterBufferAndPrint [15:09:12]line Счет N : (1)221367 [15:09:12]line ИНН: 02508201610067 [15:09:12]line Контрольно-Кассовый Чек [15:09:12]line ПРОДАЖА [15:09:12]line ТРК (МРК, ГНК) : 41 [15:09:12]line Товар: 2710194210 [15:09:12]line ДТ-К-5 [15:09:12]line 19.690 * 0.00 [15:09:12]line = 0.00 [15:09:12]line НДС 12% НСП 1% [15:09:12]line > о реализуемом товаре [15:09:12]line ИТОГО: 0.00 [15:09:12]line НСП 1% : 0.00 [15:09:12]line НДС 12% : 0.00 [15:09:12]line Наличными: 0.00 [15:09:12]line Безнал.: 0.00 [15:09:12]line Место: АЗС № 161 "Партнер Нефть" [15:09:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:09:12]line СНО: Общий режим [15:09:12]line Чек 197 23.10.2024 15:09 [15:09:12]line Смена: 537 ФФД: 1.0 [15:09:12]line ЗНМ: 0300000104 [15:09:12]line РНМ: 0000000000091764 [15:09:12]line Версия ККМ: 001 [15:09:12]line Талоны: Топливная Карта [15:09:12]line 53628 [15:09:12]line ФМ: 0000000000871759 [15:09:12]line ФД: 166782 [15:09:12]line ФПД: 245003123658724 [15:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166782&fm=245003123658724&tin=02508201610067®Number=0000000000091764&sum=0 [15:09:12]written 0, free lines is 4095 [15:09:12]OFD Sender: Processing packet 166782 [packets to send 48, broken 47] [15:09:12]ProducePacketName [15:09:12]name=ofd_packets/00166782 [15:09:12]OFD Sender: To server: pG, [15:09:12]CommunicateWithHost lk.salyk.kg:30040 [15:09:12]ConnectInit lk.salyk.kg [15:09:12]Connected sock=10 [15:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A5 48 04 01 2F 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 11 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8B 02 00 35 04 06 00 DE D4 3C 27 8F E4 0F 68 84 45 80 01 42 BF [15:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 31 47 00 50 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8B 02 00 F4 03 04 00 FF B7 18 67 B6 04 01 00 00 3F 51 20 50 96 92 11 35 [15:09:13]CommunicateWithHost err = 0 [15:09:13]CheckOFDResponse [15:09:13]1017 (14) - 77093643461234 [15:09:13]1041 (16) - 0000000000871759 [15:09:13]1040 (4) - 166782 [15:09:13]1012 (4) - 23.10.2024 08:46 [15:09:13]1206 (1) - 0 [15:09:13]OFD Sender: Remove packet 166782 [15:09:13]ProducePacketName [15:09:13]name=ofd_packets/00166782 [15:09:13]NVStorageDeleteData [15:09:13]Write to MH i2c: 01 00 00 8B 28 B3 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 8B 28 00 00 00 00 00 D4 0C 9A [15:09:13]RasterBufferAndPrint [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]written 0, free lines is 3296 [15:09:13]MH_Cut [15:09:13]Write to MH i2c: D1 01 00 92 28 01 8C [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 01 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 01 00 92 28 00 8B [15:09:13]Write to MH i2c: 01 00 00 93 28 BB [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]OFD Sender: No OFD packet to send [15:09:14]*** Cut start [15:09:14]*** Partial cut [15:09:14]*** CUTSNS_PIN = 1 [15:09:14]*** CUTSNS_PIN = 0 [15:09:14]*** Brake cut motor [15:09:14]Read from MH i2c: 01 [15:09:14]MH_I2C_Read... [15:09:14]*** Stop cut motor [15:09:14]*** Cut end [15:09:14]Read from MH i2c: 01 07 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: 01 07 00 93 28 00 00 00 00 00 FF 0F D0 [15:09:14]process_action close_receipt done [15:09:14]requested_data is exist [15:09:14]produce_requested_data [15:09:14]requested_item fm.sn is exist - process it [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 11 00 00 [15:09:14]Write to MH i2c: E2 08 00 94 28 80 11 00 00 00 00 00 00 36 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 94 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [15:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:14]wFMCommunicate OK [15:09:14]requested_item fd.num is exist - process it [15:09:14]SAM_PROTO_GetFieldsCounters [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 00 00 [15:09:14]Write to MH i2c: E2 08 00 95 28 80 13 00 00 00 00 00 00 39 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 95 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetFieldsCounters done [15:09:14]requested_item shift.num is exist - process it [15:09:14]requested_item shift.opened is exist - process it [15:09:14]req_shift_opened [15:09:14]FM_GetShiftState [15:09:14]SAM_PROTO_GetShiftState [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 01 00 [15:09:14]Write to MH i2c: E2 08 00 96 28 80 13 01 00 00 00 00 00 3B [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 96 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 06 [15:09:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetShiftState done [15:09:14]FM_GetShiftState done [15:09:14]req_shift_opened done [15:09:14]requested_item shift.open_date is exist - process it [15:09:14]req_shift_open_date [15:09:14]req_shift_open_date done [15:09:14]produce_requested_data done [15:09:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166782,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:09:14]process_action_free close_receipt [15:09:14]json_value_free [15:09:14]json_value_free done [15:09:14]process_json_proto returns [15:09:14]Send response to host [15:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166782,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:09:14]free response buf [15:09:14]execute_script done [15:09:14]execute_script returns [15:09:14]free content buf [15:09:14]Sock 9.Close socket [15:09:14]Sock 9.Thread stoped [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:00]accept exits with 8 [15:11:00]New connection [15:11:00]New thread 3067178340 created [15:11:00]Thread 3067034980 joined [15:11:00]Waiting for new connection... [15:11:00] Sock 8.Parse request [15:11:00]Sock 8.Check first char [15:11:00]Sock 8.First char is OK [15:11:00]request: POST /json_proto HTTP/1.0 [15:11:00]Method: POST [15:11:00]URL: /json_proto [15:11:00]Method is POST - this is cgi request [15:11:00]url: /json_proto [15:11:00]query_string will be loaded in cgi processing [15:11:00]execute_cgi json_proto POST (null) [15:11:00]execute_cgi path=json_proto method=POST [15:11:00]POST find Content-Length [15:11:00]Host: 172.17.53.195:8080 [15:11:00]Content-Length: 766 [15:11:00]Content-Type: application/json [15:11:00] [15:11:00]POST finish read [15:11:00]Found Content-Length = 766 [15:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:00]execute_script... [15:11: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)221368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:00]POST & json_proto [15:11:00]process_json_proto [15:11:00]json parsed OK: [15:11:00]protocol is kg_v1.0 [15:11:00]action value=close_receipt [15:11:00]process_action close_receipt [15:11:00]cmd_close_receipt [15:11:00]MH_GetDate [15:11:00]Write to MH i2c: F0 00 00 97 28 AE [15:11:00]Write i2c OK [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: F0 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: F0 09 00 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: F0 09 00 97 28 00 06 12 19 67 21 48 4A 65 67 [15:11:00]GetLastDocTimeStamp 1729696152 [15:11:00]current date 1729696262 [15:11:00]FM_GetShiftState [15:11:00]SAM_PROTO_GetShiftState [15:11:00]wFMCommunicate request_size=4 [15:11:00]MH_SAM_APDU [15:11:00]CAPDU: 80 13 01 00 [15:11:00]Write to MH i2c: E2 08 00 98 28 80 13 01 00 00 00 00 00 3D [15:11:00]Write i2c OK [15:11:00]MH_I2C_Read... [15:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:00]Read from MH i2c: E2 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: E2 0E 00 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: E2 0E 00 98 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 08 [15:11:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:11:00]wFMCommunicate OK [15:11:00]SAM_PROTO_GetShiftState done [15:11:00]FM_GetShiftState done [15:11:00]opened in 1729643772 [15:11:00]opened+sec_in_day 1729730172 [15:11:00]quantity*price = 50041 [15:11:00]sum+1 = 50042 [15:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 198 23.10.2024 15:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166783 ФПД: 172487853287989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151102&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166783&fm=172487853287989&tin=02508201610067®Number=0000000000091764&sum=50041 [15:11:01]StoreToDocumentArchive [15:11:01]shift 537 fd 166783 [15:11:01]save to /storage/0537/doc_00166783 [15:11:01]save last doc name /storage/0537/doc_00166783 to /storage/kkm_last_doc_name [15:11:01]save OK [15:11:01]Clear old archive folders... [15:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:01]tlvbuf is 01FFEC00 [15:11:01]SAM_PROTO_ClearQueue [15:11:01]wFMCommunicate request_size=4 [15:11:01]MH_SAM_APDU [15:11:01]CAPDU: 80 09 00 00 [15:11:01]Write to MH i2c: E2 08 00 A5 28 80 09 00 00 00 00 00 00 3F [15:11:01]Write i2c OK [15:11:01]MH_I2C_Read... [15:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:01]Read from MH i2c: E2 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 03 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [15:11:01]RAPDU: 90 00 [15:11:01]wFMCommunicate OK [15:11:01]SAM_PROTO_ClearQueue done [15:11:01]KKMCreateOFDPacket [15:11:01]OFDProtocolAddRootSTLVToBuf [15:11:01]FM_MakeSignedData [15:11:01]FM_MakeSignedData [15:11:01]SAM_PROTO_SignData [15:11:01]wFMCommunicate request_size=4 [15:11:01]MH_SAM_APDU [15:11:01]CAPDU: 80 0D 01 02 [15:11:01]Write to MH i2c: E2 08 00 A6 28 80 0D 01 02 00 00 00 00 47 [15:11:01]Write i2c OK [15:11:01]MH_I2C_Read... [15:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:01]Read from MH i2c: E2 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 03 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [15:11:02]RAPDU: 90 00 [15:11:02]wFMCommunicate OK [15:11:02]wFMCommunicate request_size=255 [15:11:02]MH_SAM_APDU [15:11:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 06 12 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8B 02 00 35 04 06 00 9C [15:11:02]Write to MH i2c: E2 02 01 A7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 06 12 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8B 02 00 35 04 06 00 9C 00 00 50 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:02]Read from MH i2c: E2 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 03 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [15:11:02]RAPDU: 90 00 [15:11:02]wFMCommunicate OK [15:11:02]wFMCommunicate request_size=10 [15:11:02]MH_SAM_APDU [15:11:02]CAPDU: 80 0D 02 02 05 E0 75 39 2A 35 [15:11:02]Write to MH i2c: E2 0D 00 A8 28 80 0D 02 02 05 00 E0 75 39 2A 35 00 00 41 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:02]Read from MH i2c: E2 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 03 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [15:11:02]RAPDU: 90 00 [15:11:02]wFMCommunicate OK [15:11:02]wFMCommunicate request_size=4 [15:11:02]MH_SAM_APDU [15:11:02]CAPDU: 80 0D 03 02 [15:11:02]Write to MH i2c: E2 08 00 A9 28 80 0D 03 02 00 00 00 00 4C [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:02]Read from MH i2c: E2 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 0B 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 0B 00 A9 28 00 01 D8 F0 3C E3 D8 CB 03 90 00 DB [15:11:02]RAPDU: 01 D8 F0 3C E3 D8 CB 03 90 00 [15:11:02]wFMCommunicate OK [15:11:02]SAM_PROTO_SignData done [15:11:02]FM_MakeSignedData done [15:11:02]CreateOFDProtocolMessage [15:11:02]wFMCommunicate request_size=4 [15:11:02]MH_SAM_APDU [15:11:02]CAPDU: 80 11 00 00 [15:11:02]Write to MH i2c: E2 08 00 AA 28 80 11 00 00 00 00 00 00 4C [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:02]Read from MH i2c: E2 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 17 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 17 00 AA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [15:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:02]wFMCommunicate OK [15:11:02]CreateOFDProtocolMessage done [15:11:02]OFDSenderStorePacket 166783 [15:11:02]StoreOFDPacket docnum=166783 [15:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 EE 07 01 50 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 06 12 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8B 02 00 35 04 06 00 9C E0 75 39 2A 35 01 D8 F0 3C E3 D8 CB 03 [15:11:02]CheckFolder [15:11:02]dirname=/storage/ofd_packets [15:11:02]CheckFolder done [15:11:02]ProducePacketName [15:11:02]name=ofd_packets/00166783 [15:11:02]NVStorageSaveData ofd_packets/00166783 [15:11:02]File name is /storage/ofd_packets/00166783 [15:11:02]Write 301 bytes [15:11:02]NVStorageSaveData done [15:11:02]OFDSenderStorePacket done [15:11:02]KKMCreateOFDPacket done [15:11:02]NVStorageSaveData kkm_last_timestamp [15:11:02]File name is /storage/kkm_last_timestamp [15:11:02]Write 4 bytes [15:11:02]NVStorageSaveData done [15:11:02]ExternCall_PrintAddStr [15:11:02]wPrintStart [15:11:02]Write to MH i2c: 01 00 00 AB 28 D3 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 07 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 07 00 AB 28 00 00 00 00 00 FF 0F E8 [15:11:02]RasterBufferAndPrint [15:11:02]line Счет N : (1)221368 [15:11:02]line ИНН: 02508201610067 [15:11:02]line Контрольно-Кассовый Чек [15:11:02]line ПРОДАЖА [15:11:02]line ТРК (МРК, ГНК) : 23 [15:11:02]line Товар: 2710124130 [15:11:02]line Аи-92-К-5 [15:11:02]line 7.480 * 66.90 [15:11:02]line = 500.41 [15:11:02]line НДС 12% НСП 1% [15:11:02]line > о реализуемом товаре [15:11:02]line ИТОГО: 500.41 [15:11:02]line НСП 1% : 4.43 [15:11:02]line НДС 12% : 53.14 [15:11:02]line Наличными: 0.00 [15:11:02]line Безнал.: 500.41 [15:11:02]line Место: АЗС № 161 "Партнер Нефть" [15:11:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:11:02]line СНО: Общий режим [15:11:02]line Чек 198 23.10.2024 15:11 [15:11:02]line Смена: 537 ФФД: 1.0 [15:11:02]line ЗНМ: 0300000104 [15:11:02]line РНМ: 0000000000091764 [15:11:02]line Версия ККМ: 001 [15:11:02]line Платежная система: Mbank [15:11:02]line ФМ: 0000000000871759 [15:11:02]line ФД: 166783 [15:11:02]line ФПД: 172487853287989 [15:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151102&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166783&fm=172487853287989&tin=02508201610067®Number=0000000000091764&sum=50041 [15:11:02]written 0, free lines is 4095 [15:11:02]OFD Sender: Processing packet 166783 [packets to send 48, broken 47] [15:11:02]ProducePacketName [15:11:02]name=ofd_packets/00166783 [15:11:02]OFD Sender: To server: pG, [15:11:02]CommunicateWithHost lk.salyk.kg:30040 [15:11:02]ConnectInit lk.salyk.kg [15:11:02]Connected sock=10 [15:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 EE 07 01 50 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 06 12 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8B 02 00 35 04 06 00 9C E0 75 39 2A 35 01 D8 F0 3C E3 D8 CB 03 [15:11:02]Write to MH i2c: 01 00 00 D4 28 FC [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 07 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: 01 07 00 D4 28 00 00 00 00 00 F2 0C 01 [15:11:02]RasterBufferAndPrint [15:11:02]line [15:11:02]line [15:11:02]line [15:11:02]line [15:11:02]line [15:11:02]written 0, free lines is 3320 [15:11:02]MH_Cut [15:11:02]Write to MH i2c: D1 01 00 DB 28 01 D5 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: D1 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: D1 01 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: D1 01 00 DB 28 00 D4 [15:11:02]Write to MH i2c: 01 00 00 DC 28 04 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C 6C 47 00 26 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8B 02 00 F4 03 04 00 6D B8 18 67 B6 04 01 00 00 6E 78 85 2B EC 9E C5 20 [15:11:03]CommunicateWithHost err = 0 [15:11:03]CheckOFDResponse [15:11:03]1017 (14) - 77093643461234 [15:11:03]1041 (16) - 0000000000871759 [15:11:03]1040 (4) - 166783 [15:11:03]1012 (4) - 23.10.2024 08:48 [15:11:03]1206 (1) - 0 [15:11:03]OFD Sender: Remove packet 166783 [15:11:03]ProducePacketName [15:11:03]name=ofd_packets/00166783 [15:11:03]NVStorageDeleteData [15:11:03]OFD Sender: No OFD packet to send [15:11:03]*** Cut start [15:11:03]*** Partial cut [15:11:03]*** CUTSNS_PIN = 1 [15:11:03]*** CUTSNS_PIN = 0 [15:11:04]*** Brake cut motor [15:11:04]Read from MH i2c: 01 [15:11:04]MH_I2C_Read... [15:11:04]*** Stop cut motor [15:11:04]*** Cut end [15:11:04]Read from MH i2c: 01 07 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: 01 07 00 DC 28 00 00 00 00 00 FF 0F 19 [15:11:04]process_action close_receipt done [15:11:04]requested_data is exist [15:11:04]produce_requested_data [15:11:04]requested_item fm.sn is exist - process it [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 11 00 00 [15:11:04]Write to MH i2c: E2 08 00 DD 28 80 11 00 00 00 00 00 00 7F [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 17 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 17 00 DD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [15:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:04]wFMCommunicate OK [15:11:04]requested_item fd.num is exist - process it [15:11:04]SAM_PROTO_GetFieldsCounters [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 13 00 00 [15:11:04]Write to MH i2c: E2 08 00 DE 28 80 13 00 00 00 00 00 00 82 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 62 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 62 00 DE 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [15:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:04]wFMCommunicate OK [15:11:04]SAM_PROTO_GetFieldsCounters done [15:11:04]requested_item shift.num is exist - process it [15:11:04]requested_item shift.opened is exist - process it [15:11:04]req_shift_opened [15:11:04]FM_GetShiftState [15:11:04]SAM_PROTO_GetShiftState [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 13 01 00 [15:11:04]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 0E 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4F [15:11:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:11:04]wFMCommunicate OK [15:11:04]SAM_PROTO_GetShiftState done [15:11:04]FM_GetShiftState done [15:11:04]req_shift_opened done [15:11:04]requested_item shift.open_date is exist - process it [15:11:04]req_shift_open_date [15:11:04]req_shift_open_date done [15:11:04]produce_requested_data done [15:11:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166783,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:11:04]process_action_free close_receipt [15:11:04]json_value_free [15:11:04]json_value_free done [15:11:04]process_json_proto returns [15:11:04]Send response to host [15:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166783,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:11:04]free response buf [15:11:04]execute_script done [15:11:04]execute_script returns [15:11:04]free content buf [15:11:04]Sock 8.Close socket [15:11:04]Sock 8.Thread stoped [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]accept exits with 9 [15:15:28]New connection [15:15:28]New thread 3067034980 created [15:15:28]Thread 3067178340 joined [15:15:28]Waiting for new connection... [15:15:28] Sock 9.Parse request [15:15:28]Sock 9.Check first char [15:15:28]Sock 9.First char is OK [15:15:28]request: POST /json_proto HTTP/1.0 [15:15:28]Method: POST [15:15:28]URL: /json_proto [15:15:28]Method is POST - this is cgi request [15:15:28]url: /json_proto [15:15:28]query_string will be loaded in cgi processing [15:15:28]execute_cgi json_proto POST (null) [15:15:28]execute_cgi path=json_proto method=POST [15:15:28]POST find Content-Length [15:15:28]Host: 172.17.53.195:8080 [15:15:28]Content-Length: 766 [15:15:28]Content-Type: application/json [15:15:28] [15:15:28]POST finish read [15:15:28]Found Content-Length = 766 [15:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:28]execute_script... [15:15:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:28]POST & json_proto [15:15:28]process_json_proto [15:15:28]json parsed OK: [15:15:28]protocol is kg_v1.0 [15:15:28]action value=close_receipt [15:15:28]process_action close_receipt [15:15:28]cmd_close_receipt [15:15:28]MH_GetDate [15:15:28]Write to MH i2c: F0 00 00 E0 28 F7 [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 09 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 09 00 E0 28 00 12 13 19 67 21 48 4A 65 BD [15:15:28]GetLastDocTimeStamp 1729696262 [15:15:28]current date 1729696530 [15:15:28]FM_GetShiftState [15:15:28]SAM_PROTO_GetShiftState [15:15:28]wFMCommunicate request_size=4 [15:15:28]MH_SAM_APDU [15:15:28]CAPDU: 80 13 01 00 [15:15:28]Write to MH i2c: E2 08 00 E1 28 80 13 01 00 00 00 00 00 86 [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:28]Read from MH i2c: E2 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 E1 28 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 51 [15:15:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:15:28]wFMCommunicate OK [15:15:28]SAM_PROTO_GetShiftState done [15:15:28]FM_GetShiftState done [15:15:28]opened in 1729643772 [15:15:28]opened+sec_in_day 1729730172 [15:15:28]quantity*price = 60009 [15:15:28]sum+1 = 60010 [15:15:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 199 23.10.2024 15:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166784 ФПД: 95478609041696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166784&fm=95478609041696&tin=02508201610067®Number=0000000000091764&sum=60009 [15:15:29]StoreToDocumentArchive [15:15:29]shift 537 fd 166784 [15:15:29]save to /storage/0537/doc_00166784 [15:15:29]save last doc name /storage/0537/doc_00166784 to /storage/kkm_last_doc_name [15:15:29]save OK [15:15:29]Clear old archive folders... [15:15:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:29]tlvbuf is 01FAF7A0 [15:15:29]SAM_PROTO_ClearQueue [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 09 00 00 [15:15:29]Write to MH i2c: E2 08 00 EE 28 80 09 00 00 00 00 00 00 88 [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 03 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [15:15:29]RAPDU: 90 00 [15:15:29]wFMCommunicate OK [15:15:29]SAM_PROTO_ClearQueue done [15:15:29]KKMCreateOFDPacket [15:15:29]OFDProtocolAddRootSTLVToBuf [15:15:29]FM_MakeSignedData [15:15:29]FM_MakeSignedData [15:15:29]SAM_PROTO_SignData [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 0D 01 02 [15:15:29]Write to MH i2c: E2 08 00 EF 28 80 0D 01 02 00 00 00 00 90 [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 03 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [15:15:29]RAPDU: 90 00 [15:15:29]wFMCommunicate OK [15:15:29]wFMCommunicate request_size=255 [15:15:29]MH_SAM_APDU [15:15: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 12 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8B 02 00 35 04 06 00 56 [15:15:29]Write to MH i2c: E2 02 01 F0 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 12 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8B 02 00 35 04 06 00 56 00 00 FF [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=10 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 02 02 05 D6 58 93 59 20 [15:15:30]Write to MH i2c: E2 0D 00 F1 28 80 0D 02 02 05 00 D6 58 93 59 20 00 00 D7 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 03 02 [15:15:30]Write to MH i2c: E2 08 00 F2 28 80 0D 03 02 00 00 00 00 95 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 0B 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 0B 00 F2 28 00 F2 48 A5 21 9C FD 69 D3 90 00 6B [15:15:30]RAPDU: F2 48 A5 21 9C FD 69 D3 90 00 [15:15:30]wFMCommunicate OK [15:15:30]SAM_PROTO_SignData done [15:15:30]FM_MakeSignedData done [15:15:30]CreateOFDProtocolMessage [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 11 00 00 [15:15:30]Write to MH i2c: E2 08 00 F3 28 80 11 00 00 00 00 00 00 95 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 17 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 17 00 F3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [15:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:15:30]wFMCommunicate OK [15:15:30]CreateOFDProtocolMessage done [15:15:30]OFDSenderStorePacket 166784 [15:15:30]StoreOFDPacket docnum=166784 [15:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F B7 07 01 3F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 12 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8B 02 00 35 04 06 00 56 D6 58 93 59 20 F2 48 A5 21 9C FD 69 D3 [15:15:30]CheckFolder [15:15:30]dirname=/storage/ofd_packets [15:15:30]CheckFolder done [15:15:30]ProducePacketName [15:15:30]name=ofd_packets/00166784 [15:15:30]NVStorageSaveData ofd_packets/00166784 [15:15:30]File name is /storage/ofd_packets/00166784 [15:15:30]Write 301 bytes [15:15:30]NVStorageSaveData done [15:15:30]OFDSenderStorePacket done [15:15:30]KKMCreateOFDPacket done [15:15:30]NVStorageSaveData kkm_last_timestamp [15:15:30]File name is /storage/kkm_last_timestamp [15:15:30]Write 4 bytes [15:15:30]NVStorageSaveData done [15:15:30]ExternCall_PrintAddStr [15:15:30]wPrintStart [15:15:30]Write to MH i2c: 01 00 00 F4 28 1C [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 07 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 07 00 F4 28 00 00 00 00 00 FF 0F 31 [15:15:30]RasterBufferAndPrint [15:15:30]line Счет N : (1)221369 [15:15:30]line ИНН: 02508201610067 [15:15:30]line Контрольно-Кассовый Чек [15:15:30]line ПРОДАЖА [15:15:30]line ТРК (МРК, ГНК) : 13 [15:15:30]line Товар: 2710124130 [15:15:30]line Аи-92-К-5 [15:15:30]line 8.970 * 66.90 [15:15:30]line = 600.09 [15:15:30]line НДС 12% НСП 1% [15:15:30]line > о реализуемом товаре [15:15:30]line ИТОГО: 600.09 [15:15:30]line НСП 1% : 5.31 [15:15:30]line НДС 12% : 63.73 [15:15:30]line Наличными: 0.00 [15:15:30]line Безнал.: 600.09 [15:15:30]line Место: АЗС № 161 "Партнер Нефть" [15:15:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:15:30]line СНО: Общий режим [15:15:30]line Чек 199 23.10.2024 15:15 [15:15:30]line Смена: 537 ФФД: 1.0 [15:15:30]line ЗНМ: 0300000104 [15:15:30]line РНМ: 0000000000091764 [15:15:30]line Версия ККМ: 001 [15:15:30]line Платежная система: Mbank [15:15:30]line ФМ: 0000000000871759 [15:15:30]line ФД: 166784 [15:15:30]line ФПД: 95478609041696 [15:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166784&fm=95478609041696&tin=02508201610067®Number=0000000000091764&sum=60009 [15:15:30]written 0, free lines is 4095 [15:15:30]OFD Sender: Processing packet 166784 [packets to send 48, broken 47] [15:15:30]ProducePacketName [15:15:30]name=ofd_packets/00166784 [15:15:30]OFD Sender: To server: pG, [15:15:30]CommunicateWithHost lk.salyk.kg:30040 [15:15:30]ConnectInit lk.salyk.kg [15:15:30]Connected sock=11 [15:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F B7 07 01 3F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 12 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8B 02 00 35 04 06 00 56 D6 58 93 59 20 F2 48 A5 21 9C FD 69 D3 [15:15:30]Write to MH i2c: 01 00 00 1D 29 46 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 07 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 E6 0C 3F [15:15:30]RasterBufferAndPrint [15:15:30]line [15:15:30]line [15:15:30]line [15:15:30]line [15:15:30]line [15:15:30]written 0, free lines is 3310 [15:15:30]MH_Cut [15:15:30]Write to MH i2c: D1 01 00 24 29 01 1F [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: D1 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: D1 01 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: D1 01 00 24 29 00 1E [15:15:30]Write to MH i2c: 01 00 00 25 29 4E [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3E 38 47 00 21 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8B 02 00 F4 03 04 00 79 B9 18 67 B6 04 01 00 00 80 A5 BA F5 73 5A 99 AC [15:15:31]CommunicateWithHost err = 0 [15:15:31]CheckOFDResponse [15:15:31]1017 (14) - 77093643461234 [15:15:31]1041 (16) - 0000000000871759 [15:15:31]1040 (4) - 166784 [15:15:31]1012 (4) - 23.10.2024 08:53 [15:15:31]1206 (1) - 0 [15:15:31]OFD Sender: Remove packet 166784 [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00166784 [15:15:31]NVStorageDeleteData [15:15:31]OFD Sender: No OFD packet to send [15:15:31]*** Cut start [15:15:31]*** Partial cut [15:15:31]*** CUTSNS_PIN = 1 [15:15:31]*** CUTSNS_PIN = 0 [15:15:31]*** Brake cut motor [15:15:32]Read from MH i2c: 01 [15:15:32]MH_I2C_Read... [15:15:32]*** Stop cut motor [15:15:32]*** Cut end [15:15:32]Read from MH i2c: 01 07 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [15:15:32]process_action close_receipt done [15:15:32]requested_data is exist [15:15:32]produce_requested_data [15:15:32]requested_item fm.sn is exist - process it [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 11 00 00 [15:15:32]Write to MH i2c: E2 08 00 26 29 80 11 00 00 00 00 00 00 C9 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 17 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 17 00 26 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [15:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:15:32]wFMCommunicate OK [15:15:32]requested_item fd.num is exist - process it [15:15:32]SAM_PROTO_GetFieldsCounters [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 13 00 00 [15:15:32]Write to MH i2c: E2 08 00 27 29 80 13 00 00 00 00 00 00 CC [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 62 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 62 00 27 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:15:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_GetFieldsCounters done [15:15:32]requested_item shift.num is exist - process it [15:15:32]requested_item shift.opened is exist - process it [15:15:32]req_shift_opened [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 28 29 80 13 01 00 00 00 00 00 CE [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 28 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 99 [15:15:32]RAPDU: 09 00 01 FC 44 18 67 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]req_shift_opened done [15:15:32]requested_item shift.open_date is exist - process it [15:15:32]req_shift_open_date [15:15:32]req_shift_open_date done [15:15:32]produce_requested_data done [15:15:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166784,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:15:32]process_action_free close_receipt [15:15:32]json_value_free [15:15:32]json_value_free done [15:15:32]process_json_proto returns [15:15:32]Send response to host [15:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166784,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:15:32]free response buf [15:15:32]execute_script done [15:15:32]execute_script returns [15:15:32]free content buf [15:15:32]Sock 9.Close socket [15:15:32]Sock 9.Thread stoped [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:24]accept exits with 8 [15:17:24]New connection [15:17:24]New thread 3067178340 created [15:17:24]Thread 3067034980 joined [15:17:24]Waiting for new connection... [15:17:24] Sock 8.Parse request [15:17:24]Sock 8.Check first char [15:17:24]Sock 8.First char is OK [15:17:24]request: POST /json_proto HTTP/1.0 [15:17:24]Method: POST [15:17:24]URL: /json_proto [15:17:24]Method is POST - this is cgi request [15:17:24]url: /json_proto [15:17:24]query_string will be loaded in cgi processing [15:17:24]execute_cgi json_proto POST (null) [15:17:24]execute_cgi path=json_proto method=POST [15:17:24]POST find Content-Length [15:17:24]Host: 172.17.53.195:8080 [15:17:24]Content-Length: 766 [15:17:24]Content-Type: application/json [15:17:24] [15:17:24]POST finish read [15:17:24]Found Content-Length = 766 [15:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:24]execute_script... [15:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:24]POST & json_proto [15:17:24]process_json_proto [15:17:24]json parsed OK: [15:17:24]protocol is kg_v1.0 [15:17:24]action value=close_receipt [15:17:24]process_action close_receipt [15:17:24]cmd_close_receipt [15:17:24]MH_GetDate [15:17:24]Write to MH i2c: F0 00 00 29 29 41 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: F0 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: F0 09 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: F0 09 00 29 29 00 86 13 19 67 21 48 4A 65 7B [15:17:24]GetLastDocTimeStamp 1729696530 [15:17:24]current date 1729696646 [15:17:24]FM_GetShiftState [15:17:24]SAM_PROTO_GetShiftState [15:17:24]wFMCommunicate request_size=4 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 13 01 00 [15:17:24]Write to MH i2c: E2 08 00 2A 29 80 13 01 00 00 00 00 00 D0 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 0E 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 0E 00 2A 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9B [15:17:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:17:24]wFMCommunicate OK [15:17:24]SAM_PROTO_GetShiftState done [15:17:24]FM_GetShiftState done [15:17:24]opened in 1729643772 [15:17:24]opened+sec_in_day 1729730172 [15:17:24]quantity*price = 50041 [15:17:24]sum+1 = 50042 [15:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 200 23.10.2024 15:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166785 ФПД: 268510074965939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166785&fm=268510074965939&tin=02508201610067®Number=0000000000091764&sum=50041 [15:17:25]StoreToDocumentArchive [15:17:25]shift 537 fd 166785 [15:17:25]save to /storage/0537/doc_00166785 [15:17:25]save last doc name /storage/0537/doc_00166785 to /storage/kkm_last_doc_name [15:17:25]save OK [15:17:25]Clear old archive folders... [15:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:25]tlvbuf is 01FE0CF0 [15:17:25]SAM_PROTO_ClearQueue [15:17:25]wFMCommunicate request_size=4 [15:17:25]MH_SAM_APDU [15:17:25]CAPDU: 80 09 00 00 [15:17:25]Write to MH i2c: E2 08 00 37 29 80 09 00 00 00 00 00 00 D2 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:25]Read from MH i2c: E2 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 03 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [15:17:25]RAPDU: 90 00 [15:17:25]wFMCommunicate OK [15:17:25]SAM_PROTO_ClearQueue done [15:17:25]KKMCreateOFDPacket [15:17:25]OFDProtocolAddRootSTLVToBuf [15:17:25]FM_MakeSignedData [15:17:25]FM_MakeSignedData [15:17:25]SAM_PROTO_SignData [15:17:25]wFMCommunicate request_size=4 [15:17:25]MH_SAM_APDU [15:17:25]CAPDU: 80 0D 01 02 [15:17:25]Write to MH i2c: E2 08 00 38 29 80 0D 01 02 00 00 00 00 DA [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:25]Read from MH i2c: E2 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 03 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [15:17:25]RAPDU: 90 00 [15:17:25]wFMCommunicate OK [15:17:25]wFMCommunicate request_size=255 [15:17:25]MH_SAM_APDU [15:17:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8B 02 00 35 04 06 00 F4 [15:17:25]Write to MH i2c: E2 02 01 39 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8B 02 00 35 04 06 00 F4 00 00 C0 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]wFMCommunicate request_size=10 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 02 02 05 35 5F A3 0F B3 [15:17:26]Write to MH i2c: E2 0D 00 3A 29 80 0D 02 02 05 00 35 5F A3 0F B3 00 00 E0 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [15:17:26]RAPDU: 90 00 [15:17:26]wFMCommunicate OK [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 0D 03 02 [15:17:26]Write to MH i2c: E2 08 00 3B 29 80 0D 03 02 00 00 00 00 DF [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 0B 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 0B 00 3B 29 00 1C 87 95 9D 06 AF B9 0B 90 00 2E [15:17:26]RAPDU: 1C 87 95 9D 06 AF B9 0B 90 00 [15:17:26]wFMCommunicate OK [15:17:26]SAM_PROTO_SignData done [15:17:26]FM_MakeSignedData done [15:17:26]CreateOFDProtocolMessage [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 11 00 00 [15:17:26]Write to MH i2c: E2 08 00 3C 29 80 11 00 00 00 00 00 00 DF [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 3C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [15:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:26]wFMCommunicate OK [15:17:26]CreateOFDProtocolMessage done [15:17:26]OFDSenderStorePacket 166785 [15:17:26]StoreOFDPacket docnum=166785 [15:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 37 FE 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8B 02 00 35 04 06 00 F4 35 5F A3 0F B3 1C 87 95 9D 06 AF B9 0B [15:17:26]CheckFolder [15:17:26]dirname=/storage/ofd_packets [15:17:26]CheckFolder done [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00166785 [15:17:26]NVStorageSaveData ofd_packets/00166785 [15:17:26]File name is /storage/ofd_packets/00166785 [15:17:26]Write 301 bytes [15:17:26]NVStorageSaveData done [15:17:26]OFDSenderStorePacket done [15:17:26]KKMCreateOFDPacket done [15:17:26]NVStorageSaveData kkm_last_timestamp [15:17:26]File name is /storage/kkm_last_timestamp [15:17:26]Write 4 bytes [15:17:26]NVStorageSaveData done [15:17:26]ExternCall_PrintAddStr [15:17:26]wPrintStart [15:17:26]Write to MH i2c: 01 00 00 3D 29 66 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 3D 29 00 00 00 00 00 FF 0F 7B [15:17:26]RasterBufferAndPrint [15:17:26]line Счет N : (1)221370 [15:17:26]line ИНН: 02508201610067 [15:17:26]line Контрольно-Кассовый Чек [15:17:26]line ПРОДАЖА [15:17:26]line ТРК (МРК, ГНК) : 33 [15:17:26]line Товар: 2710124130 [15:17:26]line Аи-92-К-5 [15:17:26]line 7.480 * 66.90 [15:17:26]line = 500.41 [15:17:26]line НДС 12% НСП 1% [15:17:26]line > о реализуемом товаре [15:17:26]line ИТОГО: 500.41 [15:17:26]line НСП 1% : 4.43 [15:17:26]line НДС 12% : 53.14 [15:17:26]line Наличными: 0.00 [15:17:26]line Безнал.: 500.41 [15:17:26]line Место: АЗС № 161 "Партнер Нефть" [15:17:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:17:26]line СНО: Общий режим [15:17:26]line Чек 200 23.10.2024 15:17 [15:17:26]line Смена: 537 ФФД: 1.0 [15:17:26]line ЗНМ: 0300000104 [15:17:26]line РНМ: 0000000000091764 [15:17:26]line Версия ККМ: 001 [15:17:26]line Платежная система: Mbank [15:17:26]line ФМ: 0000000000871759 [15:17:26]line ФД: 166785 [15:17:26]line ФПД: 268510074965939 [15:17:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166785&fm=268510074965939&tin=02508201610067®Number=0000000000091764&sum=50041 [15:17:26]written 0, free lines is 4095 [15:17:26]OFD Sender: Processing packet 166785 [packets to send 48, broken 47] [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00166785 [15:17:26]OFD Sender: To server: pG, [15:17:26]CommunicateWithHost lk.salyk.kg:30040 [15:17:26]ConnectInit lk.salyk.kg [15:17:26]Connected sock=10 [15:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 37 FE 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8B 02 00 35 04 06 00 F4 35 5F A3 0F B3 1C 87 95 9D 06 AF B9 0B [15:17:26]Write to MH i2c: 01 00 00 66 29 8F [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 E2 0C 84 [15:17:26]RasterBufferAndPrint [15:17:26]line [15:17:26]line [15:17:26]line [15:17:26]line [15:17:26]line [15:17:26]written 0, free lines is 3303 [15:17:26]MH_Cut [15:17:26]Write to MH i2c: D1 01 00 6D 29 01 68 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: D1 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: D1 01 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: D1 01 00 6D 29 00 67 [15:17:26]Write to MH i2c: 01 00 00 6E 29 97 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 CB 47 00 90 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8B 02 00 F4 03 04 00 ED B9 18 67 B6 04 01 00 00 12 0F 0D A4 D6 41 97 11 [15:17:26]CommunicateWithHost err = 0 [15:17:26]CheckOFDResponse [15:17:26]1017 (14) - 77093643461234 [15:17:26]1041 (16) - 0000000000871759 [15:17:26]1040 (4) - 166785 [15:17:26]1012 (4) - 23.10.2024 08:55 [15:17:26]1206 (1) - 0 [15:17:26]OFD Sender: Remove packet 166785 [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00166785 [15:17:26]NVStorageDeleteData [15:17:27]OFD Sender: No OFD packet to send [15:17:27]*** Cut start [15:17:27]*** Partial cut [15:17:27]*** CUTSNS_PIN = 1 [15:17:27]*** CUTSNS_PIN = 0 [15:17:27]*** Brake cut motor [15:17:28]Read from MH i2c: 01 [15:17:28]MH_I2C_Read... [15:17:28]*** Stop cut motor [15:17:28]*** Cut end [15:17:28]Read from MH i2c: 01 07 00 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: 01 07 00 6E 29 00 00 00 00 00 FF 0F AC [15:17:28]process_action close_receipt done [15:17:28]requested_data is exist [15:17:28]produce_requested_data [15:17:28]requested_item fm.sn is exist - process it [15:17:28]wFMCommunicate request_size=4 [15:17:28]MH_SAM_APDU [15:17:28]CAPDU: 80 11 00 00 [15:17:28]Write to MH i2c: E2 08 00 6F 29 80 11 00 00 00 00 00 00 12 [15:17:28]Write i2c OK [15:17:28]MH_I2C_Read... [15:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:28]Read from MH i2c: E2 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 17 00 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 17 00 6F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [15:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:28]wFMCommunicate OK [15:17:28]requested_item fd.num is exist - process it [15:17:28]SAM_PROTO_GetFieldsCounters [15:17:28]wFMCommunicate request_size=4 [15:17:28]MH_SAM_APDU [15:17:28]CAPDU: 80 13 00 00 [15:17:28]Write to MH i2c: E2 08 00 70 29 80 13 00 00 00 00 00 00 15 [15:17:28]Write i2c OK [15:17:28]MH_I2C_Read... [15:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:28]Read from MH i2c: E2 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 62 00 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 62 00 70 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:28]wFMCommunicate OK [15:17:28]SAM_PROTO_GetFieldsCounters done [15:17:28]requested_item shift.num is exist - process it [15:17:28]requested_item shift.opened is exist - process it [15:17:28]req_shift_opened [15:17:28]FM_GetShiftState [15:17:28]SAM_PROTO_GetShiftState [15:17:28]wFMCommunicate request_size=4 [15:17:28]MH_SAM_APDU [15:17:28]CAPDU: 80 13 01 00 [15:17:28]Write to MH i2c: E2 08 00 71 29 80 13 01 00 00 00 00 00 17 [15:17:28]Write i2c OK [15:17:28]MH_I2C_Read... [15:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:28]Read from MH i2c: E2 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 0E 00 [15:17:28]MH_I2C_Read... [15:17:28]Read from MH i2c: E2 0E 00 71 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E2 [15:17:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:17:28]wFMCommunicate OK [15:17:28]SAM_PROTO_GetShiftState done [15:17:28]FM_GetShiftState done [15:17:28]req_shift_opened done [15:17:28]requested_item shift.open_date is exist - process it [15:17:28]req_shift_open_date [15:17:28]req_shift_open_date done [15:17:28]produce_requested_data done [15:17:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166785,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:17:28]process_action_free close_receipt [15:17:28]json_value_free [15:17:28]json_value_free done [15:17:28]process_json_proto returns [15:17:28]Send response to host [15:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166785,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:17:28]free response buf [15:17:28]execute_script done [15:17:28]execute_script returns [15:17:28]free content buf [15:17:28]Sock 8.Close socket [15:17:28]Sock 8.Thread stoped [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:21]accept exits with 9 [15:19:21]New connection [15:19:21]New thread 3067034980 created [15:19:21]Thread 3067178340 joined [15:19:21]Waiting for new connection... [15:19:21] Sock 9.Parse request [15:19:21]Sock 9.Check first char [15:19:21]Sock 9.First char is OK [15:19:21]request: POST /json_proto HTTP/1.0 [15:19:21]Method: POST [15:19:21]URL: /json_proto [15:19:21]Method is POST - this is cgi request [15:19:21]url: /json_proto [15:19:21]query_string will be loaded in cgi processing [15:19:21]execute_cgi json_proto POST (null) [15:19:21]execute_cgi path=json_proto method=POST [15:19:21]POST find Content-Length [15:19:21]Host: 172.17.53.195:8080 [15:19:21]Content-Length: 763 [15:19:21]Content-Type: application/json [15:19:21] [15:19:21]POST finish read [15:19:21]Found Content-Length = 763 [15:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:21]execute_script... [15:19: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)221371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:21]POST & json_proto [15:19:21]process_json_proto [15:19:21]json parsed OK: [15:19:21]protocol is kg_v1.0 [15:19:21]action value=close_receipt [15:19:21]process_action close_receipt [15:19:21]cmd_close_receipt [15:19:21]MH_GetDate [15:19:21]Write to MH i2c: F0 00 00 72 29 8A [15:19:21]Write i2c OK [15:19:21]MH_I2C_Read... [15:19:21]Read from MH i2c: F0 [15:19:21]MH_I2C_Read... [15:19:21]Read from MH i2c: F0 09 00 [15:19:21]MH_I2C_Read... [15:19:21]Read from MH i2c: F0 09 00 72 29 00 FA 13 19 67 21 48 4A 65 38 [15:19:21]GetLastDocTimeStamp 1729696646 [15:19:21]current date 1729696762 [15:19:21]FM_GetShiftState [15:19:21]SAM_PROTO_GetShiftState [15:19:21]wFMCommunicate request_size=4 [15:19:21]MH_SAM_APDU [15:19:21]CAPDU: 80 13 01 00 [15:19:21]Write to MH i2c: E2 08 00 73 29 80 13 01 00 00 00 00 00 19 [15:19:21]Write i2c OK [15:19:21]MH_I2C_Read... [15:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:21]Read from MH i2c: E2 [15:19:21]MH_I2C_Read... [15:19:21]Read from MH i2c: E2 0E 00 [15:19:21]MH_I2C_Read... [15:19:21]Read from MH i2c: E2 0E 00 73 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E4 [15:19:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:19:21]wFMCommunicate OK [15:19:21]SAM_PROTO_GetShiftState done [15:19:21]FM_GetShiftState done [15:19:21]opened in 1729643772 [15:19:21]opened+sec_in_day 1729730172 [15:19:21]quantity*price = 60045 [15:19:21]sum+1 = 60047 [15:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.46 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.46 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 201 23.10.2024 15:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166786 ФПД: 102126498676106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166786&fm=102126498676106&tin=02508201610067®Number=0000000000091764&sum=60046 [15:19:22]StoreToDocumentArchive [15:19:22]shift 537 fd 166786 [15:19:22]save to /storage/0537/doc_00166786 [15:19:22]save last doc name /storage/0537/doc_00166786 to /storage/kkm_last_doc_name [15:19:22]save OK [15:19:22]Clear old archive folders... [15:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:19:22]tlvbuf is 01FE0CF0 [15:19:22]SAM_PROTO_ClearQueue [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 09 00 00 [15:19:22]Write to MH i2c: E2 08 00 80 29 80 09 00 00 00 00 00 00 1B [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 80 29 00 90 00 1D [15:19:22]RAPDU: 90 00 [15:19:22]wFMCommunicate OK [15:19:22]SAM_PROTO_ClearQueue done [15:19:22]KKMCreateOFDPacket [15:19:22]OFDProtocolAddRootSTLVToBuf [15:19:22]FM_MakeSignedData [15:19:22]FM_MakeSignedData [15:19:22]SAM_PROTO_SignData [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 0D 01 02 [15:19:22]Write to MH i2c: E2 08 00 81 29 80 0D 01 02 00 00 00 00 23 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]OFD Sender: No OFD packet to send [15:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [15:19:22]RAPDU: 90 00 [15:19:22]wFMCommunicate OK [15:19:22]wFMCommunicate request_size=255 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FA 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8B 02 00 35 04 06 00 5C E2 2D AC [15:19:22]Write to MH i2c: E2 02 01 82 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FA 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8B 02 00 35 04 06 00 5C E2 2D AC 00 00 63 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [15:19:22]RAPDU: 90 00 [15:19:22]wFMCommunicate OK [15:19:22]wFMCommunicate request_size=7 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 0D 02 02 02 FD 8A [15:19:22]Write to MH i2c: E2 0A 00 83 29 80 0D 02 02 02 00 FD 8A 00 00 B1 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [15:19:22]RAPDU: 90 00 [15:19:22]wFMCommunicate OK [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 0D 03 02 [15:19:22]Write to MH i2c: E2 08 00 84 29 80 0D 03 02 00 00 00 00 28 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0B 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0B 00 84 29 00 BB 45 E0 99 DA 94 15 0B 90 00 30 [15:19:22]RAPDU: BB 45 E0 99 DA 94 15 0B 90 00 [15:19:22]wFMCommunicate OK [15:19:22]SAM_PROTO_SignData done [15:19:22]FM_MakeSignedData done [15:19:22]CreateOFDProtocolMessage [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 11 00 00 [15:19:22]Write to MH i2c: E2 08 00 85 29 80 11 00 00 00 00 00 00 28 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 17 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 17 00 85 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [15:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:22]wFMCommunicate OK [15:19:22]CreateOFDProtocolMessage done [15:19:22]OFDSenderStorePacket 166786 [15:19:22]StoreOFDPacket docnum=166786 [15:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 98 04 01 AA 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FA 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8B 02 00 35 04 06 00 5C E2 2D AC FD 8A BB 45 E0 99 DA 94 15 0B [15:19:22]CheckFolder [15:19:22]dirname=/storage/ofd_packets [15:19:22]CheckFolder done [15:19:22]ProducePacketName [15:19:22]name=ofd_packets/00166786 [15:19:22]NVStorageSaveData ofd_packets/00166786 [15:19:22]File name is /storage/ofd_packets/00166786 [15:19:22]Write 298 bytes [15:19:22]NVStorageSaveData done [15:19:22]OFDSenderStorePacket done [15:19:22]KKMCreateOFDPacket done [15:19:23]NVStorageSaveData kkm_last_timestamp [15:19:23]File name is /storage/kkm_last_timestamp [15:19:23]Write 4 bytes [15:19:23]NVStorageSaveData done [15:19:23]ExternCall_PrintAddStr [15:19:23]wPrintStart [15:19:23]Write to MH i2c: 01 00 00 86 29 AF [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 86 29 00 00 00 00 00 FF 0F C4 [15:19:23]RasterBufferAndPrint [15:19:23]line Счет N : (1)221371 [15:19:23]line ИНН: 02508201610067 [15:19:23]line Контрольно-Кассовый Чек [15:19:23]line ПРОДАЖА [15:19:23]line ТРК (МРК, ГНК) : 11 [15:19:23]line Товар: 2710194210 [15:19:23]line ДТ-К-5 [15:19:23]line 7.880 * 76.20 [15:19:23]line = 600.46 [15:19:23]line НДС 12% НСП 1% [15:19:23]line > о реализуемом товаре [15:19:23]line ИТОГО: 600.46 [15:19:23]line НСП 1% : 5.31 [15:19:23]line НДС 12% : 63.77 [15:19:23]line Наличными: 0.00 [15:19:23]line Безнал.: 600.46 [15:19:23]line Место: АЗС № 161 "Партнер Нефть" [15:19:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:19:23]line СНО: Общий режим [15:19:23]line Чек 201 23.10.2024 15:19 [15:19:23]line Смена: 537 ФФД: 1.0 [15:19:23]line ЗНМ: 0300000104 [15:19:23]line РНМ: 0000000000091764 [15:19:23]line Версия ККМ: 001 [15:19:23]line Платежная система: Mbank [15:19:23]line ФМ: 0000000000871759 [15:19:23]line ФД: 166786 [15:19:23]line ФПД: 102126498676106 [15:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166786&fm=102126498676106&tin=02508201610067®Number=0000000000091764&sum=60046 [15:19:23]OFD Sender: Processing packet 166786 [packets to send 48, broken 47] [15:19:23]ProducePacketName [15:19:23]name=ofd_packets/00166786 [15:19:23]OFD Sender: To server: pG, [15:19:23]CommunicateWithHost lk.salyk.kg:30040 [15:19:23]ConnectInit lk.salyk.kg [15:19:23]written 0, free lines is 4095 [15:19:23]Connected sock=10 [15:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 98 04 01 AA 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FA 13 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8B 02 00 35 04 06 00 5C E2 2D AC FD 8A BB 45 E0 99 DA 94 15 0B [15:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E A5 47 00 A1 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8B 02 00 F4 03 04 00 62 BA 18 67 B6 04 01 00 00 A0 F4 57 E6 CA 19 17 FA [15:19:23]CommunicateWithHost err = 0 [15:19:23]CheckOFDResponse [15:19:23]1017 (14) - 77093643461234 [15:19:23]1041 (16) - 0000000000871759 [15:19:23]1040 (4) - 166786 [15:19:23]1012 (4) - 23.10.2024 08:57 [15:19:23]1206 (1) - 0 [15:19:23]OFD Sender: Remove packet 166786 [15:19:23]ProducePacketName [15:19:23]name=ofd_packets/00166786 [15:19:23]NVStorageDeleteData [15:19:23]Write to MH i2c: 01 00 00 AF 29 D8 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 AF 29 00 00 00 00 00 DD 0C C8 [15:19:23]RasterBufferAndPrint [15:19:23]line [15:19:23]line [15:19:23]line [15:19:23]line [15:19:23]line [15:19:23]written 0, free lines is 3299 [15:19:23]MH_Cut [15:19:23]Write to MH i2c: D1 01 00 B6 29 01 B1 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: D1 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: D1 01 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: D1 01 00 B6 29 00 B0 [15:19:23]Write to MH i2c: 01 00 00 B7 29 E0 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:24]OFD Sender: No OFD packet to send [15:19:24]*** Cut start [15:19:24]*** Partial cut [15:19:24]*** CUTSNS_PIN = 1 [15:19:24]*** CUTSNS_PIN = 0 [15:19:24]*** Brake cut motor [15:19:25]Read from MH i2c: 01 [15:19:25]MH_I2C_Read... [15:19:25]*** Stop cut motor [15:19:25]*** Cut end [15:19:25]Read from MH i2c: 01 07 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: 01 07 00 B7 29 00 00 00 00 00 FF 0F F5 [15:19:25]process_action close_receipt done [15:19:25]requested_data is exist [15:19:25]produce_requested_data [15:19:25]requested_item fm.sn is exist - process it [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 11 00 00 [15:19:25]Write to MH i2c: E2 08 00 B8 29 80 11 00 00 00 00 00 00 5B [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 B8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [15:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:25]wFMCommunicate OK [15:19:25]requested_item fd.num is exist - process it [15:19:25]SAM_PROTO_GetFieldsCounters [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 13 00 00 [15:19:25]Write to MH i2c: E2 08 00 B9 29 80 13 00 00 00 00 00 00 5E [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 62 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 62 00 B9 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_GetFieldsCounters done [15:19:25]requested_item shift.num is exist - process it [15:19:25]requested_item shift.opened is exist - process it [15:19:25]req_shift_opened [15:19:25]FM_GetShiftState [15:19:25]SAM_PROTO_GetShiftState [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 13 01 00 [15:19:25]Write to MH i2c: E2 08 00 BA 29 80 13 01 00 00 00 00 00 60 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0E 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0E 00 BA 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2B [15:19:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_GetShiftState done [15:19:25]FM_GetShiftState done [15:19:25]req_shift_opened done [15:19:25]requested_item shift.open_date is exist - process it [15:19:25]req_shift_open_date [15:19:25]req_shift_open_date done [15:19:25]produce_requested_data done [15:19:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166786,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:19:25]process_action_free close_receipt [15:19:25]json_value_free [15:19:25]json_value_free done [15:19:25]process_json_proto returns [15:19:25]Send response to host [15:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166786,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:19:25]free response buf [15:19:25]execute_script done [15:19:25]execute_script returns [15:19:25]free content buf [15:19:25]Sock 9.Close socket [15:19:25]Sock 9.Thread stoped [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23: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:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]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:23]accept exits with 8 [15:29:23]New connection [15:29:23]New thread 3067178340 created [15:29:23]Thread 3067034980 joined [15:29:23]Waiting for new connection... [15:29:23] Sock 8.Parse request [15:29:23]Sock 8.Check first char [15:29:23]Sock 8.First char is OK [15:29:23]request: POST /json_proto HTTP/1.0 [15:29:23]Method: POST [15:29:23]URL: /json_proto [15:29:23]Method is POST - this is cgi request [15:29:23]url: /json_proto [15:29:23]query_string will be loaded in cgi processing [15:29:23]execute_cgi json_proto POST (null) [15:29:23]execute_cgi path=json_proto method=POST [15:29:23]POST find Content-Length [15:29:23]Host: 172.17.53.195:8080 [15:29:23]Content-Length: 766 [15:29:23]Content-Type: application/json [15:29:23] [15:29:23]POST finish read [15:29:23]Found Content-Length = 766 [15:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:23]execute_script... [15:29: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)221372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:23]POST & json_proto [15:29:23]process_json_proto [15:29:23]json parsed OK: [15:29:23]protocol is kg_v1.0 [15:29:23]action value=close_receipt [15:29:23]process_action close_receipt [15:29:23]cmd_close_receipt [15:29:23]MH_GetDate [15:29:23]Write to MH i2c: F0 00 00 BB 29 D3 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 BB 29 00 54 16 19 67 21 48 4A 65 DE [15:29:23]GetLastDocTimeStamp 1729696762 [15:29:23]current date 1729697364 [15:29:23]FM_GetShiftState [15:29:23]SAM_PROTO_GetShiftState [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 13 01 00 [15:29:23]Write to MH i2c: E2 08 00 BC 29 80 13 01 00 00 00 00 00 62 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 BC 29 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2D [15:29:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_GetShiftState done [15:29:23]FM_GetShiftState done [15:29:23]opened in 1729643772 [15:29:23]opened+sec_in_day 1729730172 [15:29:23]quantity*price = 100050 [15:29:23]sum+1 = 100052 [15:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 202 23.10.2024 15:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166787 ФПД: 157622795252140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152924&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166787&fm=157622795252140&tin=02508201610067®Number=0000000000091764&sum=100051 [15:29:24]StoreToDocumentArchive [15:29:24]shift 537 fd 166787 [15:29:24]save to /storage/0537/doc_00166787 [15:29:24]save last doc name /storage/0537/doc_00166787 to /storage/kkm_last_doc_name [15:29:24]save OK [15:29:24]Clear old archive folders... [15:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:29:24]tlvbuf is 01FB3660 [15:29:24]SAM_PROTO_ClearQueue [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 09 00 00 [15:29:24]Write to MH i2c: E2 08 00 C9 29 80 09 00 00 00 00 00 00 64 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_ClearQueue done [15:29:24]KKMCreateOFDPacket [15:29:24]OFDProtocolAddRootSTLVToBuf [15:29:24]FM_MakeSignedData [15:29:24]FM_MakeSignedData [15:29:24]SAM_PROTO_SignData [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 01 02 [15:29:24]Write to MH i2c: E2 08 00 CA 29 80 0D 01 02 00 00 00 00 6C [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=255 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 54 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8B 02 00 35 04 06 00 8F 5B 6A B8 [15:29:24]Write to MH i2c: E2 02 01 CB 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 54 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8B 02 00 35 04 06 00 8F 5B 6A B8 00 00 49 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=7 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 02 02 02 31 AC [15:29:24]Write to MH i2c: E2 0A 00 CC 29 80 0D 02 02 02 00 31 AC 00 00 50 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 03 02 [15:29:24]Write to MH i2c: E2 08 00 CD 29 80 0D 03 02 00 00 00 00 71 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:24]OFD Sender: No OFD packet to send [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0B 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 0B 00 CD 29 00 EB DE A1 D1 BC E4 16 8C 90 00 EF [15:29:24]RAPDU: EB DE A1 D1 BC E4 16 8C 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_SignData done [15:29:24]FM_MakeSignedData done [15:29:24]CreateOFDProtocolMessage [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 11 00 00 [15:29:24]Write to MH i2c: E2 08 00 CE 29 80 11 00 00 00 00 00 00 71 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 17 00 CE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [15:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:29:24]wFMCommunicate OK [15:29:24]CreateOFDProtocolMessage done [15:29:24]OFDSenderStorePacket 166787 [15:29:24]StoreOFDPacket docnum=166787 [15:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7E DE 04 01 72 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 54 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8B 02 00 35 04 06 00 8F 5B 6A B8 31 AC EB DE A1 D1 BC E4 16 8C [15:29:24]CheckFolder [15:29:24]dirname=/storage/ofd_packets [15:29:24]CheckFolder done [15:29:24]ProducePacketName [15:29:24]name=ofd_packets/00166787 [15:29:24]NVStorageSaveData ofd_packets/00166787 [15:29:24]File name is /storage/ofd_packets/00166787 [15:29:24]Write 298 bytes [15:29:24]NVStorageSaveData done [15:29:24]OFDSenderStorePacket done [15:29:24]KKMCreateOFDPacket done [15:29:24]NVStorageSaveData kkm_last_timestamp [15:29:24]File name is /storage/kkm_last_timestamp [15:29:24]Write 4 bytes [15:29:24]NVStorageSaveData done [15:29:24]ExternCall_PrintAddStr [15:29:24]wPrintStart [15:29:24]Write to MH i2c: 01 00 00 CF 29 F8 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 07 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: 01 07 00 CF 29 00 00 00 00 00 FF 0F 0D [15:29:24]RasterBufferAndPrint [15:29:24]line Счет N : (1)221372 [15:29:24]line ИНН: 02508201610067 [15:29:24]line Контрольно-Кассовый Чек [15:29:24]line ПРОДАЖА [15:29:24]line ТРК (МРК, ГНК) : 11 [15:29:24]line Товар: 2710194210 [15:29:24]line ДТ-К-5 [15:29:24]line 13.130 * 76.20 [15:29:24]line = 1000.51 [15:29:24]line НДС 12% НСП 1% [15:29:24]line > о реализуемом товаре [15:29:24]line ИТОГО: 1000.51 [15:29:24]line НСП 1% : 8.85 [15:29:24]line НДС 12% : 106.25 [15:29:24]line Наличными: 0.00 [15:29:24]line Безнал.: 1000.51 [15:29:24]line Место: АЗС № 161 "Партнер Нефть" [15:29:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:29:24]line СНО: Общий режим [15:29:24]line Чек 202 23.10.2024 15:29 [15:29:24]line Смена: 537 ФФД: 1.0 [15:29:24]line ЗНМ: 0300000104 [15:29:24]line РНМ: 0000000000091764 [15:29:24]line Версия ККМ: 001 [15:29:24]line Платежная система: Mbank [15:29:24]line ФМ: 0000000000871759 [15:29:24]line ФД: 166787 [15:29:24]line ФПД: 157622795252140 [15:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152924&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166787&fm=157622795252140&tin=02508201610067®Number=0000000000091764&sum=100051 [15:29:25]OFD Sender: Processing packet 166787 [packets to send 48, broken 47] [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00166787 [15:29:25]OFD Sender: To server: pG, [15:29:25]CommunicateWithHost lk.salyk.kg:30040 [15:29:25]ConnectInit lk.salyk.kg [15:29:25]written 0, free lines is 4095 [15:29:25]Connected sock=9 [15:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7E DE 04 01 72 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 54 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8B 02 00 35 04 06 00 8F 5B 6A B8 31 AC EB DE A1 D1 BC E4 16 8C [15:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F A5 47 00 73 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8B 02 00 F4 03 04 00 BC BC 18 67 B6 04 01 00 00 E7 3C 47 36 F4 65 A9 F8 [15:29:25]CommunicateWithHost err = 0 [15:29:25]CheckOFDResponse [15:29:25]1017 (14) - 77093643461234 [15:29:25]1041 (16) - 0000000000871759 [15:29:25]1040 (4) - 166787 [15:29:25]1012 (4) - 23.10.2024 09:07 [15:29:25]1206 (1) - 0 [15:29:25]OFD Sender: Remove packet 166787 [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00166787 [15:29:25]NVStorageDeleteData [15:29:25]Write to MH i2c: 01 00 00 F8 29 21 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 E0 0C 14 [15:29:25]RasterBufferAndPrint [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]line [15:29:25]written 0, free lines is 3303 [15:29:25]MH_Cut [15:29:25]Write to MH i2c: D1 01 00 FF 29 01 FA [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 01 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: D1 01 00 FF 29 00 F9 [15:29:25]Write to MH i2c: 01 00 00 00 2A 2A [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:26]OFD Sender: No OFD packet to send [15:29:26]*** Cut start [15:29:26]*** Partial cut [15:29:26]*** CUTSNS_PIN = 1 [15:29:26]*** CUTSNS_PIN = 0 [15:29:26]*** Brake cut motor [15:29:27]Read from MH i2c: 01 [15:29:27]MH_I2C_Read... [15:29:27]*** Stop cut motor [15:29:27]*** Cut end [15:29:27]Read from MH i2c: 01 07 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: 01 07 00 00 2A 00 00 00 00 00 FF 0F 3F [15:29:27]process_action close_receipt done [15:29:27]requested_data is exist [15:29:27]produce_requested_data [15:29:27]requested_item fm.sn is exist - process it [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 11 00 00 [15:29:27]Write to MH i2c: E2 08 00 01 2A 80 11 00 00 00 00 00 00 A5 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 01 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [15:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:29:27]wFMCommunicate OK [15:29:27]requested_item fd.num is exist - process it [15:29:27]SAM_PROTO_GetFieldsCounters [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 00 00 [15:29:27]Write to MH i2c: E2 08 00 02 2A 80 13 00 00 00 00 00 00 A8 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 02 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [15:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetFieldsCounters done [15:29:27]requested_item shift.num is exist - process it [15:29:27]requested_item shift.opened is exist - process it [15:29:27]req_shift_opened [15:29:27]FM_GetShiftState [15:29:27]SAM_PROTO_GetShiftState [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 01 00 [15:29:27]Write to MH i2c: E2 08 00 03 2A 80 13 01 00 00 00 00 00 AA [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:27]Read from MH i2c: E2 0E 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 0E 00 03 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 75 [15:29:27]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetShiftState done [15:29:27]FM_GetShiftState done [15:29:27]req_shift_opened done [15:29:27]requested_item shift.open_date is exist - process it [15:29:27]req_shift_open_date [15:29:27]req_shift_open_date done [15:29:27]produce_requested_data done [15:29:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166787,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:29:27]process_action_free close_receipt [15:29:27]json_value_free [15:29:27]json_value_free done [15:29:27]process_json_proto returns [15:29:27]Send response to host [15:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166787,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:29:27]free response buf [15:29:27]execute_script done [15:29:27]execute_script returns [15:29:27]free content buf [15:29:27]Sock 8.Close socket [15:29:27]Sock 8.Thread stoped [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:06]accept exits with 10 [15:31:06]New connection [15:31:06]New thread 3067034980 created [15:31:06]Thread 3067178340 joined [15:31:06]Waiting for new connection... [15:31:06] Sock 10.Parse request [15:31:06]Sock 10.Check first char [15:31:06]Sock 10.First char is OK [15:31:06]request: POST /json_proto HTTP/1.0 [15:31:06]Method: POST [15:31:06]URL: /json_proto [15:31:06]Method is POST - this is cgi request [15:31:06]url: /json_proto [15:31:06]query_string will be loaded in cgi processing [15:31:06]execute_cgi json_proto POST (null) [15:31:06]execute_cgi path=json_proto method=POST [15:31:06]POST find Content-Length [15:31:06]Host: 172.17.53.195:8080 [15:31:06]Content-Length: 789 [15:31:06]Content-Type: application/json [15:31:06] [15:31:06]POST finish read [15:31:06]Found Content-Length = 789 [15:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 22.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:06]execute_script... [15:31: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)221373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 22.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:06]POST & json_proto [15:31:06]process_json_proto [15:31:06]json parsed OK: [15:31:06]protocol is kg_v1.0 [15:31:06]action value=close_receipt [15:31:06]process_action close_receipt [15:31:06]cmd_close_receipt [15:31:06]MH_GetDate [15:31:06]Write to MH i2c: F0 00 00 04 2A 1D [15:31:06]Write i2c OK [15:31:06]MH_I2C_Read... [15:31:06]Read from MH i2c: F0 [15:31:06]MH_I2C_Read... [15:31:06]Read from MH i2c: F0 09 00 [15:31:06]MH_I2C_Read... [15:31:06]Read from MH i2c: F0 09 00 04 2A 00 BC 16 19 67 21 48 4A 65 90 [15:31:06]GetLastDocTimeStamp 1729697364 [15:31:06]current date 1729697468 [15:31:06]FM_GetShiftState [15:31:06]SAM_PROTO_GetShiftState [15:31:06]wFMCommunicate request_size=4 [15:31:06]MH_SAM_APDU [15:31:06]CAPDU: 80 13 01 00 [15:31:06]Write to MH i2c: E2 08 00 05 2A 80 13 01 00 00 00 00 00 AC [15:31:06]Write i2c OK [15:31:06]MH_I2C_Read... [15:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:06]Read from MH i2c: E2 [15:31:06]MH_I2C_Read... [15:31:06]Read from MH i2c: E2 0E 00 [15:31:06]MH_I2C_Read... [15:31:06]Read from MH i2c: E2 0E 00 05 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 77 [15:31:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:31:06]wFMCommunicate OK [15:31:06]SAM_PROTO_GetShiftState done [15:31:06]FM_GetShiftState done [15:31:06]opened in 1729643772 [15:31:06]opened+sec_in_day 1729730172 [15:31:06]quantity*price = 0 [15:31:06]sum+1 = 1 [15:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 203 23.10.2024 15:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 00933 ФМ: 0000000000871759 ФД: 166788 ФПД: 91549287080777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153108&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166788&fm=91549287080777&tin=02508201610067®Number=0000000000091764&sum=0 [15:31:07]StoreToDocumentArchive [15:31:07]shift 537 fd 166788 [15:31:07]save to /storage/0537/doc_00166788 [15:31:07]save last doc name /storage/0537/doc_00166788 to /storage/kkm_last_doc_name [15:31:07]save OK [15:31:07]Clear old archive folders... [15:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:07]tlvbuf is 01FB36E0 [15:31:07]SAM_PROTO_ClearQueue [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 09 00 00 [15:31:07]Write to MH i2c: E2 08 00 12 2A 80 09 00 00 00 00 00 00 AE [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [15:31:07]RAPDU: 90 00 [15:31:07]wFMCommunicate OK [15:31:07]SAM_PROTO_ClearQueue done [15:31:07]KKMCreateOFDPacket [15:31:07]OFDProtocolAddRootSTLVToBuf [15:31:07]FM_MakeSignedData [15:31:07]FM_MakeSignedData [15:31:07]SAM_PROTO_SignData [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 0D 01 02 [15:31:07]Write to MH i2c: E2 08 00 13 2A 80 0D 01 02 00 00 00 00 B6 [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [15:31:07]RAPDU: 90 00 [15:31:07]wFMCommunicate OK [15:31:07]wFMCommunicate request_size=255 [15:31:07]MH_SAM_APDU [15:31: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 26 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8B 02 00 35 04 06 00 53 43 7A BC [15:31:07]Write to MH i2c: E2 02 01 14 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 26 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8B 02 00 35 04 06 00 53 43 7A BC 00 00 AC [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [15:31:07]RAPDU: 90 00 [15:31:07]wFMCommunicate OK [15:31:07]wFMCommunicate request_size=7 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 0D 02 02 02 63 49 [15:31:07]Write to MH i2c: E2 0A 00 15 2A 80 0D 02 02 02 00 63 49 00 00 69 [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [15:31:07]RAPDU: 90 00 [15:31:07]wFMCommunicate OK [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 0D 03 02 [15:31:07]Write to MH i2c: E2 08 00 16 2A 80 0D 03 02 00 00 00 00 BB [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:08]Read from MH i2c: E2 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 0B 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 0B 00 16 2A 00 E5 AE 1A 4E E5 A6 6D 68 90 00 17 [15:31:08]RAPDU: E5 AE 1A 4E E5 A6 6D 68 90 00 [15:31:08]wFMCommunicate OK [15:31:08]SAM_PROTO_SignData done [15:31:08]FM_MakeSignedData done [15:31:08]CreateOFDProtocolMessage [15:31:08]wFMCommunicate request_size=4 [15:31:08]MH_SAM_APDU [15:31:08]CAPDU: 80 11 00 00 [15:31:08]Write to MH i2c: E2 08 00 17 2A 80 11 00 00 00 00 00 00 BB [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:08]Read from MH i2c: E2 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 17 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 17 00 17 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [15:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:08]wFMCommunicate OK [15:31:08]CreateOFDProtocolMessage done [15:31:08]OFDSenderStorePacket 166788 [15:31:08]StoreOFDPacket docnum=166788 [15:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E0 91 04 01 E9 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8B 02 00 35 04 06 00 53 43 7A BC 63 49 E5 AE 1A 4E E5 A6 6D 68 [15:31:08]CheckFolder [15:31:08]dirname=/storage/ofd_packets [15:31:08]CheckFolder done [15:31:08]ProducePacketName [15:31:08]name=ofd_packets/00166788 [15:31:08]NVStorageSaveData ofd_packets/00166788 [15:31:08]File name is /storage/ofd_packets/00166788 [15:31:08]Write 298 bytes [15:31:08]NVStorageSaveData done [15:31:08]OFDSenderStorePacket done [15:31:08]KKMCreateOFDPacket done [15:31:08]NVStorageSaveData kkm_last_timestamp [15:31:08]File name is /storage/kkm_last_timestamp [15:31:08]Write 4 bytes [15:31:08]NVStorageSaveData done [15:31:08]ExternCall_PrintAddStr [15:31:08]wPrintStart [15:31:08]Write to MH i2c: 01 00 00 18 2A 42 [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 07 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 07 00 18 2A 00 00 00 00 00 FF 0F 57 [15:31:08]RasterBufferAndPrint [15:31:08]line Счет N : (1)221373 [15:31:08]line ИНН: 02508201610067 [15:31:08]line Контрольно-Кассовый Чек [15:31:08]line ПРОДАЖА [15:31:08]line ТРК (МРК, ГНК) : 41 [15:31:08]line Товар: 2710194210 [15:31:08]line ДТ-К-5 [15:31:08]line 22.310 * 0.00 [15:31:08]line = 0.00 [15:31:08]line НДС 12% НСП 1% [15:31:08]line > о реализуемом товаре [15:31:08]line ИТОГО: 0.00 [15:31:08]line НСП 1% : 0.00 [15:31:08]line НДС 12% : 0.00 [15:31:08]line Наличными: 0.00 [15:31:08]line Безнал.: 0.00 [15:31:08]line Место: АЗС № 161 "Партнер Нефть" [15:31:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:31:08]line СНО: Общий режим [15:31:08]line Чек 203 23.10.2024 15:31 [15:31:08]line Смена: 537 ФФД: 1.0 [15:31:08]line ЗНМ: 0300000104 [15:31:08]line РНМ: 0000000000091764 [15:31:08]line Версия ККМ: 001 [15:31:08]line Талоны: Топливная Карта [15:31:08]line 00933 [15:31:08]line ФМ: 0000000000871759 [15:31:08]line ФД: 166788 [15:31:08]line ФПД: 91549287080777 [15:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153108&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166788&fm=91549287080777&tin=02508201610067®Number=0000000000091764&sum=0 [15:31:08]OFD Sender: Processing packet 166788 [packets to send 48, broken 47] [15:31:08]ProducePacketName [15:31:08]name=ofd_packets/00166788 [15:31:08]OFD Sender: To server: pG, [15:31:08]CommunicateWithHost lk.salyk.kg:30040 [15:31:08]ConnectInit lk.salyk.kg [15:31:08]written 0, free lines is 4095 [15:31:08]Connected sock=9 [15:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E0 91 04 01 E9 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8B 02 00 35 04 06 00 53 43 7A BC 63 49 E5 AE 1A 4E E5 A6 6D 68 [15:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D8 84 47 00 AA BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8B 02 00 F4 03 04 00 23 BD 18 67 B6 04 01 00 00 D6 8A 00 03 A4 97 42 61 [15:31:08]CommunicateWithHost err = 0 [15:31:08]CheckOFDResponse [15:31:08]1017 (14) - 77093643461234 [15:31:08]1041 (16) - 0000000000871759 [15:31:08]1040 (4) - 166788 [15:31:08]1012 (4) - 23.10.2024 09:08 [15:31:08]1206 (1) - 0 [15:31:08]OFD Sender: Remove packet 166788 [15:31:08]ProducePacketName [15:31:08]name=ofd_packets/00166788 [15:31:08]NVStorageDeleteData [15:31:08]Write to MH i2c: 01 00 00 42 2A 6C [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 07 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 07 00 42 2A 00 00 00 00 00 CE 0C 4D [15:31:08]RasterBufferAndPrint [15:31:08]line [15:31:08]line [15:31:08]line [15:31:08]line [15:31:08]line [15:31:08]written 0, free lines is 3284 [15:31:08]MH_Cut [15:31:08]Write to MH i2c: D1 01 00 49 2A 01 45 [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: D1 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: D1 01 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: D1 01 00 49 2A 00 44 [15:31:08]Write to MH i2c: 01 00 00 4A 2A 74 [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:09]OFD Sender: No OFD packet to send [15:31:09]*** Cut start [15:31:09]*** Partial cut [15:31:09]*** CUTSNS_PIN = 1 [15:31:09]*** CUTSNS_PIN = 0 [15:31:10]*** Brake cut motor [15:31:10]Read from MH i2c: 01 [15:31:10]MH_I2C_Read... [15:31:10]*** Stop cut motor [15:31:10]*** Cut end [15:31:10]Read from MH i2c: 01 07 00 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: 01 07 00 4A 2A 00 00 00 00 00 FF 0F 89 [15:31:10]process_action close_receipt done [15:31:10]requested_data is exist [15:31:10]produce_requested_data [15:31:10]requested_item fm.sn is exist - process it [15:31:10]wFMCommunicate request_size=4 [15:31:10]MH_SAM_APDU [15:31:10]CAPDU: 80 11 00 00 [15:31:10]Write to MH i2c: E2 08 00 4B 2A 80 11 00 00 00 00 00 00 EF [15:31:10]Write i2c OK [15:31:10]MH_I2C_Read... [15:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:10]Read from MH i2c: E2 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 17 00 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 17 00 4B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [15:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:10]wFMCommunicate OK [15:31:10]requested_item fd.num is exist - process it [15:31:10]SAM_PROTO_GetFieldsCounters [15:31:10]wFMCommunicate request_size=4 [15:31:10]MH_SAM_APDU [15:31:10]CAPDU: 80 13 00 00 [15:31:10]Write to MH i2c: E2 08 00 4C 2A 80 13 00 00 00 00 00 00 F2 [15:31:10]Write i2c OK [15:31:10]MH_I2C_Read... [15:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:10]Read from MH i2c: E2 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 62 00 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 62 00 4C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:31:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:10]wFMCommunicate OK [15:31:10]SAM_PROTO_GetFieldsCounters done [15:31:10]requested_item shift.num is exist - process it [15:31:10]requested_item shift.opened is exist - process it [15:31:10]req_shift_opened [15:31:10]FM_GetShiftState [15:31:10]SAM_PROTO_GetShiftState [15:31:10]wFMCommunicate request_size=4 [15:31:10]MH_SAM_APDU [15:31:10]CAPDU: 80 13 01 00 [15:31:10]Write to MH i2c: E2 08 00 4D 2A 80 13 01 00 00 00 00 00 F4 [15:31:10]Write i2c OK [15:31:10]MH_I2C_Read... [15:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:10]Read from MH i2c: E2 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 0E 00 [15:31:10]MH_I2C_Read... [15:31:10]Read from MH i2c: E2 0E 00 4D 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BF [15:31:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:31:10]wFMCommunicate OK [15:31:10]SAM_PROTO_GetShiftState done [15:31:10]FM_GetShiftState done [15:31:10]req_shift_opened done [15:31:10]requested_item shift.open_date is exist - process it [15:31:10]req_shift_open_date [15:31:10]req_shift_open_date done [15:31:10]produce_requested_data done [15:31:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166788,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:31:10]process_action_free close_receipt [15:31:10]json_value_free [15:31:10]json_value_free done [15:31:10]process_json_proto returns [15:31:10]Send response to host [15:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166788,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:31:10]free response buf [15:31:10]execute_script done [15:31:10]execute_script returns [15:31:10]free content buf [15:31:10]Sock 10.Close socket [15:31:10]Sock 10.Thread stoped [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:25]accept exits with 8 [15:31:25]New connection [15:31:25]New thread 3067178340 created [15:31:25]Thread 3067034980 joined [15:31:25]Waiting for new connection... [15:31:25] Sock 8.Parse request [15:31:25]Sock 8.Check first char [15:31:25]Sock 8.First char is OK [15:31:25]request: POST /json_proto HTTP/1.0 [15:31:25]Method: POST [15:31:25]URL: /json_proto [15:31:25]Method is POST - this is cgi request [15:31:25]url: /json_proto [15:31:25]query_string will be loaded in cgi processing [15:31:25]execute_cgi json_proto POST (null) [15:31:25]execute_cgi path=json_proto method=POST [15:31:25]POST find Content-Length [15:31:25]Host: 172.17.53.195:8080 [15:31:25]Content-Length: 677 [15:31:25]Content-Type: application/json [15:31:25] [15:31:25]POST finish read [15:31:25]Found Content-Length = 677 [15:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.910, "sum" : 596.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 596.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:25]execute_script... [15:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.910, "sum" : 596.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 596.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:25]POST & json_proto [15:31:25]process_json_proto [15:31:25]json parsed OK: [15:31:25]protocol is kg_v1.0 [15:31:25]action value=close_receipt [15:31:25]process_action close_receipt [15:31:25]cmd_close_receipt [15:31:25]MH_GetDate [15:31:25]Write to MH i2c: F0 00 00 4E 2A 67 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: F0 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: F0 09 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: F0 09 00 4E 2A 00 CE 16 19 67 21 48 4A 65 EC [15:31:25]GetLastDocTimeStamp 1729697468 [15:31:25]current date 1729697486 [15:31:25]FM_GetShiftState [15:31:25]SAM_PROTO_GetShiftState [15:31:25]wFMCommunicate request_size=4 [15:31:25]MH_SAM_APDU [15:31:25]CAPDU: 80 13 01 00 [15:31:25]Write to MH i2c: E2 08 00 4F 2A 80 13 01 00 00 00 00 00 F6 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:25]Read from MH i2c: E2 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 0E 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 0E 00 4F 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C1 [15:31:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:31:25]wFMCommunicate OK [15:31:25]SAM_PROTO_GetShiftState done [15:31:25]FM_GetShiftState done [15:31:25]opened in 1729643772 [15:31:25]opened+sec_in_day 1729730172 [15:31:25]quantity*price = 59607 [15:31:25]sum+1 = 59609 [15:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 596.00 Внесено: 596.00 СДАЧА: 0.00 НСП 1% : 5.27 НДС 12% : 63.30 Наличными: 596.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 204 23.10.2024 15:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166789 ФПД: 239010357806174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166789&fm=239010357806174&tin=02508201610067®Number=0000000000091764&sum=59600 [15:31:26]StoreToDocumentArchive [15:31:26]shift 537 fd 166789 [15:31:26]save to /storage/0537/doc_00166789 [15:31:26]save last doc name /storage/0537/doc_00166789 to /storage/kkm_last_doc_name [15:31:26]save OK [15:31:26]Clear old archive folders... [15:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:26]tlvbuf is 01FB3E90 [15:31:26]SAM_PROTO_ClearQueue [15:31:26]wFMCommunicate request_size=4 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 09 00 00 [15:31:26]Write to MH i2c: E2 08 00 5C 2A 80 09 00 00 00 00 00 00 F8 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [15:31:26]RAPDU: 90 00 [15:31:26]wFMCommunicate OK [15:31:26]SAM_PROTO_ClearQueue done [15:31:26]KKMCreateOFDPacket [15:31:26]OFDProtocolAddRootSTLVToBuf [15:31:26]FM_MakeSignedData [15:31:26]FM_MakeSignedData [15:31:26]SAM_PROTO_SignData [15:31:26]wFMCommunicate request_size=4 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 0D 01 02 [15:31:26]Write to MH i2c: E2 08 00 5D 2A 80 0D 01 02 00 00 00 00 00 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [15:31:26]RAPDU: 90 00 [15:31:26]wFMCommunicate OK [15:31:26]wFMCommunicate request_size=255 [15:31:26]MH_SAM_APDU [15:31: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 CE 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D8 E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8B 02 00 35 04 06 00 D9 [15:31:26]Write to MH i2c: E2 02 01 5E 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 CE 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D8 E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8B 02 00 35 04 06 00 D9 00 00 86 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [15:31:26]RAPDU: 90 00 [15:31:26]wFMCommunicate OK [15:31:26]wFMCommunicate request_size=10 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 0D 02 02 05 60 EF 79 84 5E [15:31:26]Write to MH i2c: E2 0D 00 5F 2A 80 0D 02 02 05 00 60 EF 79 84 5E 00 00 B7 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [15:31:26]RAPDU: 90 00 [15:31:26]wFMCommunicate OK [15:31:26]wFMCommunicate request_size=4 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 0D 03 02 [15:31:26]Write to MH i2c: E2 08 00 60 2A 80 0D 03 02 00 00 00 00 05 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 0B 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 0B 00 60 2A 00 A3 59 EB 24 91 F2 96 3A 90 00 64 [15:31:26]RAPDU: A3 59 EB 24 91 F2 96 3A 90 00 [15:31:26]wFMCommunicate OK [15:31:26]SAM_PROTO_SignData done [15:31:26]FM_MakeSignedData done [15:31:26]CreateOFDProtocolMessage [15:31:26]wFMCommunicate request_size=4 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 11 00 00 [15:31:26]Write to MH i2c: E2 08 00 61 2A 80 11 00 00 00 00 00 00 05 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 17 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 17 00 61 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [15:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:26]wFMCommunicate OK [15:31:26]CreateOFDProtocolMessage done [15:31:26]OFDSenderStorePacket 166789 [15:31:26]StoreOFDPacket docnum=166789 [15:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 B7 07 01 3E 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 CE 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D8 E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8B 02 00 35 04 06 00 D9 60 EF 79 84 5E A3 59 EB 24 91 F2 96 3A [15:31:26]CheckFolder [15:31:26]dirname=/storage/ofd_packets [15:31:26]CheckFolder done [15:31:26]ProducePacketName [15:31:26]name=ofd_packets/00166789 [15:31:26]NVStorageSaveData ofd_packets/00166789 [15:31:26]File name is /storage/ofd_packets/00166789 [15:31:26]Write 301 bytes [15:31:26]NVStorageSaveData done [15:31:26]OFDSenderStorePacket done [15:31:26]KKMCreateOFDPacket done [15:31:26]NVStorageSaveData kkm_last_timestamp [15:31:26]File name is /storage/kkm_last_timestamp [15:31:26]Write 4 bytes [15:31:26]NVStorageSaveData done [15:31:26]ExternCall_PrintAddStr [15:31:26]wPrintStart [15:31:26]Write to MH i2c: 01 00 00 62 2A 8C [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 07 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 07 00 62 2A 00 00 00 00 00 FF 0F A1 [15:31:26]RasterBufferAndPrint [15:31:26]line Счет N : (1)221374 [15:31:26]line ИНН: 02508201610067 [15:31:26]line Контрольно-Кассовый Чек [15:31:26]line ПРОДАЖА [15:31:26]line ТРК (МРК, ГНК) : 23 [15:31:26]line Товар: 2710124130 [15:31:26]line Аи-92-К-5 [15:31:26]line 8.910 * 66.90 [15:31:26]line = 596.08 [15:31:26]line НДС 12% НСП 1% [15:31:26]line > о реализуемом товаре [15:31:26]line ОКРУГЛЕНИЕ: -0.08 [15:31:26]line ИТОГО: 596.00 [15:31:26]line Внесено: 596.00 [15:31:26]line СДАЧА: 0.00 [15:31:26]line НСП 1% : 5.27 [15:31:26]line НДС 12% : 63.30 [15:31:26]line Наличными: 596.00 [15:31:26]line Безнал.: 0.00 [15:31:26]line Место: АЗС № 161 "Партнер Нефть" [15:31:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:31:26]line СНО: Общий режим [15:31:26]line Чек 204 23.10.2024 15:31 [15:31:26]line Смена: 537 ФФД: 1.0 [15:31:26]line ЗНМ: 0300000104 [15:31:26]line РНМ: 0000000000091764 [15:31:26]line Версия ККМ: 001 [15:31:26]line ФМ: 0000000000871759 [15:31:26]line ФД: 166789 [15:31:26]line ФПД: 239010357806174 [15:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166789&fm=239010357806174&tin=02508201610067®Number=0000000000091764&sum=59600 [15:31:27]OFD Sender: Processing packet 166789 [packets to send 48, broken 47] [15:31:27]ProducePacketName [15:31:27]name=ofd_packets/00166789 [15:31:27]OFD Sender: To server: pG, [15:31:27]CommunicateWithHost lk.salyk.kg:30040 [15:31:27]ConnectInit lk.salyk.kg [15:31:27]written 0, free lines is 4095 [15:31:27]Connected sock=10 [15:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 B7 07 01 3E 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 CE 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D8 E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 16 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8B 02 00 35 04 06 00 D9 60 EF 79 84 5E A3 59 EB 24 91 F2 96 3A [15:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 43 0B 47 00 01 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8B 02 00 F4 03 04 00 36 BD 18 67 B6 04 01 00 00 BC 92 82 3E E1 56 ED 29 [15:31:27]CommunicateWithHost err = 0 [15:31:27]CheckOFDResponse [15:31:27]1017 (14) - 77093643461234 [15:31:27]1041 (16) - 0000000000871759 [15:31:27]1040 (4) - 166789 [15:31:27]1012 (4) - 23.10.2024 09:09 [15:31:27]1206 (1) - 0 [15:31:27]OFD Sender: Remove packet 166789 [15:31:27]ProducePacketName [15:31:27]name=ofd_packets/00166789 [15:31:27]NVStorageDeleteData [15:31:27]Write to MH i2c: 01 00 00 8D 2A B7 [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: 01 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: 01 07 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 B8 0C 82 [15:31:27]RasterBufferAndPrint [15:31:27]line [15:31:27]line [15:31:27]line [15:31:27]line [15:31:27]line [15:31:27]written 0, free lines is 3263 [15:31:27]MH_Cut [15:31:27]Write to MH i2c: D1 01 00 94 2A 01 90 [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: D1 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: D1 01 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: D1 01 00 94 2A 00 8F [15:31:27]Write to MH i2c: 01 00 00 95 2A BF [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]OFD Sender: No OFD packet to send [15:31:28]*** Cut start [15:31:28]*** Partial cut [15:31:28]*** CUTSNS_PIN = 1 [15:31:28]*** CUTSNS_PIN = 0 [15:31:28]*** Brake cut motor [15:31:29]Read from MH i2c: 01 [15:31:29]MH_I2C_Read... [15:31:29]*** Stop cut motor [15:31:29]*** Cut end [15:31:29]Read from MH i2c: 01 07 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 FF 0F D4 [15:31:29]process_action close_receipt done [15:31:29]requested_data is exist [15:31:29]produce_requested_data [15:31:29]requested_item fm.sn is exist - process it [15:31:29]wFMCommunicate request_size=4 [15:31:29]MH_SAM_APDU [15:31:29]CAPDU: 80 11 00 00 [15:31:29]Write to MH i2c: E2 08 00 96 2A 80 11 00 00 00 00 00 00 3A [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:29]Read from MH i2c: E2 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 17 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 17 00 96 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [15:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:29]wFMCommunicate OK [15:31:29]requested_item fd.num is exist - process it [15:31:29]SAM_PROTO_GetFieldsCounters [15:31:29]wFMCommunicate request_size=4 [15:31:29]MH_SAM_APDU [15:31:29]CAPDU: 80 13 00 00 [15:31:29]Write to MH i2c: E2 08 00 97 2A 80 13 00 00 00 00 00 00 3D [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:29]Read from MH i2c: E2 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 62 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 62 00 97 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:29]wFMCommunicate OK [15:31:29]SAM_PROTO_GetFieldsCounters done [15:31:29]requested_item shift.num is exist - process it [15:31:29]requested_item shift.opened is exist - process it [15:31:29]req_shift_opened [15:31:29]FM_GetShiftState [15:31:29]SAM_PROTO_GetShiftState [15:31:29]wFMCommunicate request_size=4 [15:31:29]MH_SAM_APDU [15:31:29]CAPDU: 80 13 01 00 [15:31:29]Write to MH i2c: E2 08 00 98 2A 80 13 01 00 00 00 00 00 3F [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:29]E2 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 0E 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: E2 0E 00 98 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0A [15:31:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:31:29]wFMCommunicate OK [15:31:29]SAM_PROTO_GetShiftState done [15:31:29]FM_GetShiftState done [15:31:29]req_shift_opened done [15:31:29]requested_item shift.open_date is exist - process it [15:31:29]req_shift_open_date [15:31:29]req_shift_open_date done [15:31:29]produce_requested_data done [15:31:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166789,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:31:29]process_action_free close_receipt [15:31:29]json_value_free [15:31:29]json_value_free done [15:31:29]process_json_proto returns [15:31:29]Send response to host [15:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166789,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:31:29]free response buf [15:31:29]execute_script done [15:31:29]execute_script returns [15:31:29]free content buf [15:31:29]Sock 8.Close socket [15:31:29]Sock 8.Thread stoped [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:17]accept exits with 9 [15:32:17]New connection [15:32:17]New thread 3067034980 created [15:32:17]Thread 3067178340 joined [15:32:17]Waiting for new connection... [15:32:17] Sock 9.Parse request [15:32:17]Sock 9.Check first char [15:32:17]Sock 9.First char is OK [15:32:17]request: POST /json_proto HTTP/1.0 [15:32:17]Method: POST [15:32:17]URL: /json_proto [15:32:17]Method is POST - this is cgi request [15:32:17]url: /json_proto [15:32:17]query_string will be loaded in cgi processing [15:32:17]execute_cgi json_proto POST (null) [15:32:17]execute_cgi path=json_proto method=POST [15:32:17]POST find Content-Length [15:32:17]Host: 172.17.53.195:8080 [15:32:17]Content-Length: 766 [15:32:17]Content-Type: application/json [15:32:17] [15:32:17]POST finish read [15:32:17]Found Content-Length = 766 [15:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:17]execute_script... [15:32: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)221375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:17]POST & json_proto [15:32:17]process_json_proto [15:32:17]json parsed OK: [15:32:17]protocol is kg_v1.0 [15:32:17]action value=close_receipt [15:32:17]process_action close_receipt [15:32:17]cmd_close_receipt [15:32:17]MH_GetDate [15:32:17]Write to MH i2c: F0 00 00 99 2A B2 [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: F0 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: F0 09 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: F0 09 00 99 2A 00 02 17 19 67 21 48 4A 65 6C [15:32:17]GetLastDocTimeStamp 1729697486 [15:32:17]current date 1729697538 [15:32:17]FM_GetShiftState [15:32:17]SAM_PROTO_GetShiftState [15:32:17]wFMCommunicate request_size=4 [15:32:17]MH_SAM_APDU [15:32:17]CAPDU: 80 13 01 00 [15:32:17]Write to MH i2c: E2 08 00 9A 2A 80 13 01 00 00 00 00 00 41 [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:17]Read from MH i2c: E2 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 0E 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 0E 00 9A 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0C [15:32:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:32:17]wFMCommunicate OK [15:32:17]SAM_PROTO_GetShiftState done [15:32:17]FM_GetShiftState done [15:32:17]opened in 1729643772 [15:32:17]opened+sec_in_day 1729730172 [15:32:17]quantity*price = 50041 [15:32:17]sum+1 = 50042 [15:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 205 23.10.2024 15:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166790 ФПД: 272621212110191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166790&fm=272621212110191&tin=02508201610067®Number=0000000000091764&sum=50041 [15:32:18]StoreToDocumentArchive [15:32:18]shift 537 fd 166790 [15:32:18]save to /storage/0537/doc_00166790 [15:32:18]save last doc name /storage/0537/doc_00166790 to /storage/kkm_last_doc_name [15:32:18]save OK [15:32:18]Clear old archive folders... [15:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:18]tlvbuf is 02064080 [15:32:18]SAM_PROTO_ClearQueue [15:32:18]wFMCommunicate request_size=4 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 09 00 00 [15:32:18]Write to MH i2c: E2 08 00 A7 2A 80 09 00 00 00 00 00 00 43 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [15:32:18]RAPDU: 90 00 [15:32:18]wFMCommunicate OK [15:32:18]SAM_PROTO_ClearQueue done [15:32:18]KKMCreateOFDPacket [15:32:18]OFDProtocolAddRootSTLVToBuf [15:32:18]FM_MakeSignedData [15:32:18]FM_MakeSignedData [15:32:18]SAM_PROTO_SignData [15:32:18]wFMCommunicate request_size=4 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 0D 01 02 [15:32:18]Write to MH i2c: E2 08 00 A8 2A 80 0D 01 02 00 00 00 00 4B [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [15:32:18]RAPDU: 90 00 [15:32:18]wFMCommunicate OK [15:32:18]wFMCommunicate request_size=255 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 02 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8B 02 00 35 04 06 00 F7 [15:32:18]Write to MH i2c: E2 02 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 02 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8B 02 00 35 04 06 00 F7 00 00 BE [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [15:32:18]RAPDU: 90 00 [15:32:18]wFMCommunicate OK [15:32:18]wFMCommunicate request_size=10 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 0D 02 02 05 F2 92 81 8D 6F [15:32:18]Write to MH i2c: E2 0D 00 AA 2A 80 0D 02 02 05 00 F2 92 81 8D 6F 00 00 59 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [15:32:18]RAPDU: 90 00 [15:32:18]wFMCommunicate OK [15:32:18]wFMCommunicate request_size=4 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 0D 03 02 [15:32:18]Write to MH i2c: E2 08 00 AB 2A 80 0D 03 02 00 00 00 00 50 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 0B 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 0B 00 AB 2A 00 D9 96 34 67 6F 21 AB 72 90 00 08 [15:32:18]RAPDU: D9 96 34 67 6F 21 AB 72 90 00 [15:32:18]wFMCommunicate OK [15:32:18]SAM_PROTO_SignData done [15:32:18]FM_MakeSignedData done [15:32:18]CreateOFDProtocolMessage [15:32:18]wFMCommunicate request_size=4 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 11 00 00 [15:32:18]Write to MH i2c: E2 08 00 AC 2A 80 11 00 00 00 00 00 00 50 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 17 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 17 00 AC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [15:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:32:18]wFMCommunicate OK [15:32:18]CreateOFDProtocolMessage done [15:32:18]OFDSenderStorePacket 166790 [15:32:18]StoreOFDPacket docnum=166790 [15:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 33 07 01 EA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 02 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8B 02 00 35 04 06 00 F7 F2 92 81 8D 6F D9 96 34 67 6F 21 AB 72 [15:32:18]CheckFolder [15:32:18]dirname=/storage/ofd_packets [15:32:18]CheckFolder done [15:32:18]ProducePacketName [15:32:18]name=ofd_packets/00166790 [15:32:18]NVStorageSaveData ofd_packets/00166790 [15:32:18]File name is /storage/ofd_packets/00166790 [15:32:18]Write 301 bytes [15:32:18]NVStorageSaveData done [15:32:18]OFDSenderStorePacket done [15:32:18]KKMCreateOFDPacket done [15:32:18]NVStorageSaveData kkm_last_timestamp [15:32:18]File name is /storage/kkm_last_timestamp [15:32:18]Write 4 bytes [15:32:18]NVStorageSaveData done [15:32:18]ExternCall_PrintAddStr [15:32:18]wPrintStart [15:32:18]Write to MH i2c: 01 00 00 AD 2A D7 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: 01 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: 01 07 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: 01 07 00 AD 2A 00 00 00 00 00 FF 0F EC [15:32:18]RasterBufferAndPrint [15:32:18]line Счет N : (1)221375 [15:32:18]line ИНН: 02508201610067 [15:32:18]line Контрольно-Кассовый Чек [15:32:18]line ПРОДАЖА [15:32:18]line ТРК (МРК, ГНК) : 33 [15:32:18]line Товар: 2710124130 [15:32:18]line Аи-92-К-5 [15:32:18]line 7.480 * 66.90 [15:32:18]line = 500.41 [15:32:18]line НДС 12% НСП 1% [15:32:18]line > о реализуемом товаре [15:32:18]line ИТОГО: 500.41 [15:32:18]line НСП 1% : 4.43 [15:32:18]line НДС 12% : 53.14 [15:32:18]line Наличными: 0.00 [15:32:18]line Безнал.: 500.41 [15:32:18]line Место: АЗС № 161 "Партнер Нефть" [15:32:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:32:18]line СНО: Общий режим [15:32:18]line Чек 205 23.10.2024 15:32 [15:32:18]line Смена: 537 ФФД: 1.0 [15:32:18]line ЗНМ: 0300000104 [15:32:18]line РНМ: 0000000000091764 [15:32:18]line Версия ККМ: 001 [15:32:18]line Платежная система: Mbank [15:32:18]line ФМ: 0000000000871759 [15:32:18]line ФД: 166790 [15:32:18]line ФПД: 272621212110191 [15:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166790&fm=272621212110191&tin=02508201610067®Number=0000000000091764&sum=50041 [15:32:19]OFD Sender: Processing packet 166790 [packets to send 48, broken 47] [15:32:19]ProducePacketName [15:32:19]name=ofd_packets/00166790 [15:32:19]OFD Sender: To server: pG, [15:32:19]CommunicateWithHost lk.salyk.kg:30040 [15:32:19]ConnectInit lk.salyk.kg [15:32:19]written 0, free lines is 4095 [15:32:19]Connected sock=10 [15:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 33 07 01 EA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 02 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8B 02 00 35 04 06 00 F7 F2 92 81 8D 6F D9 96 34 67 6F 21 AB 72 [15:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5A CC 47 00 A3 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8B 02 00 F4 03 04 00 6A BD 18 67 B6 04 01 00 00 52 11 35 81 68 5E FC D0 [15:32:19]CommunicateWithHost err = 0 [15:32:19]CheckOFDResponse [15:32:19]1017 (14) - 77093643461234 [15:32:19]1041 (16) - 0000000000871759 [15:32:19]1040 (4) - 166790 [15:32:19]1012 (4) - 23.10.2024 09:10 [15:32:19]1206 (1) - 0 [15:32:19]OFD Sender: Remove packet 166790 [15:32:19]ProducePacketName [15:32:19]name=ofd_packets/00166790 [15:32:19]NVStorageDeleteData [15:32:19]Write to MH i2c: 01 00 00 D6 2A 00 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: 01 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: 01 07 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: 01 07 00 D6 2A 00 00 00 00 00 D7 0C EA [15:32:19]RasterBufferAndPrint [15:32:19]line [15:32:19]line [15:32:19]line [15:32:19]line [15:32:19]line [15:32:19]written 0, free lines is 3292 [15:32:19]MH_Cut [15:32:19]Write to MH i2c: D1 01 00 DD 2A 01 D9 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: D1 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: D1 01 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: D1 01 00 DD 2A 00 D8 [15:32:19]Write to MH i2c: 01 00 00 DE 2A 08 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:20]OFD Sender: No OFD packet to send [15:32:20]*** Cut start [15:32:20]*** Partial cut [15:32:20]*** CUTSNS_PIN = 1 [15:32:20]*** CUTSNS_PIN = 0 [15:32:20]*** Brake cut motor [15:32:21]Read from MH i2c: 01 [15:32:21]MH_I2C_Read... [15:32:21]*** Stop cut motor [15:32:21]*** Cut end [15:32:21]Read from MH i2c: 01 07 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 DE 2A 00 00 00 00 00 FF 0F 1D [15:32:21]process_action close_receipt done [15:32:21]requested_data is exist [15:32:21]produce_requested_data [15:32:21]requested_item fm.sn is exist - process it [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 11 00 00 [15:32:21]Write to MH i2c: E2 08 00 DF 2A 80 11 00 00 00 00 00 00 83 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 DF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [15:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:32:21]wFMCommunicate OK [15:32:21]requested_item fd.num is exist - process it [15:32:21]SAM_PROTO_GetFieldsCounters [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 13 00 00 [15:32:21]Write to MH i2c: E2 08 00 E0 2A 80 13 00 00 00 00 00 00 86 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 62 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 62 00 E0 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [15:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_GetFieldsCounters done [15:32:21]requested_item shift.num is exist - process it [15:32:21]requested_item shift.opened is exist - process it [15:32:21]req_shift_opened [15:32:21]FM_GetShiftState [15:32:21]SAM_PROTO_GetShiftState [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 13 01 00 [15:32:21]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0E 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 53 [15:32:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_GetShiftState done [15:32:21]FM_GetShiftState done [15:32:21]req_shift_opened done [15:32:21]requested_item shift.open_date is exist - process it [15:32:21]req_shift_open_date [15:32:21]req_shift_open_date done [15:32:21]produce_requested_data done [15:32:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166790,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:32:21]process_action_free close_receipt [15:32:21]json_value_free [15:32:21]json_value_free done [15:32:21]process_json_proto returns [15:32:21]Send response to host [15:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166790,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:32:21]free response buf [15:32:21]execute_script done [15:32:21]execute_script returns [15:32:21]free content buf [15:32:21]Sock 9.Close socket [15:32:21]Sock 9.Thread stoped [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:32]accept exits with 8 [15:33:32]New connection [15:33:32]New thread 3067178340 created [15:33:32]Thread 3067034980 joined [15:33:32]Waiting for new connection... [15:33:32] Sock 8.Parse request [15:33:32]Sock 8.Check first char [15:33:32]Sock 8.First char is OK [15:33:32]request: POST /json_proto HTTP/1.0 [15:33:32]Method: POST [15:33:32]URL: /json_proto [15:33:32]Method is POST - this is cgi request [15:33:32]url: /json_proto [15:33:32]query_string will be loaded in cgi processing [15:33:32]execute_cgi json_proto POST (null) [15:33:32]execute_cgi path=json_proto method=POST [15:33:32]POST find Content-Length [15:33:32]Host: 172.17.53.195:8080 [15:33:32]Content-Length: 769 [15:33:32]Content-Type: application/json [15:33:32] [15:33:32]POST finish read [15:33:32]Found Content-Length = 769 [15:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]execute_script... [15:33:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]POST & json_proto [15:33:32]process_json_proto [15:33:32]json parsed OK: [15:33:32]protocol is kg_v1.0 [15:33:32]action value=close_receipt [15:33:32]process_action close_receipt [15:33:32]cmd_close_receipt [15:33:32]MH_GetDate [15:33:32]Write to MH i2c: F0 00 00 E2 2A FB [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 E2 2A 00 4D 17 19 67 21 48 4A 65 00 [15:33:32]GetLastDocTimeStamp 1729697538 [15:33:32]current date 1729697613 [15:33:32]FM_GetShiftState [15:33:32]SAM_PROTO_GetShiftState [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 13 01 00 [15:33:32]Write to MH i2c: E2 08 00 E3 2A 80 13 01 00 00 00 00 00 8A [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:32]Read from MH i2c: E2 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 0E 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 0E 00 E3 2A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 55 [15:33:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:33:32]wFMCommunicate OK [15:33:32]SAM_PROTO_GetShiftState done [15:33:32]FM_GetShiftState done [15:33:32]opened in 1729643772 [15:33:32]opened+sec_in_day 1729730172 [15:33:32]quantity*price = 150032 [15:33:32]sum+1 = 150033 [15:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 206 23.10.2024 15:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166791 ФПД: 231528221407906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166791&fm=231528221407906&tin=02508201610067®Number=0000000000091764&sum=150032 [15:33:33]StoreToDocumentArchive [15:33:33]shift 537 fd 166791 [15:33:33]save to /storage/0537/doc_00166791 [15:33:33]save last doc name /storage/0537/doc_00166791 to /storage/kkm_last_doc_name [15:33:33]save OK [15:33:33]Clear old archive folders... [15:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:33]tlvbuf is 01F8D6E0 [15:33:33]SAM_PROTO_ClearQueue [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 09 00 00 [15:33:33]Write to MH i2c: E2 08 00 F0 2A 80 09 00 00 00 00 00 00 8C [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_ClearQueue done [15:33:33]KKMCreateOFDPacket [15:33:33]OFDProtocolAddRootSTLVToBuf [15:33:33]FM_MakeSignedData [15:33:33]FM_MakeSignedData [15:33:33]SAM_PROTO_SignData [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 01 02 [15:33:33]Write to MH i2c: E2 08 00 F1 2A 80 0D 01 02 00 00 00 00 94 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=255 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4E 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8B 02 00 35 04 06 00 D2 [15:33:33]Write to MH i2c: E2 02 01 F2 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4E 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8B 02 00 35 04 06 00 D2 00 00 83 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=10 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 02 02 05 92 DD 64 7A A2 [15:33:33]Write to MH i2c: E2 0D 00 F3 2A 80 0D 02 02 05 00 92 DD 64 7A A2 00 00 90 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 03 02 [15:33:33]Write to MH i2c: E2 08 00 F4 2A 80 0D 03 02 00 00 00 00 99 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0B 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0B 00 F4 2A 00 14 41 C1 F9 71 C1 BE C4 90 00 5D [15:33:33]RAPDU: 14 41 C1 F9 71 C1 BE C4 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_SignData done [15:33:33]FM_MakeSignedData done [15:33:33]CreateOFDProtocolMessage [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 11 00 00 [15:33:33]Write to MH i2c: E2 08 00 F5 2A 80 11 00 00 00 00 00 00 99 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 17 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 17 00 F5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [15:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:34]wFMCommunicate OK [15:33:34]CreateOFDProtocolMessage done [15:33:34]OFDSenderStorePacket 166791 [15:33:34]StoreOFDPacket docnum=166791 [15:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 33 07 01 13 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4E 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8B 02 00 35 04 06 00 D2 92 DD 64 7A A2 14 41 C1 F9 71 C1 BE C4 [15:33:34]CheckFolder [15:33:34]dirname=/storage/ofd_packets [15:33:34]CheckFolder done [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00166791 [15:33:34]NVStorageSaveData ofd_packets/00166791 [15:33:34]File name is /storage/ofd_packets/00166791 [15:33:34]Write 301 bytes [15:33:34]NVStorageSaveData done [15:33:34]OFDSenderStorePacket done [15:33:34]KKMCreateOFDPacket done [15:33:34]NVStorageSaveData kkm_last_timestamp [15:33:34]File name is /storage/kkm_last_timestamp [15:33:34]Write 4 bytes [15:33:34]NVStorageSaveData done [15:33:34]ExternCall_PrintAddStr [15:33:34]wPrintStart [15:33:34]Write to MH i2c: 01 00 00 F6 2A 20 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 F6 2A 00 00 00 00 00 FF 0F 35 [15:33:34]RasterBufferAndPrint [15:33:34]line Счет N : (1)221376 [15:33:34]line ИНН: 02508201610067 [15:33:34]line Контрольно-Кассовый Чек [15:33:34]line ПРОДАЖА [15:33:34]line ТРК (МРК, ГНК) : 24 [15:33:34]line Товар: 2710124500 [15:33:34]line Аи-95-К-5 [15:33:34]line 20.220 * 74.20 [15:33:34]line = 1500.32 [15:33:34]line НДС 12% НСП 1% [15:33:34]line > о реализуемом товаре [15:33:34]line ИТОГО: 1500.32 [15:33:34]line НСП 1% : 13.28 [15:33:34]line НДС 12% : 159.33 [15:33:34]line Наличными: 0.00 [15:33:34]line Безнал.: 1500.32 [15:33:34]line Место: АЗС № 161 "Партнер Нефть" [15:33:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:33:34]line СНО: Общий режим [15:33:34]line Чек 206 23.10.2024 15:33 [15:33:34]line Смена: 537 ФФД: 1.0 [15:33:34]line ЗНМ: 0300000104 [15:33:34]line РНМ: 0000000000091764 [15:33:34]line Версия ККМ: 001 [15:33:34]line Платежная система: Mbank [15:33:34]line ФМ: 0000000000871759 [15:33:34]line ФД: 166791 [15:33:34]line ФПД: 231528221407906 [15:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166791&fm=231528221407906&tin=02508201610067®Number=0000000000091764&sum=150032 [15:33:34]written 0, free lines is 4095 [15:33:34]OFD Sender: Processing packet 166791 [packets to send 48, broken 47] [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00166791 [15:33:34]OFD Sender: To server: pG, [15:33:34]CommunicateWithHost lk.salyk.kg:30040 [15:33:34]ConnectInit lk.salyk.kg [15:33:34]Connected sock=10 [15:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 33 07 01 13 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4E 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8B 02 00 35 04 06 00 D2 92 DD 64 7A A2 14 41 C1 F9 71 C1 BE C4 [15:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 F0 47 00 AC B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8B 02 00 F4 03 04 00 B5 BD 18 67 B6 04 01 00 00 CE 97 14 85 AF 93 0F 3B [15:33:34]CommunicateWithHost err = 0 [15:33:34]CheckOFDResponse [15:33:34]1017 (14) - 77093643461234 [15:33:34]1041 (16) - 0000000000871759 [15:33:34]1040 (4) - 166791 [15:33:34]1012 (4) - 23.10.2024 09:11 [15:33:34]1206 (1) - 0 [15:33:34]OFD Sender: Remove packet 166791 [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00166791 [15:33:34]NVStorageDeleteData [15:33:34]Write to MH i2c: 01 00 00 1F 2B 4A [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 E1 0C 3E [15:33:34]RasterBufferAndPrint [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]written 0, free lines is 3302 [15:33:34]MH_Cut [15:33:34]Write to MH i2c: D1 01 00 26 2B 01 23 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 01 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 01 00 26 2B 00 22 [15:33:34]Write to MH i2c: 01 00 00 27 2B 52 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:35]OFD Sender: No OFD packet to send [15:33:35]*** Cut start [15:33:35]*** Partial cut [15:33:35]*** CUTSNS_PIN = 1 [15:33:35]*** CUTSNS_PIN = 0 [15:33:35]*** Brake cut motor [15:33:36]Read from MH i2c: 01 [15:33:36]MH_I2C_Read... [15:33:36]*** Stop cut motor [15:33:36]*** Cut end [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 27 2B 00 00 00 00 00 FF 0F 67 [15:33:36]process_action close_receipt done [15:33:36]requested_data is exist [15:33:36]produce_requested_data [15:33:36]requested_item fm.sn is exist - process it [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 28 2B 80 11 00 00 00 00 00 00 CD [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 28 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [15:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:36]wFMCommunicate OK [15:33:36]requested_item fd.num is exist - process it [15:33:36]SAM_PROTO_GetFieldsCounters [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 00 00 [15:33:36]Write to MH i2c: E2 08 00 29 2B 80 13 00 00 00 00 00 00 D0 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 29 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [15:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetFieldsCounters done [15:33:36]requested_item shift.num is exist - process it [15:33:36]requested_item shift.opened is exist - process it [15:33:36]req_shift_opened [15:33:36]FM_GetShiftState [15:33:36]SAM_PROTO_GetShiftState [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 01 00 [15:33:36]Write to MH i2c: E2 08 00 2A 2B 80 13 01 00 00 00 00 00 D2 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 2A 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9D [15:33:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetShiftState done [15:33:36]FM_GetShiftState done [15:33:36]req_shift_opened done [15:33:36]requested_item shift.open_date is exist - process it [15:33:36]req_shift_open_date [15:33:36]req_shift_open_date done [15:33:36]produce_requested_data done [15:33:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166791,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:33:36]process_action_free close_receipt [15:33:36]json_value_free [15:33:36]json_value_free done [15:33:36]process_json_proto returns [15:33:36]Send response to host [15:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166791,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:33:36]free response buf [15:33:36]execute_script done [15:33:36]execute_script returns [15:33:36]free content buf [15:33:36]Sock 8.Close socket [15:33:36]Sock 8.Thread stoped [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:33:58]accept exits with 9 [15:33:58]New connection [15:33:58]New thread 3067034980 created [15:33:58]Thread 3067178340 joined [15:33:58]Waiting for new connection... [15:33:58] Sock 9.Parse request [15:33:58]Sock 9.Check first char [15:33:58]Sock 9.First char is OK [15:33:58]request: POST /json_proto HTTP/1.0 [15:33:58]Method: POST [15:33:58]URL: /json_proto [15:33:58]Method is POST - this is cgi request [15:33:58]url: /json_proto [15:33:58]query_string will be loaded in cgi processing [15:33:58]execute_cgi json_proto POST (null) [15:33:58]execute_cgi path=json_proto method=POST [15:33:58]POST find Content-Length [15:33:58]Host: 172.17.53.195:8080 [15:33:58]Content-Length: 677 [15:33:58]Content-Type: application/json [15:33:58] [15:33:58]POST finish read [15:33:58]Found Content-Length = 677 [15:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "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" ] } } [15:33:58]execute_script... [15:33: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)221377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "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" ] } } [15:33:58]POST & json_proto [15:33:58]process_json_proto [15:33:58]json parsed OK: [15:33:58]protocol is kg_v1.0 [15:33:58]action value=close_receipt [15:33:58]process_action close_receipt [15:33:58]cmd_close_receipt [15:33:58]MH_GetDate [15:33:58]Write to MH i2c: F0 00 00 2B 2B 45 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: F0 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: F0 09 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: F0 09 00 2B 2B 00 67 17 19 67 21 48 4A 65 64 [15:33:58]GetLastDocTimeStamp 1729697614 [15:33:58]current date 1729697639 [15:33:58]FM_GetShiftState [15:33:58]SAM_PROTO_GetShiftState [15:33:58]wFMCommunicate request_size=4 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 13 01 00 [15:33:58]Write to MH i2c: E2 08 00 2C 2B 80 13 01 00 00 00 00 00 D4 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 0E 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 0E 00 2C 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9F [15:33:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:33:58]wFMCommunicate OK [15:33:58]SAM_PROTO_GetShiftState done [15:33:58]FM_GetShiftState done [15:33:58]opened in 1729643772 [15:33:58]opened+sec_in_day 1729730172 [15:33:58]quantity*price = 18063 [15:33:58]sum+1 = 18064 [15:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.18 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 207 23.10.2024 15:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166792 ФПД: 237619501965304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166792&fm=237619501965304&tin=02508201610067®Number=0000000000091764&sum=18000 [15:33:59]StoreToDocumentArchive [15:33:59]shift 537 fd 166792 [15:33:59]save to /storage/0537/doc_00166792 [15:33:59]save last doc name /storage/0537/doc_00166792 to /storage/kkm_last_doc_name [15:33:59]save OK [15:33:59]Clear old archive folders... [15:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:59]tlvbuf is 01FCBC40 [15:33:59]SAM_PROTO_ClearQueue [15:33:59]wFMCommunicate request_size=4 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 09 00 00 [15:33:59]Write to MH i2c: E2 08 00 39 2B 80 09 00 00 00 00 00 00 D6 [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [15:33:59]RAPDU: 90 00 [15:33:59]wFMCommunicate OK [15:33:59]SAM_PROTO_ClearQueue done [15:33:59]KKMCreateOFDPacket [15:33:59]OFDProtocolAddRootSTLVToBuf [15:33:59]FM_MakeSignedData [15:33:59]FM_MakeSignedData [15:33:59]SAM_PROTO_SignData [15:33:59]wFMCommunicate request_size=4 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 0D 01 02 [15:33:59]Write to MH i2c: E2 08 00 3A 2B 80 0D 01 02 00 00 00 00 DE [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [15:33:59]RAPDU: 90 00 [15:33:59]wFMCommunicate OK [15:33:59]wFMCommunicate request_size=255 [15:33:59]MH_SAM_APDU [15:33: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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 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 CF 00 00 00 F4 03 04 00 67 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8B 02 00 35 04 06 00 D8 [15:33:59]Write to MH i2c: E2 02 01 3B 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 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 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 CF 00 00 00 F4 03 04 00 67 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8B 02 00 35 04 06 00 D8 00 00 BC [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [15:33:59]RAPDU: 90 00 [15:33:59]wFMCommunicate OK [15:33:59]wFMCommunicate request_size=10 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 0D 02 02 05 1D 1A 01 9F F8 [15:33:59]Write to MH i2c: E2 0D 00 3C 2B 80 0D 02 02 05 00 1D 1A 01 9F F8 00 00 BA [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [15:33:59]RAPDU: 90 00 [15:33:59]wFMCommunicate OK [15:33:59]wFMCommunicate request_size=4 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 0D 03 02 [15:33:59]Write to MH i2c: E2 08 00 3D 2B 80 0D 03 02 00 00 00 00 E3 [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 0B 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 0B 00 3D 2B 00 DF CC 24 98 5B AB 78 35 90 00 FE [15:33:59]RAPDU: DF CC 24 98 5B AB 78 35 90 00 [15:33:59]wFMCommunicate OK [15:33:59]SAM_PROTO_SignData done [15:33:59]FM_MakeSignedData done [15:33:59]CreateOFDProtocolMessage [15:33:59]wFMCommunicate request_size=4 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 11 00 00 [15:33:59]Write to MH i2c: E2 08 00 3E 2B 80 11 00 00 00 00 00 00 E3 [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 17 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 17 00 3E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [15:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:59]wFMCommunicate OK [15:33:59]CreateOFDProtocolMessage done [15:33:59]OFDSenderStorePacket 166792 [15:33:59]StoreOFDPacket docnum=166792 [15:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 5D 07 01 9F 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 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 CF 00 00 00 F4 03 04 00 67 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8B 02 00 35 04 06 00 D8 1D 1A 01 9F F8 DF CC 24 98 5B AB 78 35 [15:33:59]CheckFolder [15:33:59]dirname=/storage/ofd_packets [15:33:59]CheckFolder done [15:33:59]ProducePacketName [15:33:59]name=ofd_packets/00166792 [15:33:59]NVStorageSaveData ofd_packets/00166792 [15:33:59]File name is /storage/ofd_packets/00166792 [15:33:59]Write 301 bytes [15:33:59]NVStorageSaveData done [15:33:59]OFDSenderStorePacket done [15:33:59]KKMCreateOFDPacket done [15:33:59]NVStorageSaveData kkm_last_timestamp [15:33:59]File name is /storage/kkm_last_timestamp [15:33:59]Write 4 bytes [15:33:59]NVStorageSaveData done [15:33:59]ExternCall_PrintAddStr [15:33:59]wPrintStart [15:33:59]Write to MH i2c: 01 00 00 3F 2B 6A [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 07 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 FF 0F 7F [15:33:59]RasterBufferAndPrint [15:33:59]line Счет N : (1)221377 [15:33:59]line ИНН: 02508201610067 [15:33:59]line Контрольно-Кассовый Чек [15:33:59]line ПРОДАЖА [15:33:59]line ТРК (МРК, ГНК) : 33 [15:33:59]line Товар: 2710124130 [15:33:59]line Аи-92-К-5 [15:33:59]line 2.700 * 66.90 [15:33:59]line = 180.63 [15:33:59]line НДС 12% НСП 1% [15:33:59]line > о реализуемом товаре [15:33:59]line ОКРУГЛЕНИЕ: -0.63 [15:33:59]line ИТОГО: 180.00 [15:33:59]line Внесено: 180.00 [15:33:59]line СДАЧА: 0.00 [15:33:59]line НСП 1% : 1.60 [15:33:59]line НДС 12% : 19.18 [15:33:59]line Наличными: 180.00 [15:33:59]line Безнал.: 0.00 [15:33:59]line Место: АЗС № 161 "Партнер Нефть" [15:33:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:33:59]line СНО: Общий режим [15:33:59]line Чек 207 23.10.2024 15:33 [15:33:59]line Смена: 537 ФФД: 1.0 [15:33:59]line ЗНМ: 0300000104 [15:33:59]line РНМ: 0000000000091764 [15:33:59]line Версия ККМ: 001 [15:33:59]line ФМ: 0000000000871759 [15:33:59]line ФД: 166792 [15:33:59]line ФПД: 237619501965304 [15:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166792&fm=237619501965304&tin=02508201610067®Number=0000000000091764&sum=18000 [15:34:00]OFD Sender: Processing packet 166792 [packets to send 48, broken 47] [15:34:00]ProducePacketName [15:34:00]name=ofd_packets/00166792 [15:34:00]OFD Sender: To server: pG, [15:34:00]CommunicateWithHost lk.salyk.kg:30040 [15:34:00]ConnectInit lk.salyk.kg [15:34:00]written 0, free lines is 4095 [15:34:00]Connected sock=10 [15:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 5D 07 01 9F 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 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 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 CF 00 00 00 F4 03 04 00 67 17 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8B 02 00 35 04 06 00 D8 1D 1A 01 9F F8 DF CC 24 98 5B AB 78 35 [15:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 35 F3 47 00 A8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8B 02 00 F4 03 04 00 CF BD 18 67 B6 04 01 00 00 3D 80 BC CA 4F 4A 2A EE [15:34:00]CommunicateWithHost err = 0 [15:34:00]CheckOFDResponse [15:34:00]1017 (14) - 77093643461234 [15:34:00]1041 (16) - 0000000000871759 [15:34:00]1040 (4) - 166792 [15:34:00]1012 (4) - 23.10.2024 09:11 [15:34:00]1206 (1) - 0 [15:34:00]OFD Sender: Remove packet 166792 [15:34:00]ProducePacketName [15:34:00]name=ofd_packets/00166792 [15:34:00]NVStorageDeleteData [15:34:00]Write to MH i2c: 01 00 00 6A 2B 95 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: 01 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: 01 07 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 B5 0C 5D [15:34:00]RasterBufferAndPrint [15:34:00]line [15:34:00]line [15:34:00]line [15:34:00]line [15:34:00]line [15:34:00]written 0, free lines is 3260 [15:34:00]MH_Cut [15:34:00]Write to MH i2c: D1 01 00 71 2B 01 6E [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: D1 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: D1 01 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: D1 01 00 71 2B 00 6D [15:34:00]Write to MH i2c: 01 00 00 72 2B 9D [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:01]OFD Sender: No OFD packet to send [15:34:01]*** Cut start [15:34:01]*** Partial cut [15:34:01]*** CUTSNS_PIN = 1 [15:34:01]*** CUTSNS_PIN = 0 [15:34:01]*** Brake cut motor [15:34:02]Read from MH i2c: 01 [15:34:02]MH_I2C_Read... [15:34:02]*** Stop cut motor [15:34:02]*** Cut end [15:34:02]Read from MH i2c: 01 07 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [15:34:02]process_action close_receipt done [15:34:02]requested_data is exist [15:34:02]produce_requested_data [15:34:02]requested_item fm.sn is exist - process it [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 11 00 00 [15:34:02]Write to MH i2c: E2 08 00 73 2B 80 11 00 00 00 00 00 00 18 [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 17 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 17 00 73 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [15:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:34:02]wFMCommunicate OK [15:34:02]requested_item fd.num is exist - process it [15:34:02]SAM_PROTO_GetFieldsCounters [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 13 00 00 [15:34:02]Write to MH i2c: E2 08 00 74 2B 80 13 00 00 00 00 00 00 1B [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 62 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 62 00 74 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [15:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:02]wFMCommunicate OK [15:34:02]SAM_PROTO_GetFieldsCounters done [15:34:02]requested_item shift.num is exist - process it [15:34:02]requested_item shift.opened is exist - process it [15:34:02]req_shift_opened [15:34:02]FM_GetShiftState [15:34:02]SAM_PROTO_GetShiftState [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 13 01 00 [15:34:02]Write to MH i2c: E2 08 00 75 2B 80 13 01 00 00 00 00 00 1D [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 0E 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 0E 00 75 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E8 [15:34:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:34:02]wFMCommunicate OK [15:34:02]SAM_PROTO_GetShiftState done [15:34:02]FM_GetShiftState done [15:34:02]req_shift_opened done [15:34:02]requested_item shift.open_date is exist - process it [15:34:02]req_shift_open_date [15:34:02]req_shift_open_date done [15:34:02]produce_requested_data done [15:34:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166792,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:34:02]process_action_free close_receipt [15:34:02]json_value_free [15:34:02]json_value_free done [15:34:02]process_json_proto returns [15:34:02]Send response to host [15:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166792,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:34:02]free response buf [15:34:02]execute_script done [15:34:02]execute_script returns [15:34:02]free content buf [15:34:02]Sock 9.Close socket [15:34:02]Sock 9.Thread stoped [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [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:08]accept exits with 8 [15:39:08]New connection [15:39:08]New thread 3067178340 created [15:39:08]Thread 3067034980 joined [15:39:08]Waiting for new connection... [15:39:08] Sock 8.Parse request [15:39:08]Sock 8.Check first char [15:39:08]Sock 8.First char is OK [15:39:08]request: POST /json_proto HTTP/1.0 [15:39:08]Method: POST [15:39:08]URL: /json_proto [15:39:08]Method is POST - this is cgi request [15:39:08]url: /json_proto [15:39:08]query_string will be loaded in cgi processing [15:39:08]execute_cgi json_proto POST (null) [15:39:08]execute_cgi path=json_proto method=POST [15:39:08]POST find Content-Length [15:39:08]Host: 172.17.53.195:8080 [15:39:08]Content-Length: 674 [15:39:08]Content-Type: application/json [15:39:08] [15:39:08]POST finish read [15:39:08]Found Content-Length = 674 [15:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:08]execute_script... [15:39:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:08]POST & json_proto [15:39:08]process_json_proto [15:39:08]json parsed OK: [15:39:08]protocol is kg_v1.0 [15:39:08]action value=close_receipt [15:39:08]process_action close_receipt [15:39:08]cmd_close_receipt [15:39:08]MH_GetDate [15:39:08]Write to MH i2c: F0 00 00 76 2B 90 [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: F0 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: F0 09 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: F0 09 00 76 2B 00 9E 18 19 67 21 48 4A 65 E7 [15:39:08]GetLastDocTimeStamp 1729697639 [15:39:08]current date 1729697950 [15:39:08]FM_GetShiftState [15:39:08]SAM_PROTO_GetShiftState [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 13 01 00 [15:39:08]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 77 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EA [15:39:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:39:08]wFMCommunicate OK [15:39:08]SAM_PROTO_GetShiftState done [15:39:08]FM_GetShiftState done [15:39:08]opened in 1729643772 [15:39:08]opened+sec_in_day 1729730172 [15:39:08]quantity*price = 50063 [15:39:08]sum+1 = 50064 [15:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 208 23.10.2024 15:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166793 ФПД: 100354602749318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153910&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166793&fm=100354602749318&tin=02508201610067®Number=0000000000091764&sum=50000 [15:39:09]StoreToDocumentArchive [15:39:09]shift 537 fd 166793 [15:39:09]save to /storage/0537/doc_00166793 [15:39:09]save last doc name /storage/0537/doc_00166793 to /storage/kkm_last_doc_name [15:39:09]save OK [15:39:09]Clear old archive folders... [15:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:39:09]tlvbuf is 01FAFEC0 [15:39:09]SAM_PROTO_ClearQueue [15:39:09]wFMCommunicate request_size=4 [15:39:09]MH_SAM_APDU [15:39:09]CAPDU: 80 09 00 00 [15:39:09]Write to MH i2c: E2 08 00 84 2B 80 09 00 00 00 00 00 00 21 [15:39:09]Write i2c OK [15:39:09]MH_I2C_Read... [15:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:09]Read from MH i2c: E2 [15:39:09]MH_I2C_Read... [15:39:09]Read from MH i2c: E2 03 00 [15:39:09]MH_I2C_Read... [15:39:09]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [15:39:09]RAPDU: 90 00 [15:39:09]wFMCommunicate OK [15:39:09]SAM_PROTO_ClearQueue done [15:39:09]KKMCreateOFDPacket [15:39:09]OFDProtocolAddRootSTLVToBuf [15:39:09]FM_MakeSignedData [15:39:09]FM_MakeSignedData [15:39:09]SAM_PROTO_SignData [15:39:09]wFMCommunicate request_size=4 [15:39:09]MH_SAM_APDU [15:39:09]CAPDU: 80 0D 01 02 [15:39:09]Write to MH i2c: E2 08 00 85 2B 80 0D 01 02 00 00 00 00 29 [15:39:09]Write i2c OK [15:39:09]MH_I2C_Read... [15:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:09]Read from MH i2c: E2 [15:39:09]MH_I2C_Read... [15:39:09]Read from MH i2c: E2 03 00 [15:39:09]MH_I2C_Read... [15:39:09]Read from MH i2c: E2 03 00 85 2B 00 90 00 24 [15:39:09]RAPDU: 90 00 [15:39:09]wFMCommunicate OK [15:39:09]wFMCommunicate request_size=255 [15:39:09]MH_SAM_APDU [15:39:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 9E 18 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8B 02 00 35 04 06 00 5B 45 A0 72 [15:39:10]Write to MH i2c: E2 02 01 86 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 9E 18 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8B 02 00 35 04 06 00 5B 45 A0 72 00 00 26 [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:10]Read from MH i2c: E2 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 03 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [15:39:10]RAPDU: 90 00 [15:39:10]wFMCommunicate OK [15:39:10]wFMCommunicate request_size=7 [15:39:10]MH_SAM_APDU [15:39:10]CAPDU: 80 0D 02 02 02 CD 86 [15:39:10]Write to MH i2c: E2 0A 00 87 2B 80 0D 02 02 02 00 CD 86 00 00 83 [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:10]Read from MH i2c: E2 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 03 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [15:39:10]RAPDU: 90 00 [15:39:10]wFMCommunicate OK [15:39:10]wFMCommunicate request_size=4 [15:39:10]MH_SAM_APDU [15:39:10]CAPDU: 80 0D 03 02 [15:39:10]Write to MH i2c: E2 08 00 88 2B 80 0D 03 02 00 00 00 00 2E [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:10]Read from MH i2c: E2 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 0B 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 0B 00 88 2B 00 E7 51 CB 00 FD E5 64 31 90 00 A9 [15:39:10]RAPDU: E7 51 CB 00 FD E5 64 31 90 00 [15:39:10]wFMCommunicate OK [15:39:10]SAM_PROTO_SignData done [15:39:10]FM_MakeSignedData done [15:39:10]CreateOFDProtocolMessage [15:39:10]wFMCommunicate request_size=4 [15:39:10]MH_SAM_APDU [15:39:10]CAPDU: 80 11 00 00 [15:39:10]Write to MH i2c: E2 08 00 89 2B 80 11 00 00 00 00 00 00 2E [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:10]Read from MH i2c: E2 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 17 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: E2 17 00 89 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [15:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:10]wFMCommunicate OK [15:39:10]CreateOFDProtocolMessage done [15:39:10]OFDSenderStorePacket 166793 [15:39:10]StoreOFDPacket docnum=166793 [15:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B0 91 04 01 C4 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 9E 18 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8B 02 00 35 04 06 00 5B 45 A0 72 CD 86 E7 51 CB 00 FD E5 64 31 [15:39:10]CheckFolder [15:39:10]dirname=/storage/ofd_packets [15:39:10]CheckFolder done [15:39:10]ProducePacketName [15:39:10]name=ofd_packets/00166793 [15:39:10]NVStorageSaveData ofd_packets/00166793 [15:39:10]File name is /storage/ofd_packets/00166793 [15:39:10]Write 298 bytes [15:39:10]NVStorageSaveData done [15:39:10]OFDSenderStorePacket done [15:39:10]KKMCreateOFDPacket done [15:39:10]NVStorageSaveData kkm_last_timestamp [15:39:10]File name is /storage/kkm_last_timestamp [15:39:10]Write 4 bytes [15:39:10]NVStorageSaveData done [15:39:10]ExternCall_PrintAddStr [15:39:10]wPrintStart [15:39:10]Write to MH i2c: 01 00 00 8A 2B B5 [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 8A 2B 00 00 00 00 00 FF 0F CA [15:39:10]RasterBufferAndPrint [15:39:10]line Счет N : (1)221378 [15:39:10]line ИНН: 02508201610067 [15:39:10]line Контрольно-Кассовый Чек [15:39:10]line ПРОДАЖА [15:39:10]line ТРК (МРК, ГНК) : 21 [15:39:10]line Товар: 2710194210 [15:39:10]line ДТ-К-5 [15:39:10]line 6.570 * 76.20 [15:39:10]line = 500.63 [15:39:10]line НДС 12% НСП 1% [15:39:10]line > о реализуемом товаре [15:39:10]line ОКРУГЛЕНИЕ: -0.63 [15:39:10]line ИТОГО: 500.00 [15:39:10]line Внесено: 500.00 [15:39:10]line СДАЧА: 0.00 [15:39:10]line НСП 1% : 4.43 [15:39:10]line НДС 12% : 53.16 [15:39:10]line Наличными: 500.00 [15:39:10]line Безнал.: 0.00 [15:39:10]line Место: АЗС № 161 "Партнер Нефть" [15:39:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:39:10]line СНО: Общий режим [15:39:10]line Чек 208 23.10.2024 15:39 [15:39:10]line Смена: 537 ФФД: 1.0 [15:39:10]line ЗНМ: 0300000104 [15:39:10]line РНМ: 0000000000091764 [15:39:10]line Версия ККМ: 001 [15:39:10]line ФМ: 0000000000871759 [15:39:10]line ФД: 166793 [15:39:10]line ФПД: 100354602749318 [15:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153910&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166793&fm=100354602749318&tin=02508201610067®Number=0000000000091764&sum=50000 [15:39:10]OFD Sender: Processing packet 166793 [packets to send 48, broken 47] [15:39:10]ProducePacketName [15:39:10]name=ofd_packets/00166793 [15:39:10]OFD Sender: To server: pG, [15:39:10]CommunicateWithHost lk.salyk.kg:30040 [15:39:10]ConnectInit lk.salyk.kg [15:39:10]written 0, free lines is 4095 [15:39:10]Connected sock=10 [15:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B0 91 04 01 C4 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 9E 18 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8B 02 00 35 04 06 00 5B 45 A0 72 CD 86 E7 51 CB 00 FD E5 64 31 [15:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C 5D 47 00 68 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8B 02 00 F4 03 04 00 05 BF 18 67 B6 04 01 00 00 D1 68 E7 E4 92 81 A3 C0 [15:39:11]CommunicateWithHost err = 0 [15:39:11]CheckOFDResponse [15:39:11]1017 (14) - 77093643461234 [15:39:11]1041 (16) - 0000000000871759 [15:39:11]1040 (4) - 166793 [15:39:11]1012 (4) - 23.10.2024 09:16 [15:39:11]1206 (1) - 0 [15:39:11]OFD Sender: Remove packet 166793 [15:39:11]ProducePacketName [15:39:11]name=ofd_packets/00166793 [15:39:11]NVStorageDeleteData [15:39:11]Write to MH i2c: 01 00 00 B5 2B E0 [15:39:11]Write i2c OK [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: 01 [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: 01 07 00 [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: 01 07 00 B5 2B 00 00 00 00 00 BC 0C AF [15:39:11]RasterBufferAndPrint [15:39:11]line [15:39:11]line [15:39:11]line [15:39:11]line [15:39:11]line [15:39:11]written 0, free lines is 3267 [15:39:11]MH_Cut [15:39:11]Write to MH i2c: D1 01 00 BC 2B 01 B9 [15:39:11]Write i2c OK [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: D1 [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: D1 01 00 [15:39:11]MH_I2C_Read... [15:39:11]Read from MH i2c: D1 01 00 BC 2B 00 B8 [15:39:11]Write to MH i2c: 01 00 00 BD 2B E8 [15:39:11]Write i2c OK [15:39:11]MH_I2C_Read... [15:39:11]OFD Sender: No OFD packet to send [15:39:12]*** Cut start [15:39:12]*** Partial cut [15:39:12]*** CUTSNS_PIN = 1 [15:39:12]*** CUTSNS_PIN = 0 [15:39:12]*** Brake cut motor [15:39:12]Read from MH i2c: 01 [15:39:12]MH_I2C_Read... [15:39:12]*** Stop cut motor [15:39:12]*** Cut end [15:39:12]Read from MH i2c: 01 07 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: 01 07 00 BD 2B 00 00 00 00 00 FF 0F FD [15:39:12]process_action close_receipt done [15:39:12]requested_data is exist [15:39:12]produce_requested_data [15:39:12]requested_item fm.sn is exist - process it [15:39:12]wFMCommunicate request_size=4 [15:39:12]MH_SAM_APDU [15:39:12]CAPDU: 80 11 00 00 [15:39:12]Write to MH i2c: E2 08 00 BE 2B 80 11 00 00 00 00 00 00 63 [15:39:12]Write i2c OK [15:39:12]MH_I2C_Read... [15:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:12]Read from MH i2c: E2 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 17 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 17 00 BE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [15:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:12]wFMCommunicate OK [15:39:12]requested_item fd.num is exist - process it [15:39:12]SAM_PROTO_GetFieldsCounters [15:39:12]wFMCommunicate request_size=4 [15:39:12]MH_SAM_APDU [15:39:12]CAPDU: 80 13 00 00 [15:39:12]Write to MH i2c: E2 08 00 BF 2B 80 13 00 00 00 00 00 00 66 [15:39:12]Write i2c OK [15:39:12]MH_I2C_Read... [15:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:12]Read from MH i2c: E2 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 62 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 62 00 BF 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [15:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:12]wFMCommunicate OK [15:39:12]SAM_PROTO_GetFieldsCounters done [15:39:12]requested_item shift.num is exist - process it [15:39:12]requested_item shift.opened is exist - process it [15:39:12]req_shift_opened [15:39:12]FM_GetShiftState [15:39:12]SAM_PROTO_GetShiftState [15:39:12]wFMCommunicate request_size=4 [15:39:12]MH_SAM_APDU [15:39:12]CAPDU: 80 13 01 00 [15:39:12]Write to MH i2c: E2 08 00 C0 2B 80 13 01 00 00 00 00 00 68 [15:39:12]Write i2c OK [15:39:12]MH_I2C_Read... [15:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:12]Read from MH i2c: E2 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 0E 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 0E 00 C0 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 33 [15:39:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:39:12]wFMCommunicate OK [15:39:12]SAM_PROTO_GetShiftState done [15:39:12]FM_GetShiftState done [15:39:12]req_shift_opened done [15:39:12]requested_item shift.open_date is exist - process it [15:39:12]req_shift_open_date [15:39:12]req_shift_open_date done [15:39:12]produce_requested_data done [15:39:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166793,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:39:12]process_action_free close_receipt [15:39:12]json_value_free [15:39:12]json_value_free done [15:39:12]process_json_proto returns [15:39:12]Send response to host [15:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166793,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:39:12]free response buf [15:39:12]execute_script done [15:39:12]execute_script returns [15:39:12]free content buf [15:39:12]Sock 8.Close socket [15:39:12]Sock 8.Thread stoped [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]accept exits with 9 [15:42:01]New connection [15:42:01]New thread 3067034980 created [15:42:01]Thread 3067178340 joined [15:42:01]Waiting for new connection... [15:42:01] Sock 9.Parse request [15:42:01]Sock 9.Check first char [15:42:01]Sock 9.First char is OK [15:42:01]request: POST /json_proto HTTP/1.0 [15:42:01]Method: POST [15:42:01]URL: /json_proto [15:42:01]Method is POST - this is cgi request [15:42:01]url: /json_proto [15:42:01]query_string will be loaded in cgi processing [15:42:01]execute_cgi json_proto POST (null) [15:42:01]execute_cgi path=json_proto method=POST [15:42:01]POST find Content-Length [15:42:01]Host: 172.17.53.195:8080 [15:42:01]Content-Length: 677 [15:42:01]Content-Type: application/json [15:42:01] [15:42:01]POST finish read [15:42:01]Found Content-Length = 677 [15:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:01]execute_script... [15:42: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)221379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:01]POST & json_proto [15:42:01]process_json_proto [15:42:01]json parsed OK: [15:42:01]protocol is kg_v1.0 [15:42:01]action value=close_receipt [15:42:01]process_action close_receipt [15:42:01]cmd_close_receipt [15:42:01]MH_GetDate [15:42:01]Write to MH i2c: F0 00 00 C1 2B DB [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: F0 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: F0 09 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: F0 09 00 C1 2B 00 4B 19 19 67 21 48 4A 65 E0 [15:42:01]GetLastDocTimeStamp 1729697950 [15:42:01]current date 1729698123 [15:42:01]FM_GetShiftState [15:42:01]SAM_PROTO_GetShiftState [15:42:01]wFMCommunicate request_size=4 [15:42:01]MH_SAM_APDU [15:42:01]CAPDU: 80 13 01 00 [15:42:01]Write to MH i2c: E2 08 00 C2 2B 80 13 01 00 00 00 00 00 6A [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:01]Read from MH i2c: E2 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 0E 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 0E 00 C2 2B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 35 [15:42:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:42:01]wFMCommunicate OK [15:42:01]SAM_PROTO_GetShiftState done [15:42:01]FM_GetShiftState done [15:42:01]opened in 1729643772 [15:42:01]opened+sec_in_day 1729730172 [15:42:01]quantity*price = 60009 [15:42:01]sum+1 = 60010 [15:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 209 23.10.2024 15:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166794 ФПД: 259221178949243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154203&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166794&fm=259221178949243&tin=02508201610067®Number=0000000000091764&sum=60000 [15:42:02]StoreToDocumentArchive [15:42:02]shift 537 fd 166794 [15:42:02]save to /storage/0537/doc_00166794 [15:42:02]save last doc name /storage/0537/doc_00166794 to /storage/kkm_last_doc_name [15:42:02]save OK [15:42:02]Clear old archive folders... [15:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:02]tlvbuf is 01FE7FD0 [15:42:02]SAM_PROTO_ClearQueue [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 09 00 00 [15:42:02]Write to MH i2c: E2 08 00 CF 2B 80 09 00 00 00 00 00 00 6C [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [15:42:02]RAPDU: 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_ClearQueue done [15:42:02]KKMCreateOFDPacket [15:42:02]OFDProtocolAddRootSTLVToBuf [15:42:02]FM_MakeSignedData [15:42:02]FM_MakeSignedData [15:42:02]SAM_PROTO_SignData [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 0D 01 02 [15:42:02]Write to MH i2c: E2 08 00 D0 2B 80 0D 01 02 00 00 00 00 74 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [15:42:02]RAPDU: 90 00 [15:42:02]wFMCommunicate OK [15:42:02]wFMCommunicate request_size=255 [15:42:02]MH_SAM_APDU [15:42: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B 19 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8B 02 00 35 04 06 00 EB [15:42:02]Write to MH i2c: E2 02 01 D1 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B 19 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8B 02 00 35 04 06 00 EB 00 00 B9 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [15:42:02]RAPDU: 90 00 [15:42:02]wFMCommunicate OK [15:42:02]wFMCommunicate request_size=10 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 0D 02 02 05 C2 A2 4A 1E 7B [15:42:02]Write to MH i2c: E2 0D 00 D2 2B 80 0D 02 02 05 00 C2 A2 4A 1E 7B 00 00 C8 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [15:42:02]RAPDU: 90 00 [15:42:02]wFMCommunicate OK [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 0D 03 02 [15:42:02]Write to MH i2c: E2 08 00 D3 2B 80 0D 03 02 00 00 00 00 79 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0B 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0B 00 D3 2B 00 04 DA 84 18 E3 C1 DD C2 90 00 37 [15:42:02]RAPDU: 04 DA 84 18 E3 C1 DD C2 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_SignData done [15:42:02]FM_MakeSignedData done [15:42:02]CreateOFDProtocolMessage [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 11 00 00 [15:42:02]Write to MH i2c: E2 08 00 D4 2B 80 11 00 00 00 00 00 00 79 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 D4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [15:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:42:03]wFMCommunicate OK [15:42:03]CreateOFDProtocolMessage done [15:42:03]OFDSenderStorePacket 166794 [15:42:03]StoreOFDPacket docnum=166794 [15:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F6 AA 07 01 E6 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B 19 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8B 02 00 35 04 06 00 EB C2 A2 4A 1E 7B 04 DA 84 18 E3 C1 DD C2 [15:42:03]CheckFolder [15:42:03]dirname=/storage/ofd_packets [15:42:03]CheckFolder done [15:42:03]ProducePacketName [15:42:03]name=ofd_packets/00166794 [15:42:03]NVStorageSaveData ofd_packets/00166794 [15:42:03]File name is /storage/ofd_packets/00166794 [15:42:03]Write 301 bytes [15:42:03]NVStorageSaveData done [15:42:03]OFDSenderStorePacket done [15:42:03]KKMCreateOFDPacket done [15:42:03]NVStorageSaveData kkm_last_timestamp [15:42:03]File name is /storage/kkm_last_timestamp [15:42:03]Write 4 bytes [15:42:03]NVStorageSaveData done [15:42:03]ExternCall_PrintAddStr [15:42:03]wPrintStart [15:42:03]Write to MH i2c: 01 00 00 D5 2B 00 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 D5 2B 00 00 00 00 00 FF 0F 15 [15:42:03]RasterBufferAndPrint [15:42:03]line Счет N : (1)221379 [15:42:03]line ИНН: 02508201610067 [15:42:03]line Контрольно-Кассовый Чек [15:42:03]line ПРОДАЖА [15:42:03]line ТРК (МРК, ГНК) : 33 [15:42:03]line Товар: 2710124130 [15:42:03]line Аи-92-К-5 [15:42:03]line 8.970 * 66.90 [15:42:03]line = 600.09 [15:42:03]line НДС 12% НСП 1% [15:42:03]line > о реализуемом товаре [15:42:03]line ОКРУГЛЕНИЕ: -0.09 [15:42:03]line ИТОГО: 600.00 [15:42:03]line Внесено: 600.00 [15:42:03]line СДАЧА: 0.00 [15:42:03]line НСП 1% : 5.31 [15:42:03]line НДС 12% : 63.73 [15:42:03]line Наличными: 600.00 [15:42:03]line Безнал.: 0.00 [15:42:03]line Место: АЗС № 161 "Партнер Нефть" [15:42:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:42:03]line СНО: Общий режим [15:42:03]line Чек 209 23.10.2024 15:42 [15:42:03]line Смена: 537 ФФД: 1.0 [15:42:03]line ЗНМ: 0300000104 [15:42:03]line РНМ: 0000000000091764 [15:42:03]line Версия ККМ: 001 [15:42:03]line ФМ: 0000000000871759 [15:42:03]line ФД: 166794 [15:42:03]line ФПД: 259221178949243 [15:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154203&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166794&fm=259221178949243&tin=02508201610067®Number=0000000000091764&sum=60000 [15:42:03]OFD Sender: Processing packet 166794 [packets to send 48, broken 47] [15:42:03]ProducePacketName [15:42:03]name=ofd_packets/00166794 [15:42:03]OFD Sender: To server: pG, [15:42:03]CommunicateWithHost lk.salyk.kg:30040 [15:42:03]ConnectInit lk.salyk.kg [15:42:03]written 0, free lines is 4095 [15:42:03]Connected sock=10 [15:42:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F6 AA 07 01 E6 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B 19 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8B 02 00 35 04 06 00 EB C2 A2 4A 1E 7B 04 DA 84 18 E3 C1 DD C2 [15:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B8 FA 47 00 57 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8B 02 00 F4 03 04 00 B2 BF 18 67 B6 04 01 00 00 CF B5 62 99 0C 1B 2D 3F [15:42:03]CommunicateWithHost err = 0 [15:42:03]CheckOFDResponse [15:42:03]1017 (14) - 77093643461234 [15:42:03]1041 (16) - 0000000000871759 [15:42:03]1040 (4) - 166794 [15:42:03]1012 (4) - 23.10.2024 09:19 [15:42:03]1206 (1) - 0 [15:42:03]OFD Sender: Remove packet 166794 [15:42:03]ProducePacketName [15:42:03]name=ofd_packets/00166794 [15:42:03]NVStorageDeleteData [15:42:03]Write to MH i2c: 01 00 00 00 2C 2C [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 BF 0C FE [15:42:03]RasterBufferAndPrint [15:42:03]line [15:42:03]line [15:42:03]line [15:42:03]line [15:42:03]line [15:42:03]written 0, free lines is 3272 [15:42:03]MH_Cut [15:42:03]Write to MH i2c: D1 01 00 07 2C 01 05 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: D1 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: D1 01 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: D1 01 00 07 2C 00 04 [15:42:03]Write to MH i2c: 01 00 00 08 2C 34 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:04]OFD Sender: No OFD packet to send [15:42:04]*** Cut start [15:42:04]*** Partial cut [15:42:04]*** CUTSNS_PIN = 1 [15:42:04]*** CUTSNS_PIN = 0 [15:42:04]*** Brake cut motor [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]*** Stop cut motor [15:42:05]*** Cut end [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 FF 0F 49 [15:42:05]process_action close_receipt done [15:42:05]requested_data is exist [15:42:05]produce_requested_data [15:42:05]requested_item fm.sn is exist - process it [15:42:05]wFMCommunicate request_size=4 [15:42:05]MH_SAM_APDU [15:42:05]CAPDU: 80 11 00 00 [15:42:05]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:05]Read from MH i2c: E2 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 17 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [15:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:42:05]wFMCommunicate OK [15:42:05]requested_item fd.num is exist - process it [15:42:05]SAM_PROTO_GetFieldsCounters [15:42:05]wFMCommunicate request_size=4 [15:42:05]MH_SAM_APDU [15:42:05]CAPDU: 80 13 00 00 [15:42:05]Write to MH i2c: E2 08 00 0A 2C 80 13 00 00 00 00 00 00 B2 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:05]Read from MH i2c: E2 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 62 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 62 00 0A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [15:42:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:05]wFMCommunicate OK [15:42:05]SAM_PROTO_GetFieldsCounters done [15:42:05]requested_item shift.num is exist - process it [15:42:05]requested_item shift.opened is exist - process it [15:42:05]req_shift_opened [15:42:05]FM_GetShiftState [15:42:05]SAM_PROTO_GetShiftState [15:42:05]wFMCommunicate request_size=4 [15:42:05]MH_SAM_APDU [15:42:05]CAPDU: 80 13 01 00 [15:42:05]Write to MH i2c: E2 08 00 0B 2C 80 13 01 00 00 00 00 00 B4 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:05]Read from MH i2c: E2 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 0E 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 0E 00 0B 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7F [15:42:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:42:05]wFMCommunicate OK [15:42:05]SAM_PROTO_GetShiftState done [15:42:05]FM_GetShiftState done [15:42:05]req_shift_opened done [15:42:05]requested_item shift.open_date is exist - process it [15:42:05]req_shift_open_date [15:42:05]req_shift_open_date done [15:42:05]produce_requested_data done [15:42:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166794,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:42:05]process_action_free close_receipt [15:42:05]json_value_free [15:42:05]json_value_free done [15:42:05]process_json_proto returns [15:42:05]Send response to host [15:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166794,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:42:05]free response buf [15:42:05]execute_script done [15:42:05]execute_script returns [15:42:05]free content buf [15:42:05]Sock 9.Close socket [15:42:05]Sock 9.Thread stoped [15:42:09]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:57]accept exits with 8 [15:45:57]New connection [15:45:57]New thread 3067178340 created [15:45:57]Thread 3067034980 joined [15:45:57]Waiting for new connection... [15:45:57] Sock 8.Parse request [15:45:57]Sock 8.Check first char [15:45:57]Sock 8.First char is OK [15:45:57]request: POST /json_proto HTTP/1.0 [15:45:57]Method: POST [15:45:57]URL: /json_proto [15:45:57]Method is POST - this is cgi request [15:45:57]url: /json_proto [15:45:57]query_string will be loaded in cgi processing [15:45:57]execute_cgi json_proto POST (null) [15:45:57]execute_cgi path=json_proto method=POST [15:45:57]POST find Content-Length [15:45:57]Host: 172.17.53.195:8080 [15:45:57]Content-Length: 766 [15:45:57]Content-Type: application/json [15:45:57] [15:45:57]POST finish read [15:45:57]Found Content-Length = 766 [15:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]execute_script... [15:45:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]POST & json_proto [15:45:57]process_json_proto [15:45:57]json parsed OK: [15:45:57]protocol is kg_v1.0 [15:45:57]action value=close_receipt [15:45:57]process_action close_receipt [15:45:57]cmd_close_receipt [15:45:57]MH_GetDate [15:45:57]Write to MH i2c: F0 00 00 0C 2C 27 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 0C 2C 00 37 1A 19 67 21 48 4A 65 19 [15:45:57]GetLastDocTimeStamp 1729698123 [15:45:57]current date 1729698359 [15:45:57]FM_GetShiftState [15:45:57]SAM_PROTO_GetShiftState [15:45:57]wFMCommunicate request_size=4 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 13 01 00 [15:45:57]Write to MH i2c: E2 08 00 0D 2C 80 13 01 00 00 00 00 00 B6 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:57]Read from MH i2c: E2 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 0D 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 81 [15:45:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:45:57]wFMCommunicate OK [15:45:57]SAM_PROTO_GetShiftState done [15:45:57]FM_GetShiftState done [15:45:57]opened in 1729643772 [15:45:57]opened+sec_in_day 1729730172 [15:45:57]quantity*price = 40006 [15:45:57]sum+1 = 40007 [15:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 210 23.10.2024 15:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166795 ФПД: 169271289784436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166795&fm=169271289784436&tin=02508201610067®Number=0000000000091764&sum=40006 [15:45:58]StoreToDocumentArchive [15:45:58]shift 537 fd 166795 [15:45:58]save to /storage/0537/doc_00166795 [15:45:58]save last doc name /storage/0537/doc_00166795 to /storage/kkm_last_doc_name [15:45:58]save OK [15:45:58]Clear old archive folders... [15:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:58]tlvbuf is 01FC99C0 [15:45:58]SAM_PROTO_ClearQueue [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 09 00 00 [15:45:58]Write to MH i2c: E2 08 00 1A 2C 80 09 00 00 00 00 00 00 B8 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]SAM_PROTO_ClearQueue done [15:45:58]KKMCreateOFDPacket [15:45:58]OFDProtocolAddRootSTLVToBuf [15:45:58]FM_MakeSignedData [15:45:58]FM_MakeSignedData [15:45:58]SAM_PROTO_SignData [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 01 02 [15:45:58]Write to MH i2c: E2 08 00 1B 2C 80 0D 01 02 00 00 00 00 C0 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=255 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 37 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8B 02 00 35 04 06 00 99 [15:45:59]Write to MH i2c: E2 02 01 1C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 37 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8B 02 00 35 04 06 00 99 00 00 A0 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=10 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 02 02 05 F3 8B 19 28 74 [15:45:59]Write to MH i2c: E2 0D 00 1D 2C 80 0D 02 02 05 00 F3 8B 19 28 74 00 00 00 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 1D 2C 00 90 00 BD [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 03 02 [15:45:59]Write to MH i2c: E2 08 00 1E 2C 80 0D 03 02 00 00 00 00 C5 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 1E 2C 00 33 0C B2 27 15 C4 C5 31 90 00 AD [15:45:59]RAPDU: 33 0C B2 27 15 C4 C5 31 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_SignData done [15:45:59]FM_MakeSignedData done [15:45:59]CreateOFDProtocolMessage [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 11 00 00 [15:45:59]Write to MH i2c: E2 08 00 1F 2C 80 11 00 00 00 00 00 00 C5 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 1F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [15:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:45:59]wFMCommunicate OK [15:45:59]CreateOFDProtocolMessage done [15:45:59]OFDSenderStorePacket 166795 [15:45:59]StoreOFDPacket docnum=166795 [15:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 34 07 01 FD 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 37 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8B 02 00 35 04 06 00 99 F3 8B 19 28 74 33 0C B2 27 15 C4 C5 31 [15:45:59]CheckFolder [15:45:59]dirname=/storage/ofd_packets [15:45:59]CheckFolder done [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00166795 [15:45:59]NVStorageSaveData ofd_packets/00166795 [15:45:59]File name is /storage/ofd_packets/00166795 [15:45:59]Write 301 bytes [15:45:59]NVStorageSaveData done [15:45:59]OFDSenderStorePacket done [15:45:59]KKMCreateOFDPacket done [15:45:59]NVStorageSaveData kkm_last_timestamp [15:45:59]File name is /storage/kkm_last_timestamp [15:45:59]Write 4 bytes [15:45:59]NVStorageSaveData done [15:45:59]ExternCall_PrintAddStr [15:45:59]wPrintStart [15:45:59]Write to MH i2c: 01 00 00 20 2C 4C [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 20 2C 00 00 00 00 00 FF 0F 61 [15:45:59]RasterBufferAndPrint [15:45:59]line Счет N : (1)221380 [15:45:59]line ИНН: 02508201610067 [15:45:59]line Контрольно-Кассовый Чек [15:45:59]line ПРОДАЖА [15:45:59]line ТРК (МРК, ГНК) : 23 [15:45:59]line Товар: 2710124130 [15:45:59]line Аи-92-К-5 [15:45:59]line 5.980 * 66.90 [15:45:59]line = 400.06 [15:45:59]line НДС 12% НСП 1% [15:45:59]line > о реализуемом товаре [15:45:59]line ИТОГО: 400.06 [15:45:59]line НСП 1% : 3.54 [15:45:59]line НДС 12% : 42.48 [15:45:59]line Наличными: 0.00 [15:45:59]line Безнал.: 400.06 [15:45:59]line Место: АЗС № 161 "Партнер Нефть" [15:45:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:45:59]line СНО: Общий режим [15:45:59]line Чек 210 23.10.2024 15:45 [15:45:59]line Смена: 537 ФФД: 1.0 [15:45:59]line ЗНМ: 0300000104 [15:45:59]line РНМ: 0000000000091764 [15:45:59]line Версия ККМ: 001 [15:45:59]line Платежная система: Mbank [15:45:59]line ФМ: 0000000000871759 [15:45:59]line ФД: 166795 [15:45:59]line ФПД: 169271289784436 [15:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166795&fm=169271289784436&tin=02508201610067®Number=0000000000091764&sum=40006 [15:45:59]OFD Sender: Processing packet 166795 [packets to send 48, broken 47] [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00166795 [15:45:59]OFD Sender: To server: pG, [15:45:59]CommunicateWithHost lk.salyk.kg:30040 [15:45:59]ConnectInit lk.salyk.kg [15:45:59]written 0, free lines is 4095 [15:45:59]Connected sock=10 [15:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 34 07 01 FD 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 37 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8B 02 00 35 04 06 00 99 F3 8B 19 28 74 33 0C B2 27 15 C4 C5 31 [15:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 67 E9 47 00 1D 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8B 02 00 F4 03 04 00 9E C0 18 67 B6 04 01 00 00 32 6A 9F 88 4E 17 1E 94 [15:46:00]CommunicateWithHost err = 0 [15:46:00]CheckOFDResponse [15:46:00]1017 (14) - 77093643461234 [15:46:00]1041 (16) - 0000000000871759 [15:46:00]1040 (4) - 166795 [15:46:00]1012 (4) - 23.10.2024 09:23 [15:46:00]1206 (1) - 0 [15:46:00]OFD Sender: Remove packet 166795 [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00166795 [15:46:00]NVStorageDeleteData [15:46:00]Write to MH i2c: 01 00 00 49 2C 75 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 49 2C 00 00 00 00 00 E4 0C 6C [15:46:00]RasterBufferAndPrint [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]written 0, free lines is 3307 [15:46:00]MH_Cut [15:46:00]Write to MH i2c: D1 01 00 50 2C 01 4E [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 50 2C 00 4D [15:46:00]Write to MH i2c: 01 00 00 51 2C 7D [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]OFD Sender: No OFD packet to send [15:46:01]*** Cut start [15:46:01]*** Partial cut [15:46:01]*** CUTSNS_PIN = 1 [15:46:01]*** CUTSNS_PIN = 0 [15:46:01]*** Brake cut motor [15:46:01]Read from MH i2c: 01 [15:46:01]MH_I2C_Read... [15:46:01]*** Stop cut motor [15:46:01]*** Cut end [15:46:01]Read from MH i2c: 01 07 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 07 00 51 2C 00 00 00 00 00 FF 0F 92 [15:46:01]process_action close_receipt done [15:46:01]requested_data is exist [15:46:01]produce_requested_data [15:46:01]requested_item fm.sn is exist - process it [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 11 00 00 [15:46:01]Write to MH i2c: E2 08 00 52 2C 80 11 00 00 00 00 00 00 F8 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 52 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [15:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:46:01]wFMCommunicate OK [15:46:01]requested_item fd.num is exist - process it [15:46:01]SAM_PROTO_GetFieldsCounters [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 00 00 [15:46:01]Write to MH i2c: E2 08 00 53 2C 80 13 00 00 00 00 00 00 FB [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 53 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [15:46:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetFieldsCounters done [15:46:01]requested_item shift.num is exist - process it [15:46:01]requested_item shift.opened is exist - process it [15:46:01]req_shift_opened [15:46:01]FM_GetShiftState [15:46:01]SAM_PROTO_GetShiftState [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 01 00 [15:46:01]Write to MH i2c: E2 08 00 54 2C 80 13 01 00 00 00 00 00 FD [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 54 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C8 [15:46:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetShiftState done [15:46:01]FM_GetShiftState done [15:46:01]req_shift_opened done [15:46:01]requested_item shift.open_date is exist - process it [15:46:01]req_shift_open_date [15:46:01]req_shift_open_date done [15:46:01]produce_requested_data done [15:46:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166795,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:46:01]process_action_free close_receipt [15:46:01]json_value_free [15:46:01]json_value_free done [15:46:01]process_json_proto returns [15:46:01]Send response to host [15:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166795,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:46:01]free response buf [15:46:01]execute_script done [15:46:01]execute_script returns [15:46:01]free content buf [15:46:01]Sock 8.Close socket [15:46:01]Sock 8.Thread stoped [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]accept exits with 9 [15:46:50]New connection [15:46:50]New thread 3067034980 created [15:46:50]Thread 3067178340 joined [15:46:50]Waiting for new connection... [15:46:50] Sock 9.Parse request [15:46:50]Sock 9.Check first char [15:46:50]Sock 9.First char is OK [15:46:50]request: POST /json_proto HTTP/1.0 [15:46:50]Method: POST [15:46:50]URL: /json_proto [15:46:50]Method is POST - this is cgi request [15:46:50]url: /json_proto [15:46:50]query_string will be loaded in cgi processing [15:46:50]execute_cgi json_proto POST (null) [15:46:50]execute_cgi path=json_proto method=POST [15:46:50]POST find Content-Length [15:46:50]Host: 172.17.53.195:8080 [15:46:50]Content-Length: 766 [15:46:50]Content-Type: application/json [15:46:50] [15:46:50]POST finish read [15:46:50]Found Content-Length = 766 [15:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:50]execute_script... [15:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:50]POST & json_proto [15:46:50]process_json_proto [15:46:50]json parsed OK: [15:46:50]protocol is kg_v1.0 [15:46:50]action value=close_receipt [15:46:50]process_action close_receipt [15:46:50]cmd_close_receipt [15:46:50]MH_GetDate [15:46:50]Write to MH i2c: F0 00 00 55 2C 70 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: F0 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: F0 09 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: F0 09 00 55 2C 00 6B 1A 19 67 21 48 4A 65 96 [15:46:50]GetLastDocTimeStamp 1729698359 [15:46:50]current date 1729698411 [15:46:50]FM_GetShiftState [15:46:50]SAM_PROTO_GetShiftState [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 13 01 00 [15:46:50]Write to MH i2c: E2 08 00 56 2C 80 13 01 00 00 00 00 00 FF [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 0E 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 0E 00 56 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CA [15:46:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:46:50]wFMCommunicate OK [15:46:50]SAM_PROTO_GetShiftState done [15:46:50]FM_GetShiftState done [15:46:50]opened in 1729643772 [15:46:50]opened+sec_in_day 1729730172 [15:46:50]quantity*price = 50041 [15:46:50]sum+1 = 50042 [15:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 211 23.10.2024 15:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166796 ФПД: 9146761265080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154651&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166796&fm=9146761265080&tin=02508201610067®Number=0000000000091764&sum=50041 [15:46:51]StoreToDocumentArchive [15:46:51]shift 537 fd 166796 [15:46:51]save to /storage/0537/doc_00166796 [15:46:51]save last doc name /storage/0537/doc_00166796 to /storage/kkm_last_doc_name [15:46:51]save OK [15:46:51]Clear old archive folders... [15:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:51]tlvbuf is 0205EB70 [15:46:51]SAM_PROTO_ClearQueue [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 09 00 00 [15:46:51]Write to MH i2c: E2 08 00 63 2C 80 09 00 00 00 00 00 00 01 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 63 2C 00 90 00 03 [15:46:51]RAPDU: 90 00 [15:46:51]wFMCommunicate OK [15:46:51]SAM_PROTO_ClearQueue done [15:46:51]KKMCreateOFDPacket [15:46:51]OFDProtocolAddRootSTLVToBuf [15:46:51]FM_MakeSignedData [15:46:51]FM_MakeSignedData [15:46:51]SAM_PROTO_SignData [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 0D 01 02 [15:46:51]Write to MH i2c: E2 08 00 64 2C 80 0D 01 02 00 00 00 00 09 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [15:46:51]RAPDU: 90 00 [15:46:51]wFMCommunicate OK [15:46:51]wFMCommunicate request_size=255 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6B 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8B 02 00 35 04 06 00 08 [15:46:51]Write to MH i2c: E2 02 01 65 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6B 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8B 02 00 35 04 06 00 08 00 00 05 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [15:46:51]RAPDU: 90 00 [15:46:51]wFMCommunicate OK [15:46:51]wFMCommunicate request_size=10 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 0D 02 02 05 51 A5 74 BF B8 [15:46:51]Write to MH i2c: E2 0D 00 66 2C 80 0D 02 02 05 00 51 A5 74 BF B8 00 00 F7 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [15:46:51]RAPDU: 90 00 [15:46:51]wFMCommunicate OK [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 0D 03 02 [15:46:51]Write to MH i2c: E2 08 00 67 2C 80 0D 03 02 00 00 00 00 0E [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 0B 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 0B 00 67 2C 00 AC 0B 59 25 FE 75 9C 44 90 00 97 [15:46:51]RAPDU: AC 0B 59 25 FE 75 9C 44 90 00 [15:46:51]wFMCommunicate OK [15:46:51]SAM_PROTO_SignData done [15:46:51]FM_MakeSignedData done [15:46:51]CreateOFDProtocolMessage [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 11 00 00 [15:46:51]Write to MH i2c: E2 08 00 68 2C 80 11 00 00 00 00 00 00 0E [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 68 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [15:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:46:51]wFMCommunicate OK [15:46:51]CreateOFDProtocolMessage done [15:46:51]OFDSenderStorePacket 166796 [15:46:51]StoreOFDPacket docnum=166796 [15:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 1C 07 01 89 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6B 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8B 02 00 35 04 06 00 08 51 A5 74 BF B8 AC 0B 59 25 FE 75 9C 44 [15:46:51]CheckFolder [15:46:51]dirname=/storage/ofd_packets [15:46:51]CheckFolder done [15:46:51]ProducePacketName [15:46:51]name=ofd_packets/00166796 [15:46:51]NVStorageSaveData ofd_packets/00166796 [15:46:51]File name is /storage/ofd_packets/00166796 [15:46:51]Write 301 bytes [15:46:51]NVStorageSaveData done [15:46:51]OFDSenderStorePacket done [15:46:51]KKMCreateOFDPacket done [15:46:51]NVStorageSaveData kkm_last_timestamp [15:46:51]File name is /storage/kkm_last_timestamp [15:46:51]Write 4 bytes [15:46:51]NVStorageSaveData done [15:46:51]ExternCall_PrintAddStr [15:46:51]wPrintStart [15:46:51]Write to MH i2c: 01 00 00 69 2C 95 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: 01 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: 01 07 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: 01 07 00 69 2C 00 00 00 00 00 FF 0F AA [15:46:51]RasterBufferAndPrint [15:46:51]line Счет N : (1)221382 [15:46:51]line ИНН: 02508201610067 [15:46:51]line Контрольно-Кассовый Чек [15:46:51]line ПРОДАЖА [15:46:51]line ТРК (МРК, ГНК) : 13 [15:46:51]line Товар: 2710124130 [15:46:51]line Аи-92-К-5 [15:46:51]line 7.480 * 66.90 [15:46:51]line = 500.41 [15:46:51]line НДС 12% НСП 1% [15:46:51]line > о реализуемом товаре [15:46:51]line ИТОГО: 500.41 [15:46:51]line НСП 1% : 4.43 [15:46:51]line НДС 12% : 53.14 [15:46:51]line Наличными: 0.00 [15:46:51]line Безнал.: 500.41 [15:46:51]line Место: АЗС № 161 "Партнер Нефть" [15:46:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:46:51]line СНО: Общий режим [15:46:51]line Чек 211 23.10.2024 15:46 [15:46:51]line Смена: 537 ФФД: 1.0 [15:46:51]line ЗНМ: 0300000104 [15:46:51]line РНМ: 0000000000091764 [15:46:51]line Версия ККМ: 001 [15:46:51]line Платежная система: Mbank [15:46:51]line ФМ: 0000000000871759 [15:46:51]line ФД: 166796 [15:46:51]line ФПД: 9146761265080 [15:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154651&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166796&fm=9146761265080&tin=02508201610067®Number=0000000000091764&sum=50041 [15:46:51]written 0, free lines is 4095 [15:46:51]OFD Sender: Processing packet 166796 [packets to send 48, broken 47] [15:46:51]ProducePacketName [15:46:51]name=ofd_packets/00166796 [15:46:51]OFD Sender: To server: pG, [15:46:51]CommunicateWithHost lk.salyk.kg:30040 [15:46:51]ConnectInit lk.salyk.kg [15:46:51]Connected sock=11 [15:46:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 1C 07 01 89 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6B 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8B 02 00 35 04 06 00 08 51 A5 74 BF B8 AC 0B 59 25 FE 75 9C 44 [15:46:52]Write to MH i2c: 01 00 00 92 2C BE [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: 01 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: 01 07 00 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: 01 07 00 92 2C 00 00 00 00 00 D2 0C A3 [15:46:52]RasterBufferAndPrint [15:46:52]line [15:46:52]line [15:46:52]line [15:46:52]line [15:46:52]line [15:46:52]written 0, free lines is 3287 [15:46:52]MH_Cut [15:46:52]Write to MH i2c: D1 01 00 99 2C 01 97 [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: D1 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: D1 01 00 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: D1 01 00 99 2C 00 96 [15:46:52]Write to MH i2c: 01 00 00 9A 2C C6 [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 F9 47 00 C4 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8B 02 00 F4 03 04 00 D2 C0 18 67 B6 04 01 00 00 D4 F6 38 39 83 F2 29 81 [15:46:52]CommunicateWithHost err = 0 [15:46:52]CheckOFDResponse [15:46:52]1017 (14) - 77093643461234 [15:46:52]1041 (16) - 0000000000871759 [15:46:52]1040 (4) - 166796 [15:46:52]1012 (4) - 23.10.2024 09:24 [15:46:52]1206 (1) - 0 [15:46:52]OFD Sender: Remove packet 166796 [15:46:52]ProducePacketName [15:46:52]name=ofd_packets/00166796 [15:46:52]NVStorageDeleteData [15:46:52]OFD Sender: No OFD packet to send [15:46:53]*** Cut start [15:46:53]*** Partial cut [15:46:53]*** CUTSNS_PIN = 1 [15:46:53]*** CUTSNS_PIN = 0 [15:46:53]*** Brake cut motor [15:46:53]Read from MH i2c: 01 [15:46:53]MH_I2C_Read... [15:46:53]*** Stop cut motor [15:46:53]*** Cut end [15:46:53]Read from MH i2c: 01 07 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: 01 07 00 9A 2C 00 00 00 00 00 FF 0F DB [15:46:53]process_action close_receipt done [15:46:53]requested_data is exist [15:46:53]produce_requested_data [15:46:53]requested_item fm.sn is exist - process it [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 11 00 00 [15:46:53]Write to MH i2c: E2 08 00 9B 2C 80 11 00 00 00 00 00 00 41 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 17 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 17 00 9B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [15:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:46:53]wFMCommunicate OK [15:46:53]requested_item fd.num is exist - process it [15:46:53]SAM_PROTO_GetFieldsCounters [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 13 00 00 [15:46:53]Write to MH i2c: E2 08 00 9C 2C 80 13 00 00 00 00 00 00 44 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 62 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 62 00 9C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [15:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:53]wFMCommunicate OK [15:46:53]SAM_PROTO_GetFieldsCounters done [15:46:53]requested_item shift.num is exist - process it [15:46:53]requested_item shift.opened is exist - process it [15:46:53]req_shift_opened [15:46:53]FM_GetShiftState [15:46:53]SAM_PROTO_GetShiftState [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 13 01 00 [15:46:53]Write to MH i2c: E2 08 00 9D 2C 80 13 01 00 00 00 00 00 46 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 0E 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 0E 00 9D 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 11 [15:46:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:46:53]wFMCommunicate OK [15:46:53]SAM_PROTO_GetShiftState done [15:46:53]FM_GetShiftState done [15:46:53]req_shift_opened done [15:46:53]requested_item shift.open_date is exist - process it [15:46:53]req_shift_open_date [15:46:53]req_shift_open_date done [15:46:53]produce_requested_data done [15:46:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166796,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:46:53]process_action_free close_receipt [15:46:53]json_value_free [15:46:53]json_value_free done [15:46:53]process_json_proto returns [15:46:53]Send response to host [15:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166796,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:46:53]free response buf [15:46:53]execute_script done [15:46:53]execute_script returns [15:46:53]free content buf [15:46:53]Sock 9.Close socket [15:46:53]Sock 9.Thread stoped [15:46:57]OFD Sender: No OFD packet to send [15:47:01]accept exits with 8 [15:47:01]New connection [15:47:01]New thread 3067178340 created [15:47:01]Thread 3067034980 joined [15:47:01]Waiting for new connection... [15:47:01] Sock 8.Parse request [15:47:01]Sock 8.Check first char [15:47:01]Sock 8.First char is OK [15:47:01]request: POST /json_proto HTTP/1.0 [15:47:01]Method: POST [15:47:01]URL: /json_proto [15:47:01]Method is POST - this is cgi request [15:47:01]url: /json_proto [15:47:01]query_string will be loaded in cgi processing [15:47:01]execute_cgi json_proto POST (null) [15:47:01]execute_cgi path=json_proto method=POST [15:47:01]POST find Content-Length [15:47:01]Host: 172.17.53.195:8080 [15:47:01]Content-Length: 766 [15:47:01]Content-Type: application/json [15:47:01] [15:47:01]POST finish read [15:47:01]Found Content-Length = 766 [15:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:01]execute_script... [15:47:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:01]POST & json_proto [15:47:01]process_json_proto [15:47:01]json parsed OK: [15:47:01]protocol is kg_v1.0 [15:47:01]action value=close_receipt [15:47:01]process_action close_receipt [15:47:01]cmd_close_receipt [15:47:01]MH_GetDate [15:47:01]Write to MH i2c: F0 00 00 9E 2C B9 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: F0 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: F0 09 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: F0 09 00 9E 2C 00 77 1A 19 67 21 48 4A 65 EB [15:47:01]GetLastDocTimeStamp 1729698411 [15:47:01]current date 1729698423 [15:47:01]FM_GetShiftState [15:47:01]SAM_PROTO_GetShiftState [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 13 01 00 [15:47:01]Write to MH i2c: E2 08 00 9F 2C 80 13 01 00 00 00 00 00 48 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 9F 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [15:47:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:47:01]wFMCommunicate OK [15:47:01]SAM_PROTO_GetShiftState done [15:47:01]FM_GetShiftState done [15:47:01]opened in 1729643772 [15:47:01]opened+sec_in_day 1729730172 [15:47:01]quantity*price = 50041 [15:47:01]sum+1 = 50042 [15:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 212 23.10.2024 15:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166797 ФПД: 68367418527864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166797&fm=68367418527864&tin=02508201610067®Number=0000000000091764&sum=50041 [15:47:02]StoreToDocumentArchive [15:47:02]shift 537 fd 166797 [15:47:02]save to /storage/0537/doc_00166797 [15:47:02]save last doc name /storage/0537/doc_00166797 to /storage/kkm_last_doc_name [15:47:02]save OK [15:47:02]Clear old archive folders... [15:47:02]OFD Sender: No OFD packet to send [15:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:02]tlvbuf is 02057F90 [15:47:02]SAM_PROTO_ClearQueue [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 09 00 00 [15:47:02]Write to MH i2c: E2 08 00 AC 2C 80 09 00 00 00 00 00 00 4A [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:02]Read from MH i2c: E2 03 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [15:47:02]RAPDU: 90 00 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_ClearQueue done [15:47:02]KKMCreateOFDPacket [15:47:02]OFDProtocolAddRootSTLVToBuf [15:47:02]FM_MakeSignedData [15:47:02]FM_MakeSignedData [15:47:02]SAM_PROTO_SignData [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 0D 01 02 [15:47:02]Write to MH i2c: E2 08 00 AD 2C 80 0D 01 02 00 00 00 00 52 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 03 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 03 00 AD 2C 00 90 00 4D [15:47:02]RAPDU: 90 00 [15:47:02]wFMCommunicate OK [15:47:02]wFMCommunicate request_size=255 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 77 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8B 02 00 35 04 06 00 3E [15:47:02]Write to MH i2c: E2 02 01 AE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 77 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8B 02 00 35 04 06 00 3E 00 00 92 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 AE 2C 00 90 00 4E [15:47:03]RAPDU: 90 00 [15:47:03]wFMCommunicate OK [15:47:03]wFMCommunicate request_size=10 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 0D 02 02 05 2E 07 B2 10 78 [15:47:03]Write to MH i2c: E2 0D 00 AF 2C 80 0D 02 02 05 00 2E 07 B2 10 78 00 00 CE [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [15:47:03]RAPDU: 90 00 [15:47:03]wFMCommunicate OK [15:47:03]wFMCommunicate request_size=4 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 0D 03 02 [15:47:03]Write to MH i2c: E2 08 00 B0 2C 80 0D 03 02 00 00 00 00 57 [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 0B 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 0B 00 B0 2C 00 9F DA 63 86 06 75 CD A9 90 00 AB [15:47:03]RAPDU: 9F DA 63 86 06 75 CD A9 90 00 [15:47:03]wFMCommunicate OK [15:47:03]SAM_PROTO_SignData done [15:47:03]FM_MakeSignedData done [15:47:03]CreateOFDProtocolMessage [15:47:03]wFMCommunicate request_size=4 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 11 00 00 [15:47:03]Write to MH i2c: E2 08 00 B1 2C 80 11 00 00 00 00 00 00 57 [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 17 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 17 00 B1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [15:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:47:03]wFMCommunicate OK [15:47:03]CreateOFDProtocolMessage done [15:47:03]OFDSenderStorePacket 166797 [15:47:03]StoreOFDPacket docnum=166797 [15:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 51 07 01 6E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 77 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8B 02 00 35 04 06 00 3E 2E 07 B2 10 78 9F DA 63 86 06 75 CD A9 [15:47:03]CheckFolder [15:47:03]dirname=/storage/ofd_packets [15:47:03]CheckFolder done [15:47:03]ProducePacketName [15:47:03]name=ofd_packets/00166797 [15:47:03]NVStorageSaveData ofd_packets/00166797 [15:47:03]File name is /storage/ofd_packets/00166797 [15:47:03]Write 301 bytes [15:47:03]NVStorageSaveData done [15:47:03]OFDSenderStorePacket done [15:47:03]KKMCreateOFDPacket done [15:47:03]NVStorageSaveData kkm_last_timestamp [15:47:03]File name is /storage/kkm_last_timestamp [15:47:03]Write 4 bytes [15:47:03]NVStorageSaveData done [15:47:03]ExternCall_PrintAddStr [15:47:03]wPrintStart [15:47:03]Write to MH i2c: 01 00 00 B2 2C DE [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: 01 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: 01 07 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: 01 07 00 B2 2C 00 00 00 00 00 FF 0F F3 [15:47:03]RasterBufferAndPrint [15:47:03]line Счет N : (1)221381 [15:47:03]line ИНН: 02508201610067 [15:47:03]line Контрольно-Кассовый Чек [15:47:03]line ПРОДАЖА [15:47:03]line ТРК (МРК, ГНК) : 33 [15:47:03]line Товар: 2710124130 [15:47:03]line Аи-92-К-5 [15:47:03]line 7.480 * 66.90 [15:47:03]line = 500.41 [15:47:03]line НДС 12% НСП 1% [15:47:03]line > о реализуемом товаре [15:47:03]line ИТОГО: 500.41 [15:47:03]line НСП 1% : 4.43 [15:47:03]line НДС 12% : 53.14 [15:47:03]line Наличными: 0.00 [15:47:03]line Безнал.: 500.41 [15:47:03]line Место: АЗС № 161 "Партнер Нефть" [15:47:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:47:03]line СНО: Общий режим [15:47:03]line Чек 212 23.10.2024 15:47 [15:47:03]line Смена: 537 ФФД: 1.0 [15:47:03]line ЗНМ: 0300000104 [15:47:03]line РНМ: 0000000000091764 [15:47:03]line Версия ККМ: 001 [15:47:03]line Платежная система: Mbank [15:47:03]line ФМ: 0000000000871759 [15:47:03]line ФД: 166797 [15:47:03]line ФПД: 68367418527864 [15:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166797&fm=68367418527864&tin=02508201610067®Number=0000000000091764&sum=50041 [15:47:03]written 0, free lines is 4095 [15:47:03]OFD Sender: Processing packet 166797 [packets to send 48, broken 47] [15:47:03]ProducePacketName [15:47:03]name=ofd_packets/00166797 [15:47:03]OFD Sender: To server: pG, [15:47:03]CommunicateWithHost lk.salyk.kg:30040 [15:47:03]ConnectInit lk.salyk.kg [15:47:03]Connected sock=10 [15:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 51 07 01 6E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 77 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8B 02 00 35 04 06 00 3E 2E 07 B2 10 78 9F DA 63 86 06 75 CD A9 [15:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 CC 47 00 BC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8B 02 00 F4 03 04 00 DE C0 18 67 B6 04 01 00 00 9F C8 87 DD 07 08 54 D0 [15:47:03]CommunicateWithHost err = 0 [15:47:03]CheckOFDResponse [15:47:03]1017 (14) - 77093643461234 [15:47:03]1041 (16) - 0000000000871759 [15:47:03]1040 (4) - 166797 [15:47:03]1012 (4) - 23.10.2024 09:24 [15:47:03]1206 (1) - 0 [15:47:03]OFD Sender: Remove packet 166797 [15:47:03]ProducePacketName [15:47:03]name=ofd_packets/00166797 [15:47:03]NVStorageDeleteData [15:47:04]Write to MH i2c: 01 00 00 DB 2C 07 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 DB 2C 00 00 00 00 00 E3 0C FD [15:47:04]RasterBufferAndPrint [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]written 0, free lines is 3308 [15:47:04]MH_Cut [15:47:04]Write to MH i2c: D1 01 00 E2 2C 01 E0 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 01 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 01 00 E2 2C 00 DF [15:47:04]Write to MH i2c: 01 00 00 E3 2C 0F [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]OFD Sender: No OFD packet to send [15:47:04]*** Cut start [15:47:04]*** Partial cut [15:47:04]*** CUTSNS_PIN = 1 [15:47:04]*** CUTSNS_PIN = 0 [15:47:05]*** Brake cut motor [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]*** Stop cut motor [15:47:05]*** Cut end [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 E3 2C 00 00 00 00 00 FF 0F 24 [15:47:05]process_action close_receipt done [15:47:05]requested_data is exist [15:47:05]produce_requested_data [15:47:05]requested_item fm.sn is exist - process it [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 11 00 00 [15:47:05]Write to MH i2c: E2 08 00 E4 2C 80 11 00 00 00 00 00 00 8A [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 17 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 17 00 E4 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [15:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:47:05]wFMCommunicate OK [15:47:05]requested_item fd.num is exist - process it [15:47:05]SAM_PROTO_GetFieldsCounters [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 13 00 00 [15:47:05]Write to MH i2c: E2 08 00 E5 2C 80 13 00 00 00 00 00 00 8D [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 62 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 62 00 E5 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:05]wFMCommunicate OK [15:47:05]SAM_PROTO_GetFieldsCounters done [15:47:05]requested_item shift.num is exist - process it [15:47:05]requested_item shift.opened is exist - process it [15:47:05]req_shift_opened [15:47:05]FM_GetShiftState [15:47:05]SAM_PROTO_GetShiftState [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 13 01 00 [15:47:05]Write to MH i2c: E2 08 00 E6 2C 80 13 01 00 00 00 00 00 8F [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 0E 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 0E 00 E6 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5A [15:47:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:47:05]wFMCommunicate OK [15:47:05]SAM_PROTO_GetShiftState done [15:47:05]FM_GetShiftState done [15:47:05]req_shift_opened done [15:47:05]requested_item shift.open_date is exist - process it [15:47:05]req_shift_open_date [15:47:05]req_shift_open_date done [15:47:05]produce_requested_data done [15:47:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166797,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:47:05]process_action_free close_receipt [15:47:05]json_value_free [15:47:05]json_value_free done [15:47:05]process_json_proto returns [15:47:05]Send response to host [15:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166797,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:47:05]free response buf [15:47:05]execute_script done [15:47:05]execute_script returns [15:47:05]free content buf [15:47:05]Sock 8.Close socket [15:47:05]Sock 8.Thread stoped [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:03]accept exits with 9 [15:49:03]New connection [15:49:03]New thread 3067034980 created [15:49:03]Thread 3067178340 joined [15:49:03]Waiting for new connection... [15:49:03] Sock 9.Parse request [15:49:03]Sock 9.Check first char [15:49:03]Sock 9.First char is OK [15:49:03]request: POST /json_proto HTTP/1.0 [15:49:03]Method: POST [15:49:03]URL: /json_proto [15:49:03]Method is POST - this is cgi request [15:49:03]url: /json_proto [15:49:03]query_string will be loaded in cgi processing [15:49:03]execute_cgi json_proto POST (null) [15:49:03]execute_cgi path=json_proto method=POST [15:49:03]POST find Content-Length [15:49:03]Host: 172.17.53.195:8080 [15:49:03]Content-Length: 766 [15:49:03]Content-Type: application/json [15:49:03] [15:49:03]POST finish read [15:49:03]Found Content-Length = 766 [15:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:03]execute_script... [15:49: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)221383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:03]POST & json_proto [15:49:03]process_json_proto [15:49:03]json parsed OK: [15:49:03]protocol is kg_v1.0 [15:49:03]action value=close_receipt [15:49:03]process_action close_receipt [15:49:03]cmd_close_receipt [15:49:03]MH_GetDate [15:49:03]Write to MH i2c: F0 00 00 E7 2C 02 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: F0 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: F0 09 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: F0 09 00 E7 2C 00 F1 1A 19 67 21 48 4A 65 AE [15:49:03]GetLastDocTimeStamp 1729698423 [15:49:03]current date 1729698545 [15:49:03]FM_GetShiftState [15:49:03]SAM_PROTO_GetShiftState [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 01 00 [15:49:03]Write to MH i2c: E2 08 00 E8 2C 80 13 01 00 00 00 00 00 91 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 E8 2C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [15:49:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetShiftState done [15:49:03]FM_GetShiftState done [15:49:03]opened in 1729643772 [15:49:03]opened+sec_in_day 1729730172 [15:49:03]quantity*price = 70044 [15:49:03]sum+1 = 70046 [15:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 213 23.10.2024 15:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166798 ФПД: 121546206857415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154905&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166798&fm=121546206857415&tin=02508201610067®Number=0000000000091764&sum=70045 [15:49:04]StoreToDocumentArchive [15:49:04]shift 537 fd 166798 [15:49:04]save to /storage/0537/doc_00166798 [15:49:04]save last doc name /storage/0537/doc_00166798 to /storage/kkm_last_doc_name [15:49:04]save OK [15:49:04]Clear old archive folders... [15:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:04]tlvbuf is 01FCB530 [15:49:04]SAM_PROTO_ClearQueue [15:49:04]wFMCommunicate request_size=4 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 09 00 00 [15:49:04]Write to MH i2c: E2 08 00 F5 2C 80 09 00 00 00 00 00 00 93 [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:04]Read from MH i2c: E2 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 03 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [15:49:04]RAPDU: 90 00 [15:49:04]wFMCommunicate OK [15:49:04]SAM_PROTO_ClearQueue done [15:49:04]KKMCreateOFDPacket [15:49:04]OFDProtocolAddRootSTLVToBuf [15:49:04]FM_MakeSignedData [15:49:04]FM_MakeSignedData [15:49:04]SAM_PROTO_SignData [15:49:04]wFMCommunicate request_size=4 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 0D 01 02 [15:49:04]Write to MH i2c: E2 08 00 F6 2C 80 0D 01 02 00 00 00 00 9B [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:04]Read from MH i2c: E2 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 03 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [15:49:04]RAPDU: 90 00 [15:49:04]wFMCommunicate OK [15:49:04]wFMCommunicate request_size=255 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 F1 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8B 02 00 35 04 06 00 6E [15:49:04]Write to MH i2c: E2 02 01 F7 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 F1 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8B 02 00 35 04 06 00 6E 00 00 76 [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 03 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [15:49:05]RAPDU: 90 00 [15:49:05]wFMCommunicate OK [15:49:05]wFMCommunicate request_size=10 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 0D 02 02 05 8B AE 7B C8 C7 [15:49:05]Write to MH i2c: E2 0D 00 F8 2C 80 0D 02 02 05 00 8B AE 7B C8 C7 00 00 EB [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 03 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [15:49:05]RAPDU: 90 00 [15:49:05]wFMCommunicate OK [15:49:05]wFMCommunicate request_size=4 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 0D 03 02 [15:49:05]Write to MH i2c: E2 08 00 F9 2C 80 0D 03 02 00 00 00 00 A0 [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 0B 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 0B 00 F9 2C 00 78 CD 77 82 CF 68 D6 25 90 00 11 [15:49:05]RAPDU: 78 CD 77 82 CF 68 D6 25 90 00 [15:49:05]wFMCommunicate OK [15:49:05]SAM_PROTO_SignData done [15:49:05]FM_MakeSignedData done [15:49:05]CreateOFDProtocolMessage [15:49:05]wFMCommunicate request_size=4 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 11 00 00 [15:49:05]Write to MH i2c: E2 08 00 FA 2C 80 11 00 00 00 00 00 00 A0 [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 17 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 17 00 FA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [15:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:49:05]wFMCommunicate OK [15:49:05]CreateOFDProtocolMessage done [15:49:05]OFDSenderStorePacket 166798 [15:49:05]StoreOFDPacket docnum=166798 [15:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 42 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 F1 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8B 02 00 35 04 06 00 6E 8B AE 7B C8 C7 78 CD 77 82 CF 68 D6 25 [15:49:05]CheckFolder [15:49:05]dirname=/storage/ofd_packets [15:49:05]CheckFolder done [15:49:05]ProducePacketName [15:49:05]name=ofd_packets/00166798 [15:49:05]NVStorageSaveData ofd_packets/00166798 [15:49:05]File name is /storage/ofd_packets/00166798 [15:49:05]Write 301 bytes [15:49:05]NVStorageSaveData done [15:49:05]OFDSenderStorePacket done [15:49:05]KKMCreateOFDPacket done [15:49:05]NVStorageSaveData kkm_last_timestamp [15:49:05]File name is /storage/kkm_last_timestamp [15:49:05]Write 4 bytes [15:49:05]NVStorageSaveData done [15:49:05]ExternCall_PrintAddStr [15:49:05]wPrintStart [15:49:05]Write to MH i2c: 01 00 00 FB 2C 27 [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: 01 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: 01 07 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: 01 07 00 FB 2C 00 00 00 00 00 FF 0F 3C [15:49:05]RasterBufferAndPrint [15:49:05]line Счет N : (1)221383 [15:49:05]line ИНН: 02508201610067 [15:49:05]line Контрольно-Кассовый Чек [15:49:05]line ПРОДАЖА [15:49:05]line ТРК (МРК, ГНК) : 44 [15:49:05]line Товар: 2710124500 [15:49:05]line Аи-95-К-5 [15:49:05]line 9.440 * 74.20 [15:49:05]line = 700.45 [15:49:05]line НДС 12% НСП 1% [15:49:05]line > о реализуемом товаре [15:49:05]line ИТОГО: 700.45 [15:49:05]line НСП 1% : 6.20 [15:49:05]line НДС 12% : 74.38 [15:49:05]line Наличными: 0.00 [15:49:05]line Безнал.: 700.45 [15:49:05]line Место: АЗС № 161 "Партнер Нефть" [15:49:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:49:05]line СНО: Общий режим [15:49:05]line Чек 213 23.10.2024 15:49 [15:49:05]line Смена: 537 ФФД: 1.0 [15:49:05]line ЗНМ: 0300000104 [15:49:05]line РНМ: 0000000000091764 [15:49:05]line Версия ККМ: 001 [15:49:05]line Платежная система: Mbank [15:49:05]line ФМ: 0000000000871759 [15:49:05]line ФД: 166798 [15:49:05]line ФПД: 121546206857415 [15:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154905&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166798&fm=121546206857415&tin=02508201610067®Number=0000000000091764&sum=70045 [15:49:05]OFD Sender: Processing packet 166798 [packets to send 48, broken 47] [15:49:05]ProducePacketName [15:49:05]name=ofd_packets/00166798 [15:49:05]OFD Sender: To server: pG, [15:49:05]CommunicateWithHost lk.salyk.kg:30040 [15:49:05]ConnectInit lk.salyk.kg [15:49:05]written 0, free lines is 4095 [15:49:05]Connected sock=10 [15:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 42 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 F1 1A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8B 02 00 35 04 06 00 6E 8B AE 7B C8 C7 78 CD 77 82 CF 68 D6 25 [15:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 EB 47 00 53 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8B 02 00 F4 03 04 00 58 C1 18 67 B6 04 01 00 00 80 B8 ED 97 A5 B5 B0 47 [15:49:05]CommunicateWithHost err = 0 [15:49:05]CheckOFDResponse [15:49:05]1017 (14) - 77093643461234 [15:49:05]1041 (16) - 0000000000871759 [15:49:05]1040 (4) - 166798 [15:49:05]1012 (4) - 23.10.2024 09:26 [15:49:05]1206 (1) - 0 [15:49:05]OFD Sender: Remove packet 166798 [15:49:05]ProducePacketName [15:49:05]name=ofd_packets/00166798 [15:49:05]NVStorageDeleteData [15:49:06]Write to MH i2c: 01 00 00 24 2D 51 [15:49:06]Write i2c OK [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: 01 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: 01 07 00 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 E1 0C 45 [15:49:06]RasterBufferAndPrint [15:49:06]line [15:49:06]line [15:49:06]line [15:49:06]line [15:49:06]line [15:49:06]written 0, free lines is 3303 [15:49:06]MH_Cut [15:49:06]Write to MH i2c: D1 01 00 2B 2D 01 2A [15:49:06]Write i2c OK [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: D1 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: D1 01 00 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: D1 01 00 2B 2D 00 29 [15:49:06]Write to MH i2c: 01 00 00 2C 2D 59 [15:49:06]Write i2c OK [15:49:06]MH_I2C_Read... [15:49:06]OFD Sender: No OFD packet to send [15:49:06]*** Cut start [15:49:06]*** Partial cut [15:49:06]*** CUTSNS_PIN = 1 [15:49:06]*** CUTSNS_PIN = 0 [15:49:07]*** Brake cut motor [15:49:07]Read from MH i2c: 01 [15:49:07]MH_I2C_Read... [15:49:07]*** Stop cut motor [15:49:07]*** Cut end [15:49:07]Read from MH i2c: 01 07 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: 01 07 00 2C 2D 00 00 00 00 00 FF 0F 6E [15:49:07]process_action close_receipt done [15:49:07]requested_data is exist [15:49:07]produce_requested_data [15:49:07]requested_item fm.sn is exist - process it [15:49:07]wFMCommunicate request_size=4 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 11 00 00 [15:49:07]Write to MH i2c: E2 08 00 2D 2D 80 11 00 00 00 00 00 00 D4 [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:07]Read from MH i2c: E2 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 17 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 17 00 2D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [15:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:49:07]wFMCommunicate OK [15:49:07]requested_item fd.num is exist - process it [15:49:07]SAM_PROTO_GetFieldsCounters [15:49:07]wFMCommunicate request_size=4 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 13 00 00 [15:49:07]Write to MH i2c: E2 08 00 2E 2D 80 13 00 00 00 00 00 00 D7 [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:07]Read from MH i2c: E2 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 62 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 62 00 2E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:07]wFMCommunicate OK [15:49:07]SAM_PROTO_GetFieldsCounters done [15:49:07]requested_item shift.num is exist - process it [15:49:07]requested_item shift.opened is exist - process it [15:49:07]req_shift_opened [15:49:07]FM_GetShiftState [15:49:07]SAM_PROTO_GetShiftState [15:49:07]wFMCommunicate request_size=4 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 13 01 00 [15:49:07]Write to MH i2c: E2 08 00 2F 2D 80 13 01 00 00 00 00 00 D9 [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:07]Read from MH i2c: E2 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 0E 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 0E 00 2F 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A4 [15:49:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [15:49:07]wFMCommunicate OK [15:49:07]SAM_PROTO_GetShiftState done [15:49:07]FM_GetShiftState done [15:49:07]req_shift_opened done [15:49:07]requested_item shift.open_date is exist - process it [15:49:07]req_shift_open_date [15:49:07]req_shift_open_date done [15:49:07]produce_requested_data done [15:49:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166798,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [15:49:07]process_action_free close_receipt [15:49:07]json_value_free [15:49:07]json_value_free done [15:49:07]process_json_proto returns [15:49:07]Send response to host [15:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166798,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [15:49:07]free response buf [15:49:07]execute_script done [15:49:07]execute_script returns [15:49:07]free content buf [15:49:07]Sock 9.Close socket [15:49:07]Sock 9.Thread stoped [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:08]accept exits with 8 [16:00:08]New connection [16:00:08]New thread 3067178340 created [16:00:08]Thread 3067034980 joined [16:00:08]Waiting for new connection... [16:00:08] Sock 8.Parse request [16:00:08]Sock 8.Check first char [16:00:08]Sock 8.First char is OK [16:00:08]request: POST /json_proto HTTP/1.0 [16:00:08]Method: POST [16:00:08]URL: /json_proto [16:00:08]Method is POST - this is cgi request [16:00:08]url: /json_proto [16:00:08]query_string will be loaded in cgi processing [16:00:08]execute_cgi json_proto POST (null) [16:00:08]execute_cgi path=json_proto method=POST [16:00:08]POST find Content-Length [16:00:08]Host: 172.17.53.195:8080 [16:00:08]Content-Length: 767 [16:00:08]Content-Type: application/json [16:00:08] [16:00:08]POST finish read [16:00:08]Found Content-Length = 767 [16:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:08]execute_script... [16:00: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)221384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:08]POST & json_proto [16:00:08]process_json_proto [16:00:08]json parsed OK: [16:00:08]protocol is kg_v1.0 [16:00:08]action value=close_receipt [16:00:08]process_action close_receipt [16:00:08]cmd_close_receipt [16:00:08]MH_GetDate [16:00:08]Write to MH i2c: F0 00 00 30 2D 4C [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 09 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: F0 09 00 30 2D 00 8A 1D 19 67 21 48 4A 65 94 [16:00:08]GetLastDocTimeStamp 1729698545 [16:00:08]current date 1729699210 [16:00:08]FM_GetShiftState [16:00:08]SAM_PROTO_GetShiftState [16:00:08]wFMCommunicate request_size=4 [16:00:08]MH_SAM_APDU [16:00:08]CAPDU: 80 13 01 00 [16:00:08]Write to MH i2c: E2 08 00 31 2D 80 13 01 00 00 00 00 00 DB [16:00:08]Write i2c OK [16:00:08]MH_I2C_Read... [16:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:08]Read from MH i2c: E2 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 0E 00 [16:00:08]MH_I2C_Read... [16:00:08]Read from MH i2c: E2 0E 00 31 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A6 [16:00:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:00:08]wFMCommunicate OK [16:00:08]SAM_PROTO_GetShiftState done [16:00:08]FM_GetShiftState done [16:00:08]opened in 1729643772 [16:00:08]opened+sec_in_day 1729730172 [16:00:08]quantity*price = 70044 [16:00:08]sum+1 = 70045 [16:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 214 23.10.2024 16:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166799 ФПД: 123318206515779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166799&fm=123318206515779&tin=02508201610067®Number=0000000000091764&sum=70044 [16:00:09]StoreToDocumentArchive [16:00:09]shift 537 fd 166799 [16:00:09]save to /storage/0537/doc_00166799 [16:00:09]save last doc name /storage/0537/doc_00166799 to /storage/kkm_last_doc_name [16:00:09]save OK [16:00:09]Clear old archive folders... [16:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:09]tlvbuf is 0201B230 [16:00:09]SAM_PROTO_ClearQueue [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 09 00 00 [16:00:09]Write to MH i2c: E2 08 00 3E 2D 80 09 00 00 00 00 00 00 DD [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_ClearQueue done [16:00:09]KKMCreateOFDPacket [16:00:09]OFDProtocolAddRootSTLVToBuf [16:00:09]FM_MakeSignedData [16:00:09]FM_MakeSignedData [16:00:09]SAM_PROTO_SignData [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 0D 01 02 [16:00:09]Write to MH i2c: E2 08 00 3F 2D 80 0D 01 02 00 00 00 00 E5 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [16:00:09]RAPDU: 90 00 [16:00:09]wFMCommunicate OK [16:00:09]wFMCommunicate request_size=255 [16:00:09]MH_SAM_APDU [16:00: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 8A 1D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8B 02 00 35 04 06 00 70 [16:00:09]Write to MH i2c: E2 02 01 40 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 8A 1D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8B 02 00 35 04 06 00 70 00 00 87 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:10]Read from MH i2c: E2 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 03 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [16:00:10]RAPDU: 90 00 [16:00:10]wFMCommunicate OK [16:00:10]wFMCommunicate request_size=10 [16:00:10]MH_SAM_APDU [16:00:10]CAPDU: 80 0D 02 02 05 28 41 E4 CA 43 [16:00:10]Write to MH i2c: E2 0D 00 41 2D 80 0D 02 02 05 00 28 41 E4 CA 43 00 00 4C [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:10]Read from MH i2c: E2 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 03 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [16:00:10]RAPDU: 90 00 [16:00:10]wFMCommunicate OK [16:00:10]wFMCommunicate request_size=4 [16:00:10]MH_SAM_APDU [16:00:10]CAPDU: 80 0D 03 02 [16:00:10]Write to MH i2c: E2 08 00 42 2D 80 0D 03 02 00 00 00 00 EA [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:10]Read from MH i2c: E2 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 0B 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 0B 00 42 2D 00 23 0E 0E D6 0B 01 22 6A 90 00 98 [16:00:10]RAPDU: 23 0E 0E D6 0B 01 22 6A 90 00 [16:00:10]wFMCommunicate OK [16:00:10]SAM_PROTO_SignData done [16:00:10]FM_MakeSignedData done [16:00:10]CreateOFDProtocolMessage [16:00:10]wFMCommunicate request_size=4 [16:00:10]MH_SAM_APDU [16:00:10]CAPDU: 80 11 00 00 [16:00:10]Write to MH i2c: E2 08 00 43 2D 80 11 00 00 00 00 00 00 EA [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:10]Read from MH i2c: E2 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 17 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 17 00 43 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [16:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:00:10]wFMCommunicate OK [16:00:10]CreateOFDProtocolMessage done [16:00:10]OFDSenderStorePacket 166799 [16:00:10]StoreOFDPacket docnum=166799 [16:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 66 07 01 9F 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 8A 1D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8B 02 00 35 04 06 00 70 28 41 E4 CA 43 23 0E 0E D6 0B 01 22 6A [16:00:10]CheckFolder [16:00:10]dirname=/storage/ofd_packets [16:00:10]CheckFolder done [16:00:10]ProducePacketName [16:00:10]name=ofd_packets/00166799 [16:00:10]NVStorageSaveData ofd_packets/00166799 [16:00:10]File name is /storage/ofd_packets/00166799 [16:00:10]Write 301 bytes [16:00:10]NVStorageSaveData done [16:00:10]OFDSenderStorePacket done [16:00:10]KKMCreateOFDPacket done [16:00:10]NVStorageSaveData kkm_last_timestamp [16:00:10]File name is /storage/kkm_last_timestamp [16:00:10]Write 4 bytes [16:00:10]NVStorageSaveData done [16:00:10]ExternCall_PrintAddStr [16:00:10]wPrintStart [16:00:10]Write to MH i2c: 01 00 00 44 2D 71 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 FF 0F 86 [16:00:10]RasterBufferAndPrint [16:00:10]line Счет N : (1)221384 [16:00:10]line ИНН: 02508201610067 [16:00:10]line Контрольно-Кассовый Чек [16:00:10]line ПРОДАЖА [16:00:10]line ТРК (МРК, ГНК) : 43 [16:00:10]line Товар: 2710124130 [16:00:10]line Аи-92-К-5 [16:00:10]line 10.470 * 66.90 [16:00:10]line = 700.44 [16:00:10]line НДС 12% НСП 1% [16:00:10]line > о реализуемом товаре [16:00:10]line ИТОГО: 700.44 [16:00:10]line НСП 1% : 6.20 [16:00:10]line НДС 12% : 74.38 [16:00:10]line Наличными: 0.00 [16:00:10]line Безнал.: 700.44 [16:00:10]line Место: АЗС № 161 "Партнер Нефть" [16:00:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:00:10]line СНО: Общий режим [16:00:10]line Чек 214 23.10.2024 16:00 [16:00:10]line Смена: 537 ФФД: 1.0 [16:00:10]line ЗНМ: 0300000104 [16:00:10]line РНМ: 0000000000091764 [16:00:10]line Версия ККМ: 001 [16:00:10]line Платежная система: Mbank [16:00:10]line ФМ: 0000000000871759 [16:00:10]line ФД: 166799 [16:00:10]line ФПД: 123318206515779 [16:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166799&fm=123318206515779&tin=02508201610067®Number=0000000000091764&sum=70044 [16:00:10]written 0, free lines is 4095 [16:00:10]OFD Sender: Processing packet 166799 [packets to send 48, broken 47] [16:00:10]ProducePacketName [16:00:10]name=ofd_packets/00166799 [16:00:10]OFD Sender: To server: pG, [16:00:10]CommunicateWithHost lk.salyk.kg:30040 [16:00:10]ConnectInit lk.salyk.kg [16:00:10]Connected sock=10 [16:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 66 07 01 9F 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 8A 1D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8B 02 00 35 04 06 00 70 28 41 E4 CA 43 23 0E 0E D6 0B 01 22 6A [16:00:10]Write to MH i2c: 01 00 00 6D 2D 9A [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: 01 07 00 6D 2D 00 00 00 00 00 03 0D B1 [16:00:10]RasterBufferAndPrint [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]line [16:00:10]written 0, free lines is 3337 [16:00:10]MH_Cut [16:00:10]Write to MH i2c: D1 01 00 74 2D 01 73 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: D1 01 00 74 2D 00 72 [16:00:10]Write to MH i2c: 01 00 00 75 2D A2 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF B5 47 00 85 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8B 02 00 F4 03 04 00 F1 C3 18 67 B6 04 01 00 00 F9 57 12 15 2A 1A 62 A7 [16:00:10]CommunicateWithHost err = 0 [16:00:10]CheckOFDResponse [16:00:10]1017 (14) - 77093643461234 [16:00:10]1041 (16) - 0000000000871759 [16:00:10]1040 (4) - 166799 [16:00:10]1012 (4) - 23.10.2024 09:37 [16:00:10]1206 (1) - 0 [16:00:10]OFD Sender: Remove packet 166799 [16:00:10]ProducePacketName [16:00:10]name=ofd_packets/00166799 [16:00:10]NVStorageDeleteData [16:00:11]OFD Sender: No OFD packet to send [16:00:11]*** Cut start [16:00:11]*** Partial cut [16:00:11]*** CUTSNS_PIN = 1 [16:00:11]*** CUTSNS_PIN = 0 [16:00:11]*** Brake cut motor [16:00:12]Read from MH i2c: 01 [16:00:12]MH_I2C_Read... [16:00:12]*** Stop cut motor [16:00:12]*** Cut end [16:00:12]Read from MH i2c: 01 07 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 75 2D 00 00 00 00 00 FF 0F B7 [16:00:12]process_action close_receipt done [16:00:12]requested_data is exist [16:00:12]produce_requested_data [16:00:12]requested_item fm.sn is exist - process it [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 11 00 00 [16:00:12]Write to MH i2c: E2 08 00 76 2D 80 11 00 00 00 00 00 00 1D [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 76 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [16:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:00:12]wFMCommunicate OK [16:00:12]requested_item fd.num is exist - process it [16:00:12]SAM_PROTO_GetFieldsCounters [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 13 00 00 [16:00:12]Write to MH i2c: E2 08 00 77 2D 80 13 00 00 00 00 00 00 20 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 62 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 62 00 77 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [16:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:12]wFMCommunicate OK [16:00:12]SAM_PROTO_GetFieldsCounters done [16:00:12]requested_item shift.num is exist - process it [16:00:12]requested_item shift.opened is exist - process it [16:00:12]req_shift_opened [16:00:12]FM_GetShiftState [16:00:12]SAM_PROTO_GetShiftState [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 13 01 00 [16:00:12]Write to MH i2c: E2 08 00 78 2D 80 13 01 00 00 00 00 00 22 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 0E 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 0E 00 78 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 ED [16:00:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:00:12]wFMCommunicate OK [16:00:12]SAM_PROTO_GetShiftState done [16:00:12]FM_GetShiftState done [16:00:12]req_shift_opened done [16:00:12]requested_item shift.open_date is exist - process it [16:00:12]req_shift_open_date [16:00:12]req_shift_open_date done [16:00:12]produce_requested_data done [16:00:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166799,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:00:12]process_action_free close_receipt [16:00:12]json_value_free [16:00:12]json_value_free done [16:00:12]process_json_proto returns [16:00:12]Send response to host [16:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166799,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:00:12]free response buf [16:00:12]execute_script done [16:00:12]execute_script returns [16:00:12]free content buf [16:00:12]Sock 8.Close socket [16:00:12]Sock 8.Thread stoped [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:28]accept exits with 9 [16:03:28]New connection [16:03:28]New thread 3067034980 created [16:03:28]Thread 3067178340 joined [16:03:28]Waiting for new connection... [16:03:28] Sock 9.Parse request [16:03:28]Sock 9.Check first char [16:03:28]Sock 9.First char is OK [16:03:28]request: POST /json_proto HTTP/1.0 [16:03:28]Method: POST [16:03:28]URL: /json_proto [16:03:28]Method is POST - this is cgi request [16:03:28]url: /json_proto [16:03:28]query_string will be loaded in cgi processing [16:03:28]execute_cgi json_proto POST (null) [16:03:28]execute_cgi path=json_proto method=POST [16:03:28]POST find Content-Length [16:03:28]Host: 172.17.53.195:8080 [16:03:28]Content-Length: 769 [16:03:28]Content-Type: application/json [16:03:28] [16:03:28]POST finish read [16:03:28]Found Content-Length = 769 [16:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.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: Mbank", "payments": [ { "type": 1, "sum" : 1600.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:28]execute_script... [16:03: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)221385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.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: Mbank", "payments": [ { "type": 1, "sum" : 1600.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:28]POST & json_proto [16:03:28]process_json_proto [16:03:28]json parsed OK: [16:03:28]protocol is kg_v1.0 [16:03:28]action value=close_receipt [16:03:28]process_action close_receipt [16:03:28]cmd_close_receipt [16:03:28]MH_GetDate [16:03:28]Write to MH i2c: F0 00 00 79 2D 95 [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: F0 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: F0 09 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: F0 09 00 79 2D 00 52 1E 19 67 21 48 4A 65 A6 [16:03:28]GetLastDocTimeStamp 1729699210 [16:03:28]current date 1729699410 [16:03:28]FM_GetShiftState [16:03:28]SAM_PROTO_GetShiftState [16:03:28]wFMCommunicate request_size=4 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 13 01 00 [16:03:28]Write to MH i2c: E2 08 00 7A 2D 80 13 01 00 00 00 00 00 24 [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:28]Read from MH i2c: E2 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 0E 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 0E 00 7A 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EF [16:03:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:03:28]wFMCommunicate OK [16:03:28]SAM_PROTO_GetShiftState done [16:03:28]FM_GetShiftState done [16:03:28]opened in 1729643772 [16:03:28]opened+sec_in_day 1729730172 [16:03:28]quantity*price = 160049 [16:03:28]sum+1 = 160050 [16:03:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.49 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 0.00 Безнал.: 1600.49 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 215 23.10.2024 16:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166800 ФПД: 281056166029072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166800&fm=281056166029072&tin=02508201610067®Number=0000000000091764&sum=160049 [16:03:29]StoreToDocumentArchive [16:03:29]shift 537 fd 166800 [16:03:29]save to /storage/0537/doc_00166800 [16:03:29]save last doc name /storage/0537/doc_00166800 to /storage/kkm_last_doc_name [16:03:29]save OK [16:03:29]Clear old archive folders... [16:03:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:29]tlvbuf is 02024470 [16:03:29]SAM_PROTO_ClearQueue [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 09 00 00 [16:03:29]Write to MH i2c: E2 08 00 87 2D 80 09 00 00 00 00 00 00 26 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 87 2D 00 90 00 28 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]SAM_PROTO_ClearQueue done [16:03:29]KKMCreateOFDPacket [16:03:29]OFDProtocolAddRootSTLVToBuf [16:03:29]FM_MakeSignedData [16:03:29]FM_MakeSignedData [16:03:29]SAM_PROTO_SignData [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 01 02 [16:03:29]Write to MH i2c: E2 08 00 88 2D 80 0D 01 02 00 00 00 00 2E [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 88 2D 00 90 00 29 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=255 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 31 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 00 00 00 00 00 39 04 06 00 31 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 52 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8B 02 00 35 04 06 00 FF [16:03:29]Write to MH i2c: E2 02 01 89 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 31 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 00 00 00 00 00 39 04 06 00 31 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 52 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8B 02 00 35 04 06 00 FF 00 00 0E [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 89 2D 00 90 00 2A [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]wFMCommunicate request_size=10 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 0D 02 02 05 9E 7C F0 27 10 [16:03:30]Write to MH i2c: E2 0D 00 8A 2D 80 0D 02 02 05 00 9E 7C F0 27 10 00 00 7C [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [16:03:30]RAPDU: 90 00 [16:03:30]wFMCommunicate OK [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 0D 03 02 [16:03:30]Write to MH i2c: E2 08 00 8B 2D 80 0D 03 02 00 00 00 00 33 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0B 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0B 00 8B 2D 00 B7 D3 37 ED FA 51 AB 65 90 00 3D [16:03:30]RAPDU: B7 D3 37 ED FA 51 AB 65 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_SignData done [16:03:30]FM_MakeSignedData done [16:03:30]CreateOFDProtocolMessage [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 11 00 00 [16:03:30]Write to MH i2c: E2 08 00 8C 2D 80 11 00 00 00 00 00 00 33 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 17 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 17 00 8C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [16:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:03:30]wFMCommunicate OK [16:03:30]CreateOFDProtocolMessage done [16:03:30]OFDSenderStorePacket 166800 [16:03:30]StoreOFDPacket docnum=166800 [16:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 CD 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 31 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 00 00 00 00 00 39 04 06 00 31 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 52 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8B 02 00 35 04 06 00 FF 9E 7C F0 27 10 B7 D3 37 ED FA 51 AB 65 [16:03:30]CheckFolder [16:03:30]dirname=/storage/ofd_packets [16:03:30]CheckFolder done [16:03:30]ProducePacketName [16:03:30]name=ofd_packets/00166800 [16:03:30]NVStorageSaveData ofd_packets/00166800 [16:03:30]File name is /storage/ofd_packets/00166800 [16:03:30]Write 301 bytes [16:03:30]NVStorageSaveData done [16:03:30]OFDSenderStorePacket done [16:03:30]KKMCreateOFDPacket done [16:03:30]NVStorageSaveData kkm_last_timestamp [16:03:30]File name is /storage/kkm_last_timestamp [16:03:30]Write 4 bytes [16:03:30]NVStorageSaveData done [16:03:30]ExternCall_PrintAddStr [16:03:30]wPrintStart [16:03:30]Write to MH i2c: 01 00 00 8D 2D BA [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 8D 2D 00 00 00 00 00 FF 0F CF [16:03:30]RasterBufferAndPrint [16:03:30]line Счет N : (1)221385 [16:03:30]line ИНН: 02508201610067 [16:03:30]line Контрольно-Кассовый Чек [16:03:30]line ПРОДАЖА [16:03:30]line ТРК (МРК, ГНК) : 14 [16:03:30]line Товар: 2710124500 [16:03:30]line Аи-95-К-5 [16:03:30]line 21.570 * 74.20 [16:03:30]line = 1600.49 [16:03:30]line НДС 12% НСП 1% [16:03:30]line > о реализуемом товаре [16:03:30]line ИТОГО: 1600.49 [16:03:30]line НСП 1% : 14.16 [16:03:30]line НДС 12% : 169.96 [16:03:30]line Наличными: 0.00 [16:03:30]line Безнал.: 1600.49 [16:03:30]line Место: АЗС № 161 "Партнер Нефть" [16:03:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:03:30]line СНО: Общий режим [16:03:30]line Чек 215 23.10.2024 16:03 [16:03:30]line Смена: 537 ФФД: 1.0 [16:03:30]line ЗНМ: 0300000104 [16:03:30]line РНМ: 0000000000091764 [16:03:30]line Версия ККМ: 001 [16:03:30]line Платежная система: Mbank [16:03:30]line ФМ: 0000000000871759 [16:03:30]line ФД: 166800 [16:03:30]line ФПД: 281056166029072 [16:03:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166800&fm=281056166029072&tin=02508201610067®Number=0000000000091764&sum=160049 [16:03:30]written 0, free lines is 4095 [16:03:30]OFD Sender: Processing packet 166800 [packets to send 48, broken 47] [16:03:30]ProducePacketName [16:03:30]name=ofd_packets/00166800 [16:03:30]OFD Sender: To server: pG, [16:03:30]CommunicateWithHost lk.salyk.kg:30040 [16:03:30]ConnectInit lk.salyk.kg [16:03:30]Connected sock=8 [16:03:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 CD 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 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 31 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 00 00 00 00 00 39 04 06 00 31 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 52 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8B 02 00 35 04 06 00 FF 9E 7C F0 27 10 B7 D3 37 ED FA 51 AB 65 [16:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 4B 47 00 31 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8B 02 00 F4 03 04 00 B9 C4 18 67 B6 04 01 00 00 D7 62 52 A4 9B B0 2C 2C [16:03:31]CommunicateWithHost err = 0 [16:03:31]CheckOFDResponse [16:03:31]1017 (14) - 77093643461234 [16:03:31]1041 (16) - 0000000000871759 [16:03:31]1040 (4) - 166800 [16:03:31]1012 (4) - 23.10.2024 09:41 [16:03:31]1206 (1) - 0 [16:03:31]OFD Sender: Remove packet 166800 [16:03:31]ProducePacketName [16:03:31]name=ofd_packets/00166800 [16:03:31]NVStorageDeleteData [16:03:31]Write to MH i2c: 01 00 00 B6 2D E3 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 B6 2D 00 00 00 00 00 E6 0C DC [16:03:31]RasterBufferAndPrint [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]line [16:03:31]written 0, free lines is 3310 [16:03:31]MH_Cut [16:03:31]Write to MH i2c: D1 01 00 BD 2D 01 BC [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 01 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: D1 01 00 BD 2D 00 BB [16:03:31]Write to MH i2c: 01 00 00 BE 2D EB [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]OFD Sender: No OFD packet to send [16:03:32]*** Cut start [16:03:32]*** Partial cut [16:03:32]*** CUTSNS_PIN = 1 [16:03:32]*** CUTSNS_PIN = 0 [16:03:32]*** Brake cut motor [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]*** Stop cut motor [16:03:32]*** Cut end [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 BE 2D 00 00 00 00 00 FF 0F 00 [16:03:32]process_action close_receipt done [16:03:32]requested_data is exist [16:03:32]produce_requested_data [16:03:32]requested_item fm.sn is exist - process it [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 11 00 00 [16:03:32]Write to MH i2c: E2 08 00 BF 2D 80 11 00 00 00 00 00 00 66 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 BF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [16:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:03:32]wFMCommunicate OK [16:03:32]requested_item fd.num is exist - process it [16:03:32]SAM_PROTO_GetFieldsCounters [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 13 00 00 [16:03:32]Write to MH i2c: E2 08 00 C0 2D 80 13 00 00 00 00 00 00 69 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 62 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 62 00 C0 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [16:03:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_GetFieldsCounters done [16:03:32]requested_item shift.num is exist - process it [16:03:32]requested_item shift.opened is exist - process it [16:03:32]req_shift_opened [16:03:32]FM_GetShiftState [16:03:32]SAM_PROTO_GetShiftState [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 13 01 00 [16:03:32]Write to MH i2c: E2 08 00 C1 2D 80 13 01 00 00 00 00 00 6B [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0E 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0E 00 C1 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 36 [16:03:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_GetShiftState done [16:03:32]FM_GetShiftState done [16:03:32]req_shift_opened done [16:03:32]requested_item shift.open_date is exist - process it [16:03:32]req_shift_open_date [16:03:32]req_shift_open_date done [16:03:32]produce_requested_data done [16:03:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166800,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:03:32]process_action_free close_receipt [16:03:32]json_value_free [16:03:32]json_value_free done [16:03:32]process_json_proto returns [16:03:32]Send response to host [16:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166800,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:03:32]free response buf [16:03:32]execute_script done [16:03:32]execute_script returns [16:03:32]free content buf [16:03:32]Sock 9.Close socket [16:03:32]Sock 9.Thread stoped [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:23]accept exits with 10 [16:04:23]New connection [16:04:23]New thread 3067178340 created [16:04:23]Thread 3067034980 joined [16:04:23]Waiting for new connection... [16:04:23] Sock 10.Parse request [16:04:23]Sock 10.Check first char [16:04:23]Sock 10.First char is OK [16:04:23]request: POST /json_proto HTTP/1.0 [16:04:23]Method: POST [16:04:23]URL: /json_proto [16:04:23]Method is POST - this is cgi request [16:04:23]url: /json_proto [16:04:23]query_string will be loaded in cgi processing [16:04:23]execute_cgi json_proto POST (null) [16:04:23]execute_cgi path=json_proto method=POST [16:04:23]POST find Content-Length [16:04:23]Host: 172.17.53.195:8080 [16:04:23]Content-Length: 789 [16:04:23]Content-Type: application/json [16:04:23] [16:04:23]POST finish read [16:04:23]Found Content-Length = 789 [16:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]execute_script... [16:04: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)221386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]POST & json_proto [16:04:23]process_json_proto [16:04:23]json parsed OK: [16:04:23]protocol is kg_v1.0 [16:04:23]action value=close_receipt [16:04:23]process_action close_receipt [16:04:23]cmd_close_receipt [16:04:23]MH_GetDate [16:04:23]Write to MH i2c: F0 00 00 C2 2D DE [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 C2 2D 00 89 1E 19 67 21 48 4A 65 26 [16:04:23]GetLastDocTimeStamp 1729699410 [16:04:23]current date 1729699465 [16:04:23]FM_GetShiftState [16:04:23]SAM_PROTO_GetShiftState [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 13 01 00 [16:04:23]Write to MH i2c: E2 08 00 C3 2D 80 13 01 00 00 00 00 00 6D [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 C3 2D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 38 [16:04:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:04:23]wFMCommunicate OK [16:04:23]SAM_PROTO_GetShiftState done [16:04:23]FM_GetShiftState done [16:04:23]opened in 1729643772 [16:04:23]opened+sec_in_day 1729730172 [16:04:23]quantity*price = 0 [16:04:23]sum+1 = 1 [16:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 216 23.10.2024 16:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 00933 ФМ: 0000000000871759 ФД: 166801 ФПД: 5869450135494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160425&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166801&fm=5869450135494&tin=02508201610067®Number=0000000000091764&sum=0 [16:04:24]StoreToDocumentArchive [16:04:24]shift 537 fd 166801 [16:04:24]save to /storage/0537/doc_00166801 [16:04:24]save last doc name /storage/0537/doc_00166801 to /storage/kkm_last_doc_name [16:04:24]save OK [16:04:24]Clear old archive folders... [16:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:04:24]tlvbuf is 01FCB610 [16:04:24]SAM_PROTO_ClearQueue [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 09 00 00 [16:04:24]Write to MH i2c: E2 08 00 D0 2D 80 09 00 00 00 00 00 00 6F [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 D0 2D 00 90 00 71 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_ClearQueue done [16:04:24]KKMCreateOFDPacket [16:04:24]OFDProtocolAddRootSTLVToBuf [16:04:24]FM_MakeSignedData [16:04:24]FM_MakeSignedData [16:04:24]SAM_PROTO_SignData [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 01 02 [16:04:24]Write to MH i2c: E2 08 00 D1 2D 80 0D 01 02 00 00 00 00 77 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 D1 2D 00 90 00 72 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=255 [16:04:24]MH_SAM_APDU [16:04: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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 89 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8B 02 00 35 04 06 00 05 56 96 7D [16:04:24]Write to MH i2c: E2 02 01 D2 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 89 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8B 02 00 35 04 06 00 05 56 96 7D 00 00 EE [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 D2 2D 00 90 00 73 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=7 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 02 02 02 87 C6 [16:04:24]Write to MH i2c: E2 0A 00 D3 2D 80 0D 02 02 02 00 87 C6 00 00 CB [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 D3 2D 00 90 00 74 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 03 02 [16:04:24]Write to MH i2c: E2 08 00 D4 2D 80 0D 03 02 00 00 00 00 7C [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 D4 2D 00 43 22 50 04 92 24 38 B6 90 00 DA [16:04:24]RAPDU: 43 22 50 04 92 24 38 B6 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_SignData done [16:04:24]FM_MakeSignedData done [16:04:24]CreateOFDProtocolMessage [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 11 00 00 [16:04:24]Write to MH i2c: E2 08 00 D5 2D 80 11 00 00 00 00 00 00 7C [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 D5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [16:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:04:24]wFMCommunicate OK [16:04:24]CreateOFDProtocolMessage done [16:04:24]OFDSenderStorePacket 166801 [16:04:24]StoreOFDPacket docnum=166801 [16:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F3 B7 04 01 EB 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 89 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8B 02 00 35 04 06 00 05 56 96 7D 87 C6 43 22 50 04 92 24 38 B6 [16:04:24]CheckFolder [16:04:24]dirname=/storage/ofd_packets [16:04:24]CheckFolder done [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00166801 [16:04:24]NVStorageSaveData ofd_packets/00166801 [16:04:24]File name is /storage/ofd_packets/00166801 [16:04:24]Write 298 bytes [16:04:24]NVStorageSaveData done [16:04:24]OFDSenderStorePacket done [16:04:24]KKMCreateOFDPacket done [16:04:24]NVStorageSaveData kkm_last_timestamp [16:04:24]File name is /storage/kkm_last_timestamp [16:04:24]Write 4 bytes [16:04:24]NVStorageSaveData done [16:04:24]ExternCall_PrintAddStr [16:04:24]wPrintStart [16:04:24]Write to MH i2c: 01 00 00 D6 2D 03 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 D6 2D 00 00 00 00 00 FF 0F 18 [16:04:24]RasterBufferAndPrint [16:04:24]line Счет N : (1)221386 [16:04:24]line ИНН: 02508201610067 [16:04:24]line Контрольно-Кассовый Чек [16:04:24]line ПРОДАЖА [16:04:24]line ТРК (МРК, ГНК) : 21 [16:04:24]line Товар: 2710194210 [16:04:24]line ДТ-К-5 [16:04:24]line 39.380 * 0.00 [16:04:24]line = 0.00 [16:04:24]line НДС 12% НСП 1% [16:04:24]line > о реализуемом товаре [16:04:24]line ИТОГО: 0.00 [16:04:24]line НСП 1% : 0.00 [16:04:24]line НДС 12% : 0.00 [16:04:24]line Наличными: 0.00 [16:04:24]line Безнал.: 0.00 [16:04:24]line Место: АЗС № 161 "Партнер Нефть" [16:04:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:04:24]line СНО: Общий режим [16:04:24]line Чек 216 23.10.2024 16:04 [16:04:24]line Смена: 537 ФФД: 1.0 [16:04:24]line ЗНМ: 0300000104 [16:04:24]line РНМ: 0000000000091764 [16:04:24]line Версия ККМ: 001 [16:04:24]line Талоны: Топливная Карта [16:04:24]line 00933 [16:04:24]line ФМ: 0000000000871759 [16:04:24]line ФД: 166801 [16:04:24]line ФПД: 5869450135494 [16:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160425&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166801&fm=5869450135494&tin=02508201610067®Number=0000000000091764&sum=0 [16:04:24]written 0, free lines is 4095 [16:04:25]OFD Sender: Processing packet 166801 [packets to send 48, broken 47] [16:04:25]ProducePacketName [16:04:25]name=ofd_packets/00166801 [16:04:25]OFD Sender: To server: pG, [16:04:25]CommunicateWithHost lk.salyk.kg:30040 [16:04:25]ConnectInit lk.salyk.kg [16:04:25]Connected sock=9 [16:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F3 B7 04 01 EB 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 89 1E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8B 02 00 35 04 06 00 05 56 96 7D 87 C6 43 22 50 04 92 24 38 B6 [16:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 33 DD 47 00 37 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8B 02 00 F4 03 04 00 F0 C4 18 67 B6 04 01 00 00 7E EA CC C4 58 BF 6C 44 [16:04:25]CommunicateWithHost err = 0 [16:04:25]CheckOFDResponse [16:04:25]1017 (14) - 77093643461234 [16:04:25]1041 (16) - 0000000000871759 [16:04:25]1040 (4) - 166801 [16:04:25]1012 (4) - 23.10.2024 09:42 [16:04:25]1206 (1) - 0 [16:04:25]OFD Sender: Remove packet 166801 [16:04:25]ProducePacketName [16:04:25]name=ofd_packets/00166801 [16:04:25]NVStorageDeleteData [16:04:25]Write to MH i2c: 01 00 00 00 2E 2E [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 00 2E 00 00 00 00 00 B8 0C F9 [16:04:25]RasterBufferAndPrint [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]written 0, free lines is 3260 [16:04:25]MH_Cut [16:04:25]Write to MH i2c: D1 01 00 07 2E 01 07 [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 07 2E 00 06 [16:04:25]Write to MH i2c: 01 00 00 08 2E 36 [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]OFD Sender: No OFD packet to send [16:04:26]*** Cut start [16:04:26]*** Partial cut [16:04:26]*** CUTSNS_PIN = 1 [16:04:26]*** CUTSNS_PIN = 0 [16:04:26]*** Brake cut motor [16:04:26]Read from MH i2c: 01 [16:04:26]MH_I2C_Read... [16:04:26]*** Stop cut motor [16:04:26]*** Cut end [16:04:26]Read from MH i2c: 01 07 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: 01 07 00 08 2E 00 00 00 00 00 FF 0F 4B [16:04:26]process_action close_receipt done [16:04:26]requested_data is exist [16:04:26]produce_requested_data [16:04:26]requested_item fm.sn is exist - process it [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 11 00 00 [16:04:26]Write to MH i2c: E2 08 00 09 2E 80 11 00 00 00 00 00 00 B1 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 09 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [16:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:04:26]wFMCommunicate OK [16:04:26]requested_item fd.num is exist - process it [16:04:26]SAM_PROTO_GetFieldsCounters [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 13 00 00 [16:04:26]Write to MH i2c: E2 08 00 0A 2E 80 13 00 00 00 00 00 00 B4 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 0A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetFieldsCounters done [16:04:27]requested_item shift.num is exist - process it [16:04:27]requested_item shift.opened is exist - process it [16:04:27]req_shift_opened [16:04:27]FM_GetShiftState [16:04:27]SAM_PROTO_GetShiftState [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 01 00 [16:04:27]Write to MH i2c: E2 08 00 0B 2E 80 13 01 00 00 00 00 00 B6 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 0B 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 81 [16:04:27]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetShiftState done [16:04:27]FM_GetShiftState done [16:04:27]req_shift_opened done [16:04:27]requested_item shift.open_date is exist - process it [16:04:27]req_shift_open_date [16:04:27]req_shift_open_date done [16:04:27]produce_requested_data done [16:04:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166801,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:04:27]process_action_free close_receipt [16:04:27]json_value_free [16:04:27]json_value_free done [16:04:27]process_json_proto returns [16:04:27]Send response to host [16:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166801,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:04:27]free response buf [16:04:27]execute_script done [16:04:27]execute_script returns [16:04:27]free content buf [16:04:27]Sock 10.Close socket [16:04:27]Sock 10.Thread stoped [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12: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:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:45]accept exits with 8 [16:13:45]New connection [16:13:45]New thread 3067034980 created [16:13:45]Thread 3067178340 joined [16:13:45]Waiting for new connection... [16:13:45] Sock 8.Parse request [16:13:45]Sock 8.Check first char [16:13:45]Sock 8.First char is OK [16:13:45]request: POST /json_proto HTTP/1.0 [16:13:45]Method: POST [16:13:45]URL: /json_proto [16:13:45]Method is POST - this is cgi request [16:13:45]url: /json_proto [16:13:45]query_string will be loaded in cgi processing [16:13:45]execute_cgi json_proto POST (null) [16:13:45]execute_cgi path=json_proto method=POST [16:13:45]POST find Content-Length [16:13:45]Host: 172.17.53.195:8080 [16:13:45]Content-Length: 679 [16:13:45]Content-Type: application/json [16:13:45] [16:13:45]POST finish read [16:13:45]Found Content-Length = 679 [16:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 51.370, "sum" : 3914.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3914.00, "payments": [ { "type": 0, "sum" : 3914.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]execute_script... [16: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)221387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 51.370, "sum" : 3914.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3914.00, "payments": [ { "type": 0, "sum" : 3914.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]POST & json_proto [16:13:45]process_json_proto [16:13:45]json parsed OK: [16:13:45]protocol is kg_v1.0 [16:13:45]action value=close_receipt [16:13:45]process_action close_receipt [16:13:45]cmd_close_receipt [16:13:45]MH_GetDate [16:13:45]Write to MH i2c: F0 00 00 0C 2E 29 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 0C 2E 00 BB 20 19 67 21 48 4A 65 A5 [16:13:45]GetLastDocTimeStamp 1729699465 [16:13:45]current date 1729700027 [16:13:45]FM_GetShiftState [16:13:45]SAM_PROTO_GetShiftState [16:13:45]wFMCommunicate request_size=4 [16:13:45]MH_SAM_APDU [16:13:45]CAPDU: 80 13 01 00 [16:13:45]Write to MH i2c: E2 08 00 0D 2E 80 13 01 00 00 00 00 00 B8 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 0D 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 83 [16:13:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:13:45]wFMCommunicate OK [16:13:45]SAM_PROTO_GetShiftState done [16:13:45]FM_GetShiftState done [16:13:45]opened in 1729643772 [16:13:45]opened+sec_in_day 1729730172 [16:13:45]quantity*price = 391439 [16:13:45]sum+1 = 391440 [16:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3914.00 Внесено: 4000.00 СДАЧА: 86.00 НСП 1% : 34.64 НДС 12% : 415.69 Наличными: 3914.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 217 23.10.2024 16:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166802 ФПД: 188009258415387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161347&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166802&fm=188009258415387&tin=02508201610067®Number=0000000000091764&sum=391400 [16:13:46]StoreToDocumentArchive [16:13:46]shift 537 fd 166802 [16:13:46]save to /storage/0537/doc_00166802 [16:13:46]save last doc name /storage/0537/doc_00166802 to /storage/kkm_last_doc_name [16:13:46]save OK [16:13:46]Clear old archive folders... [16:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:46]tlvbuf is 0201B170 [16:13:46]SAM_PROTO_ClearQueue [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 09 00 00 [16:13:46]Write to MH i2c: E2 08 00 1A 2E 80 09 00 00 00 00 00 00 BA [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 1A 2E 00 90 00 BC [16:13:46]RAPDU: 90 00 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_ClearQueue done [16:13:46]KKMCreateOFDPacket [16:13:46]OFDProtocolAddRootSTLVToBuf [16:13:46]FM_MakeSignedData [16:13:46]FM_MakeSignedData [16:13:46]SAM_PROTO_SignData [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 0D 01 02 [16:13:46]Write to MH i2c: E2 08 00 1B 2E 80 0D 01 02 00 00 00 00 C2 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 1B 2E 00 90 00 BD [16:13:46]RAPDU: 90 00 [16:13:46]wFMCommunicate OK [16:13:46]wFMCommunicate request_size=255 [16:13:46]MH_SAM_APDU [16: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 AA C8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0F F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 A2 00 00 00 00 07 04 06 00 E8 F8 05 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 BB 20 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8B 02 00 35 04 06 00 AA FE 51 0F [16:13:46]Write to MH i2c: E2 02 01 1C 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 AA C8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0F F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 A2 00 00 00 00 07 04 06 00 E8 F8 05 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 BB 20 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8B 02 00 35 04 06 00 AA FE 51 0F 00 00 5E [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 1C 2E 00 90 00 BE [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=7 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 02 02 02 F5 1B [16:13:47]Write to MH i2c: E2 0A 00 1D 2E 80 0D 02 02 02 00 F5 1B 00 00 D9 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 1D 2E 00 90 00 BF [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 03 02 [16:13:47]Write to MH i2c: E2 08 00 1E 2E 80 0D 03 02 00 00 00 00 C7 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 1E 2E 00 B8 09 65 E5 1D A1 DD D3 90 00 41 [16:13:47]RAPDU: B8 09 65 E5 1D A1 DD D3 90 00 [16:13:47]wFMCommunicate OK [16:13:47]SAM_PROTO_SignData done [16:13:47]FM_MakeSignedData done [16:13:47]CreateOFDProtocolMessage [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 11 00 00 [16:13:47]Write to MH i2c: E2 08 00 1F 2E 80 11 00 00 00 00 00 00 C7 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 1F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [16:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:47]wFMCommunicate OK [16:13:47]CreateOFDProtocolMessage done [16:13:47]OFDSenderStorePacket 166802 [16:13:47]StoreOFDPacket docnum=166802 [16:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A5 B4 04 01 43 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA C8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0F F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 A2 00 00 00 00 07 04 06 00 E8 F8 05 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 BB 20 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8B 02 00 35 04 06 00 AA FE 51 0F F5 1B B8 09 65 E5 1D A1 DD D3 [16:13:47]CheckFolder [16:13:47]dirname=/storage/ofd_packets [16:13:47]CheckFolder done [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00166802 [16:13:47]NVStorageSaveData ofd_packets/00166802 [16:13:47]File name is /storage/ofd_packets/00166802 [16:13:47]Write 298 bytes [16:13:47]NVStorageSaveData done [16:13:47]OFDSenderStorePacket done [16:13:47]KKMCreateOFDPacket done [16:13:47]NVStorageSaveData kkm_last_timestamp [16:13:47]File name is /storage/kkm_last_timestamp [16:13:47]Write 4 bytes [16:13:47]NVStorageSaveData done [16:13:47]ExternCall_PrintAddStr [16:13:47]wPrintStart [16:13:47]Write to MH i2c: 01 00 00 20 2E 4E [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 20 2E 00 00 00 00 00 FF 0F 63 [16:13:47]RasterBufferAndPrint [16:13:47]line Счет N : (1)221387 [16:13:47]line ИНН: 02508201610067 [16:13:47]line Контрольно-Кассовый Чек [16:13:47]line ПРОДАЖА [16:13:47]line ТРК (МРК, ГНК) : 41 [16:13:47]line Товар: 2710194210 [16:13:47]line ДТ-К-5 [16:13:47]line 51.370 * 76.20 [16:13:47]line = 3914.39 [16:13:47]line НДС 12% НСП 1% [16:13:47]line > о реализуемом товаре [16:13:47]line ОКРУГЛЕНИЕ: -0.39 [16:13:47]line ИТОГО: 3914.00 [16:13:47]line Внесено: 4000.00 [16:13:47]line СДАЧА: 86.00 [16:13:47]line НСП 1% : 34.64 [16:13:47]line НДС 12% : 415.69 [16:13:47]line Наличными: 3914.00 [16:13:47]line Безнал.: 0.00 [16:13:47]line Место: АЗС № 161 "Партнер Нефть" [16:13:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:13:47]line СНО: Общий режим [16:13:47]line Чек 217 23.10.2024 16:13 [16:13:47]line Смена: 537 ФФД: 1.0 [16:13:47]line ЗНМ: 0300000104 [16:13:47]line РНМ: 0000000000091764 [16:13:47]line Версия ККМ: 001 [16:13:47]line ФМ: 0000000000871759 [16:13:47]line ФД: 166802 [16:13:47]line ФПД: 188009258415387 [16:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161347&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166802&fm=188009258415387&tin=02508201610067®Number=0000000000091764&sum=391400 [16:13:47]OFD Sender: Processing packet 166802 [packets to send 48, broken 47] [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00166802 [16:13:47]OFD Sender: To server: pG, [16:13:47]CommunicateWithHost lk.salyk.kg:30040 [16:13:47]ConnectInit lk.salyk.kg [16:13:47]written 0, free lines is 4095 [16:13:47]Connected sock=10 [16: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 31 37 35 39 0C 01 00 00 A5 B4 04 01 43 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA C8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0F F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F8 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 A2 00 00 00 00 07 04 06 00 E8 F8 05 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 BB 20 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8B 02 00 35 04 06 00 AA FE 51 0F F5 1B B8 09 65 E5 1D A1 DD D3 [16:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF E8 47 00 EB 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8B 02 00 F4 03 04 00 22 C7 18 67 B6 04 01 00 00 6A 7D 29 B8 A7 BA B8 1E [16:13:47]CommunicateWithHost err = 0 [16:13:47]CheckOFDResponse [16:13:47]1017 (14) - 77093643461234 [16:13:47]1041 (16) - 0000000000871759 [16:13:47]1040 (4) - 166802 [16:13:47]1012 (4) - 23.10.2024 09:51 [16:13:47]1206 (1) - 0 [16:13:47]OFD Sender: Remove packet 166802 [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00166802 [16:13:47]NVStorageDeleteData [16:13:48]Write to MH i2c: 01 00 00 4B 2E 79 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 4B 2E 00 00 00 00 00 BC 0C 48 [16:13:48]RasterBufferAndPrint [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]written 0, free lines is 3267 [16:13:48]MH_Cut [16:13:48]Write to MH i2c: D1 01 00 52 2E 01 52 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 52 2E 00 51 [16:13:48]Write to MH i2c: 01 00 00 53 2E 81 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]OFD Sender: No OFD packet to send [16:13:48]*** Cut start [16:13:48]*** Partial cut [16:13:48]*** CUTSNS_PIN = 1 [16:13:49]*** CUTSNS_PIN = 0 [16:13:49]*** Brake cut motor [16:13:49]Read from MH i2c: 01 [16:13:49]MH_I2C_Read... [16:13:49]*** Stop cut motor [16:13:49]*** Cut end [16:13:49]Read from MH i2c: 01 07 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: 01 07 00 53 2E 00 00 00 00 00 FF 0F 96 [16:13:49]process_action close_receipt done [16:13:49]requested_data is exist [16:13:49]produce_requested_data [16:13:49]requested_item fm.sn is exist - process it [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 11 00 00 [16:13:49]Write to MH i2c: E2 08 00 54 2E 80 11 00 00 00 00 00 00 FC [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 17 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 17 00 54 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [16:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:49]wFMCommunicate OK [16:13:49]requested_item fd.num is exist - process it [16:13:49]SAM_PROTO_GetFieldsCounters [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 13 00 00 [16:13:49]Write to MH i2c: E2 08 00 55 2E 80 13 00 00 00 00 00 00 FF [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 62 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 62 00 55 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:49]wFMCommunicate OK [16:13:49]SAM_PROTO_GetFieldsCounters done [16:13:49]requested_item shift.num is exist - process it [16:13:49]requested_item shift.opened is exist - process it [16:13:49]req_shift_opened [16:13:49]FM_GetShiftState [16:13:49]SAM_PROTO_GetShiftState [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 13 01 00 [16:13:49]Write to MH i2c: E2 08 00 56 2E 80 13 01 00 00 00 00 00 01 [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 0E 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 0E 00 56 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [16:13:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:13:49]wFMCommunicate OK [16:13:49]SAM_PROTO_GetShiftState done [16:13:49]FM_GetShiftState done [16:13:49]req_shift_opened done [16:13:49]requested_item shift.open_date is exist - process it [16:13:49]req_shift_open_date [16:13:49]req_shift_open_date done [16:13:49]produce_requested_data done [16:13:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166802,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:13:49]process_action_free close_receipt [16:13:49]json_value_free [16:13:49]json_value_free done [16:13:49]process_json_proto returns [16:13:49]Send response to host [16:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166802,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:13:49]free response buf [16:13:49]execute_script done [16:13:49]execute_script returns [16:13:49]free content buf [16:13:49]Sock 8.Close socket [16:13:49]Sock 8.Thread stoped [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]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:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:16]accept exits with 9 [16:30:16]New connection [16:30:16]New thread 3067178340 created [16:30:16]Thread 3067034980 joined [16:30:16]Waiting for new connection... [16:30:16] Sock 9.Parse request [16:30:16]Sock 9.Check first char [16:30:16]Sock 9.First char is OK [16:30:16]request: POST /json_proto HTTP/1.0 [16:30:16]Method: POST [16:30:16]URL: /json_proto [16:30:16]Method is POST - this is cgi request [16:30:16]url: /json_proto [16:30:16]query_string will be loaded in cgi processing [16:30:16]execute_cgi json_proto POST (null) [16:30:16]execute_cgi path=json_proto method=POST [16:30:16]POST find Content-Length [16:30:16]Host: 172.17.53.195:8080 [16:30:16]Content-Length: 766 [16:30:16]Content-Type: application/json [16:30:16] [16:30:16]POST finish read [16:30:16]Found Content-Length = 766 [16:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:16]execute_script... [16:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:16]POST & json_proto [16:30:16]process_json_proto [16:30:16]json parsed OK: [16:30:16]protocol is kg_v1.0 [16:30:16]action value=close_receipt [16:30:16]process_action close_receipt [16:30:16]cmd_close_receipt [16:30:16]MH_GetDate [16:30:16]Write to MH i2c: F0 00 00 57 2E 74 [16:30:16]Write i2c OK [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: F0 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: F0 09 00 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: F0 09 00 57 2E 00 99 24 19 67 21 48 4A 65 D2 [16:30:16]GetLastDocTimeStamp 1729700027 [16:30:16]current date 1729701017 [16:30:16]FM_GetShiftState [16:30:16]SAM_PROTO_GetShiftState [16:30:16]wFMCommunicate request_size=4 [16:30:16]MH_SAM_APDU [16:30:16]CAPDU: 80 13 01 00 [16:30:16]Write to MH i2c: E2 08 00 58 2E 80 13 01 00 00 00 00 00 03 [16:30:16]Write i2c OK [16:30:16]MH_I2C_Read... [16:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:16]Read from MH i2c: E2 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 0E 00 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 0E 00 58 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CE [16:30:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:30:16]wFMCommunicate OK [16:30:16]SAM_PROTO_GetShiftState done [16:30:16]FM_GetShiftState done [16:30:16]opened in 1729643772 [16:30:16]opened+sec_in_day 1729730172 [16:30:16]quantity*price = 40006 [16:30:16]sum+1 = 40007 [16:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 218 23.10.2024 16:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166803 ФПД: 149062120071508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163017&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166803&fm=149062120071508&tin=02508201610067®Number=0000000000091764&sum=40006 [16:30:17]StoreToDocumentArchive [16:30:17]shift 537 fd 166803 [16:30:17]save to /storage/0537/doc_00166803 [16:30:17]save last doc name /storage/0537/doc_00166803 to /storage/kkm_last_doc_name [16:30:17]save OK [16:30:17]Clear old archive folders... [16:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:17]tlvbuf is 01FC6FA0 [16:30:17]SAM_PROTO_ClearQueue [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 09 00 00 [16:30:17]Write to MH i2c: E2 08 00 65 2E 80 09 00 00 00 00 00 00 05 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 65 2E 00 90 00 07 [16:30:17]RAPDU: 90 00 [16:30:17]wFMCommunicate OK [16:30:17]SAM_PROTO_ClearQueue done [16:30:17]KKMCreateOFDPacket [16:30:17]OFDProtocolAddRootSTLVToBuf [16:30:17]FM_MakeSignedData [16:30:17]FM_MakeSignedData [16:30:17]SAM_PROTO_SignData [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 0D 01 02 [16:30:17]Write to MH i2c: E2 08 00 66 2E 80 0D 01 02 00 00 00 00 0D [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 66 2E 00 90 00 08 [16:30:17]RAPDU: 90 00 [16:30:17]wFMCommunicate OK [16:30:17]wFMCommunicate request_size=255 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 99 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8B 02 00 35 04 06 00 87 [16:30:17]Write to MH i2c: E2 02 01 67 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 99 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8B 02 00 35 04 06 00 87 00 00 57 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 67 2E 00 90 00 09 [16:30:17]RAPDU: 90 00 [16:30:17]wFMCommunicate OK [16:30:17]wFMCommunicate request_size=10 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 0D 02 02 05 92 3A B7 61 54 [16:30:17]Write to MH i2c: E2 0D 00 68 2E 80 0D 02 02 05 00 92 3A B7 61 54 00 00 52 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 03 00 68 2E 00 90 00 0A [16:30:17]RAPDU: 90 00 [16:30:17]wFMCommunicate OK [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 0D 03 02 [16:30:17]Write to MH i2c: E2 08 00 69 2E 80 0D 03 02 00 00 00 00 12 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0B 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0B 00 69 2E 00 75 DD 08 5D 31 BF 6A 51 90 00 75 [16:30:17]RAPDU: 75 DD 08 5D 31 BF 6A 51 90 00 [16:30:17]wFMCommunicate OK [16:30:17]SAM_PROTO_SignData done [16:30:17]FM_MakeSignedData done [16:30:17]CreateOFDProtocolMessage [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 11 00 00 [16:30:17]Write to MH i2c: E2 08 00 6A 2E 80 11 00 00 00 00 00 00 12 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 17 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 17 00 6A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [16:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:30:17]wFMCommunicate OK [16:30:17]CreateOFDProtocolMessage done [16:30:17]OFDSenderStorePacket 166803 [16:30:17]StoreOFDPacket docnum=166803 [16:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 DB 07 01 59 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 99 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8B 02 00 35 04 06 00 87 92 3A B7 61 54 75 DD 08 5D 31 BF 6A 51 [16:30:17]CheckFolder [16:30:17]dirname=/storage/ofd_packets [16:30:17]CheckFolder done [16:30:17]ProducePacketName [16:30:17]name=ofd_packets/00166803 [16:30:17]NVStorageSaveData ofd_packets/00166803 [16:30:17]File name is /storage/ofd_packets/00166803 [16:30:17]Write 301 bytes [16:30:17]NVStorageSaveData done [16:30:17]OFDSenderStorePacket done [16:30:17]KKMCreateOFDPacket done [16:30:17]NVStorageSaveData kkm_last_timestamp [16:30:17]File name is /storage/kkm_last_timestamp [16:30:17]Write 4 bytes [16:30:17]NVStorageSaveData done [16:30:17]ExternCall_PrintAddStr [16:30:17]wPrintStart [16:30:17]Write to MH i2c: 01 00 00 6B 2E 99 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: 01 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: 01 07 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: 01 07 00 6B 2E 00 00 00 00 00 FF 0F AE [16:30:17]RasterBufferAndPrint [16:30:17]line Счет N : (1)221389 [16:30:17]line ИНН: 02508201610067 [16:30:17]line Контрольно-Кассовый Чек [16:30:17]line ПРОДАЖА [16:30:17]line ТРК (МРК, ГНК) : 13 [16:30:17]line Товар: 2710124130 [16:30:17]line Аи-92-К-5 [16:30:17]line 5.980 * 66.90 [16:30:17]line = 400.06 [16:30:17]line НДС 12% НСП 1% [16:30:17]line > о реализуемом товаре [16:30:17]line ИТОГО: 400.06 [16:30:17]line НСП 1% : 3.54 [16:30:17]line НДС 12% : 42.48 [16:30:17]line Наличными: 0.00 [16:30:17]line Безнал.: 400.06 [16:30:17]line Место: АЗС № 161 "Партнер Нефть" [16:30:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:30:17]line СНО: Общий режим [16:30:17]line Чек 218 23.10.2024 16:30 [16:30:17]line Смена: 537 ФФД: 1.0 [16:30:17]line ЗНМ: 0300000104 [16:30:17]line РНМ: 0000000000091764 [16:30:17]line Версия ККМ: 001 [16:30:17]line Платежная система: Mbank [16:30:17]line ФМ: 0000000000871759 [16:30:17]line ФД: 166803 [16:30:17]line ФПД: 149062120071508 [16:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163017&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166803&fm=149062120071508&tin=02508201610067®Number=0000000000091764&sum=40006 [16:30:17]written 0, free lines is 4095 [16:30:17]OFD Sender: Processing packet 166803 [packets to send 48, broken 47] [16:30:17]ProducePacketName [16:30:17]name=ofd_packets/00166803 [16:30:17]OFD Sender: To server: pG, [16:30:17]CommunicateWithHost lk.salyk.kg:30040 [16:30:17]ConnectInit lk.salyk.kg [16:30:17]Connected sock=10 [16:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 DB 07 01 59 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 99 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8B 02 00 35 04 06 00 87 92 3A B7 61 54 75 DD 08 5D 31 BF 6A 51 [16:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 2B 47 00 0E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8B 02 00 F4 03 04 00 00 CB 18 67 B6 04 01 00 00 41 77 37 0E 23 F0 D1 94 [16:30:18]CommunicateWithHost err = 0 [16:30:18]CheckOFDResponse [16:30:18]1017 (14) - 77093643461234 [16:30:18]1041 (16) - 0000000000871759 [16:30:18]1040 (4) - 166803 [16:30:18]1012 (4) - 23.10.2024 10:08 [16:30:18]1206 (1) - 0 [16:30:18]OFD Sender: Remove packet 166803 [16:30:18]ProducePacketName [16:30:18]name=ofd_packets/00166803 [16:30:18]NVStorageDeleteData [16:30:18]Write to MH i2c: 01 00 00 94 2E C2 [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 07 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: 01 07 00 94 2E 00 00 00 00 00 CF 0C A4 [16:30:18]RasterBufferAndPrint [16:30:18]line [16:30:18]line [16:30:18]line [16:30:18]line [16:30:18]line [16:30:18]written 0, free lines is 3285 [16:30:18]MH_Cut [16:30:18]Write to MH i2c: D1 01 00 9B 2E 01 9B [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: D1 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: D1 01 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: D1 01 00 9B 2E 00 9A [16:30:18]Write to MH i2c: 01 00 00 9C 2E CA [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]OFD Sender: No OFD packet to send [16:30:19]*** Cut start [16:30:19]*** Partial cut [16:30:19]*** CUTSNS_PIN = 1 [16:30:19]*** CUTSNS_PIN = 0 [16:30:19]*** Brake cut motor [16:30:19]Read from MH i2c: 01 [16:30:19]MH_I2C_Read... [16:30:19]*** Stop cut motor [16:30:19]*** Cut end [16:30:19]Read from MH i2c: 01 07 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 07 00 9C 2E 00 00 00 00 00 FF 0F DF [16:30:19]process_action close_receipt done [16:30:19]requested_data is exist [16:30:19]produce_requested_data [16:30:19]requested_item fm.sn is exist - process it [16:30:19]wFMCommunicate request_size=4 [16:30:19]MH_SAM_APDU [16:30:19]CAPDU: 80 11 00 00 [16:30:19]Write to MH i2c: E2 08 00 9D 2E 80 11 00 00 00 00 00 00 45 [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:19]Read from MH i2c: E2 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 17 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 17 00 9D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [16:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:30:19]wFMCommunicate OK [16:30:19]requested_item fd.num is exist - process it [16:30:19]SAM_PROTO_GetFieldsCounters [16:30:19]wFMCommunicate request_size=4 [16:30:19]MH_SAM_APDU [16:30:19]CAPDU: 80 13 00 00 [16:30:19]Write to MH i2c: E2 08 00 9E 2E 80 13 00 00 00 00 00 00 48 [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:19]Read from MH i2c: E2 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 62 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 62 00 9E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:19]wFMCommunicate OK [16:30:19]SAM_PROTO_GetFieldsCounters done [16:30:19]requested_item shift.num is exist - process it [16:30:19]requested_item shift.opened is exist - process it [16:30:19]req_shift_opened [16:30:19]FM_GetShiftState [16:30:19]SAM_PROTO_GetShiftState [16:30:19]wFMCommunicate request_size=4 [16:30:19]MH_SAM_APDU [16:30:19]CAPDU: 80 13 01 00 [16:30:19]Write to MH i2c: E2 08 00 9F 2E 80 13 01 00 00 00 00 00 4A [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:19]Read from MH i2c: E2 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 0E 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 0E 00 9F 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 15 [16:30:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:30:19]wFMCommunicate OK [16:30:19]SAM_PROTO_GetShiftState done [16:30:19]FM_GetShiftState done [16:30:19]req_shift_opened done [16:30:19]requested_item shift.open_date is exist - process it [16:30:19]req_shift_open_date [16:30:19]req_shift_open_date done [16:30:19]produce_requested_data done [16:30:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166803,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:30:19]process_action_free close_receipt [16:30:19]json_value_free [16:30:19]json_value_free done [16:30:19]process_json_proto returns [16:30:19]Send response to host [16:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166803,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:30:19]free response buf [16:30:19]execute_script done [16:30:19]execute_script returns [16:30:19]free content buf [16:30:19]Sock 9.Close socket [16:30:19]Sock 9.Thread stoped [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]accept exits with 8 [16:31:08]New connection [16:31:08]New thread 3067034980 created [16:31:08]Thread 3067178340 joined [16:31:08]Waiting for new connection... [16:31:08] Sock 8.Parse request [16:31:08]Sock 8.Check first char [16:31:08]Sock 8.First char is OK [16:31:08]request: POST /json_proto HTTP/1.0 [16:31:08]Method: POST [16:31:08]URL: /json_proto [16:31:08]Method is POST - this is cgi request [16:31:08]url: /json_proto [16:31:08]query_string will be loaded in cgi processing [16:31:08]execute_cgi json_proto POST (null) [16:31:08]execute_cgi path=json_proto method=POST [16:31:08]POST find Content-Length [16:31:08]Host: 172.17.53.195:8080 [16:31:08]Content-Length: 682 [16:31:08]Content-Type: application/json [16:31:08] [16:31:08]POST finish read [16:31:08]Found Content-Length = 682 [16:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.600, "sum" : 1602.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1602.00, "payments": [ { "type": 0, "sum" : 1602.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:08]execute_script... [16:31:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.600, "sum" : 1602.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1602.00, "payments": [ { "type": 0, "sum" : 1602.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:08]POST & json_proto [16:31:08]process_json_proto [16:31:08]json parsed OK: [16:31:08]protocol is kg_v1.0 [16:31:08]action value=close_receipt [16:31:08]process_action close_receipt [16:31:08]cmd_close_receipt [16:31:08]MH_GetDate [16:31:08]Write to MH i2c: F0 00 00 A0 2E BD [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: F0 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: F0 09 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: F0 09 00 A0 2E 00 CE 24 19 67 21 48 4A 65 50 [16:31:08]GetLastDocTimeStamp 1729701017 [16:31:08]current date 1729701070 [16:31:08]FM_GetShiftState [16:31:08]SAM_PROTO_GetShiftState [16:31:08]wFMCommunicate request_size=4 [16:31:08]MH_SAM_APDU [16:31:08]CAPDU: 80 13 01 00 [16:31:08]Write to MH i2c: E2 08 00 A1 2E 80 13 01 00 00 00 00 00 4C [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:08]Read from MH i2c: E2 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: E2 0E 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: E2 0E 00 A1 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 17 [16:31:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:31:08]wFMCommunicate OK [16:31:08]SAM_PROTO_GetShiftState done [16:31:08]FM_GetShiftState done [16:31:08]opened in 1729643772 [16:31:08]opened+sec_in_day 1729730172 [16:31:08]quantity*price = 160272 [16:31:08]sum+1 = 160273 [16:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1602.00 Внесено: 3000.00 СДАЧА: 1398.00 НСП 1% : 14.18 НДС 12% : 170.20 Наличными: 1602.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 219 23.10.2024 16:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166804 ФПД: 189417500711986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163110&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166804&fm=189417500711986&tin=02508201610067®Number=0000000000091764&sum=160200 [16:31:09]StoreToDocumentArchive [16:31:09]shift 537 fd 166804 [16:31:09]save to /storage/0537/doc_00166804 [16:31:09]save last doc name /storage/0537/doc_00166804 to /storage/kkm_last_doc_name [16:31:09]save OK [16:31:09]Clear old archive folders... [16:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:09]tlvbuf is 01FE0AC0 [16:31:09]SAM_PROTO_ClearQueue [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 09 00 00 [16:31:09]Write to MH i2c: E2 08 00 AE 2E 80 09 00 00 00 00 00 00 4E [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 03 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [16:31:09]RAPDU: 90 00 [16:31:09]wFMCommunicate OK [16:31:09]SAM_PROTO_ClearQueue done [16:31:09]KKMCreateOFDPacket [16:31:09]OFDProtocolAddRootSTLVToBuf [16:31:09]FM_MakeSignedData [16:31:09]FM_MakeSignedData [16:31:09]SAM_PROTO_SignData [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 0D 01 02 [16:31:09]Write to MH i2c: E2 08 00 AF 2E 80 0D 01 02 00 00 00 00 56 [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 03 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 03 00 AF 2E 00 90 00 51 [16:31:09]RAPDU: 90 00 [16:31:09]wFMCommunicate OK [16:31:09]wFMCommunicate request_size=255 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 42 00 00 00 00 07 04 06 00 C8 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 DB 00 00 00 F4 03 04 00 CE 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8B 02 00 35 04 06 00 AC [16:31:09]Write to MH i2c: E2 02 01 B0 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 42 00 00 00 00 07 04 06 00 C8 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 DB 00 00 00 F4 03 04 00 CE 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8B 02 00 35 04 06 00 AC 00 00 B3 [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 03 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 03 00 B0 2E 00 90 00 52 [16:31:10]RAPDU: 90 00 [16:31:10]wFMCommunicate OK [16:31:10]wFMCommunicate request_size=10 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 0D 02 02 05 46 32 D8 1C 32 [16:31:10]Write to MH i2c: E2 0D 00 B1 2E 80 0D 02 02 05 00 46 32 D8 1C 32 00 00 01 [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 03 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 03 00 B1 2E 00 90 00 53 [16:31:10]RAPDU: 90 00 [16:31:10]wFMCommunicate OK [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 0D 03 02 [16:31:10]Write to MH i2c: E2 08 00 B2 2E 80 0D 03 02 00 00 00 00 5B [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 0B 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 0B 00 B2 2E 00 41 2D 4A 69 2A 96 34 05 90 00 76 [16:31:10]RAPDU: 41 2D 4A 69 2A 96 34 05 90 00 [16:31:10]wFMCommunicate OK [16:31:10]SAM_PROTO_SignData done [16:31:10]FM_MakeSignedData done [16:31:10]CreateOFDProtocolMessage [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 11 00 00 [16:31:10]Write to MH i2c: E2 08 00 B3 2E 80 11 00 00 00 00 00 00 5B [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 17 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 17 00 B3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [16:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:31:10]wFMCommunicate OK [16:31:10]CreateOFDProtocolMessage done [16:31:10]OFDSenderStorePacket 166804 [16:31:10]StoreOFDPacket docnum=166804 [16:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A FB 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 42 00 00 00 00 07 04 06 00 C8 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 DB 00 00 00 F4 03 04 00 CE 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8B 02 00 35 04 06 00 AC 46 32 D8 1C 32 41 2D 4A 69 2A 96 34 05 [16:31:10]CheckFolder [16:31:10]dirname=/storage/ofd_packets [16:31:10]CheckFolder done [16:31:10]ProducePacketName [16:31:10]name=ofd_packets/00166804 [16:31:10]NVStorageSaveData ofd_packets/00166804 [16:31:10]File name is /storage/ofd_packets/00166804 [16:31:10]Write 301 bytes [16:31:10]NVStorageSaveData done [16:31:10]OFDSenderStorePacket done [16:31:10]KKMCreateOFDPacket done [16:31:10]NVStorageSaveData kkm_last_timestamp [16:31:10]File name is /storage/kkm_last_timestamp [16:31:10]Write 4 bytes [16:31:10]NVStorageSaveData done [16:31:10]ExternCall_PrintAddStr [16:31:10]wPrintStart [16:31:10]Write to MH i2c: 01 00 00 B4 2E E2 [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: 01 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: 01 07 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: 01 07 00 B4 2E 00 00 00 00 00 FF 0F F7 [16:31:10]RasterBufferAndPrint [16:31:10]line Счет N : (1)221388 [16:31:10]line ИНН: 02508201610067 [16:31:10]line Контрольно-Кассовый Чек [16:31:10]line ПРОДАЖА [16:31:10]line ТРК (МРК, ГНК) : 34 [16:31:10]line Товар: 2710124500 [16:31:10]line Аи-95-К-5 [16:31:10]line 21.600 * 74.20 [16:31:10]line = 1602.72 [16:31:10]line НДС 12% НСП 1% [16:31:10]line > о реализуемом товаре [16:31:10]line ОКРУГЛЕНИЕ: -0.72 [16:31:10]line ИТОГО: 1602.00 [16:31:10]line Внесено: 3000.00 [16:31:10]line СДАЧА: 1398.00 [16:31:10]line НСП 1% : 14.18 [16:31:10]line НДС 12% : 170.20 [16:31:10]line Наличными: 1602.00 [16:31:10]line Безнал.: 0.00 [16:31:10]line Место: АЗС № 161 "Партнер Нефть" [16:31:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:31:10]line СНО: Общий режим [16:31:10]line Чек 219 23.10.2024 16:31 [16:31:10]line Смена: 537 ФФД: 1.0 [16:31:10]line ЗНМ: 0300000104 [16:31:10]line РНМ: 0000000000091764 [16:31:10]line Версия ККМ: 001 [16:31:10]line ФМ: 0000000000871759 [16:31:10]line ФД: 166804 [16:31:10]line ФПД: 189417500711986 [16:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163110&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166804&fm=189417500711986&tin=02508201610067®Number=0000000000091764&sum=160200 [16:31:10]OFD Sender: Processing packet 166804 [packets to send 48, broken 47] [16:31:10]ProducePacketName [16:31:10]name=ofd_packets/00166804 [16:31:10]OFD Sender: To server: pG, [16:31:10]CommunicateWithHost lk.salyk.kg:30040 [16:31:10]ConnectInit lk.salyk.kg [16:31:10]written 0, free lines is 4095 [16:31:10]Connected sock=10 [16:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A FB 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 42 00 00 00 00 07 04 06 00 C8 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 DB 00 00 00 F4 03 04 00 CE 24 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8B 02 00 35 04 06 00 AC 46 32 D8 1C 32 41 2D 4A 69 2A 96 34 05 [16:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 25 4F 47 00 2B A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8B 02 00 F4 03 04 00 35 CB 18 67 B6 04 01 00 00 2D B0 D0 4B 2D CB D3 2A [16:31:10]CommunicateWithHost err = 0 [16:31:10]CheckOFDResponse [16:31:10]1017 (14) - 77093643461234 [16:31:10]1041 (16) - 0000000000871759 [16:31:10]1040 (4) - 166804 [16:31:10]1012 (4) - 23.10.2024 10:08 [16:31:10]1206 (1) - 0 [16:31:10]OFD Sender: Remove packet 166804 [16:31:10]ProducePacketName [16:31:10]name=ofd_packets/00166804 [16:31:10]NVStorageDeleteData [16:31:11]Write to MH i2c: 01 00 00 DF 2E 0D [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: 01 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: 01 07 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: 01 07 00 DF 2E 00 00 00 00 00 BB 0C DB [16:31:11]RasterBufferAndPrint [16:31:11]line [16:31:11]line [16:31:11]line [16:31:11]line [16:31:11]line [16:31:11]written 0, free lines is 3265 [16:31:11]MH_Cut [16:31:11]Write to MH i2c: D1 01 00 E6 2E 01 E6 [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: D1 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: D1 01 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: D1 01 00 E6 2E 00 E5 [16:31:11]Write to MH i2c: 01 00 00 E7 2E 15 [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]OFD Sender: No OFD packet to send [16:31:11]*** Cut start [16:31:11]*** Partial cut [16:31:11]*** CUTSNS_PIN = 1 [16:31:11]*** CUTSNS_PIN = 0 [16:31:12]*** Brake cut motor [16:31:12]Read from MH i2c: 01 [16:31:12]MH_I2C_Read... [16:31:12]*** Stop cut motor [16:31:12]*** Cut end [16:31:12]Read from MH i2c: 01 07 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 FF 0F 2A [16:31:12]process_action close_receipt done [16:31:12]requested_data is exist [16:31:12]produce_requested_data [16:31:12]requested_item fm.sn is exist - process it [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 11 00 00 [16:31:12]Write to MH i2c: E2 08 00 E8 2E 80 11 00 00 00 00 00 00 90 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 17 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 17 00 E8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [16:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:31:12]wFMCommunicate OK [16:31:12]requested_item fd.num is exist - process it [16:31:12]SAM_PROTO_GetFieldsCounters [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 13 00 00 [16:31:12]Write to MH i2c: E2 08 00 E9 2E 80 13 00 00 00 00 00 00 93 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 62 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 62 00 E9 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [16:31:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_GetFieldsCounters done [16:31:12]requested_item shift.num is exist - process it [16:31:12]requested_item shift.opened is exist - process it [16:31:12]req_shift_opened [16:31:12]FM_GetShiftState [16:31:12]SAM_PROTO_GetShiftState [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 13 01 00 [16:31:12]Write to MH i2c: E2 08 00 EA 2E 80 13 01 00 00 00 00 00 95 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0E 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0E 00 EA 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 60 [16:31:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_GetShiftState done [16:31:12]FM_GetShiftState done [16:31:12]req_shift_opened done [16:31:12]requested_item shift.open_date is exist - process it [16:31:12]req_shift_open_date [16:31:12]req_shift_open_date done [16:31:12]produce_requested_data done [16:31:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166804,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:31:12]process_action_free close_receipt [16:31:12]json_value_free [16:31:12]json_value_free done [16:31:12]process_json_proto returns [16:31:12]Send response to host [16:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166804,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:31:12]free response buf [16:31:12]execute_script done [16:31:12]execute_script returns [16:31:12]free content buf [16:31:12]Sock 8.Close socket [16:31:12]Sock 8.Thread stoped [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]accept exits with 9 [16:32:21]New connection [16:32:21]New thread 3067178340 created [16:32:21]Thread 3067034980 joined [16:32:21]Waiting for new connection... [16:32:21] Sock 9.Parse request [16:32:21]Sock 9.Check first char [16:32:21]Sock 9.First char is OK [16:32:21]request: POST /json_proto HTTP/1.0 [16:32:21]Method: POST [16:32:21]URL: /json_proto [16:32:21]Method is POST - this is cgi request [16:32:21]url: /json_proto [16:32:21]query_string will be loaded in cgi processing [16:32:21]execute_cgi json_proto POST (null) [16:32:21]execute_cgi path=json_proto method=POST [16:32:21]POST find Content-Length [16:32:21]Host: 172.17.53.195:8080 [16:32:21]Content-Length: 792 [16:32:21]Content-Type: application/json [16:32:21] [16:32:21]POST finish read [16:32:21]Found Content-Length = 792 [16:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03328", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:21]execute_script... [16: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)221390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03328", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:21]POST & json_proto [16:32:21]process_json_proto [16:32:21]json parsed OK: [16:32:21]protocol is kg_v1.0 [16:32:21]action value=close_receipt [16:32:21]process_action close_receipt [16:32:21]cmd_close_receipt [16:32:21]MH_GetDate [16:32:21]Write to MH i2c: F0 00 00 EB 2E 08 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: F0 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: F0 09 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: F0 09 00 EB 2E 00 17 25 19 67 21 48 4A 65 E5 [16:32:21]GetLastDocTimeStamp 1729701070 [16:32:21]current date 1729701143 [16:32:21]FM_GetShiftState [16:32:21]SAM_PROTO_GetShiftState [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 13 01 00 [16:32:21]Write to MH i2c: E2 08 00 EC 2E 80 13 01 00 00 00 00 00 97 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 0E 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 0E 00 EC 2E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 62 [16:32:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:32:21]wFMCommunicate OK [16:32:21]SAM_PROTO_GetShiftState done [16:32:21]FM_GetShiftState done [16:32:21]opened in 1729643772 [16:32:21]opened+sec_in_day 1729730172 [16:32:21]quantity*price = 0 [16:32:21]sum+1 = 1 [16:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 220 23.10.2024 16:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 03328 ФМ: 0000000000871759 ФД: 166805 ФПД: 13972958862495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166805&fm=13972958862495&tin=02508201610067®Number=0000000000091764&sum=0 [16:32:22]StoreToDocumentArchive [16:32:22]shift 537 fd 166805 [16:32:22]save to /storage/0537/doc_00166805 [16:32:22]save last doc name /storage/0537/doc_00166805 to /storage/kkm_last_doc_name [16:32:22]save OK [16:32:22]Clear old archive folders... [16:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:22]tlvbuf is 01FE0A00 [16:32:22]SAM_PROTO_ClearQueue [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 09 00 00 [16:32:22]Write to MH i2c: E2 08 00 F9 2E 80 09 00 00 00 00 00 00 99 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]SAM_PROTO_ClearQueue done [16:32:22]KKMCreateOFDPacket [16:32:22]OFDProtocolAddRootSTLVToBuf [16:32:22]FM_MakeSignedData [16:32:22]FM_MakeSignedData [16:32:22]SAM_PROTO_SignData [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 0D 01 02 [16:32:22]Write to MH i2c: E2 08 00 FA 2E 80 0D 01 02 00 00 00 00 A1 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 FA 2E 00 90 00 9C [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]wFMCommunicate request_size=255 [16:32:22]MH_SAM_APDU [16: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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 17 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8B 02 00 35 04 06 00 0C [16:32:22]Write to MH i2c: E2 02 01 FB 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 17 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8B 02 00 35 04 06 00 0C 00 00 CA [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 FB 2E 00 90 00 9D [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]wFMCommunicate request_size=10 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 0D 02 02 05 B5 55 3F DC 9F [16:32:22]Write to MH i2c: E2 0D 00 FC 2E 80 0D 02 02 05 00 B5 55 3F DC 9F 00 00 72 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 FC 2E 00 90 00 9E [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 0D 03 02 [16:32:22]Write to MH i2c: E2 08 00 FD 2E 80 0D 03 02 00 00 00 00 A6 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 0B 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 0B 00 FD 2E 00 DD 85 8C 8D 96 7B E7 EE 90 00 08 [16:32:22]RAPDU: DD 85 8C 8D 96 7B E7 EE 90 00 [16:32:22]wFMCommunicate OK [16:32:22]SAM_PROTO_SignData done [16:32:22]FM_MakeSignedData done [16:32:22]CreateOFDProtocolMessage [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 11 00 00 [16:32:22]Write to MH i2c: E2 08 00 FE 2E 80 11 00 00 00 00 00 00 A6 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 17 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 17 00 FE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [16:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:32:22]wFMCommunicate OK [16:32:22]CreateOFDProtocolMessage done [16:32:22]OFDSenderStorePacket 166805 [16:32:22]StoreOFDPacket docnum=166805 [16:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 A2 07 01 69 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 17 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8B 02 00 35 04 06 00 0C B5 55 3F DC 9F DD 85 8C 8D 96 7B E7 EE [16:32:22]CheckFolder [16:32:22]dirname=/storage/ofd_packets [16:32:22]CheckFolder done [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00166805 [16:32:22]NVStorageSaveData ofd_packets/00166805 [16:32:22]File name is /storage/ofd_packets/00166805 [16:32:22]Write 301 bytes [16:32:22]NVStorageSaveData done [16:32:22]OFDSenderStorePacket done [16:32:22]KKMCreateOFDPacket done [16:32:22]NVStorageSaveData kkm_last_timestamp [16:32:22]File name is /storage/kkm_last_timestamp [16:32:22]Write 4 bytes [16:32:22]NVStorageSaveData done [16:32:22]ExternCall_PrintAddStr [16:32:22]wPrintStart [16:32:22]Write to MH i2c: 01 00 00 FF 2E 2D [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 FF 2E 00 00 00 00 00 FF 0F 42 [16:32:22]RasterBufferAndPrint [16:32:22]line Счет N : (1)221390 [16:32:22]line ИНН: 02508201610067 [16:32:22]line Контрольно-Кассовый Чек [16:32:22]line ПРОДАЖА [16:32:22]line ТРК (МРК, ГНК) : 23 [16:32:22]line Товар: 2710124130 [16:32:22]line Аи-92-К-5 [16:32:22]line 10.000 * 0.00 [16:32:22]line = 0.00 [16:32:22]line НДС 12% НСП 1% [16:32:22]line > о реализуемом товаре [16:32:22]line ИТОГО: 0.00 [16:32:22]line НСП 1% : 0.00 [16:32:22]line НДС 12% : 0.00 [16:32:22]line Наличными: 0.00 [16:32:22]line Безнал.: 0.00 [16:32:22]line Место: АЗС № 161 "Партнер Нефть" [16:32:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:32:22]line СНО: Общий режим [16:32:22]line Чек 220 23.10.2024 16:32 [16:32:22]line Смена: 537 ФФД: 1.0 [16:32:22]line ЗНМ: 0300000104 [16:32:22]line РНМ: 0000000000091764 [16:32:22]line Версия ККМ: 001 [16:32:22]line Талоны: Топливная Карта [16:32:22]line 03328 [16:32:22]line ФМ: 0000000000871759 [16:32:22]line ФД: 166805 [16:32:22]line ФПД: 13972958862495 [16:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166805&fm=13972958862495&tin=02508201610067®Number=0000000000091764&sum=0 [16:32:23]written 0, free lines is 4095 [16:32:23]OFD Sender: Processing packet 166805 [packets to send 48, broken 47] [16:32:23]ProducePacketName [16:32:23]name=ofd_packets/00166805 [16:32:23]OFD Sender: To server: pG, [16:32:23]CommunicateWithHost lk.salyk.kg:30040 [16:32:23]ConnectInit lk.salyk.kg [16:32:23]Connected sock=8 [16:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 A2 07 01 69 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 17 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8B 02 00 35 04 06 00 0C B5 55 3F DC 9F DD 85 8C 8D 96 7B E7 EE [16:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 4F 47 00 E7 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8B 02 00 F4 03 04 00 7E CB 18 67 B6 04 01 00 00 43 C6 3A B2 94 F7 98 A1 [16:32:23]CommunicateWithHost err = 0 [16:32:23]CheckOFDResponse [16:32:23]1017 (14) - 77093643461234 [16:32:23]1041 (16) - 0000000000871759 [16:32:23]1040 (4) - 166805 [16:32:23]1012 (4) - 23.10.2024 10:10 [16:32:23]1206 (1) - 0 [16:32:23]OFD Sender: Remove packet 166805 [16:32:23]ProducePacketName [16:32:23]name=ofd_packets/00166805 [16:32:23]NVStorageDeleteData [16:32:23]Write to MH i2c: 01 00 00 29 2F 58 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 07 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 07 00 29 2F 00 00 00 00 00 BA 0C 25 [16:32:23]RasterBufferAndPrint [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]written 0, free lines is 3265 [16:32:23]MH_Cut [16:32:23]Write to MH i2c: D1 01 00 30 2F 01 31 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 01 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 01 00 30 2F 00 30 [16:32:23]Write to MH i2c: 01 00 00 31 2F 60 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:24]OFD Sender: No OFD packet to send [16:32:24]*** Cut start [16:32:24]*** Partial cut [16:32:24]*** CUTSNS_PIN = 1 [16:32:24]*** CUTSNS_PIN = 0 [16:32:24]*** Brake cut motor [16:32:25]Read from MH i2c: 01 [16:32:25]MH_I2C_Read... [16:32:25]*** Stop cut motor [16:32:25]*** Cut end [16:32:25]Read from MH i2c: 01 07 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: 01 07 00 31 2F 00 00 00 00 00 FF 0F 75 [16:32:25]process_action close_receipt done [16:32:25]requested_data is exist [16:32:25]produce_requested_data [16:32:25]requested_item fm.sn is exist - process it [16:32:25]wFMCommunicate request_size=4 [16:32:25]MH_SAM_APDU [16:32:25]CAPDU: 80 11 00 00 [16:32:25]Write to MH i2c: E2 08 00 32 2F 80 11 00 00 00 00 00 00 DB [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:25]Read from MH i2c: E2 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 17 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 17 00 32 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [16:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:32:25]wFMCommunicate OK [16:32:25]requested_item fd.num is exist - process it [16:32:25]SAM_PROTO_GetFieldsCounters [16:32:25]wFMCommunicate request_size=4 [16:32:25]MH_SAM_APDU [16:32:25]CAPDU: 80 13 00 00 [16:32:25]Write to MH i2c: E2 08 00 33 2F 80 13 00 00 00 00 00 00 DE [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:25]Read from MH i2c: E2 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 62 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 62 00 33 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:25]wFMCommunicate OK [16:32:25]SAM_PROTO_GetFieldsCounters done [16:32:25]requested_item shift.num is exist - process it [16:32:25]requested_item shift.opened is exist - process it [16:32:25]req_shift_opened [16:32:25]FM_GetShiftState [16:32:25]SAM_PROTO_GetShiftState [16:32:25]wFMCommunicate request_size=4 [16:32:25]MH_SAM_APDU [16:32:25]CAPDU: 80 13 01 00 [16:32:25]Write to MH i2c: E2 08 00 34 2F 80 13 01 00 00 00 00 00 E0 [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:25]Read from MH i2c: E2 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 0E 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: E2 0E 00 34 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AB [16:32:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:32:25]wFMCommunicate OK [16:32:25]SAM_PROTO_GetShiftState done [16:32:25]FM_GetShiftState done [16:32:25]req_shift_opened done [16:32:25]requested_item shift.open_date is exist - process it [16:32:25]req_shift_open_date [16:32:25]req_shift_open_date done [16:32:25]produce_requested_data done [16:32:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166805,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:32:25]process_action_free close_receipt [16:32:25]json_value_free [16:32:25]json_value_free done [16:32:25]process_json_proto returns [16:32:25]Send response to host [16:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166805,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:32:25]free response buf [16:32:25]execute_script done [16:32:25]execute_script returns [16:32:25]free content buf [16:32:25]Sock 9.Close socket [16:32:25]Sock 9.Thread stoped [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:44]accept exits with 10 [16:33:44]New connection [16:33:44]New thread 3067034980 created [16:33:44]Thread 3067178340 joined [16:33:44]Waiting for new connection... [16:33:44] Sock 10.Parse request [16:33:44]Sock 10.Check first char [16:33:44]Sock 10.First char is OK [16:33:44]request: POST /json_proto HTTP/1.0 [16:33:44]Method: POST [16:33:44]URL: /json_proto [16:33:44]Method is POST - this is cgi request [16:33:44]url: /json_proto [16:33:44]query_string will be loaded in cgi processing [16:33:44]execute_cgi json_proto POST (null) [16:33:44]execute_cgi path=json_proto method=POST [16:33:44]POST find Content-Length [16:33:44]Host: 172.17.53.195:8080 [16:33:44]Content-Length: 677 [16:33:44]Content-Type: application/json [16:33:44] [16:33:44]POST finish read [16:33:44]Found Content-Length = 677 [16:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:44]execute_script... [16:33:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:44]POST & json_proto [16:33:44]process_json_proto [16:33:44]json parsed OK: [16:33:44]protocol is kg_v1.0 [16:33:44]action value=close_receipt [16:33:44]process_action close_receipt [16:33:44]cmd_close_receipt [16:33:44]MH_GetDate [16:33:44]Write to MH i2c: F0 00 00 35 2F 53 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 09 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 09 00 35 2F 00 6A 25 19 67 21 48 4A 65 83 [16:33:44]GetLastDocTimeStamp 1729701143 [16:33:44]current date 1729701226 [16:33:44]FM_GetShiftState [16:33:44]SAM_PROTO_GetShiftState [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 13 01 00 [16:33:44]Write to MH i2c: E2 08 00 36 2F 80 13 01 00 00 00 00 00 E2 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0E 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0E 00 36 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AD [16:33:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:33:45]wFMCommunicate OK [16:33:45]SAM_PROTO_GetShiftState done [16:33:45]FM_GetShiftState done [16:33:45]opened in 1729643772 [16:33:45]opened+sec_in_day 1729730172 [16:33:45]quantity*price = 50041 [16:33:45]sum+1 = 50042 [16:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 221 23.10.2024 16:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166806 ФПД: 103848760115815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166806&fm=103848760115815&tin=02508201610067®Number=0000000000091764&sum=50000 [16:33:46]StoreToDocumentArchive [16:33:46]shift 537 fd 166806 [16:33:46]save to /storage/0537/doc_00166806 [16:33:46]save last doc name /storage/0537/doc_00166806 to /storage/kkm_last_doc_name [16:33:46]save OK [16:33:46]Clear old archive folders... [16:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:46]tlvbuf is 01FEC210 [16:33:46]SAM_PROTO_ClearQueue [16:33:46]wFMCommunicate request_size=4 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 09 00 00 [16:33:46]Write to MH i2c: E2 08 00 43 2F 80 09 00 00 00 00 00 00 E4 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 43 2F 00 90 00 E6 [16:33:46]RAPDU: 90 00 [16:33:46]wFMCommunicate OK [16:33:46]SAM_PROTO_ClearQueue done [16:33:46]KKMCreateOFDPacket [16:33:46]OFDProtocolAddRootSTLVToBuf [16:33:46]FM_MakeSignedData [16:33:46]FM_MakeSignedData [16:33:46]SAM_PROTO_SignData [16:33:46]wFMCommunicate request_size=4 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 0D 01 02 [16:33:46]Write to MH i2c: E2 08 00 44 2F 80 0D 01 02 00 00 00 00 EC [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [16:33:46]RAPDU: 90 00 [16:33:46]wFMCommunicate OK [16:33:46]wFMCommunicate request_size=255 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 6A 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8B 02 00 35 04 06 00 5E [16:33:46]Write to MH i2c: E2 02 01 45 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 6A 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8B 02 00 35 04 06 00 5E 00 00 0A [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 45 2F 00 90 00 E8 [16:33:46]RAPDU: 90 00 [16:33:46]wFMCommunicate OK [16:33:46]wFMCommunicate request_size=10 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 0D 02 02 05 73 2C 75 02 67 [16:33:46]Write to MH i2c: E2 0D 00 46 2F 80 0D 02 02 05 00 73 2C 75 02 67 00 00 76 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [16:33:46]RAPDU: 90 00 [16:33:46]wFMCommunicate OK [16:33:46]wFMCommunicate request_size=4 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 0D 03 02 [16:33:46]Write to MH i2c: E2 08 00 47 2F 80 0D 03 02 00 00 00 00 F1 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 0B 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 0B 00 47 2F 00 90 F2 F7 8B 6E 76 8C 7C 90 00 E2 [16:33:46]RAPDU: 90 F2 F7 8B 6E 76 8C 7C 90 00 [16:33:46]wFMCommunicate OK [16:33:46]SAM_PROTO_SignData done [16:33:46]FM_MakeSignedData done [16:33:46]CreateOFDProtocolMessage [16:33:46]wFMCommunicate request_size=4 [16:33:46]MH_SAM_APDU [16:33:46]CAPDU: 80 11 00 00 [16:33:46]Write to MH i2c: E2 08 00 48 2F 80 11 00 00 00 00 00 00 F1 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:46]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 17 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 17 00 48 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [16:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:33:46]wFMCommunicate OK [16:33:46]CreateOFDProtocolMessage done [16:33:46]OFDSenderStorePacket 166806 [16:33:46]StoreOFDPacket docnum=166806 [16:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 13 07 01 81 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 6A 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8B 02 00 35 04 06 00 5E 73 2C 75 02 67 90 F2 F7 8B 6E 76 8C 7C [16:33:46]CheckFolder [16:33:46]dirname=/storage/ofd_packets [16:33:46]CheckFolder done [16:33:46]ProducePacketName [16:33:46]name=ofd_packets/00166806 [16:33:46]NVStorageSaveData ofd_packets/00166806 [16:33:46]File name is /storage/ofd_packets/00166806 [16:33:46]Write 301 bytes [16:33:46]NVStorageSaveData done [16:33:46]OFDSenderStorePacket done [16:33:46]KKMCreateOFDPacket done [16:33:46]NVStorageSaveData kkm_last_timestamp [16:33:46]File name is /storage/kkm_last_timestamp [16:33:46]Write 4 bytes [16:33:46]NVStorageSaveData done [16:33:46]ExternCall_PrintAddStr [16:33:46]wPrintStart [16:33:46]Write to MH i2c: 01 00 00 49 2F 78 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 49 2F 00 00 00 00 00 FF 0F 8D [16:33:46]RasterBufferAndPrint [16:33:46]line Счет N : (1)221391 [16:33:46]line ИНН: 02508201610067 [16:33:46]line Контрольно-Кассовый Чек [16:33:46]line ПРОДАЖА [16:33:46]line ТРК (МРК, ГНК) : 13 [16:33:46]line Товар: 2710124130 [16:33:46]line Аи-92-К-5 [16:33:46]line 7.480 * 66.90 [16:33:46]line = 500.41 [16:33:46]line НДС 12% НСП 1% [16:33:46]line > о реализуемом товаре [16:33:46]line ОКРУГЛЕНИЕ: -0.41 [16:33:46]line ИТОГО: 500.00 [16:33:46]line Внесено: 500.00 [16:33:46]line СДАЧА: 0.00 [16:33:46]line НСП 1% : 4.43 [16:33:46]line НДС 12% : 53.14 [16:33:46]line Наличными: 500.00 [16:33:46]line Безнал.: 0.00 [16:33:46]line Место: АЗС № 161 "Партнер Нефть" [16:33:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:33:46]line СНО: Общий режим [16:33:46]line Чек 221 23.10.2024 16:33 [16:33:46]line Смена: 537 ФФД: 1.0 [16:33:46]line ЗНМ: 0300000104 [16:33:46]line РНМ: 0000000000091764 [16:33:46]line Версия ККМ: 001 [16:33:46]line ФМ: 0000000000871759 [16:33:46]line ФД: 166806 [16:33:46]line ФПД: 103848760115815 [16:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166806&fm=103848760115815&tin=02508201610067®Number=0000000000091764&sum=50000 [16:33:46]OFD Sender: Processing packet 166806 [packets to send 48, broken 47] [16:33:46]ProducePacketName [16:33:46]name=ofd_packets/00166806 [16:33:46]OFD Sender: To server: pG, [16:33:46]CommunicateWithHost lk.salyk.kg:30040 [16:33:46]ConnectInit lk.salyk.kg [16:33:46]written 0, free lines is 4095 [16:33:47]Connected sock=9 [16:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 13 07 01 81 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 6A 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8B 02 00 35 04 06 00 5E 73 2C 75 02 67 90 F2 F7 8B 6E 76 8C 7C [16:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 6A 47 00 CB 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8B 02 00 F4 03 04 00 D1 CB 18 67 B6 04 01 00 00 A1 C6 D7 C1 40 4C B8 8D [16:33:47]CommunicateWithHost err = 0 [16:33:47]CheckOFDResponse [16:33:47]1017 (14) - 77093643461234 [16:33:47]1041 (16) - 0000000000871759 [16:33:47]1040 (4) - 166806 [16:33:47]1012 (4) - 23.10.2024 10:11 [16:33:47]1206 (1) - 0 [16:33:47]OFD Sender: Remove packet 166806 [16:33:47]ProducePacketName [16:33:47]name=ofd_packets/00166806 [16:33:47]NVStorageDeleteData [16:33:47]Write to MH i2c: 01 00 00 74 2F A3 [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: 01 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: 01 07 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: 01 07 00 74 2F 00 00 00 00 00 A7 0C 5D [16:33:47]RasterBufferAndPrint [16:33:47]line [16:33:47]line [16:33:47]line [16:33:47]line [16:33:47]line [16:33:47]written 0, free lines is 3242 [16:33:47]MH_Cut [16:33:47]Write to MH i2c: D1 01 00 7B 2F 01 7C [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: D1 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: D1 01 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: D1 01 00 7B 2F 00 7B [16:33:47]Write to MH i2c: 01 00 00 7C 2F AB [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]OFD Sender: No OFD packet to send [16:33:48]*** Cut start [16:33:48]*** Partial cut [16:33:48]*** CUTSNS_PIN = 1 [16:33:48]*** CUTSNS_PIN = 0 [16:33:48]*** Brake cut motor [16:33:48]Read from MH i2c: 01 [16:33:48]MH_I2C_Read... [16:33:48]*** Stop cut motor [16:33:48]*** Cut end [16:33:48]Read from MH i2c: 01 07 00 [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: 01 07 00 7C 2F 00 00 00 00 00 FF 0F C0 [16:33:48]process_action close_receipt done [16:33:48]requested_data is exist [16:33:48]produce_requested_data [16:33:48]requested_item fm.sn is exist - process it [16:33:48]wFMCommunicate request_size=4 [16:33:48]MH_SAM_APDU [16:33:48]CAPDU: 80 11 00 00 [16:33:48]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [16:33:48]Write i2c OK [16:33:48]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 17 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [16:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:33:49]wFMCommunicate OK [16:33:49]requested_item fd.num is exist - process it [16:33:49]SAM_PROTO_GetFieldsCounters [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 13 00 00 [16:33:49]Write to MH i2c: E2 08 00 7E 2F 80 13 00 00 00 00 00 00 29 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 62 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 62 00 7E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_GetFieldsCounters done [16:33:49]requested_item shift.num is exist - process it [16:33:49]requested_item shift.opened is exist - process it [16:33:49]req_shift_opened [16:33:49]FM_GetShiftState [16:33:49]SAM_PROTO_GetShiftState [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 13 01 00 [16:33:49]Write to MH i2c: E2 08 00 7F 2F 80 13 01 00 00 00 00 00 2B [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 7F 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F6 [16:33:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_GetShiftState done [16:33:49]FM_GetShiftState done [16:33:49]req_shift_opened done [16:33:49]requested_item shift.open_date is exist - process it [16:33:49]req_shift_open_date [16:33:49]req_shift_open_date done [16:33:49]produce_requested_data done [16:33:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166806,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:33:49]process_action_free close_receipt [16:33:49]json_value_free [16:33:49]json_value_free done [16:33:49]process_json_proto returns [16:33:49]Send response to host [16:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166806,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:33:49]free response buf [16:33:49]execute_script done [16:33:49]execute_script returns [16:33:49]free content buf [16:33:49]Sock 10.Close socket [16:33:49]Sock 10.Thread stoped [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:21]accept exits with 8 [16:35:21]New connection [16:35:21]New thread 3067178340 created [16:35:21]Thread 3067034980 joined [16:35:21]Waiting for new connection... [16:35:21] Sock 8.Parse request [16:35:21]Sock 8.Check first char [16:35:21]Sock 8.First char is OK [16:35:21]request: POST /json_proto HTTP/1.0 [16:35:21]Method: POST [16:35:21]URL: /json_proto [16:35:21]Method is POST - this is cgi request [16:35:21]url: /json_proto [16:35:21]query_string will be loaded in cgi processing [16:35:21]execute_cgi json_proto POST (null) [16:35:21]execute_cgi path=json_proto method=POST [16:35:21]POST find Content-Length [16:35:21]Host: 172.17.53.195:8080 [16:35:21]Content-Length: 766 [16:35:21]Content-Type: application/json [16:35:21] [16:35:21]POST finish read [16:35:21]Found Content-Length = 766 [16:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:21]execute_script... [16:35: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)221392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:21]POST & json_proto [16:35:21]process_json_proto [16:35:21]json parsed OK: [16:35:21]protocol is kg_v1.0 [16:35:21]action value=close_receipt [16:35:21]process_action close_receipt [16:35:21]cmd_close_receipt [16:35:21]MH_GetDate [16:35:21]Write to MH i2c: F0 00 00 80 2F 9E [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: F0 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: F0 09 00 [16:35:21]MH_I2C_Read... [16:35:21]Read from MH i2c: F0 09 00 80 2F 00 CB 25 19 67 21 48 4A 65 2F [16:35:21]GetLastDocTimeStamp 1729701226 [16:35:21]current date 1729701323 [16:35:21]FM_GetShiftState [16:35:21]SAM_PROTO_GetShiftState [16:35:21]wFMCommunicate request_size=4 [16:35:21]MH_SAM_APDU [16:35:21]CAPDU: 80 13 01 00 [16:35:21]Write to MH i2c: E2 08 00 81 2F 80 13 01 00 00 00 00 00 2D [16:35:21]Write i2c OK [16:35:21]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0E 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0E 00 81 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F8 [16:35:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:35:22]wFMCommunicate OK [16:35:22]SAM_PROTO_GetShiftState done [16:35:22]FM_GetShiftState done [16:35:22]opened in 1729643772 [16:35:22]opened+sec_in_day 1729730172 [16:35:22]quantity*price = 300075 [16:35:22]sum+1 = 300077 [16:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 222 23.10.2024 16:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166807 ФПД: 133169769807551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166807&fm=133169769807551&tin=02508201610067®Number=0000000000091764&sum=300076 [16:35:23]StoreToDocumentArchive [16:35:23]shift 537 fd 166807 [16:35:23]save to /storage/0537/doc_00166807 [16:35:23]save last doc name /storage/0537/doc_00166807 to /storage/kkm_last_doc_name [16:35:23]save OK [16:35:23]Clear old archive folders... [16:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:35:23]tlvbuf is 01FE0A00 [16:35:23]SAM_PROTO_ClearQueue [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 09 00 00 [16:35:23]Write to MH i2c: E2 08 00 8E 2F 80 09 00 00 00 00 00 00 2F [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [16:35:23]RAPDU: 90 00 [16:35:23]wFMCommunicate OK [16:35:23]SAM_PROTO_ClearQueue done [16:35:23]KKMCreateOFDPacket [16:35:23]OFDProtocolAddRootSTLVToBuf [16:35:23]FM_MakeSignedData [16:35:23]FM_MakeSignedData [16:35:23]SAM_PROTO_SignData [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 0D 01 02 [16:35:23]Write to MH i2c: E2 08 00 8F 2F 80 0D 01 02 00 00 00 00 37 [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [16:35:23]RAPDU: 90 00 [16:35:23]wFMCommunicate OK [16:35:23]wFMCommunicate request_size=255 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 CB 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8B 02 00 35 04 06 00 79 1E 00 D2 [16:35:23]Write to MH i2c: E2 02 01 90 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 CB 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8B 02 00 35 04 06 00 79 1E 00 D2 00 00 8A [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 90 2F 00 90 00 33 [16:35:23]RAPDU: 90 00 [16:35:23]wFMCommunicate OK [16:35:23]wFMCommunicate request_size=7 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 0D 02 02 02 FE BF [16:35:23]Write to MH i2c: E2 0A 00 91 2F 80 0D 02 02 02 00 FE BF 00 00 FB [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 03 00 91 2F 00 90 00 34 [16:35:23]RAPDU: 90 00 [16:35:23]wFMCommunicate OK [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 0D 03 02 [16:35:23]Write to MH i2c: E2 08 00 92 2F 80 0D 03 02 00 00 00 00 3C [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0B 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0B 00 92 2F 00 BB 16 23 19 CB F4 2D 01 90 00 37 [16:35:23]RAPDU: BB 16 23 19 CB F4 2D 01 90 00 [16:35:23]wFMCommunicate OK [16:35:23]SAM_PROTO_SignData done [16:35:23]FM_MakeSignedData done [16:35:23]CreateOFDProtocolMessage [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 11 00 00 [16:35:23]Write to MH i2c: E2 08 00 93 2F 80 11 00 00 00 00 00 00 3C [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 17 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 17 00 93 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [16:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:35:23]wFMCommunicate OK [16:35:23]CreateOFDProtocolMessage done [16:35:23]OFDSenderStorePacket 166807 [16:35:23]StoreOFDPacket docnum=166807 [16:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E DA 04 01 DC 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 CB 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8B 02 00 35 04 06 00 79 1E 00 D2 FE BF BB 16 23 19 CB F4 2D 01 [16:35:23]CheckFolder [16:35:23]dirname=/storage/ofd_packets [16:35:23]CheckFolder done [16:35:23]ProducePacketName [16:35:23]name=ofd_packets/00166807 [16:35:23]NVStorageSaveData ofd_packets/00166807 [16:35:23]File name is /storage/ofd_packets/00166807 [16:35:23]Write 298 bytes [16:35:23]NVStorageSaveData done [16:35:23]OFDSenderStorePacket done [16:35:23]KKMCreateOFDPacket done [16:35:23]NVStorageSaveData kkm_last_timestamp [16:35:23]File name is /storage/kkm_last_timestamp [16:35:23]Write 4 bytes [16:35:23]NVStorageSaveData done [16:35:23]ExternCall_PrintAddStr [16:35:23]wPrintStart [16:35:23]Write to MH i2c: 01 00 00 94 2F C3 [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 07 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: 01 07 00 94 2F 00 00 00 00 00 FF 0F D8 [16:35:23]RasterBufferAndPrint [16:35:23]line Счет N : (1)221392 [16:35:23]line ИНН: 02508201610067 [16:35:23]line Контрольно-Кассовый Чек [16:35:23]line ПРОДАЖА [16:35:23]line ТРК (МРК, ГНК) : 41 [16:35:23]line Товар: 2710194210 [16:35:23]line ДТ-К-5 [16:35:23]line 39.380 * 76.20 [16:35:23]line = 3000.76 [16:35:23]line НДС 12% НСП 1% [16:35:23]line > о реализуемом товаре [16:35:23]line ИТОГО: 3000.76 [16:35:23]line НСП 1% : 26.55 [16:35:23]line НДС 12% : 318.66 [16:35:23]line Наличными: 0.00 [16:35:23]line Безнал.: 3000.76 [16:35:23]line Место: АЗС № 161 "Партнер Нефть" [16:35:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:35:23]line СНО: Общий режим [16:35:23]line Чек 222 23.10.2024 16:35 [16:35:23]line Смена: 537 ФФД: 1.0 [16:35:23]line ЗНМ: 0300000104 [16:35:23]line РНМ: 0000000000091764 [16:35:23]line Версия ККМ: 001 [16:35:23]line Платежная система: Mbank [16:35:23]line ФМ: 0000000000871759 [16:35:23]line ФД: 166807 [16:35:23]line ФПД: 133169769807551 [16:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166807&fm=133169769807551&tin=02508201610067®Number=0000000000091764&sum=300076 [16:35:24]OFD Sender: Processing packet 166807 [packets to send 48, broken 47] [16:35:24]ProducePacketName [16:35:24]name=ofd_packets/00166807 [16:35:24]OFD Sender: To server: pG, [16:35:24]CommunicateWithHost lk.salyk.kg:30040 [16:35:24]ConnectInit lk.salyk.kg [16:35:24]written 0, free lines is 4095 [16:35:24]Connected sock=10 [16:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E DA 04 01 DC 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 CB 25 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8B 02 00 35 04 06 00 79 1E 00 D2 FE BF BB 16 23 19 CB F4 2D 01 [16:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 CC 47 00 B3 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8B 02 00 F4 03 04 00 32 CC 18 67 B6 04 01 00 00 90 3B 08 68 47 3F 74 22 [16:35:24]CommunicateWithHost err = 0 [16:35:24]CheckOFDResponse [16:35:24]1017 (14) - 77093643461234 [16:35:24]1041 (16) - 0000000000871759 [16:35:24]1040 (4) - 166807 [16:35:24]1012 (4) - 23.10.2024 10:13 [16:35:24]1206 (1) - 0 [16:35:24]OFD Sender: Remove packet 166807 [16:35:24]ProducePacketName [16:35:24]name=ofd_packets/00166807 [16:35:24]NVStorageDeleteData [16:35:24]Write to MH i2c: 01 00 00 BD 2F EC [16:35:24]Write i2c OK [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 07 00 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 07 00 BD 2F 00 00 00 00 00 D6 0C D5 [16:35:24]RasterBufferAndPrint [16:35:24]line [16:35:24]line [16:35:24]line [16:35:24]line [16:35:24]line [16:35:24]written 0, free lines is 3295 [16:35:24]MH_Cut [16:35:24]Write to MH i2c: D1 01 00 C4 2F 01 C5 [16:35:24]Write i2c OK [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: D1 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: D1 01 00 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: D1 01 00 C4 2F 00 C4 [16:35:24]Write to MH i2c: 01 00 00 C5 2F F4 [16:35:24]Write i2c OK [16:35:24]MH_I2C_Read... [16:35:24]OFD Sender: No OFD packet to send [16:35:25]*** Cut start [16:35:25]*** Partial cut [16:35:25]*** CUTSNS_PIN = 1 [16:35:25]*** CUTSNS_PIN = 0 [16:35:25]*** Brake cut motor [16:35:25]Read from MH i2c: 01 [16:35:25]MH_I2C_Read... [16:35:25]*** Stop cut motor [16:35:25]*** Cut end [16:35:25]Read from MH i2c: 01 07 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: 01 07 00 C5 2F 00 00 00 00 00 FF 0F 09 [16:35:25]process_action close_receipt done [16:35:25]requested_data is exist [16:35:25]produce_requested_data [16:35:25]requested_item fm.sn is exist - process it [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 11 00 00 [16:35:25]Write to MH i2c: E2 08 00 C6 2F 80 11 00 00 00 00 00 00 6F [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 17 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 17 00 C6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [16:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:35:25]wFMCommunicate OK [16:35:25]requested_item fd.num is exist - process it [16:35:25]SAM_PROTO_GetFieldsCounters [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 13 00 00 [16:35:25]Write to MH i2c: E2 08 00 C7 2F 80 13 00 00 00 00 00 00 72 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 62 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 62 00 C7 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:35:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:26]wFMCommunicate OK [16:35:26]SAM_PROTO_GetFieldsCounters done [16:35:26]requested_item shift.num is exist - process it [16:35:26]requested_item shift.opened is exist - process it [16:35:26]req_shift_opened [16:35:26]FM_GetShiftState [16:35:26]SAM_PROTO_GetShiftState [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 13 01 00 [16:35:26]Write to MH i2c: E2 08 00 C8 2F 80 13 01 00 00 00 00 00 74 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 0E 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 0E 00 C8 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3F [16:35:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:35:26]wFMCommunicate OK [16:35:26]SAM_PROTO_GetShiftState done [16:35:26]FM_GetShiftState done [16:35:26]req_shift_opened done [16:35:26]requested_item shift.open_date is exist - process it [16:35:26]req_shift_open_date [16:35:26]req_shift_open_date done [16:35:26]produce_requested_data done [16:35:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166807,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:35:26]process_action_free close_receipt [16:35:26]json_value_free [16:35:26]json_value_free done [16:35:26]process_json_proto returns [16:35:26]Send response to host [16:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166807,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:35:26]free response buf [16:35:26]execute_script done [16:35:26]execute_script returns [16:35:26]free content buf [16:35:26]Sock 8.Close socket [16:35:26]Sock 8.Thread stoped [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:36]accept exits with 9 [16:38:36]New connection [16:38:36]New thread 3067034980 created [16:38:36]Thread 3067178340 joined [16:38:36]Waiting for new connection... [16:38:36] Sock 9.Parse request [16:38:36]Sock 9.Check first char [16:38:36]Sock 9.First char is OK [16:38:36]request: POST /json_proto HTTP/1.0 [16:38:36]Method: POST [16:38:36]URL: /json_proto [16:38:36]Method is POST - this is cgi request [16:38:36]url: /json_proto [16:38:36]query_string will be loaded in cgi processing [16:38:36]execute_cgi json_proto POST (null) [16:38:36]execute_cgi path=json_proto method=POST [16:38:36]POST find Content-Length [16:38:36]Host: 172.17.53.195:8080 [16:38:36]Content-Length: 677 [16:38:36]Content-Type: application/json [16:38:36] [16:38:36]POST finish read [16:38:36]Found Content-Length = 677 [16:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:36]execute_script... [16:38: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)221393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:36]POST & json_proto [16:38:36]process_json_proto [16:38:36]json parsed OK: [16:38:36]protocol is kg_v1.0 [16:38:36]action value=close_receipt [16:38:36]process_action close_receipt [16:38:36]cmd_close_receipt [16:38:36]MH_GetDate [16:38:36]Write to MH i2c: F0 00 00 C9 2F E7 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 09 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 09 00 C9 2F 00 8E 26 19 67 21 48 4A 65 3C [16:38:36]GetLastDocTimeStamp 1729701323 [16:38:36]current date 1729701518 [16:38:36]FM_GetShiftState [16:38:36]SAM_PROTO_GetShiftState [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 13 01 00 [16:38:36]Write to MH i2c: E2 08 00 CA 2F 80 13 01 00 00 00 00 00 76 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 CA 2F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 41 [16:38:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:38:36]wFMCommunicate OK [16:38:36]SAM_PROTO_GetShiftState done [16:38:36]FM_GetShiftState done [16:38:36]opened in 1729643772 [16:38:36]opened+sec_in_day 1729730172 [16:38:36]quantity*price = 30038 [16:38:36]sum+1 = 30039 [16:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 223 23.10.2024 16:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166808 ФПД: 59508563295937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163838&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166808&fm=59508563295937&tin=02508201610067®Number=0000000000091764&sum=30000 [16:38:37]StoreToDocumentArchive [16:38:37]shift 537 fd 166808 [16:38:37]save to /storage/0537/doc_00166808 [16:38:37]save last doc name /storage/0537/doc_00166808 to /storage/kkm_last_doc_name [16:38:37]save OK [16:38:37]Clear old archive folders... [16:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:37]tlvbuf is 02042BA0 [16:38:37]SAM_PROTO_ClearQueue [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 09 00 00 [16:38:37]Write to MH i2c: E2 08 00 D7 2F 80 09 00 00 00 00 00 00 78 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 D7 2F 00 90 00 7A [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_ClearQueue done [16:38:37]KKMCreateOFDPacket [16:38:37]OFDProtocolAddRootSTLVToBuf [16:38:37]FM_MakeSignedData [16:38:37]FM_MakeSignedData [16:38:37]SAM_PROTO_SignData [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 01 02 [16:38:37]Write to MH i2c: E2 08 00 D8 2F 80 0D 01 02 00 00 00 00 80 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=255 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8E 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8B 02 00 35 04 06 00 36 [16:38:37]Write to MH i2c: E2 02 01 D9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8E 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8B 02 00 35 04 06 00 36 00 00 93 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 D9 2F 00 90 00 7C [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=10 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 05 1F 6A C6 BE C1 [16:38:37]Write to MH i2c: E2 0D 00 DA 2F 80 0D 02 02 05 00 1F 6A C6 BE C1 00 00 5B [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 DA 2F 00 90 00 7D [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 03 02 [16:38:37]Write to MH i2c: E2 08 00 DB 2F 80 0D 03 02 00 00 00 00 85 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 DB 2F 00 98 E3 FF 72 6E D7 8A 6D 90 00 AE [16:38:37]RAPDU: 98 E3 FF 72 6E D7 8A 6D 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_SignData done [16:38:37]FM_MakeSignedData done [16:38:37]CreateOFDProtocolMessage [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 11 00 00 [16:38:37]Write to MH i2c: E2 08 00 DC 2F 80 11 00 00 00 00 00 00 85 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 DC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [16:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:38:37]wFMCommunicate OK [16:38:37]CreateOFDProtocolMessage done [16:38:37]OFDSenderStorePacket 166808 [16:38:37]StoreOFDPacket docnum=166808 [16:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 34 07 01 DC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8E 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8B 02 00 35 04 06 00 36 1F 6A C6 BE C1 98 E3 FF 72 6E D7 8A 6D [16:38:37]CheckFolder [16:38:37]dirname=/storage/ofd_packets [16:38:37]CheckFolder done [16:38:37]ProducePacketName [16:38:37]name=ofd_packets/00166808 [16:38:37]NVStorageSaveData ofd_packets/00166808 [16:38:37]File name is /storage/ofd_packets/00166808 [16:38:37]Write 301 bytes [16:38:37]NVStorageSaveData done [16:38:37]OFDSenderStorePacket done [16:38:37]KKMCreateOFDPacket done [16:38:37]NVStorageSaveData kkm_last_timestamp [16:38:37]File name is /storage/kkm_last_timestamp [16:38:37]Write 4 bytes [16:38:37]NVStorageSaveData done [16:38:37]ExternCall_PrintAddStr [16:38:37]wPrintStart [16:38:37]Write to MH i2c: 01 00 00 DD 2F 0C [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 DD 2F 00 00 00 00 00 FF 0F 21 [16:38:37]RasterBufferAndPrint [16:38:37]line Счет N : (1)221393 [16:38:37]line ИНН: 02508201610067 [16:38:37]line Контрольно-Кассовый Чек [16:38:37]line ПРОДАЖА [16:38:37]line ТРК (МРК, ГНК) : 23 [16:38:37]line Товар: 2710124130 [16:38:37]line Аи-92-К-5 [16:38:37]line 4.490 * 66.90 [16:38:37]line = 300.38 [16:38:37]line НДС 12% НСП 1% [16:38:37]line > о реализуемом товаре [16:38:37]line ОКРУГЛЕНИЕ: -0.38 [16:38:37]line ИТОГО: 300.00 [16:38:37]line Внесено: 300.00 [16:38:37]line СДАЧА: 0.00 [16:38:37]line НСП 1% : 2.66 [16:38:37]line НДС 12% : 31.90 [16:38:37]line Наличными: 300.00 [16:38:37]line Безнал.: 0.00 [16:38:37]line Место: АЗС № 161 "Партнер Нефть" [16:38:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:38:37]line СНО: Общий режим [16:38:37]line Чек 223 23.10.2024 16:38 [16:38:37]line Смена: 537 ФФД: 1.0 [16:38:37]line ЗНМ: 0300000104 [16:38:37]line РНМ: 0000000000091764 [16:38:37]line Версия ККМ: 001 [16:38:37]line ФМ: 0000000000871759 [16:38:37]line ФД: 166808 [16:38:37]line ФПД: 59508563295937 [16:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163838&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166808&fm=59508563295937&tin=02508201610067®Number=0000000000091764&sum=30000 [16:38:38]OFD Sender: Processing packet 166808 [packets to send 48, broken 47] [16:38:38]ProducePacketName [16:38:38]name=ofd_packets/00166808 [16:38:38]OFD Sender: To server: pG, [16:38:38]CommunicateWithHost lk.salyk.kg:30040 [16:38:38]ConnectInit lk.salyk.kg [16:38:38]written 0, free lines is 4095 [16:38:38]Connected sock=10 [16:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 34 07 01 DC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8E 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8B 02 00 35 04 06 00 36 1F 6A C6 BE C1 98 E3 FF 72 6E D7 8A 6D [16:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 59 47 00 D4 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8B 02 00 F4 03 04 00 F5 CC 18 67 B6 04 01 00 00 FD CC 08 B7 97 A5 B4 5B [16:38:38]CommunicateWithHost err = 0 [16:38:38]CheckOFDResponse [16:38:38]1017 (14) - 77093643461234 [16:38:38]1041 (16) - 0000000000871759 [16:38:38]1040 (4) - 166808 [16:38:38]1012 (4) - 23.10.2024 10:16 [16:38:38]1206 (1) - 0 [16:38:38]OFD Sender: Remove packet 166808 [16:38:38]ProducePacketName [16:38:38]name=ofd_packets/00166808 [16:38:38]NVStorageDeleteData [16:38:38]Write to MH i2c: 01 00 00 08 30 38 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 08 30 00 00 00 00 00 B5 0C 00 [16:38:38]RasterBufferAndPrint [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]written 0, free lines is 3259 [16:38:38]MH_Cut [16:38:38]Write to MH i2c: D1 01 00 0F 30 01 11 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 0F 30 00 10 [16:38:38]Write to MH i2c: 01 00 00 10 30 40 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:39]OFD Sender: No OFD packet to send [16:38:39]*** Cut start [16:38:39]*** Partial cut [16:38:39]*** CUTSNS_PIN = 1 [16:38:39]*** CUTSNS_PIN = 0 [16:38:39]*** Brake cut motor [16:38:40]Read from MH i2c: 01 [16:38:40]MH_I2C_Read... [16:38:40]*** Stop cut motor [16:38:40]*** Cut end [16:38:40]Read from MH i2c: 01 07 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: 01 07 00 10 30 00 00 00 00 00 FF 0F 55 [16:38:40]process_action close_receipt done [16:38:40]requested_data is exist [16:38:40]produce_requested_data [16:38:40]requested_item fm.sn is exist - process it [16:38:40]wFMCommunicate request_size=4 [16:38:40]MH_SAM_APDU [16:38:40]CAPDU: 80 11 00 00 [16:38:40]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 17 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 17 00 11 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [16:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:38:40]wFMCommunicate OK [16:38:40]requested_item fd.num is exist - process it [16:38:40]SAM_PROTO_GetFieldsCounters [16:38:40]wFMCommunicate request_size=4 [16:38:40]MH_SAM_APDU [16:38:40]CAPDU: 80 13 00 00 [16:38:40]Write to MH i2c: E2 08 00 12 30 80 13 00 00 00 00 00 00 BE [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 12 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetFieldsCounters done [16:38:40]requested_item shift.num is exist - process it [16:38:40]requested_item shift.opened is exist - process it [16:38:40]req_shift_opened [16:38:40]FM_GetShiftState [16:38:40]SAM_PROTO_GetShiftState [16:38:40]wFMCommunicate request_size=4 [16:38:40]MH_SAM_APDU [16:38:40]CAPDU: 80 13 01 00 [16:38:40]Write to MH i2c: E2 08 00 13 30 80 13 01 00 00 00 00 00 C0 [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 13 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8B [16:38:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetShiftState done [16:38:40]FM_GetShiftState done [16:38:40]req_shift_opened done [16:38:40]requested_item shift.open_date is exist - process it [16:38:40]req_shift_open_date [16:38:40]req_shift_open_date done [16:38:40]produce_requested_data done [16:38:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166808,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:38:40]process_action_free close_receipt [16:38:40]json_value_free [16:38:40]json_value_free done [16:38:40]process_json_proto returns [16:38:40]Send response to host [16:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166808,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:38:40]free response buf [16:38:40]execute_script done [16:38:40]execute_script returns [16:38:40]free content buf [16:38:40]Sock 9.Close socket [16:38:40]Sock 9.Thread stoped [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:41]accept exits with 8 [16:39:41]New connection [16:39:41]New thread 3067178340 created [16:39:41]Thread 3067034980 joined [16:39:41]Waiting for new connection... [16:39:41] Sock 8.Parse request [16:39:41]Sock 8.Check first char [16:39:41]Sock 8.First char is OK [16:39:41]request: POST /json_proto HTTP/1.0 [16:39:41]Method: POST [16:39:41]URL: /json_proto [16:39:41]Method is POST - this is cgi request [16:39:41]url: /json_proto [16:39:41]query_string will be loaded in cgi processing [16:39:41]execute_cgi json_proto POST (null) [16:39:41]execute_cgi path=json_proto method=POST [16:39:41]POST find Content-Length [16:39:41]Host: 172.17.53.195:8080 [16:39:41]Content-Length: 800 [16:39:41]Content-Type: application/json [16:39:41] [16:39:41]POST finish read [16:39:41]Found Content-Length = 800 [16:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:41]execute_script... [16:39: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)221394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:41]POST & json_proto [16:39:41]process_json_proto [16:39:41]json parsed OK: [16:39:41]protocol is kg_v1.0 [16:39:41]action value=close_receipt [16:39:41]process_action close_receipt [16:39:41]cmd_close_receipt [16:39:41]MH_GetDate [16:39:41]Write to MH i2c: F0 00 00 14 30 33 [16:39:41]Write i2c OK [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 09 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 09 00 14 30 00 CF 26 19 67 21 48 4A 65 C9 [16:39:41]GetLastDocTimeStamp 1729701518 [16:39:41]current date 1729701583 [16:39:41]FM_GetShiftState [16:39:41]SAM_PROTO_GetShiftState [16:39:41]wFMCommunicate request_size=4 [16:39:41]MH_SAM_APDU [16:39:41]CAPDU: 80 13 01 00 [16:39:41]Write to MH i2c: E2 08 00 15 30 80 13 01 00 00 00 00 00 C2 [16:39:41]Write i2c OK [16:39:41]MH_I2C_Read... [16:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:41]Read from MH i2c: E2 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 15 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8D [16:39:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:39:41]wFMCommunicate OK [16:39:41]SAM_PROTO_GetShiftState done [16:39:41]FM_GetShiftState done [16:39:41]opened in 1729643772 [16:39:41]opened+sec_in_day 1729730172 [16:39:41]quantity*price = 65026 [16:39:41]sum+1 = 65028 [16:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.27 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 0.00 Безнал.: 650.27 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 224 23.10.2024 16:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871759 ФД: 166809 ФПД: 457811086595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166809&fm=457811086595&tin=02508201610067®Number=0000000000091764&sum=65027 [16:39:42]StoreToDocumentArchive [16:39:42]shift 537 fd 166809 [16:39:42]save to /storage/0537/doc_00166809 [16:39:42]save last doc name /storage/0537/doc_00166809 to /storage/kkm_last_doc_name [16:39:42]save OK [16:39:42]Clear old archive folders... [16:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:42]tlvbuf is 01FAF930 [16:39:42]SAM_PROTO_ClearQueue [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 09 00 00 [16:39:42]Write to MH i2c: E2 08 00 22 30 80 09 00 00 00 00 00 00 C4 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 22 30 00 90 00 C6 [16:39:42]RAPDU: 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_ClearQueue done [16:39:42]KKMCreateOFDPacket [16:39:42]OFDProtocolAddRootSTLVToBuf [16:39:42]FM_MakeSignedData [16:39:42]FM_MakeSignedData [16:39:42]SAM_PROTO_SignData [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 0D 01 02 [16:39:42]Write to MH i2c: E2 08 00 23 30 80 0D 01 02 00 00 00 00 CC [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 23 30 00 90 00 C7 [16:39:42]RAPDU: 90 00 [16:39:42]wFMCommunicate OK [16:39:42]wFMCommunicate request_size=255 [16:39:42]MH_SAM_APDU [16:39: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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 CF 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8B 02 00 35 04 06 00 00 [16:39:42]Write to MH i2c: E2 02 01 24 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 CF 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8B 02 00 35 04 06 00 00 00 00 23 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 24 30 00 90 00 C8 [16:39:42]RAPDU: 90 00 [16:39:42]wFMCommunicate OK [16:39:42]wFMCommunicate request_size=10 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 0D 02 02 05 6A 97 AA CD 03 [16:39:42]Write to MH i2c: E2 0D 00 25 30 80 0D 02 02 05 00 6A 97 AA CD 03 00 00 54 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 03 00 25 30 00 90 00 C9 [16:39:42]RAPDU: 90 00 [16:39:42]wFMCommunicate OK [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 0D 03 02 [16:39:42]Write to MH i2c: E2 08 00 26 30 80 0D 03 02 00 00 00 00 D1 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0B 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0B 00 26 30 00 8B C5 6D 40 77 6D 63 39 90 00 4F [16:39:42]RAPDU: 8B C5 6D 40 77 6D 63 39 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_SignData done [16:39:42]FM_MakeSignedData done [16:39:42]CreateOFDProtocolMessage [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 11 00 00 [16:39:42]Write to MH i2c: E2 08 00 27 30 80 11 00 00 00 00 00 00 D1 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 27 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [16:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:39:43]wFMCommunicate OK [16:39:43]CreateOFDProtocolMessage done [16:39:43]OFDSenderStorePacket 166809 [16:39:43]StoreOFDPacket docnum=166809 [16:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 E2 07 01 64 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 CF 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8B 02 00 35 04 06 00 00 6A 97 AA CD 03 8B C5 6D 40 77 6D 63 39 [16:39:43]CheckFolder [16:39:43]dirname=/storage/ofd_packets [16:39:43]CheckFolder done [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00166809 [16:39:43]NVStorageSaveData ofd_packets/00166809 [16:39:43]File name is /storage/ofd_packets/00166809 [16:39:43]Write 301 bytes [16:39:43]NVStorageSaveData done [16:39:43]OFDSenderStorePacket done [16:39:43]KKMCreateOFDPacket done [16:39:43]NVStorageSaveData kkm_last_timestamp [16:39:43]File name is /storage/kkm_last_timestamp [16:39:43]Write 4 bytes [16:39:43]NVStorageSaveData done [16:39:43]ExternCall_PrintAddStr [16:39:43]wPrintStart [16:39:43]Write to MH i2c: 01 00 00 28 30 58 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 28 30 00 00 00 00 00 FF 0F 6D [16:39:43]RasterBufferAndPrint [16:39:43]line Счет N : (1)221394 [16:39:43]line ИНН: 02508201610067 [16:39:43]line Контрольно-Кассовый Чек [16:39:43]line ПРОДАЖА [16:39:43]line ТРК (МРК, ГНК) : 13 [16:39:43]line Товар: 2710124130 [16:39:43]line Аи-92-К-5 [16:39:43]line 9.720 * 66.90 [16:39:43]line = 650.27 [16:39:43]line НДС 12% НСП 1% [16:39:43]line > о реализуемом товаре [16:39:43]line ИТОГО: 650.27 [16:39:43]line НСП 1% : 5.75 [16:39:43]line НДС 12% : 69.05 [16:39:43]line Наличными: 0.00 [16:39:43]line Безнал.: 650.27 [16:39:43]line Место: АЗС № 161 "Партнер Нефть" [16:39:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:39:43]line СНО: Общий режим [16:39:43]line Чек 224 23.10.2024 16:39 [16:39:43]line Смена: 537 ФФД: 1.0 [16:39:43]line ЗНМ: 0300000104 [16:39:43]line РНМ: 0000000000091764 [16:39:43]line Версия ККМ: 001 [16:39:43]line Платежная система: O! деньги [16:39:43]line ФМ: 0000000000871759 [16:39:43]line ФД: 166809 [16:39:43]line ФПД: 457811086595 [16:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166809&fm=457811086595&tin=02508201610067®Number=0000000000091764&sum=65027 [16:39:43]written 0, free lines is 4095 [16:39:43]OFD Sender: Processing packet 166809 [packets to send 48, broken 47] [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00166809 [16:39:43]OFD Sender: To server: pG, [16:39:43]CommunicateWithHost lk.salyk.kg:30040 [16:39:43]ConnectInit lk.salyk.kg [16:39:43]Connected sock=10 [16:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 E2 07 01 64 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 CF 26 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8B 02 00 35 04 06 00 00 6A 97 AA CD 03 8B C5 6D 40 77 6D 63 39 [16:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF 3C 47 00 28 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8B 02 00 F4 03 04 00 36 CD 18 67 B6 04 01 00 00 22 82 E0 D1 9F 01 2D D9 [16:39:43]CommunicateWithHost err = 0 [16:39:43]CheckOFDResponse [16:39:43]1017 (14) - 77093643461234 [16:39:43]1041 (16) - 0000000000871759 [16:39:43]1040 (4) - 166809 [16:39:43]1012 (4) - 23.10.2024 10:17 [16:39:43]1206 (1) - 0 [16:39:43]OFD Sender: Remove packet 166809 [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00166809 [16:39:43]NVStorageDeleteData [16:39:43]Write to MH i2c: 01 00 00 52 30 82 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 52 30 00 00 00 00 00 BC 0C 51 [16:39:43]RasterBufferAndPrint [16:39:43]line [16:39:43]line [16:39:43]line [16:39:43]line [16:39:43]line [16:39:43]written 0, free lines is 3267 [16:39:43]MH_Cut [16:39:43]Write to MH i2c: D1 01 00 59 30 01 5B [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: D1 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: D1 01 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: D1 01 00 59 30 00 5A [16:39:43]Write to MH i2c: 01 00 00 5A 30 8A [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:44]OFD Sender: No OFD packet to send [16:39:44]*** Cut start [16:39:44]*** Partial cut [16:39:44]*** CUTSNS_PIN = 1 [16:39:44]*** CUTSNS_PIN = 0 [16:39:44]*** Brake cut motor [16:39:45]Read from MH i2c: 01 [16:39:45]MH_I2C_Read... [16:39:45]*** Stop cut motor [16:39:45]*** Cut end [16:39:45]Read from MH i2c: 01 07 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: 01 07 00 5A 30 00 00 00 00 00 FF 0F 9F [16:39:45]process_action close_receipt done [16:39:45]requested_data is exist [16:39:45]produce_requested_data [16:39:45]requested_item fm.sn is exist - process it [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 11 00 00 [16:39:45]Write to MH i2c: E2 08 00 5B 30 80 11 00 00 00 00 00 00 05 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 17 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 17 00 5B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [16:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:39:45]wFMCommunicate OK [16:39:45]requested_item fd.num is exist - process it [16:39:45]SAM_PROTO_GetFieldsCounters [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 13 00 00 [16:39:45]Write to MH i2c: E2 08 00 5C 30 80 13 00 00 00 00 00 00 08 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 62 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 62 00 5C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [16:39:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:45]wFMCommunicate OK [16:39:45]SAM_PROTO_GetFieldsCounters done [16:39:45]requested_item shift.num is exist - process it [16:39:45]requested_item shift.opened is exist - process it [16:39:45]req_shift_opened [16:39:45]FM_GetShiftState [16:39:45]SAM_PROTO_GetShiftState [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 13 01 00 [16:39:45]Write to MH i2c: E2 08 00 5D 30 80 13 01 00 00 00 00 00 0A [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 0E 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 0E 00 5D 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D5 [16:39:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:39:45]wFMCommunicate OK [16:39:45]SAM_PROTO_GetShiftState done [16:39:45]FM_GetShiftState done [16:39:45]req_shift_opened done [16:39:45]requested_item shift.open_date is exist - process it [16:39:45]req_shift_open_date [16:39:45]req_shift_open_date done [16:39:45]produce_requested_data done [16:39:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166809,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:39:45]process_action_free close_receipt [16:39:45]json_value_free [16:39:45]json_value_free done [16:39:45]process_json_proto returns [16:39:45]Send response to host [16:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166809,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:39:45]free response buf [16:39:45]execute_script done [16:39:45]execute_script returns [16:39:45]free content buf [16:39:45]Sock 8.Close socket [16:39:45]Sock 8.Thread stoped [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:53]accept exits with 9 [16:42:53]New connection [16:42:53]New thread 3067034980 created [16:42:53]Thread 3067178340 joined [16:42:53]Waiting for new connection... [16:42:53] Sock 9.Parse request [16:42:53]Sock 9.Check first char [16:42:53]Sock 9.First char is OK [16:42:53]request: POST /json_proto HTTP/1.0 [16:42:53]Method: POST [16:42:53]URL: /json_proto [16:42:53]Method is POST - this is cgi request [16:42:53]url: /json_proto [16:42:53]query_string will be loaded in cgi processing [16:42:53]execute_cgi json_proto POST (null) [16:42:53]execute_cgi path=json_proto method=POST [16:42:53]POST find Content-Length [16:42:53]Host: 172.17.53.195:8080 [16:42:53]Content-Length: 766 [16:42:53]Content-Type: application/json [16:42:53] [16:42:53]POST finish read [16:42:53]Found Content-Length = 766 [16:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:53]execute_script... [16:42: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)221395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:53]POST & json_proto [16:42:53]process_json_proto [16:42:53]json parsed OK: [16:42:53]protocol is kg_v1.0 [16:42:53]action value=close_receipt [16:42:53]process_action close_receipt [16:42:53]cmd_close_receipt [16:42:53]MH_GetDate [16:42:53]Write to MH i2c: F0 00 00 5E 30 7D [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: F0 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: F0 09 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: F0 09 00 5E 30 00 8F 27 19 67 21 48 4A 65 D4 [16:42:53]GetLastDocTimeStamp 1729701583 [16:42:53]current date 1729701775 [16:42:53]FM_GetShiftState [16:42:53]SAM_PROTO_GetShiftState [16:42:53]wFMCommunicate request_size=4 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 13 01 00 [16:42:53]Write to MH i2c: E2 08 00 5F 30 80 13 01 00 00 00 00 00 0C [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 0E 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 0E 00 5F 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D7 [16:42:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:42:53]wFMCommunicate OK [16:42:53]SAM_PROTO_GetShiftState done [16:42:53]FM_GetShiftState done [16:42:53]opened in 1729643772 [16:42:53]opened+sec_in_day 1729730172 [16:42:53]quantity*price = 150037 [16:42:53]sum+1 = 150039 [16:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 225 23.10.2024 16:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166810 ФПД: 196793421718056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164255&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166810&fm=196793421718056&tin=02508201610067®Number=0000000000091764&sum=150038 [16:42:55]StoreToDocumentArchive [16:42:55]shift 537 fd 166810 [16:42:55]save to /storage/0537/doc_00166810 [16:42:55]save last doc name /storage/0537/doc_00166810 to /storage/kkm_last_doc_name [16:42:55]save OK [16:42:55]Clear old archive folders... [16:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:42:55]tlvbuf is B6F8C4F0 [16:42:55]SAM_PROTO_ClearQueue [16:42:55]wFMCommunicate request_size=4 [16:42:55]MH_SAM_APDU [16:42:55]CAPDU: 80 09 00 00 [16:42:55]Write to MH i2c: E2 08 00 6C 30 80 09 00 00 00 00 00 00 0E [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 6C 30 00 90 00 10 [16:42:55]RAPDU: 90 00 [16:42:55]wFMCommunicate OK [16:42:55]SAM_PROTO_ClearQueue done [16:42:55]KKMCreateOFDPacket [16:42:55]OFDProtocolAddRootSTLVToBuf [16:42:55]FM_MakeSignedData [16:42:55]FM_MakeSignedData [16:42:55]SAM_PROTO_SignData [16:42:55]wFMCommunicate request_size=4 [16:42:55]MH_SAM_APDU [16:42:55]CAPDU: 80 0D 01 02 [16:42:55]Write to MH i2c: E2 08 00 6D 30 80 0D 01 02 00 00 00 00 16 [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [16:42:55]RAPDU: 90 00 [16:42:55]wFMCommunicate OK [16:42:55]wFMCommunicate request_size=255 [16:42:55]MH_SAM_APDU [16:42: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8F 27 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8B 02 00 35 04 06 00 B2 FB 89 FE [16:42:55]Write to MH i2c: E2 02 01 6E 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8F 27 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8B 02 00 35 04 06 00 B2 FB 89 FE 00 00 F4 [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [16:42:55]RAPDU: 90 00 [16:42:55]wFMCommunicate OK [16:42:55]wFMCommunicate request_size=7 [16:42:55]MH_SAM_APDU [16:42:55]CAPDU: 80 0D 02 02 02 E2 28 [16:42:55]Write to MH i2c: E2 0A 00 6F 30 80 0D 02 02 02 00 E2 28 00 00 27 [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 03 00 6F 30 00 90 00 13 [16:42:55]RAPDU: 90 00 [16:42:55]wFMCommunicate OK [16:42:55]wFMCommunicate request_size=4 [16:42:55]MH_SAM_APDU [16:42:55]CAPDU: 80 0D 03 02 [16:42:55]Write to MH i2c: E2 08 00 70 30 80 0D 03 02 00 00 00 00 1B [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 0B 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 0B 00 70 30 00 86 3A 32 A4 6A E3 43 BF 90 00 01 [16:42:55]RAPDU: 86 3A 32 A4 6A E3 43 BF 90 00 [16:42:55]wFMCommunicate OK [16:42:55]SAM_PROTO_SignData done [16:42:55]FM_MakeSignedData done [16:42:55]CreateOFDProtocolMessage [16:42:55]wFMCommunicate request_size=4 [16:42:55]MH_SAM_APDU [16:42:55]CAPDU: 80 11 00 00 [16:42:55]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:55]Read from MH i2c: E2 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 17 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [16:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:42:55]wFMCommunicate OK [16:42:55]CreateOFDProtocolMessage done [16:42:55]OFDSenderStorePacket 166810 [16:42:55]StoreOFDPacket docnum=166810 [16:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B EF 04 01 7D 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8F 27 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8B 02 00 35 04 06 00 B2 FB 89 FE E2 28 86 3A 32 A4 6A E3 43 BF [16:42:55]CheckFolder [16:42:55]dirname=/storage/ofd_packets [16:42:55]CheckFolder done [16:42:55]ProducePacketName [16:42:55]name=ofd_packets/00166810 [16:42:55]NVStorageSaveData ofd_packets/00166810 [16:42:55]File name is /storage/ofd_packets/00166810 [16:42:55]Write 298 bytes [16:42:55]NVStorageSaveData done [16:42:55]OFDSenderStorePacket done [16:42:55]KKMCreateOFDPacket done [16:42:55]NVStorageSaveData kkm_last_timestamp [16:42:55]File name is /storage/kkm_last_timestamp [16:42:55]Write 4 bytes [16:42:55]NVStorageSaveData done [16:42:55]ExternCall_PrintAddStr [16:42:55]wPrintStart [16:42:55]Write to MH i2c: 01 00 00 72 30 A2 [16:42:55]Write i2c OK [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 07 00 [16:42:55]MH_I2C_Read... [16:42:55]Read from MH i2c: 01 07 00 72 30 00 00 00 00 00 FF 0F B7 [16:42:55]RasterBufferAndPrint [16:42:55]line Счет N : (1)221395 [16:42:55]line ИНН: 02508201610067 [16:42:55]line Контрольно-Кассовый Чек [16:42:55]line ПРОДАЖА [16:42:55]line ТРК (МРК, ГНК) : 21 [16:42:55]line Товар: 2710194210 [16:42:55]line ДТ-К-5 [16:42:55]line 19.690 * 76.20 [16:42:55]line = 1500.38 [16:42:55]line НДС 12% НСП 1% [16:42:55]line > о реализуемом товаре [16:42:55]line ИТОГО: 1500.38 [16:42:55]line НСП 1% : 13.28 [16:42:55]line НДС 12% : 159.33 [16:42:55]line Наличными: 0.00 [16:42:55]line Безнал.: 1500.38 [16:42:55]line Место: АЗС № 161 "Партнер Нефть" [16:42:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:42:55]line СНО: Общий режим [16:42:55]line Чек 225 23.10.2024 16:42 [16:42:55]line Смена: 537 ФФД: 1.0 [16:42:55]line ЗНМ: 0300000104 [16:42:55]line РНМ: 0000000000091764 [16:42:55]line Версия ККМ: 001 [16:42:55]line Платежная система: Mbank [16:42:55]line ФМ: 0000000000871759 [16:42:55]line ФД: 166810 [16:42:55]line ФПД: 196793421718056 [16:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164255&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166810&fm=196793421718056&tin=02508201610067®Number=0000000000091764&sum=150038 [16:42:55]OFD Sender: Processing packet 166810 [packets to send 48, broken 47] [16:42:55]ProducePacketName [16:42:55]name=ofd_packets/00166810 [16:42:55]OFD Sender: To server: pG, [16:42:55]CommunicateWithHost lk.salyk.kg:30040 [16:42:55]ConnectInit lk.salyk.kg [16:42:55]written 0, free lines is 4095 [16:42:55]Connected sock=10 [16:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B EF 04 01 7D 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8F 27 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8B 02 00 35 04 06 00 B2 FB 89 FE E2 28 86 3A 32 A4 6A E3 43 BF [16:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 38 1A 47 00 E3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8B 02 00 F4 03 04 00 F6 CD 18 67 B6 04 01 00 00 24 03 02 92 47 12 FA 3E [16:42:56]CommunicateWithHost err = 0 [16:42:56]CheckOFDResponse [16:42:56]1017 (14) - 77093643461234 [16:42:56]1041 (16) - 0000000000871759 [16:42:56]1040 (4) - 166810 [16:42:56]1012 (4) - 23.10.2024 10:20 [16:42:56]1206 (1) - 0 [16:42:56]OFD Sender: Remove packet 166810 [16:42:56]ProducePacketName [16:42:56]name=ofd_packets/00166810 [16:42:56]NVStorageDeleteData [16:42:56]Write to MH i2c: 01 00 00 9B 30 CB [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: 01 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: 01 07 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: 01 07 00 9B 30 00 00 00 00 00 D5 0C B3 [16:42:56]RasterBufferAndPrint [16:42:56]line [16:42:56]line [16:42:56]line [16:42:56]line [16:42:56]line [16:42:56]written 0, free lines is 3292 [16:42:56]MH_Cut [16:42:56]Write to MH i2c: D1 01 00 A2 30 01 A4 [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: D1 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: D1 01 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: D1 01 00 A2 30 00 A3 [16:42:56]Write to MH i2c: 01 00 00 A3 30 D3 [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]OFD Sender: No OFD packet to send [16:42:57]*** Cut start [16:42:57]*** Partial cut [16:42:57]*** CUTSNS_PIN = 1 [16:42:57]*** CUTSNS_PIN = 0 [16:42:57]*** Brake cut motor [16:42:57]Read from MH i2c: 01 [16:42:57]MH_I2C_Read... [16:42:57]*** Stop cut motor [16:42:57]*** Cut end [16:42:57]Read from MH i2c: 01 07 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [16:42:57]process_action close_receipt done [16:42:57]requested_data is exist [16:42:57]produce_requested_data [16:42:57]requested_item fm.sn is exist - process it [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 11 00 00 [16:42:57]Write to MH i2c: E2 08 00 A4 30 80 11 00 00 00 00 00 00 4E [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 A4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [16:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:42:57]wFMCommunicate OK [16:42:57]requested_item fd.num is exist - process it [16:42:57]SAM_PROTO_GetFieldsCounters [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 13 00 00 [16:42:57]Write to MH i2c: E2 08 00 A5 30 80 13 00 00 00 00 00 00 51 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 62 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 62 00 A5 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:57]wFMCommunicate OK [16:42:57]SAM_PROTO_GetFieldsCounters done [16:42:57]requested_item shift.num is exist - process it [16:42:57]requested_item shift.opened is exist - process it [16:42:57]req_shift_opened [16:42:57]FM_GetShiftState [16:42:57]SAM_PROTO_GetShiftState [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 13 01 00 [16:42:57]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 0E 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1E [16:42:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:42:57]wFMCommunicate OK [16:42:57]SAM_PROTO_GetShiftState done [16:42:57]FM_GetShiftState done [16:42:57]req_shift_opened done [16:42:57]requested_item shift.open_date is exist - process it [16:42:57]req_shift_open_date [16:42:57]req_shift_open_date done [16:42:57]produce_requested_data done [16:42:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166810,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:42:57]process_action_free close_receipt [16:42:57]json_value_free [16:42:57]json_value_free done [16:42:57]process_json_proto returns [16:42:57]Send response to host [16:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166810,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:42:57]free response buf [16:42:57]execute_script done [16:42:57]execute_script returns [16:42:57]free content buf [16:42:57]Sock 9.Close socket [16:42:57]Sock 9.Thread stoped [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:34]accept exits with 8 [16:45:34]New connection [16:45:34]New thread 3067178340 created [16:45:34]Thread 3067034980 joined [16:45:34]Waiting for new connection... [16:45:34] Sock 8.Parse request [16:45:34]Sock 8.Check first char [16:45:34]Sock 8.First char is OK [16:45:34]request: POST /json_proto HTTP/1.0 [16:45:34]Method: POST [16:45:34]URL: /json_proto [16:45:34]Method is POST - this is cgi request [16:45:34]url: /json_proto [16:45:34]query_string will be loaded in cgi processing [16:45:34]execute_cgi json_proto POST (null) [16:45:34]execute_cgi path=json_proto method=POST [16:45:34]POST find Content-Length [16:45:34]Host: 172.17.53.195:8080 [16:45:34]Content-Length: 677 [16:45:34]Content-Type: application/json [16:45:34] [16:45:34]POST finish read [16:45:34]Found Content-Length = 677 [16:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:34]execute_script... [16: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)221397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:34]POST & json_proto [16:45:34]process_json_proto [16:45:34]json parsed OK: [16:45:34]protocol is kg_v1.0 [16:45:34]action value=close_receipt [16:45:34]process_action close_receipt [16:45:34]cmd_close_receipt [16:45:34]MH_GetDate [16:45:34]Write to MH i2c: F0 00 00 A7 30 C6 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: F0 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: F0 09 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: F0 09 00 A7 30 00 30 28 19 67 21 48 4A 65 BF [16:45:34]GetLastDocTimeStamp 1729701775 [16:45:34]current date 1729701936 [16:45:34]FM_GetShiftState [16:45:34]SAM_PROTO_GetShiftState [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 13 01 00 [16:45:34]Write to MH i2c: E2 08 00 A8 30 80 13 01 00 00 00 00 00 55 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 0E 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 0E 00 A8 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [16:45:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:45:34]wFMCommunicate OK [16:45:34]SAM_PROTO_GetShiftState done [16:45:34]FM_GetShiftState done [16:45:34]opened in 1729643772 [16:45:34]opened+sec_in_day 1729730172 [16:45:34]quantity*price = 40006 [16:45:34]sum+1 = 40007 [16:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 226 23.10.2024 16:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166811 ФПД: 73638574887597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166811&fm=73638574887597&tin=02508201610067®Number=0000000000091764&sum=40000 [16:45:36]StoreToDocumentArchive [16:45:36]shift 537 fd 166811 [16:45:36]save to /storage/0537/doc_00166811 [16:45:36]save last doc name /storage/0537/doc_00166811 to /storage/kkm_last_doc_name [16:45:36]save OK [16:45:36]Clear old archive folders... [16:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:36]tlvbuf is 01F6B760 [16:45:36]SAM_PROTO_ClearQueue [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 09 00 00 [16:45:36]Write to MH i2c: E2 08 00 B5 30 80 09 00 00 00 00 00 00 57 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]SAM_PROTO_ClearQueue done [16:45:36]KKMCreateOFDPacket [16:45:36]OFDProtocolAddRootSTLVToBuf [16:45:36]FM_MakeSignedData [16:45:36]FM_MakeSignedData [16:45:36]SAM_PROTO_SignData [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 01 02 [16:45:36]Write to MH i2c: E2 08 00 B6 30 80 0D 01 02 00 00 00 00 5F [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]wFMCommunicate request_size=255 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 30 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8B 02 00 35 04 06 00 42 [16:45:36]Write to MH i2c: E2 02 01 B7 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 30 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8B 02 00 35 04 06 00 42 00 00 03 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B7 30 00 90 00 5B [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]wFMCommunicate request_size=10 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 02 02 05 F9 51 19 12 AD [16:45:36]Write to MH i2c: E2 0D 00 B8 30 80 0D 02 02 05 00 F9 51 19 12 AD 00 00 8E [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B8 30 00 90 00 5C [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 03 02 [16:45:36]Write to MH i2c: E2 08 00 B9 30 80 0D 03 02 00 00 00 00 64 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 0B 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 0B 00 B9 30 00 39 9A B2 D6 CB 25 C6 6D 90 00 E3 [16:45:36]RAPDU: 39 9A B2 D6 CB 25 C6 6D 90 00 [16:45:36]wFMCommunicate OK [16:45:36]SAM_PROTO_SignData done [16:45:36]FM_MakeSignedData done [16:45:36]CreateOFDProtocolMessage [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 11 00 00 [16:45:36]Write to MH i2c: E2 08 00 BA 30 80 11 00 00 00 00 00 00 64 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 17 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 17 00 BA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [16:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:36]wFMCommunicate OK [16:45:36]CreateOFDProtocolMessage done [16:45:36]OFDSenderStorePacket 166811 [16:45:36]StoreOFDPacket docnum=166811 [16:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 44 07 01 07 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 30 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8B 02 00 35 04 06 00 42 F9 51 19 12 AD 39 9A B2 D6 CB 25 C6 6D [16:45:36]CheckFolder [16:45:36]dirname=/storage/ofd_packets [16:45:36]CheckFolder done [16:45:36]ProducePacketName [16:45:36]name=ofd_packets/00166811 [16:45:36]NVStorageSaveData ofd_packets/00166811 [16:45:36]File name is /storage/ofd_packets/00166811 [16:45:36]Write 301 bytes [16:45:36]NVStorageSaveData done [16:45:36]OFDSenderStorePacket done [16:45:36]KKMCreateOFDPacket done [16:45:36]NVStorageSaveData kkm_last_timestamp [16:45:36]File name is /storage/kkm_last_timestamp [16:45:36]Write 4 bytes [16:45:36]NVStorageSaveData done [16:45:36]ExternCall_PrintAddStr [16:45:36]wPrintStart [16:45:36]Write to MH i2c: 01 00 00 BB 30 EB [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: 01 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: 01 07 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [16:45:36]RasterBufferAndPrint [16:45:36]line Счет N : (1)221397 [16:45:36]line ИНН: 02508201610067 [16:45:36]line Контрольно-Кассовый Чек [16:45:36]line ПРОДАЖА [16:45:36]line ТРК (МРК, ГНК) : 33 [16:45:36]line Товар: 2710124130 [16:45:36]line Аи-92-К-5 [16:45:36]line 5.980 * 66.90 [16:45:36]line = 400.06 [16:45:36]line НДС 12% НСП 1% [16:45:36]line > о реализуемом товаре [16:45:36]line ОКРУГЛЕНИЕ: -0.06 [16:45:36]line ИТОГО: 400.00 [16:45:36]line Внесено: 400.00 [16:45:36]line СДАЧА: 0.00 [16:45:36]line НСП 1% : 3.54 [16:45:36]line НДС 12% : 42.48 [16:45:36]line Наличными: 400.00 [16:45:36]line Безнал.: 0.00 [16:45:36]line Место: АЗС № 161 "Партнер Нефть" [16:45:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:45:36]line СНО: Общий режим [16:45:36]line Чек 226 23.10.2024 16:45 [16:45:36]line Смена: 537 ФФД: 1.0 [16:45:36]line ЗНМ: 0300000104 [16:45:36]line РНМ: 0000000000091764 [16:45:36]line Версия ККМ: 001 [16:45:36]line ФМ: 0000000000871759 [16:45:36]line ФД: 166811 [16:45:36]line ФПД: 73638574887597 [16:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166811&fm=73638574887597&tin=02508201610067®Number=0000000000091764&sum=40000 [16:45:36]OFD Sender: Processing packet 166811 [packets to send 48, broken 47] [16:45:36]ProducePacketName [16:45:36]name=ofd_packets/00166811 [16:45:36]OFD Sender: To server: pG, [16:45:36]CommunicateWithHost lk.salyk.kg:30040 [16:45:36]ConnectInit lk.salyk.kg [16:45:36]written 0, free lines is 4095 [16:45:37]Connected sock=10 [16:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 44 07 01 07 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 30 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8B 02 00 35 04 06 00 42 F9 51 19 12 AD 39 9A B2 D6 CB 25 C6 6D [16:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C5 AA 47 00 5B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8B 02 00 F4 03 04 00 97 CE 18 67 B6 04 01 00 00 E1 50 6E C1 8E 69 2F 01 [16:45:37]CommunicateWithHost err = 0 [16:45:37]CheckOFDResponse [16:45:37]1017 (14) - 77093643461234 [16:45:37]1041 (16) - 0000000000871759 [16:45:37]1040 (4) - 166811 [16:45:37]1012 (4) - 23.10.2024 10:23 [16:45:37]1206 (1) - 0 [16:45:37]OFD Sender: Remove packet 166811 [16:45:37]ProducePacketName [16:45:37]name=ofd_packets/00166811 [16:45:37]NVStorageDeleteData [16:45:37]Write to MH i2c: 01 00 00 E6 30 16 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 E6 30 00 00 00 00 00 A5 0C CE [16:45:37]RasterBufferAndPrint [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]written 0, free lines is 3241 [16:45:37]MH_Cut [16:45:37]Write to MH i2c: D1 01 00 ED 30 01 EF [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: D1 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: D1 01 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: D1 01 00 ED 30 00 EE [16:45:37]Write to MH i2c: 01 00 00 EE 30 1E [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]OFD Sender: No OFD packet to send [16:45:38]*** Cut start [16:45:38]*** Partial cut [16:45:38]*** CUTSNS_PIN = 1 [16:45:38]*** CUTSNS_PIN = 0 [16:45:38]*** Brake cut motor [16:45:38]Read from MH i2c: 01 [16:45:38]MH_I2C_Read... [16:45:38]*** Stop cut motor [16:45:38]*** Cut end [16:45:38]Read from MH i2c: 01 07 00 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 FF 0F 33 [16:45:38]process_action close_receipt done [16:45:38]requested_data is exist [16:45:38]produce_requested_data [16:45:38]requested_item fm.sn is exist - process it [16:45:38]wFMCommunicate request_size=4 [16:45:38]MH_SAM_APDU [16:45:38]CAPDU: 80 11 00 00 [16:45:38]Write to MH i2c: E2 08 00 EF 30 80 11 00 00 00 00 00 00 99 [16:45:38]Write i2c OK [16:45:38]MH_I2C_Read... [16:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:38]Read from MH i2c: E2 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 17 00 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 17 00 EF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [16:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:38]wFMCommunicate OK [16:45:38]requested_item fd.num is exist - process it [16:45:38]SAM_PROTO_GetFieldsCounters [16:45:38]wFMCommunicate request_size=4 [16:45:38]MH_SAM_APDU [16:45:38]CAPDU: 80 13 00 00 [16:45:38]Write to MH i2c: E2 08 00 F0 30 80 13 00 00 00 00 00 00 9C [16:45:38]Write i2c OK [16:45:38]MH_I2C_Read... [16:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:39]Read from MH i2c: E2 [16:45:39]MH_I2C_Read... [16:45:39]Read from MH i2c: E2 62 00 [16:45:39]MH_I2C_Read... [16:45:39]Read from MH i2c: E2 62 00 F0 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [16:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:39]wFMCommunicate OK [16:45:39]SAM_PROTO_GetFieldsCounters done [16:45:39]requested_item shift.num is exist - process it [16:45:39]requested_item shift.opened is exist - process it [16:45:39]req_shift_opened [16:45:39]FM_GetShiftState [16:45:39]SAM_PROTO_GetShiftState [16:45:39]wFMCommunicate request_size=4 [16:45:39]MH_SAM_APDU [16:45:39]CAPDU: 80 13 01 00 [16:45:39]Write to MH i2c: E2 08 00 F1 30 80 13 01 00 00 00 00 00 9E [16:45:39]Write i2c OK [16:45:39]MH_I2C_Read... [16:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:39]Read from MH i2c: E2 [16:45:39]MH_I2C_Read... [16:45:39]Read from MH i2c: E2 0E 00 [16:45:39]MH_I2C_Read... [16:45:39]Read from MH i2c: E2 0E 00 F1 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 69 [16:45:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:45:39]wFMCommunicate OK [16:45:39]SAM_PROTO_GetShiftState done [16:45:39]FM_GetShiftState done [16:45:39]req_shift_opened done [16:45:39]requested_item shift.open_date is exist - process it [16:45:39]req_shift_open_date [16:45:39]req_shift_open_date done [16:45:39]produce_requested_data done [16:45:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166811,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:45:39]process_action_free close_receipt [16:45:39]json_value_free [16:45:39]json_value_free done [16:45:39]process_json_proto returns [16:45:39]Send response to host [16:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166811,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:45:39]free response buf [16:45:39]execute_script done [16:45:39]execute_script returns [16:45:39]free content buf [16:45:39]Sock 8.Close socket [16:45:39]Sock 8.Thread stoped [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:41]accept exits with 9 [16:47:41]New connection [16:47:41]New thread 3067034980 created [16:47:41]Thread 3067178340 joined [16:47:41]Waiting for new connection... [16:47:41] Sock 9.Parse request [16:47:41]Sock 9.Check first char [16:47:41]Sock 9.First char is OK [16:47:41]request: POST /json_proto HTTP/1.0 [16:47:41]Method: POST [16:47:41]URL: /json_proto [16:47:41]Method is POST - this is cgi request [16:47:41]url: /json_proto [16:47:41]query_string will be loaded in cgi processing [16:47:41]execute_cgi json_proto POST (null) [16:47:41]execute_cgi path=json_proto method=POST [16:47:41]POST find Content-Length [16:47:41]Host: 172.17.53.195:8080 [16:47:41]Content-Length: 984 [16:47:41]Content-Type: application/json [16:47:41] [16:47:41]POST finish read [16:47:41]Found Content-Length = 984 [16:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:41]execute_script... [16:47: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)221396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:41]POST & json_proto [16:47:41]process_json_proto [16:47:41]json parsed OK: [16:47:41]protocol is kg_v1.0 [16:47:41]action value=close_receipt [16:47:41]process_action close_receipt [16:47:41]cmd_close_receipt [16:47:41]MH_GetDate [16:47:41]Write to MH i2c: F0 00 00 F2 30 11 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 09 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 09 00 F2 30 00 AF 28 19 67 21 48 4A 65 89 [16:47:41]GetLastDocTimeStamp 1729701936 [16:47:41]current date 1729702063 [16:47:41]FM_GetShiftState [16:47:41]SAM_PROTO_GetShiftState [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 13 01 00 [16:47:41]Write to MH i2c: E2 08 00 F3 30 80 13 01 00 00 00 00 00 A0 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0E 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0E 00 F3 30 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6B [16:47:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_GetShiftState done [16:47:41]FM_GetShiftState done [16:47:41]opened in 1729643772 [16:47:41]opened+sec_in_day 1729730172 [16:47:41]quantity*price = 1000009 [16:47:41]sum+1 = 1000011 [16:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 227 23.10.2024 16:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Дисконтная программа ДТ номер 161 сэкономлено 132.98 сом ФМ: 0000000000871759 ФД: 166812 ФПД: 15318627900419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166812&fm=15318627900419&tin=02508201610067®Number=0000000000091764&sum=1000000 [16:47:43]StoreToDocumentArchive [16:47:43]shift 537 fd 166812 [16:47:43]save to /storage/0537/doc_00166812 [16:47:43]save last doc name /storage/0537/doc_00166812 to /storage/kkm_last_doc_name [16:47:43]save OK [16:47:43]Clear old archive folders... [16:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:43]tlvbuf is 01FEE4A0 [16:47:43]SAM_PROTO_ClearQueue [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 09 00 00 [16:47:43]Write to MH i2c: E2 08 00 00 31 80 09 00 00 00 00 00 00 A3 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [16:47:43]RAPDU: 90 00 [16:47:43]wFMCommunicate OK [16:47:43]SAM_PROTO_ClearQueue done [16:47:43]KKMCreateOFDPacket [16:47:43]OFDProtocolAddRootSTLVToBuf [16:47:43]FM_MakeSignedData [16:47:43]FM_MakeSignedData [16:47:43]SAM_PROTO_SignData [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 0D 01 02 [16:47:43]Write to MH i2c: E2 08 00 01 31 80 0D 01 02 00 00 00 00 AB [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 01 31 00 90 00 A6 [16:47:43]RAPDU: 90 00 [16:47:43]wFMCommunicate OK [16:47:43]wFMCommunicate request_size=255 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 AF 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8B 02 00 35 04 06 00 0D EE A5 5F [16:47:43]Write to MH i2c: E2 02 01 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 AF 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8B 02 00 35 04 06 00 0D EE A5 5F 00 00 6A [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 02 31 00 90 00 A7 [16:47:43]RAPDU: 90 00 [16:47:43]wFMCommunicate OK [16:47:43]wFMCommunicate request_size=7 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 0D 02 02 02 DC 03 [16:47:43]Write to MH i2c: E2 0A 00 03 31 80 0D 02 02 02 00 DC 03 00 00 91 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 03 00 03 31 00 90 00 A8 [16:47:43]RAPDU: 90 00 [16:47:43]wFMCommunicate OK [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 0D 03 02 [16:47:43]Write to MH i2c: E2 08 00 04 31 80 0D 03 02 00 00 00 00 B0 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 0B 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 0B 00 04 31 00 21 F2 8D BE 86 E4 1C EC 90 00 81 [16:47:43]RAPDU: 21 F2 8D BE 86 E4 1C EC 90 00 [16:47:43]wFMCommunicate OK [16:47:43]SAM_PROTO_SignData done [16:47:43]FM_MakeSignedData done [16:47:43]CreateOFDProtocolMessage [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 11 00 00 [16:47:43]Write to MH i2c: E2 08 00 05 31 80 11 00 00 00 00 00 00 B0 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 17 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 17 00 05 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [16:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:47:43]wFMCommunicate OK [16:47:43]CreateOFDProtocolMessage done [16:47:43]OFDSenderStorePacket 166812 [16:47:43]StoreOFDPacket docnum=166812 [16:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A8 E3 04 01 BD BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 AF 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8B 02 00 35 04 06 00 0D EE A5 5F DC 03 21 F2 8D BE 86 E4 1C EC [16:47:43]CheckFolder [16:47:43]dirname=/storage/ofd_packets [16:47:43]CheckFolder done [16:47:43]ProducePacketName [16:47:43]name=ofd_packets/00166812 [16:47:43]NVStorageSaveData ofd_packets/00166812 [16:47:43]File name is /storage/ofd_packets/00166812 [16:47:43]Write 298 bytes [16:47:43]NVStorageSaveData done [16:47:43]OFDSenderStorePacket done [16:47:43]KKMCreateOFDPacket done [16:47:43]NVStorageSaveData kkm_last_timestamp [16:47:43]File name is /storage/kkm_last_timestamp [16:47:43]Write 4 bytes [16:47:43]NVStorageSaveData done [16:47:43]ExternCall_PrintAddStr [16:47:43]wPrintStart [16:47:43]Write to MH i2c: 01 00 00 06 31 37 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 FF 0F 4C [16:47:43]RasterBufferAndPrint [16:47:43]line Счет N : (1)221396 [16:47:43]line ИНН: 02508201610067 [16:47:43]line Контрольно-Кассовый Чек [16:47:43]line ПРОДАЖА [16:47:43]line ТРК (МРК, ГНК) : 11 [16:47:43]line Товар: 2710194210 [16:47:43]line ДТ-К-5 [16:47:43]line 132.980 * 75.20 [16:47:43]line = 10000.10 [16:47:43]line НДС 12% НСП 1% [16:47:43]line > о реализуемом товаре [16:47:43]line ОКРУГЛЕНИЕ: -0.10 [16:47:43]line ИТОГО: 10000.00 [16:47:43]line Внесено: 10000.00 [16:47:43]line СДАЧА: 0.00 [16:47:43]line НСП 1% : 88.50 [16:47:43]line НДС 12% : 1061.96 [16:47:43]line Наличными: 10000.00 [16:47:43]line Безнал.: 0.00 [16:47:43]line Место: АЗС № 161 "Партнер Нефть" [16:47:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:47:43]line СНО: Общий режим [16:47:43]line Чек 227 23.10.2024 16:47 [16:47:43]line Смена: 537 ФФД: 1.0 [16:47:43]line ЗНМ: 0300000104 [16:47:43]line РНМ: 0000000000091764 [16:47:43]line Версия ККМ: 001 [16:47:43]line [16:47:43]line Дисконтная программа [16:47:43]line ДТ [16:47:43]line номер 161 [16:47:43]line сэкономлено 132.98 сом [16:47:43]line ФМ: 0000000000871759 [16:47:43]line ФД: 166812 [16:47:43]line ФПД: 15318627900419 [16:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166812&fm=15318627900419&tin=02508201610067®Number=0000000000091764&sum=1000000 [16:47:43]OFD Sender: Processing packet 166812 [packets to send 48, broken 47] [16:47:43]ProducePacketName [16:47:43]name=ofd_packets/00166812 [16:47:43]OFD Sender: To server: pG, [16:47:43]CommunicateWithHost lk.salyk.kg:30040 [16:47:43]ConnectInit lk.salyk.kg [16:47:43]written 0, free lines is 4095 [16:47:44]Connected sock=10 [16:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A8 E3 04 01 BD BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 AF 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8B 02 00 35 04 06 00 0D EE A5 5F DC 03 21 F2 8D BE 86 E4 1C EC [16:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF C1 47 00 36 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8B 02 00 F4 03 04 00 16 CF 18 67 B6 04 01 00 00 E2 EB 06 48 EF BC 9B 3F [16:47:44]CommunicateWithHost err = 0 [16:47:44]CheckOFDResponse [16:47:44]1017 (14) - 77093643461234 [16:47:44]1041 (16) - 0000000000871759 [16:47:44]1040 (4) - 166812 [16:47:44]1012 (4) - 23.10.2024 10:25 [16:47:44]1206 (1) - 0 [16:47:44]OFD Sender: Remove packet 166812 [16:47:44]ProducePacketName [16:47:44]name=ofd_packets/00166812 [16:47:44]NVStorageDeleteData [16:47:44]Write to MH i2c: 01 00 00 36 31 67 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: 01 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: 01 07 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 4E 0C C8 [16:47:44]RasterBufferAndPrint [16:47:44]line [16:47:44]line [16:47:44]line [16:47:44]line [16:47:44]line [16:47:44]written 0, free lines is 3156 [16:47:44]MH_Cut [16:47:44]Write to MH i2c: D1 01 00 3D 31 01 40 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: D1 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: D1 01 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: D1 01 00 3D 31 00 3F [16:47:44]Write to MH i2c: 01 00 00 3E 31 6F [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]OFD Sender: No OFD packet to send [16:47:45]*** Cut start [16:47:45]*** Partial cut [16:47:45]*** CUTSNS_PIN = 1 [16:47:45]*** CUTSNS_PIN = 0 [16:47:45]*** Brake cut motor [16:47:46]Read from MH i2c: 01 [16:47:46]MH_I2C_Read... [16:47:46]*** Stop cut motor [16:47:46]*** Cut end [16:47:46]Read from MH i2c: 01 07 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: 01 07 00 3E 31 00 00 00 00 00 FF 0F 84 [16:47:46]process_action close_receipt done [16:47:46]requested_data is exist [16:47:46]produce_requested_data [16:47:46]requested_item fm.sn is exist - process it [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 11 00 00 [16:47:46]Write to MH i2c: E2 08 00 3F 31 80 11 00 00 00 00 00 00 EA [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 17 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 17 00 3F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [16:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:47:46]wFMCommunicate OK [16:47:46]requested_item fd.num is exist - process it [16:47:46]SAM_PROTO_GetFieldsCounters [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 13 00 00 [16:47:46]Write to MH i2c: E2 08 00 40 31 80 13 00 00 00 00 00 00 ED [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 62 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 62 00 40 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:46]wFMCommunicate OK [16:47:46]SAM_PROTO_GetFieldsCounters done [16:47:46]requested_item shift.num is exist - process it [16:47:46]requested_item shift.opened is exist - process it [16:47:46]req_shift_opened [16:47:46]FM_GetShiftState [16:47:46]SAM_PROTO_GetShiftState [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 13 01 00 [16:47:46]Write to MH i2c: E2 08 00 41 31 80 13 01 00 00 00 00 00 EF [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 41 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BA [16:47:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:47:46]wFMCommunicate OK [16:47:46]SAM_PROTO_GetShiftState done [16:47:46]FM_GetShiftState done [16:47:46]req_shift_opened done [16:47:46]requested_item shift.open_date is exist - process it [16:47:46]req_shift_open_date [16:47:46]req_shift_open_date done [16:47:46]produce_requested_data done [16:47:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166812,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:47:46]process_action_free close_receipt [16:47:46]json_value_free [16:47:46]json_value_free done [16:47:46]process_json_proto returns [16:47:46]Send response to host [16:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166812,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:47:46]free response buf [16:47:46]execute_script done [16:47:46]execute_script returns [16:47:46]free content buf [16:47:46]Sock 9.Close socket [16:47:46]Sock 9.Thread stoped [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:28]accept exits with 8 [16:48:28]New connection [16:48:28]New thread 3067178340 created [16:48:28]Thread 3067034980 joined [16:48:28]Waiting for new connection... [16:48:28] Sock 8.Parse request [16:48:28]Sock 8.Check first char [16:48:28]Sock 8.First char is OK [16:48:28]request: POST /json_proto HTTP/1.0 [16:48:28]Method: POST [16:48:28]URL: /json_proto [16:48:28]Method is POST - this is cgi request [16:48:28]url: /json_proto [16:48:28]query_string will be loaded in cgi processing [16:48:28]execute_cgi json_proto POST (null) [16:48:28]execute_cgi path=json_proto method=POST [16:48:28]POST find Content-Length [16:48:28]Host: 172.17.53.195:8080 [16:48:28]Content-Length: 762 [16:48:28]Content-Type: application/json [16:48:28] [16:48:28]POST finish read [16:48:28]Found Content-Length = 762 [16:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.020, "sum" : 1.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:28]execute_script... [16:48:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.020, "sum" : 1.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:28]POST & json_proto [16:48:28]process_json_proto [16:48:28]json parsed OK: [16:48:28]protocol is kg_v1.0 [16:48:28]action value=close_receipt [16:48:28]process_action close_receipt [16:48:28]cmd_close_receipt [16:48:28]MH_GetDate [16:48:28]Write to MH i2c: F0 00 00 42 31 62 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 09 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 09 00 42 31 00 DE 28 19 67 21 48 4A 65 09 [16:48:28]GetLastDocTimeStamp 1729702063 [16:48:28]current date 1729702110 [16:48:28]FM_GetShiftState [16:48:28]SAM_PROTO_GetShiftState [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 13 01 00 [16:48:28]Write to MH i2c: E2 08 00 43 31 80 13 01 00 00 00 00 00 F1 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 43 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [16:48:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:48:28]wFMCommunicate OK [16:48:28]SAM_PROTO_GetShiftState done [16:48:28]FM_GetShiftState done [16:48:28]opened in 1729643772 [16:48:28]opened+sec_in_day 1729730172 [16:48:28]quantity*price = 133 [16:48:28]sum+1 = 135 [16:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1.34 НСП 1% : 0.01 НДС 12% : 0.14 Наличными: 0.00 Безнал.: 1.34 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 228 23.10.2024 16:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166813 ФПД: 201823699828987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166813&fm=201823699828987&tin=02508201610067®Number=0000000000091764&sum=134 [16:48:29]StoreToDocumentArchive [16:48:29]shift 537 fd 166813 [16:48:29]save to /storage/0537/doc_00166813 [16:48:29]save last doc name /storage/0537/doc_00166813 to /storage/kkm_last_doc_name [16:48:29]save OK [16:48:29]Clear old archive folders... [16:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:29]tlvbuf is B6F8C060 [16:48:29]SAM_PROTO_ClearQueue [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 09 00 00 [16:48:29]Write to MH i2c: E2 08 00 50 31 80 09 00 00 00 00 00 00 F3 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 50 31 00 90 00 F5 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_ClearQueue done [16:48:29]KKMCreateOFDPacket [16:48:29]OFDProtocolAddRootSTLVToBuf [16:48:29]FM_MakeSignedData [16:48:29]FM_MakeSignedData [16:48:29]SAM_PROTO_SignData [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 01 02 [16:48:29]Write to MH i2c: E2 08 00 51 31 80 0D 01 02 00 00 00 00 FB [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=255 [16:48:29]MH_SAM_APDU [16:48: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 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 DE 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8B 02 00 35 04 06 00 B7 [16:48:29]Write to MH i2c: E2 02 01 52 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 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 DE 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8B 02 00 35 04 06 00 B7 00 00 63 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 52 31 00 90 00 F7 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=10 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 02 02 05 8E BD EF 80 FB [16:48:29]Write to MH i2c: E2 0D 00 53 31 80 0D 02 02 05 00 8E BD EF 80 FB 00 00 BD [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 53 31 00 90 00 F8 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 03 02 [16:48:29]Write to MH i2c: E2 08 00 54 31 80 0D 03 02 00 00 00 00 00 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0B 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0B 00 54 31 00 17 FB BE 38 B3 B5 F9 10 90 00 7A [16:48:29]RAPDU: 17 FB BE 38 B3 B5 F9 10 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_SignData done [16:48:29]FM_MakeSignedData done [16:48:29]CreateOFDProtocolMessage [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 11 00 00 [16:48:29]Write to MH i2c: E2 08 00 55 31 80 11 00 00 00 00 00 00 00 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 17 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 17 00 55 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [16:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:48:29]wFMCommunicate OK [16:48:29]CreateOFDProtocolMessage done [16:48:29]OFDSenderStorePacket 166813 [16:48:29]StoreOFDPacket docnum=166813 [16:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 D4 07 01 74 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 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 DE 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8B 02 00 35 04 06 00 B7 8E BD EF 80 FB 17 FB BE 38 B3 B5 F9 10 [16:48:29]CheckFolder [16:48:29]dirname=/storage/ofd_packets [16:48:29]CheckFolder done [16:48:29]ProducePacketName [16:48:29]name=ofd_packets/00166813 [16:48:29]NVStorageSaveData ofd_packets/00166813 [16:48:29]File name is /storage/ofd_packets/00166813 [16:48:29]Write 301 bytes [16:48:29]NVStorageSaveData done [16:48:29]OFDSenderStorePacket done [16:48:29]KKMCreateOFDPacket done [16:48:29]NVStorageSaveData kkm_last_timestamp [16:48:29]File name is /storage/kkm_last_timestamp [16:48:29]Write 4 bytes [16:48:29]NVStorageSaveData done [16:48:29]ExternCall_PrintAddStr [16:48:29]wPrintStart [16:48:29]Write to MH i2c: 01 00 00 56 31 87 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 07 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 07 00 56 31 00 00 00 00 00 FF 0F 9C [16:48:29]RasterBufferAndPrint [16:48:29]line Счет N : (1)221398 [16:48:29]line ИНН: 02508201610067 [16:48:29]line Контрольно-Кассовый Чек [16:48:29]line ПРОДАЖА [16:48:29]line ТРК (МРК, ГНК) : 43 [16:48:29]line Товар: 2710124130 [16:48:29]line Аи-92-К-5 [16:48:29]line 0.020 * 66.90 [16:48:29]line = 1.34 [16:48:29]line НДС 12% НСП 1% [16:48:29]line > о реализуемом товаре [16:48:29]line ИТОГО: 1.34 [16:48:29]line НСП 1% : 0.01 [16:48:29]line НДС 12% : 0.14 [16:48:29]line Наличными: 0.00 [16:48:29]line Безнал.: 1.34 [16:48:29]line Место: АЗС № 161 "Партнер Нефть" [16:48:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:48:29]line СНО: Общий режим [16:48:29]line Чек 228 23.10.2024 16:48 [16:48:29]line Смена: 537 ФФД: 1.0 [16:48:29]line ЗНМ: 0300000104 [16:48:29]line РНМ: 0000000000091764 [16:48:29]line Версия ККМ: 001 [16:48:29]line Платежная система: Mbank [16:48:29]line ФМ: 0000000000871759 [16:48:29]line ФД: 166813 [16:48:29]line ФПД: 201823699828987 [16:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166813&fm=201823699828987&tin=02508201610067®Number=0000000000091764&sum=134 [16:48:29]written 0, free lines is 4095 [16:48:29]OFD Sender: Processing packet 166813 [packets to send 48, broken 47] [16:48:29]ProducePacketName [16:48:29]name=ofd_packets/00166813 [16:48:30]OFD Sender: To server: pG, [16:48:30]CommunicateWithHost lk.salyk.kg:30040 [16:48:30]ConnectInit lk.salyk.kg [16:48:30]Write to MH i2c: 01 00 00 7F 31 B0 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 7F 31 00 00 00 00 00 CD 0C 90 [16:48:30]RasterBufferAndPrint [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]written 0, free lines is 3283 [16:48:30]Connected sock=10 [16:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 D4 07 01 74 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 14 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 DE 28 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8B 02 00 35 04 06 00 B7 8E BD EF 80 FB 17 FB BE 38 B3 B5 F9 10 [16:48:30]MH_Cut [16:48:30]Write to MH i2c: D1 01 00 86 31 01 89 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: D1 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: D1 01 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: D1 01 00 86 31 00 88 [16:48:30]Write to MH i2c: 01 00 00 87 31 B8 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD 6A 47 00 9C 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8B 02 00 F4 03 04 00 45 CF 18 67 B6 04 01 00 00 87 8C 00 45 6A 94 47 57 [16:48:30]CommunicateWithHost err = 0 [16:48:30]CheckOFDResponse [16:48:30]1017 (14) - 77093643461234 [16:48:30]1041 (16) - 0000000000871759 [16:48:30]1040 (4) - 166813 [16:48:30]1012 (4) - 23.10.2024 10:26 [16:48:30]1206 (1) - 0 [16:48:30]OFD Sender: Remove packet 166813 [16:48:30]ProducePacketName [16:48:30]name=ofd_packets/00166813 [16:48:30]NVStorageDeleteData [16:48:31]OFD Sender: No OFD packet to send [16:48:31]*** Cut start [16:48:31]*** Partial cut [16:48:31]*** CUTSNS_PIN = 1 [16:48:31]*** CUTSNS_PIN = 0 [16:48:31]*** Brake cut motor [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]*** Stop cut motor [16:48:31]*** Cut end [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 87 31 00 00 00 00 00 FF 0F CD [16:48:31]process_action close_receipt done [16:48:31]requested_data is exist [16:48:31]produce_requested_data [16:48:31]requested_item fm.sn is exist - process it [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 11 00 00 [16:48:31]Write to MH i2c: E2 08 00 88 31 80 11 00 00 00 00 00 00 33 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 88 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [16:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:48:31]wFMCommunicate OK [16:48:31]requested_item fd.num is exist - process it [16:48:31]SAM_PROTO_GetFieldsCounters [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 13 00 00 [16:48:31]Write to MH i2c: E2 08 00 89 31 80 13 00 00 00 00 00 00 36 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 62 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 62 00 89 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_GetFieldsCounters done [16:48:32]requested_item shift.num is exist - process it [16:48:32]requested_item shift.opened is exist - process it [16:48:32]req_shift_opened [16:48:32]FM_GetShiftState [16:48:32]SAM_PROTO_GetShiftState [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 13 01 00 [16:48:32]Write to MH i2c: E2 08 00 8A 31 80 13 01 00 00 00 00 00 38 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 8A 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 03 [16:48:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_GetShiftState done [16:48:32]FM_GetShiftState done [16:48:32]req_shift_opened done [16:48:32]requested_item shift.open_date is exist - process it [16:48:32]req_shift_open_date [16:48:32]req_shift_open_date done [16:48:32]produce_requested_data done [16:48:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166813,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:48:32]process_action_free close_receipt [16:48:32]json_value_free [16:48:32]json_value_free done [16:48:32]process_json_proto returns [16:48:32]Send response to host [16:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166813,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:48:32]free response buf [16:48:32]execute_script done [16:48:32]execute_script returns [16:48:32]free content buf [16:48:32]Sock 8.Close socket [16:48:32]Sock 8.Thread stoped [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:51]accept exits with 9 [16:49:51]New connection [16:49:51]New thread 3067034980 created [16:49:51]Thread 3067178340 joined [16:49:51]Waiting for new connection... [16:49:51] Sock 9.Parse request [16:49:51]Sock 9.Check first char [16:49:51]Sock 9.First char is OK [16:49:51]request: POST /json_proto HTTP/1.0 [16:49:51]Method: POST [16:49:51]URL: /json_proto [16:49:51]Method is POST - this is cgi request [16:49:51]url: /json_proto [16:49:51]query_string will be loaded in cgi processing [16:49:51]execute_cgi json_proto POST (null) [16:49:51]execute_cgi path=json_proto method=POST [16:49:51]POST find Content-Length [16:49:51]Host: 172.17.53.195:8080 [16:49:51]Content-Length: 766 [16:49:51]Content-Type: application/json [16:49:51] [16:49:51]POST finish read [16:49:51]Found Content-Length = 766 [16:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:51]execute_script... [16: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)221399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:51]POST & json_proto [16:49:51]process_json_proto [16:49:51]json parsed OK: [16:49:51]protocol is kg_v1.0 [16:49:51]action value=close_receipt [16:49:51]process_action close_receipt [16:49:51]cmd_close_receipt [16:49:51]MH_GetDate [16:49:51]Write to MH i2c: F0 00 00 8B 31 AB [16:49:51]Write i2c OK [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: F0 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: F0 09 00 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: F0 09 00 8B 31 00 31 29 19 67 21 48 4A 65 A6 [16:49:51]GetLastDocTimeStamp 1729702110 [16:49:51]current date 1729702193 [16:49:51]FM_GetShiftState [16:49:51]SAM_PROTO_GetShiftState [16:49:51]wFMCommunicate request_size=4 [16:49:51]MH_SAM_APDU [16:49:51]CAPDU: 80 13 01 00 [16:49:51]Write to MH i2c: E2 08 00 8C 31 80 13 01 00 00 00 00 00 3A [16:49:51]Write i2c OK [16:49:51]MH_I2C_Read... [16:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:51]Read from MH i2c: E2 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: E2 0E 00 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: E2 0E 00 8C 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [16:49:51]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:49:51]wFMCommunicate OK [16:49:51]SAM_PROTO_GetShiftState done [16:49:51]FM_GetShiftState done [16:49:51]opened in 1729643772 [16:49:51]opened+sec_in_day 1729730172 [16:49:51]quantity*price = 50041 [16:49:51]sum+1 = 50042 [16:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 229 23.10.2024 16:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166814 ФПД: 182699240983298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164953&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166814&fm=182699240983298&tin=02508201610067®Number=0000000000091764&sum=50041 [16:49:52]StoreToDocumentArchive [16:49:52]shift 537 fd 166814 [16:49:52]save to /storage/0537/doc_00166814 [16:49:52]save last doc name /storage/0537/doc_00166814 to /storage/kkm_last_doc_name [16:49:52]save OK [16:49:52]Clear old archive folders... [16:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:52]tlvbuf is 01FDA280 [16:49:52]SAM_PROTO_ClearQueue [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 09 00 00 [16:49:52]Write to MH i2c: E2 08 00 99 31 80 09 00 00 00 00 00 00 3C [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 99 31 00 90 00 3E [16:49:52]RAPDU: 90 00 [16:49:52]wFMCommunicate OK [16:49:52]SAM_PROTO_ClearQueue done [16:49:52]KKMCreateOFDPacket [16:49:52]OFDProtocolAddRootSTLVToBuf [16:49:52]FM_MakeSignedData [16:49:52]FM_MakeSignedData [16:49:52]SAM_PROTO_SignData [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 0D 01 02 [16:49:52]Write to MH i2c: E2 08 00 9A 31 80 0D 01 02 00 00 00 00 44 [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [16:49:52]RAPDU: 90 00 [16:49:52]wFMCommunicate OK [16:49:52]wFMCommunicate request_size=255 [16:49:52]MH_SAM_APDU [16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 31 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8B 02 00 35 04 06 00 A6 [16:49:52]Write to MH i2c: E2 02 01 9B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 31 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8B 02 00 35 04 06 00 A6 00 00 D7 [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [16:49:52]RAPDU: 90 00 [16:49:52]wFMCommunicate OK [16:49:52]wFMCommunicate request_size=10 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 0D 02 02 05 29 FB 5C 0B 02 [16:49:52]Write to MH i2c: E2 0D 00 9C 31 80 0D 02 02 05 00 29 FB 5C 0B 02 00 00 DE [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [16:49:52]RAPDU: 90 00 [16:49:52]wFMCommunicate OK [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 0D 03 02 [16:49:52]Write to MH i2c: E2 08 00 9D 31 80 0D 03 02 00 00 00 00 49 [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 0B 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 0B 00 9D 31 00 13 B0 8B 8E EE F3 CE D1 90 00 A6 [16:49:52]RAPDU: 13 B0 8B 8E EE F3 CE D1 90 00 [16:49:52]wFMCommunicate OK [16:49:52]SAM_PROTO_SignData done [16:49:52]FM_MakeSignedData done [16:49:52]CreateOFDProtocolMessage [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 11 00 00 [16:49:52]Write to MH i2c: E2 08 00 9E 31 80 11 00 00 00 00 00 00 49 [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:53]Read from MH i2c: E2 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 17 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 17 00 9E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [16:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:49:53]wFMCommunicate OK [16:49:53]CreateOFDProtocolMessage done [16:49:53]OFDSenderStorePacket 166814 [16:49:53]StoreOFDPacket docnum=166814 [16:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 53 07 01 2B 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 31 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8B 02 00 35 04 06 00 A6 29 FB 5C 0B 02 13 B0 8B 8E EE F3 CE D1 [16:49:53]CheckFolder [16:49:53]dirname=/storage/ofd_packets [16:49:53]CheckFolder done [16:49:53]ProducePacketName [16:49:53]name=ofd_packets/00166814 [16:49:53]NVStorageSaveData ofd_packets/00166814 [16:49:53]File name is /storage/ofd_packets/00166814 [16:49:53]Write 301 bytes [16:49:53]NVStorageSaveData done [16:49:53]OFDSenderStorePacket done [16:49:53]KKMCreateOFDPacket done [16:49:53]NVStorageSaveData kkm_last_timestamp [16:49:53]File name is /storage/kkm_last_timestamp [16:49:53]Write 4 bytes [16:49:53]NVStorageSaveData done [16:49:53]ExternCall_PrintAddStr [16:49:53]wPrintStart [16:49:53]Write to MH i2c: 01 00 00 9F 31 D0 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 9F 31 00 00 00 00 00 FF 0F E5 [16:49:53]RasterBufferAndPrint [16:49:53]line Счет N : (1)221399 [16:49:53]line ИНН: 02508201610067 [16:49:53]line Контрольно-Кассовый Чек [16:49:53]line ПРОДАЖА [16:49:53]line ТРК (МРК, ГНК) : 43 [16:49:53]line Товар: 2710124130 [16:49:53]line Аи-92-К-5 [16:49:53]line 7.480 * 66.90 [16:49:53]line = 500.41 [16:49:53]line НДС 12% НСП 1% [16:49:53]line > о реализуемом товаре [16:49:53]line ИТОГО: 500.41 [16:49:53]line НСП 1% : 4.43 [16:49:53]line НДС 12% : 53.14 [16:49:53]line Наличными: 0.00 [16:49:53]line Безнал.: 500.41 [16:49:53]line Место: АЗС № 161 "Партнер Нефть" [16:49:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:49:53]line СНО: Общий режим [16:49:53]line Чек 229 23.10.2024 16:49 [16:49:53]line Смена: 537 ФФД: 1.0 [16:49:53]line ЗНМ: 0300000104 [16:49:53]line РНМ: 0000000000091764 [16:49:53]line Версия ККМ: 001 [16:49:53]line Платежная система: Mbank [16:49:53]line ФМ: 0000000000871759 [16:49:53]line ФД: 166814 [16:49:53]line ФПД: 182699240983298 [16:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164953&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166814&fm=182699240983298&tin=02508201610067®Number=0000000000091764&sum=50041 [16:49:53]written 0, free lines is 4095 [16:49:53]OFD Sender: Processing packet 166814 [packets to send 48, broken 47] [16:49:53]ProducePacketName [16:49:53]name=ofd_packets/00166814 [16:49:53]OFD Sender: To server: pG, [16:49:53]CommunicateWithHost lk.salyk.kg:30040 [16:49:53]ConnectInit lk.salyk.kg [16:49:53]Connected sock=10 [16: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 31 37 35 39 0F 01 00 00 56 53 07 01 2B 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 31 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8B 02 00 35 04 06 00 A6 29 FB 5C 0B 02 13 B0 8B 8E EE F3 CE D1 [16:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C C6 47 00 06 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8B 02 00 F4 03 04 00 98 CF 18 67 B6 04 01 00 00 D7 D7 51 38 BF 49 81 8E [16:49:53]CommunicateWithHost err = 0 [16:49:53]CheckOFDResponse [16:49:53]1017 (14) - 77093643461234 [16:49:53]1041 (16) - 0000000000871759 [16:49:53]1040 (4) - 166814 [16:49:53]1012 (4) - 23.10.2024 10:27 [16:49:53]1206 (1) - 0 [16:49:53]OFD Sender: Remove packet 166814 [16:49:53]ProducePacketName [16:49:53]name=ofd_packets/00166814 [16:49:53]NVStorageDeleteData [16:49:53]Write to MH i2c: 01 00 00 C8 31 F9 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 C8 31 00 00 00 00 00 E1 0C ED [16:49:53]RasterBufferAndPrint [16:49:53]line [16:49:53]line [16:49:53]line [16:49:53]line [16:49:53]line [16:49:53]written 0, free lines is 3303 [16:49:53]MH_Cut [16:49:53]Write to MH i2c: D1 01 00 CF 31 01 D2 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: D1 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: D1 01 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: D1 01 00 CF 31 00 D1 [16:49:53]Write to MH i2c: 01 00 00 D0 31 01 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]OFD Sender: No OFD packet to send [16:49:54]*** Cut start [16:49:54]*** Partial cut [16:49:54]*** CUTSNS_PIN = 1 [16:49:54]*** CUTSNS_PIN = 0 [16:49:54]*** Brake cut motor [16:49:54]Read from MH i2c: 01 [16:49:54]MH_I2C_Read... [16:49:54]*** Stop cut motor [16:49:54]*** Cut end [16:49:54]Read from MH i2c: 01 07 00 [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: 01 07 00 D0 31 00 00 00 00 00 FF 0F 16 [16:49:54]process_action close_receipt done [16:49:54]requested_data is exist [16:49:54]produce_requested_data [16:49:54]requested_item fm.sn is exist - process it [16:49:54]wFMCommunicate request_size=4 [16:49:54]MH_SAM_APDU [16:49:54]CAPDU: 80 11 00 00 [16:49:54]Write to MH i2c: E2 08 00 D1 31 80 11 00 00 00 00 00 00 7C [16:49:54]Write i2c OK [16:49:54]MH_I2C_Read... [16:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 17 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 17 00 D1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [16:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:49:55]wFMCommunicate OK [16:49:55]requested_item fd.num is exist - process it [16:49:55]SAM_PROTO_GetFieldsCounters [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 13 00 00 [16:49:55]Write to MH i2c: E2 08 00 D2 31 80 13 00 00 00 00 00 00 7F [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 62 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 62 00 D2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]SAM_PROTO_GetFieldsCounters done [16:49:55]requested_item shift.num is exist - process it [16:49:55]requested_item shift.opened is exist - process it [16:49:55]req_shift_opened [16:49:55]FM_GetShiftState [16:49:55]SAM_PROTO_GetShiftState [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 13 01 00 [16:49:55]Write to MH i2c: E2 08 00 D3 31 80 13 01 00 00 00 00 00 81 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 D3 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4C [16:49:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]SAM_PROTO_GetShiftState done [16:49:55]FM_GetShiftState done [16:49:55]req_shift_opened done [16:49:55]requested_item shift.open_date is exist - process it [16:49:55]req_shift_open_date [16:49:55]req_shift_open_date done [16:49:55]produce_requested_data done [16:49:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166814,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:49:55]process_action_free close_receipt [16:49:55]json_value_free [16:49:55]json_value_free done [16:49:55]process_json_proto returns [16:49:55]Send response to host [16:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166814,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:49:55]free response buf [16:49:55]execute_script done [16:49:55]execute_script returns [16:49:55]free content buf [16:49:55]Sock 9.Close socket [16:49:55]Sock 9.Thread stoped [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:06]accept exits with 8 [16:50:06]New connection [16:50:06]New thread 3067178340 created [16:50:06]Thread 3067034980 joined [16:50:06]Waiting for new connection... [16:50:06] Sock 8.Parse request [16:50:06]Sock 8.Check first char [16:50:06]Sock 8.First char is OK [16:50:06]request: POST /json_proto HTTP/1.0 [16:50:06]Method: POST [16:50:06]URL: /json_proto [16:50:06]Method is POST - this is cgi request [16:50:06]url: /json_proto [16:50:06]query_string will be loaded in cgi processing [16:50:06]execute_cgi json_proto POST (null) [16:50:06]execute_cgi path=json_proto method=POST [16:50:06]POST find Content-Length [16:50:06]Host: 172.17.53.195:8080 [16:50:06]Content-Length: 766 [16:50:06]Content-Type: application/json [16:50:06] [16:50:06]POST finish read [16:50:06]Found Content-Length = 766 [16:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:06]execute_script... [16:50: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)221400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:06]POST & json_proto [16:50:06]process_json_proto [16:50:06]json parsed OK: [16:50:06]protocol is kg_v1.0 [16:50:06]action value=close_receipt [16:50:06]process_action close_receipt [16:50:06]cmd_close_receipt [16:50:06]MH_GetDate [16:50:06]Write to MH i2c: F0 00 00 D4 31 F4 [16:50:06]Write i2c OK [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 09 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 09 00 D4 31 00 40 29 19 67 21 48 4A 65 FE [16:50:06]GetLastDocTimeStamp 1729702193 [16:50:06]current date 1729702208 [16:50:06]FM_GetShiftState [16:50:06]SAM_PROTO_GetShiftState [16:50:06]wFMCommunicate request_size=4 [16:50:06]MH_SAM_APDU [16:50:06]CAPDU: 80 13 01 00 [16:50:06]Write to MH i2c: E2 08 00 D5 31 80 13 01 00 00 00 00 00 83 [16:50:06]Write i2c OK [16:50:06]MH_I2C_Read... [16:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:06]Read from MH i2c: E2 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 D5 31 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4E [16:50:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:50:06]wFMCommunicate OK [16:50:06]SAM_PROTO_GetShiftState done [16:50:06]FM_GetShiftState done [16:50:06]opened in 1729643772 [16:50:06]opened+sec_in_day 1729730172 [16:50:06]quantity*price = 30038 [16:50:06]sum+1 = 30039 [16:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 230 23.10.2024 16:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166815 ФПД: 230836455463117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165008&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166815&fm=230836455463117&tin=02508201610067®Number=0000000000091764&sum=30038 [16:50:08]StoreToDocumentArchive [16:50:08]shift 537 fd 166815 [16:50:08]save to /storage/0537/doc_00166815 [16:50:08]save last doc name /storage/0537/doc_00166815 to /storage/kkm_last_doc_name [16:50:08]save OK [16:50:08]Clear old archive folders... [16:50:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:08]tlvbuf is B6F8F3F0 [16:50:08]SAM_PROTO_ClearQueue [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 09 00 00 [16:50:08]Write to MH i2c: E2 08 00 E2 31 80 09 00 00 00 00 00 00 85 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 E2 31 00 90 00 87 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]SAM_PROTO_ClearQueue done [16:50:08]KKMCreateOFDPacket [16:50:08]OFDProtocolAddRootSTLVToBuf [16:50:08]FM_MakeSignedData [16:50:08]FM_MakeSignedData [16:50:08]SAM_PROTO_SignData [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 01 02 [16:50:08]Write to MH i2c: E2 08 00 E3 31 80 0D 01 02 00 00 00 00 8D [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]wFMCommunicate request_size=255 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 40 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8B 02 00 35 04 06 00 D1 [16:50:08]Write to MH i2c: E2 02 01 E4 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 40 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8B 02 00 35 04 06 00 D1 00 00 4A [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 E4 31 00 90 00 89 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]wFMCommunicate request_size=10 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 02 02 05 F1 CC ED D8 CD [16:50:08]Write to MH i2c: E2 0D 00 E5 31 80 0D 02 02 05 00 F1 CC ED D8 CD 00 00 E9 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 E5 31 00 90 00 8A [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 03 02 [16:50:08]Write to MH i2c: E2 08 00 E6 31 80 0D 03 02 00 00 00 00 92 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 0B 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 0B 00 E6 31 00 E6 2E FB 17 65 63 72 A5 90 00 98 [16:50:08]RAPDU: E6 2E FB 17 65 63 72 A5 90 00 [16:50:08]wFMCommunicate OK [16:50:08]SAM_PROTO_SignData done [16:50:08]FM_MakeSignedData done [16:50:08]CreateOFDProtocolMessage [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 11 00 00 [16:50:08]Write to MH i2c: E2 08 00 E7 31 80 11 00 00 00 00 00 00 92 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 17 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 17 00 E7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [16:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:08]wFMCommunicate OK [16:50:08]CreateOFDProtocolMessage done [16:50:08]OFDSenderStorePacket 166815 [16:50:08]StoreOFDPacket docnum=166815 [16:50:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F B9 07 01 95 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 40 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8B 02 00 35 04 06 00 D1 F1 CC ED D8 CD E6 2E FB 17 65 63 72 A5 [16:50:08]CheckFolder [16:50:08]dirname=/storage/ofd_packets [16:50:08]CheckFolder done [16:50:08]ProducePacketName [16:50:08]name=ofd_packets/00166815 [16:50:08]NVStorageSaveData ofd_packets/00166815 [16:50:08]File name is /storage/ofd_packets/00166815 [16:50:08]Write 301 bytes [16:50:08]NVStorageSaveData done [16:50:08]OFDSenderStorePacket done [16:50:08]KKMCreateOFDPacket done [16:50:08]NVStorageSaveData kkm_last_timestamp [16:50:08]File name is /storage/kkm_last_timestamp [16:50:08]Write 4 bytes [16:50:08]NVStorageSaveData done [16:50:08]ExternCall_PrintAddStr [16:50:08]wPrintStart [16:50:08]Write to MH i2c: 01 00 00 E8 31 19 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 E8 31 00 00 00 00 00 FF 0F 2E [16:50:08]RasterBufferAndPrint [16:50:08]line Счет N : (1)221400 [16:50:08]line ИНН: 02508201610067 [16:50:08]line Контрольно-Кассовый Чек [16:50:08]line ПРОДАЖА [16:50:08]line ТРК (МРК, ГНК) : 33 [16:50:08]line Товар: 2710124130 [16:50:08]line Аи-92-К-5 [16:50:08]line 4.490 * 66.90 [16:50:08]line = 300.38 [16:50:08]line НДС 12% НСП 1% [16:50:08]line > о реализуемом товаре [16:50:08]line ИТОГО: 300.38 [16:50:08]line НСП 1% : 2.66 [16:50:08]line НДС 12% : 31.90 [16:50:08]line Наличными: 0.00 [16:50:08]line Безнал.: 300.38 [16:50:08]line Место: АЗС № 161 "Партнер Нефть" [16:50:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:50:08]line СНО: Общий режим [16:50:08]line Чек 230 23.10.2024 16:50 [16:50:08]line Смена: 537 ФФД: 1.0 [16:50:08]line ЗНМ: 0300000104 [16:50:08]line РНМ: 0000000000091764 [16:50:08]line Версия ККМ: 001 [16:50:08]line Платежная система: Mbank [16:50:08]line ФМ: 0000000000871759 [16:50:08]line ФД: 166815 [16:50:08]line ФПД: 230836455463117 [16:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165008&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166815&fm=230836455463117&tin=02508201610067®Number=0000000000091764&sum=30038 [16:50:08]written 0, free lines is 4095 [16:50:08]OFD Sender: Processing packet 166815 [packets to send 48, broken 47] [16:50:08]ProducePacketName [16:50:08]name=ofd_packets/00166815 [16:50:08]OFD Sender: To server: pG, [16:50:08]CommunicateWithHost lk.salyk.kg:30040 [16:50:08]ConnectInit lk.salyk.kg [16:50:08]Connected sock=10 [16:50:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F B9 07 01 95 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 40 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8B 02 00 35 04 06 00 D1 F1 CC ED D8 CD E6 2E FB 17 65 63 72 A5 [16:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D9 86 47 00 0B 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8B 02 00 F4 03 04 00 A7 CF 18 67 B6 04 01 00 00 B9 B6 74 5B FF A4 DA E0 [16:50:08]CommunicateWithHost err = 0 [16:50:08]CheckOFDResponse [16:50:08]1017 (14) - 77093643461234 [16:50:08]1041 (16) - 0000000000871759 [16:50:08]1040 (4) - 166815 [16:50:08]1012 (4) - 23.10.2024 10:27 [16:50:08]1206 (1) - 0 [16:50:08]OFD Sender: Remove packet 166815 [16:50:08]ProducePacketName [16:50:08]name=ofd_packets/00166815 [16:50:08]NVStorageDeleteData [16:50:08]Write to MH i2c: 01 00 00 11 32 43 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 11 32 00 00 00 00 00 E0 0C 36 [16:50:09]RasterBufferAndPrint [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]written 0, free lines is 3302 [16:50:09]MH_Cut [16:50:09]Write to MH i2c: D1 01 00 18 32 01 1C [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 01 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 01 00 18 32 00 1B [16:50:09]Write to MH i2c: 01 00 00 19 32 4B [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]OFD Sender: No OFD packet to send [16:50:09]*** Cut start [16:50:09]*** Partial cut [16:50:09]*** CUTSNS_PIN = 1 [16:50:09]*** CUTSNS_PIN = 0 [16:50:10]*** Brake cut motor [16:50:10]Read from MH i2c: 01 [16:50:10]MH_I2C_Read... [16:50:10]*** Stop cut motor [16:50:10]*** Cut end [16:50:10]Read from MH i2c: 01 07 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 19 32 00 00 00 00 00 FF 0F 60 [16:50:10]process_action close_receipt done [16:50:10]requested_data is exist [16:50:10]produce_requested_data [16:50:10]requested_item fm.sn is exist - process it [16:50:10]wFMCommunicate request_size=4 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 11 00 00 [16:50:10]Write to MH i2c: E2 08 00 1A 32 80 11 00 00 00 00 00 00 C6 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 17 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 17 00 1A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [16:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:10]wFMCommunicate OK [16:50:10]requested_item fd.num is exist - process it [16:50:10]SAM_PROTO_GetFieldsCounters [16:50:10]wFMCommunicate request_size=4 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 13 00 00 [16:50:10]Write to MH i2c: E2 08 00 1B 32 80 13 00 00 00 00 00 00 C9 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 62 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 62 00 1B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:50:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:10]wFMCommunicate OK [16:50:10]SAM_PROTO_GetFieldsCounters done [16:50:10]requested_item shift.num is exist - process it [16:50:10]requested_item shift.opened is exist - process it [16:50:10]req_shift_opened [16:50:10]FM_GetShiftState [16:50:10]SAM_PROTO_GetShiftState [16:50:10]wFMCommunicate request_size=4 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 13 01 00 [16:50:10]Write to MH i2c: E2 08 00 1C 32 80 13 01 00 00 00 00 00 CB [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 0E 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 0E 00 1C 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 96 [16:50:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:50:10]wFMCommunicate OK [16:50:10]SAM_PROTO_GetShiftState done [16:50:10]FM_GetShiftState done [16:50:10]req_shift_opened done [16:50:10]requested_item shift.open_date is exist - process it [16:50:10]req_shift_open_date [16:50:10]req_shift_open_date done [16:50:10]produce_requested_data done [16:50:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166815,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:50:10]process_action_free close_receipt [16:50:10]json_value_free [16:50:10]json_value_free done [16:50:10]process_json_proto returns [16:50:10]Send response to host [16:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166815,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:50:10]free response buf [16:50:10]execute_script done [16:50:10]execute_script returns [16:50:10]free content buf [16:50:10]Sock 8.Close socket [16:50:10]Sock 8.Thread stoped [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:50]accept exits with 9 [16:50:50]New connection [16:50:50]New thread 3067034980 created [16:50:50]Thread 3067178340 joined [16:50:50]Waiting for new connection... [16:50:50] Sock 9.Parse request [16:50:50]Sock 9.Check first char [16:50:50]Sock 9.First char is OK [16:50:50]request: POST /json_proto HTTP/1.0 [16:50:50]Method: POST [16:50:50]URL: /json_proto [16:50:50]Method is POST - this is cgi request [16:50:50]url: /json_proto [16:50:50]query_string will be loaded in cgi processing [16:50:50]execute_cgi json_proto POST (null) [16:50:50]execute_cgi path=json_proto method=POST [16:50:50]POST find Content-Length [16:50:50]Host: 172.17.53.195:8080 [16:50:50]Content-Length: 769 [16:50:50]Content-Type: application/json [16:50:50] [16:50:50]POST finish read [16:50:50]Found Content-Length = 769 [16:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:50]execute_script... [16:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:50]POST & json_proto [16:50:50]process_json_proto [16:50:50]json parsed OK: [16:50:50]protocol is kg_v1.0 [16:50:50]action value=close_receipt [16:50:50]process_action close_receipt [16:50:50]cmd_close_receipt [16:50:50]MH_GetDate [16:50:50]Write to MH i2c: F0 00 00 1D 32 3E [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: F0 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: F0 09 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: F0 09 00 1D 32 00 6C 29 19 67 21 48 4A 65 74 [16:50:50]GetLastDocTimeStamp 1729702208 [16:50:50]current date 1729702252 [16:50:50]FM_GetShiftState [16:50:50]SAM_PROTO_GetShiftState [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 13 01 00 [16:50:50]Write to MH i2c: E2 08 00 1E 32 80 13 01 00 00 00 00 00 CD [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0E 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0E 00 1E 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 98 [16:50:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_GetShiftState done [16:50:50]FM_GetShiftState done [16:50:50]opened in 1729643772 [16:50:50]opened+sec_in_day 1729730172 [16:50:50]quantity*price = 100021 [16:50:50]sum+1 = 100023 [16:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 231 23.10.2024 16:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166816 ФПД: 107221553114554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166816&fm=107221553114554&tin=02508201610067®Number=0000000000091764&sum=100022 [16:50:51]StoreToDocumentArchive [16:50:51]shift 537 fd 166816 [16:50:51]save to /storage/0537/doc_00166816 [16:50:51]save last doc name /storage/0537/doc_00166816 to /storage/kkm_last_doc_name [16:50:51]save OK [16:50:51]Clear old archive folders... [16:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:51]tlvbuf is 01FE7E00 [16:50:51]SAM_PROTO_ClearQueue [16:50:51]wFMCommunicate request_size=4 [16:50:51]MH_SAM_APDU [16:50:51]CAPDU: 80 09 00 00 [16:50:51]Write to MH i2c: E2 08 00 2B 32 80 09 00 00 00 00 00 00 CF [16:50:51]Write i2c OK [16:50:51]MH_I2C_Read... [16:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:51]Read from MH i2c: E2 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: E2 03 00 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: E2 03 00 2B 32 00 90 00 D1 [16:50:51]RAPDU: 90 00 [16:50:51]wFMCommunicate OK [16:50:51]SAM_PROTO_ClearQueue done [16:50:51]KKMCreateOFDPacket [16:50:51]OFDProtocolAddRootSTLVToBuf [16:50:51]FM_MakeSignedData [16:50:51]FM_MakeSignedData [16:50:51]SAM_PROTO_SignData [16:50:51]wFMCommunicate request_size=4 [16:50:51]MH_SAM_APDU [16:50:51]CAPDU: 80 0D 01 02 [16:50:51]Write to MH i2c: E2 08 00 2C 32 80 0D 01 02 00 00 00 00 D7 [16:50:51]Write i2c OK [16:50:51]MH_I2C_Read... [16:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:51]Read from MH i2c: E2 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: E2 03 00 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: E2 03 00 2C 32 00 90 00 D2 [16:50:51]RAPDU: 90 00 [16:50:51]wFMCommunicate OK [16:50:51]wFMCommunicate request_size=255 [16:50:51]MH_SAM_APDU [16:50:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8B 02 00 35 04 06 00 61 [16:50:52]Write to MH i2c: E2 02 01 2D 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8B 02 00 35 04 06 00 61 00 00 5B [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 03 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 03 00 2D 32 00 90 00 D3 [16:50:52]RAPDU: 90 00 [16:50:52]wFMCommunicate OK [16:50:52]wFMCommunicate request_size=10 [16:50:52]MH_SAM_APDU [16:50:52]CAPDU: 80 0D 02 02 05 84 76 95 ED BA [16:50:52]Write to MH i2c: E2 0D 00 2E 32 80 0D 02 02 05 00 84 76 95 ED BA 00 00 1A [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 03 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 03 00 2E 32 00 90 00 D4 [16:50:52]RAPDU: 90 00 [16:50:52]wFMCommunicate OK [16:50:52]wFMCommunicate request_size=4 [16:50:52]MH_SAM_APDU [16:50:52]CAPDU: 80 0D 03 02 [16:50:52]Write to MH i2c: E2 08 00 2F 32 80 0D 03 02 00 00 00 00 DC [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 0B 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 0B 00 2F 32 00 A4 0E FA AB 55 94 B3 4F 90 00 1F [16:50:52]RAPDU: A4 0E FA AB 55 94 B3 4F 90 00 [16:50:52]wFMCommunicate OK [16:50:52]SAM_PROTO_SignData done [16:50:52]FM_MakeSignedData done [16:50:52]CreateOFDProtocolMessage [16:50:52]wFMCommunicate request_size=4 [16:50:52]MH_SAM_APDU [16:50:52]CAPDU: 80 11 00 00 [16:50:52]Write to MH i2c: E2 08 00 30 32 80 11 00 00 00 00 00 00 DC [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 17 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 17 00 30 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [16:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:52]wFMCommunicate OK [16:50:52]CreateOFDProtocolMessage done [16:50:52]OFDSenderStorePacket 166816 [16:50:52]StoreOFDPacket docnum=166816 [16:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 D6 07 01 7D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8B 02 00 35 04 06 00 61 84 76 95 ED BA A4 0E FA AB 55 94 B3 4F [16:50:52]CheckFolder [16:50:52]dirname=/storage/ofd_packets [16:50:52]CheckFolder done [16:50:52]ProducePacketName [16:50:52]name=ofd_packets/00166816 [16:50:52]NVStorageSaveData ofd_packets/00166816 [16:50:52]File name is /storage/ofd_packets/00166816 [16:50:52]Write 301 bytes [16:50:52]NVStorageSaveData done [16:50:52]OFDSenderStorePacket done [16:50:52]KKMCreateOFDPacket done [16:50:52]NVStorageSaveData kkm_last_timestamp [16:50:52]File name is /storage/kkm_last_timestamp [16:50:52]Write 4 bytes [16:50:52]NVStorageSaveData done [16:50:52]ExternCall_PrintAddStr [16:50:52]wPrintStart [16:50:52]Write to MH i2c: 01 00 00 31 32 63 [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: 01 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: 01 07 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: 01 07 00 31 32 00 00 00 00 00 FF 0F 78 [16:50:52]RasterBufferAndPrint [16:50:52]line Счет N : (1)221401 [16:50:52]line ИНН: 02508201610067 [16:50:52]line Контрольно-Кассовый Чек [16:50:52]line ПРОДАЖА [16:50:52]line ТРК (МРК, ГНК) : 24 [16:50:52]line Товар: 2710124500 [16:50:52]line Аи-95-К-5 [16:50:52]line 13.480 * 74.20 [16:50:52]line = 1000.22 [16:50:52]line НДС 12% НСП 1% [16:50:52]line > о реализуемом товаре [16:50:52]line ИТОГО: 1000.22 [16:50:52]line НСП 1% : 8.85 [16:50:52]line НДС 12% : 106.22 [16:50:52]line Наличными: 0.00 [16:50:52]line Безнал.: 1000.22 [16:50:52]line Место: АЗС № 161 "Партнер Нефть" [16:50:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:50:52]line СНО: Общий режим [16:50:52]line Чек 231 23.10.2024 16:50 [16:50:52]line Смена: 537 ФФД: 1.0 [16:50:52]line ЗНМ: 0300000104 [16:50:52]line РНМ: 0000000000091764 [16:50:52]line Версия ККМ: 001 [16:50:52]line Платежная система: Mbank [16:50:52]line ФМ: 0000000000871759 [16:50:52]line ФД: 166816 [16:50:52]line ФПД: 107221553114554 [16:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166816&fm=107221553114554&tin=02508201610067®Number=0000000000091764&sum=100022 [16:50:52]written 0, free lines is 4095 [16:50:52]OFD Sender: Processing packet 166816 [packets to send 48, broken 47] [16:50:52]ProducePacketName [16:50:52]name=ofd_packets/00166816 [16:50:52]OFD Sender: To server: pG, [16:50:52]CommunicateWithHost lk.salyk.kg:30040 [16:50:52]ConnectInit lk.salyk.kg [16:50:52]Connected sock=10 [16:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 D6 07 01 7D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8B 02 00 35 04 06 00 61 84 76 95 ED BA A4 0E FA AB 55 94 B3 4F [16:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 74 11 47 00 C6 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8B 02 00 F4 03 04 00 D3 CF 18 67 B6 04 01 00 00 33 7F 5D 04 D5 E5 B7 62 [16:50:53]CommunicateWithHost err = 0 [16:50:53]CheckOFDResponse [16:50:53]1017 (14) - 77093643461234 [16:50:53]1041 (16) - 0000000000871759 [16:50:53]1040 (4) - 166816 [16:50:53]1012 (4) - 23.10.2024 10:28 [16:50:53]1206 (1) - 0 [16:50:53]OFD Sender: Remove packet 166816 [16:50:53]ProducePacketName [16:50:53]name=ofd_packets/00166816 [16:50:53]NVStorageDeleteData [16:50:53]Write to MH i2c: 01 00 00 5A 32 8C [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: 01 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: 01 07 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: 01 07 00 5A 32 00 00 00 00 00 D1 0C 70 [16:50:53]RasterBufferAndPrint [16:50:53]line [16:50:53]line [16:50:53]line [16:50:53]line [16:50:53]line [16:50:53]written 0, free lines is 3289 [16:50:53]MH_Cut [16:50:53]Write to MH i2c: D1 01 00 61 32 01 65 [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: D1 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: D1 01 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: D1 01 00 61 32 00 64 [16:50:53]Write to MH i2c: 01 00 00 62 32 94 [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]OFD Sender: No OFD packet to send [16:50:54]*** Cut start [16:50:54]*** Partial cut [16:50:54]*** CUTSNS_PIN = 1 [16:50:54]*** CUTSNS_PIN = 0 [16:50:54]*** Brake cut motor [16:50:54]Read from MH i2c: 01 [16:50:54]MH_I2C_Read... [16:50:54]*** Stop cut motor [16:50:54]*** Cut end [16:50:54]Read from MH i2c: 01 07 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: 01 07 00 62 32 00 00 00 00 00 FF 0F A9 [16:50:54]process_action close_receipt done [16:50:54]requested_data is exist [16:50:54]produce_requested_data [16:50:54]requested_item fm.sn is exist - process it [16:50:54]wFMCommunicate request_size=4 [16:50:54]MH_SAM_APDU [16:50:54]CAPDU: 80 11 00 00 [16:50:54]Write to MH i2c: E2 08 00 63 32 80 11 00 00 00 00 00 00 0F [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:54]Read from MH i2c: E2 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 17 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 17 00 63 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [16:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:54]wFMCommunicate OK [16:50:54]requested_item fd.num is exist - process it [16:50:54]SAM_PROTO_GetFieldsCounters [16:50:54]wFMCommunicate request_size=4 [16:50:54]MH_SAM_APDU [16:50:54]CAPDU: 80 13 00 00 [16:50:54]Write to MH i2c: E2 08 00 64 32 80 13 00 00 00 00 00 00 12 [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:54]Read from MH i2c: E2 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 62 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 62 00 64 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:54]wFMCommunicate OK [16:50:54]SAM_PROTO_GetFieldsCounters done [16:50:54]requested_item shift.num is exist - process it [16:50:54]requested_item shift.opened is exist - process it [16:50:54]req_shift_opened [16:50:54]FM_GetShiftState [16:50:54]SAM_PROTO_GetShiftState [16:50:54]wFMCommunicate request_size=4 [16:50:54]MH_SAM_APDU [16:50:54]CAPDU: 80 13 01 00 [16:50:54]Write to MH i2c: E2 08 00 65 32 80 13 01 00 00 00 00 00 14 [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:54]Read from MH i2c: E2 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 65 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DF [16:50:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:50:54]wFMCommunicate OK [16:50:54]SAM_PROTO_GetShiftState done [16:50:54]FM_GetShiftState done [16:50:54]req_shift_opened done [16:50:54]requested_item shift.open_date is exist - process it [16:50:54]req_shift_open_date [16:50:54]req_shift_open_date done [16:50:54]produce_requested_data done [16:50:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166816,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:50:54]process_action_free close_receipt [16:50:54]json_value_free [16:50:54]json_value_free done [16:50:54]process_json_proto returns [16:50:54]Send response to host [16:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166816,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:50:54]free response buf [16:50:54]execute_script done [16:50:54]execute_script returns [16:50:54]free content buf [16:50:54]Sock 9.Close socket [16:50:54]Sock 9.Thread stoped [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]accept exits with 8 [16:51:13]New connection [16:51:13]New thread 3067178340 created [16:51:13]Thread 3067034980 joined [16:51:13]Waiting for new connection... [16:51:13] Sock 8.Parse request [16:51:13]Sock 8.Check first char [16:51:13]Sock 8.First char is OK [16:51:13]request: POST /json_proto HTTP/1.0 [16:51:13]Method: POST [16:51:13]URL: /json_proto [16:51:13]Method is POST - this is cgi request [16:51:13]url: /json_proto [16:51:13]query_string will be loaded in cgi processing [16:51:13]execute_cgi json_proto POST (null) [16:51:13]execute_cgi path=json_proto method=POST [16:51:13]POST find Content-Length [16:51:13]Host: 172.17.53.195:8080 [16:51:13]Content-Length: 789 [16:51:13]Content-Type: application/json [16:51:13] [16:51:13]POST finish read [16:51:13]Found Content-Length = 789 [16:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 22.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:13]execute_script... [16:51: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)221402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 22.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:13]POST & json_proto [16:51:13]process_json_proto [16:51:13]json parsed OK: [16:51:13]protocol is kg_v1.0 [16:51:13]action value=close_receipt [16:51:13]process_action close_receipt [16:51:13]cmd_close_receipt [16:51:13]MH_GetDate [16:51:13]Write to MH i2c: F0 00 00 66 32 87 [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: F0 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: F0 09 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: F0 09 00 66 32 00 83 29 19 67 21 48 4A 65 D4 [16:51:13]GetLastDocTimeStamp 1729702252 [16:51:13]current date 1729702275 [16:51:13]FM_GetShiftState [16:51:13]SAM_PROTO_GetShiftState [16:51:13]wFMCommunicate request_size=4 [16:51:13]MH_SAM_APDU [16:51:13]CAPDU: 80 13 01 00 [16:51:13]Write to MH i2c: E2 08 00 67 32 80 13 01 00 00 00 00 00 16 [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:13]OFD Sender: No OFD packet to send [16:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:13]Read from MH i2c: E2 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: E2 0E 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: E2 0E 00 67 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E1 [16:51:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:51:13]wFMCommunicate OK [16:51:13]SAM_PROTO_GetShiftState done [16:51:13]FM_GetShiftState done [16:51:13]opened in 1729643772 [16:51:13]opened+sec_in_day 1729730172 [16:51:13]quantity*price = 0 [16:51:13]sum+1 = 1 [16:51:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 232 23.10.2024 16:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 00933 ФМ: 0000000000871759 ФД: 166817 ФПД: 15844424136286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166817&fm=15844424136286&tin=02508201610067®Number=0000000000091764&sum=0 [16:51:14]StoreToDocumentArchive [16:51:14]shift 537 fd 166817 [16:51:14]save to /storage/0537/doc_00166817 [16:51:14]save last doc name /storage/0537/doc_00166817 to /storage/kkm_last_doc_name [16:51:14]save OK [16:51:14]Clear old archive folders... [16:51:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:51:14]tlvbuf is 02026A50 [16:51:14]SAM_PROTO_ClearQueue [16:51:14]wFMCommunicate request_size=4 [16:51:14]MH_SAM_APDU [16:51:14]CAPDU: 80 09 00 00 [16:51:14]Write to MH i2c: E2 08 00 74 32 80 09 00 00 00 00 00 00 18 [16:51:14]Write i2c OK [16:51:14]MH_I2C_Read... [16:51:14]Read from MH i2c: E2 [16:51:14]MH_I2C_Read... [16:51:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:14]Read from MH i2c: E2 03 00 [16:51:14]MH_I2C_Read... [16:51:14]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [16:51:14]RAPDU: 90 00 [16:51:14]wFMCommunicate OK [16:51:14]SAM_PROTO_ClearQueue done [16:51:14]KKMCreateOFDPacket [16:51:14]OFDProtocolAddRootSTLVToBuf [16:51:14]FM_MakeSignedData [16:51:14]FM_MakeSignedData [16:51:14]SAM_PROTO_SignData [16:51:14]wFMCommunicate request_size=4 [16:51:14]MH_SAM_APDU [16:51:14]CAPDU: 80 0D 01 02 [16:51:14]Write to MH i2c: E2 08 00 75 32 80 0D 01 02 00 00 00 00 20 [16:51:14]Write i2c OK [16:51:14]MH_I2C_Read... [16:51:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:14]Read from MH i2c: E2 [16:51:14]MH_I2C_Read... [16:51:14]Read from MH i2c: E2 03 00 [16:51:14]MH_I2C_Read... [16:51:14]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [16:51:14]RAPDU: 90 00 [16:51:14]wFMCommunicate OK [16:51:14]wFMCommunicate request_size=255 [16:51:14]MH_SAM_APDU [16:51: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 2C 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 83 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8B 02 00 35 04 06 00 0E 69 11 45 [16:51:14]Write to MH i2c: E2 02 01 76 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 2C 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 83 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8B 02 00 35 04 06 00 0E 69 11 45 00 00 30 [16:51:14]Write i2c OK [16:51:14]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 03 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 03 00 76 32 00 90 00 1C [16:51:15]RAPDU: 90 00 [16:51:15]wFMCommunicate OK [16:51:15]wFMCommunicate request_size=7 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 0D 02 02 02 B6 5E [16:51:15]Write to MH i2c: E2 0A 00 77 32 80 0D 02 02 02 00 B6 5E 00 00 3B [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 03 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 03 00 77 32 00 90 00 1D [16:51:15]RAPDU: 90 00 [16:51:15]wFMCommunicate OK [16:51:15]wFMCommunicate request_size=4 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 0D 03 02 [16:51:15]Write to MH i2c: E2 08 00 78 32 80 0D 03 02 00 00 00 00 25 [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 0B 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 0B 00 78 32 00 ED D2 42 BA 1F 38 95 27 90 00 F4 [16:51:15]RAPDU: ED D2 42 BA 1F 38 95 27 90 00 [16:51:15]wFMCommunicate OK [16:51:15]SAM_PROTO_SignData done [16:51:15]FM_MakeSignedData done [16:51:15]CreateOFDProtocolMessage [16:51:15]wFMCommunicate request_size=4 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 11 00 00 [16:51:15]Write to MH i2c: E2 08 00 79 32 80 11 00 00 00 00 00 00 25 [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 17 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 17 00 79 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [16:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:51:15]wFMCommunicate OK [16:51:15]CreateOFDProtocolMessage done [16:51:15]OFDSenderStorePacket 166817 [16:51:15]StoreOFDPacket docnum=166817 [16:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D8 2E 04 01 8E 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 83 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8B 02 00 35 04 06 00 0E 69 11 45 B6 5E ED D2 42 BA 1F 38 95 27 [16:51:15]CheckFolder [16:51:15]dirname=/storage/ofd_packets [16:51:15]CheckFolder done [16:51:15]ProducePacketName [16:51:15]name=ofd_packets/00166817 [16:51:15]NVStorageSaveData ofd_packets/00166817 [16:51:15]File name is /storage/ofd_packets/00166817 [16:51:15]Write 298 bytes [16:51:15]NVStorageSaveData done [16:51:15]OFDSenderStorePacket done [16:51:15]KKMCreateOFDPacket done [16:51:15]NVStorageSaveData kkm_last_timestamp [16:51:15]File name is /storage/kkm_last_timestamp [16:51:15]Write 4 bytes [16:51:15]NVStorageSaveData done [16:51:15]ExternCall_PrintAddStr [16:51:15]wPrintStart [16:51:15]Write to MH i2c: 01 00 00 7A 32 AC [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: 01 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: 01 07 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: 01 07 00 7A 32 00 00 00 00 00 FF 0F C1 [16:51:15]RasterBufferAndPrint [16:51:15]line Счет N : (1)221402 [16:51:15]line ИНН: 02508201610067 [16:51:15]line Контрольно-Кассовый Чек [16:51:15]line ПРОДАЖА [16:51:15]line ТРК (МРК, ГНК) : 11 [16:51:15]line Товар: 2710194210 [16:51:15]line ДТ-К-5 [16:51:15]line 22.060 * 0.00 [16:51:15]line = 0.00 [16:51:15]line НДС 12% НСП 1% [16:51:15]line > о реализуемом товаре [16:51:15]line ИТОГО: 0.00 [16:51:15]line НСП 1% : 0.00 [16:51:15]line НДС 12% : 0.00 [16:51:15]line Наличными: 0.00 [16:51:15]line Безнал.: 0.00 [16:51:15]line Место: АЗС № 161 "Партнер Нефть" [16:51:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:51:15]line СНО: Общий режим [16:51:15]line Чек 232 23.10.2024 16:51 [16:51:15]line Смена: 537 ФФД: 1.0 [16:51:15]line ЗНМ: 0300000104 [16:51:15]line РНМ: 0000000000091764 [16:51:15]line Версия ККМ: 001 [16:51:15]line Талоны: Топливная Карта [16:51:15]line 00933 [16:51:15]line ФМ: 0000000000871759 [16:51:15]line ФД: 166817 [16:51:15]line ФПД: 15844424136286 [16:51:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166817&fm=15844424136286&tin=02508201610067®Number=0000000000091764&sum=0 [16:51:15]OFD Sender: Processing packet 166817 [packets to send 48, broken 47] [16:51:15]ProducePacketName [16:51:15]name=ofd_packets/00166817 [16:51:15]OFD Sender: To server: pG, [16:51:15]CommunicateWithHost lk.salyk.kg:30040 [16:51:15]ConnectInit lk.salyk.kg [16:51:15]written 0, free lines is 4095 [16:51:15]Connected sock=10 [16:51:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D8 2E 04 01 8E 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 83 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8B 02 00 35 04 06 00 0E 69 11 45 B6 5E ED D2 42 BA 1F 38 95 27 [16:51:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AE 91 47 00 B3 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8B 02 00 F4 03 04 00 EA CF 18 67 B6 04 01 00 00 26 88 3E 9B 98 26 BA 6E [16:51:15]CommunicateWithHost err = 0 [16:51:15]CheckOFDResponse [16:51:15]1017 (14) - 77093643461234 [16:51:15]1041 (16) - 0000000000871759 [16:51:15]1040 (4) - 166817 [16:51:15]1012 (4) - 23.10.2024 10:28 [16:51:15]1206 (1) - 0 [16:51:15]OFD Sender: Remove packet 166817 [16:51:15]ProducePacketName [16:51:15]name=ofd_packets/00166817 [16:51:15]NVStorageDeleteData [16:51:16]Write to MH i2c: 01 00 00 A4 32 D6 [16:51:16]Write i2c OK [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: 01 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: 01 07 00 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 BF 0C A8 [16:51:16]RasterBufferAndPrint [16:51:16]line [16:51:16]line [16:51:16]line [16:51:16]line [16:51:16]line [16:51:16]written 0, free lines is 3267 [16:51:16]MH_Cut [16:51:16]Write to MH i2c: D1 01 00 AB 32 01 AF [16:51:16]Write i2c OK [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: D1 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: D1 01 00 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: D1 01 00 AB 32 00 AE [16:51:16]Write to MH i2c: 01 00 00 AC 32 DE [16:51:16]Write i2c OK [16:51:16]MH_I2C_Read... [16:51:16]OFD Sender: No OFD packet to send [16:51:16]*** Cut start [16:51:16]*** Partial cut [16:51:16]*** CUTSNS_PIN = 1 [16:51:16]*** CUTSNS_PIN = 0 [16:51:17]*** Brake cut motor [16:51:17]Read from MH i2c: 01 [16:51:17]MH_I2C_Read... [16:51:17]*** Stop cut motor [16:51:17]*** Cut end [16:51:17]Read from MH i2c: 01 07 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: 01 07 00 AC 32 00 00 00 00 00 FF 0F F3 [16:51:17]process_action close_receipt done [16:51:17]requested_data is exist [16:51:17]produce_requested_data [16:51:17]requested_item fm.sn is exist - process it [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 11 00 00 [16:51:17]Write to MH i2c: E2 08 00 AD 32 80 11 00 00 00 00 00 00 59 [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 17 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 17 00 AD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [16:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:51:17]wFMCommunicate OK [16:51:17]requested_item fd.num is exist - process it [16:51:17]SAM_PROTO_GetFieldsCounters [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 13 00 00 [16:51:17]Write to MH i2c: E2 08 00 AE 32 80 13 00 00 00 00 00 00 5C [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 62 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 62 00 AE 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:51:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:17]wFMCommunicate OK [16:51:17]SAM_PROTO_GetFieldsCounters done [16:51:17]requested_item shift.num is exist - process it [16:51:17]requested_item shift.opened is exist - process it [16:51:17]req_shift_opened [16:51:17]FM_GetShiftState [16:51:17]SAM_PROTO_GetShiftState [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 13 01 00 [16:51:17]Write to MH i2c: E2 08 00 AF 32 80 13 01 00 00 00 00 00 5E [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 AF 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 29 [16:51:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:51:17]wFMCommunicate OK [16:51:17]SAM_PROTO_GetShiftState done [16:51:17]FM_GetShiftState done [16:51:17]req_shift_opened done [16:51:17]requested_item shift.open_date is exist - process it [16:51:17]req_shift_open_date [16:51:17]req_shift_open_date done [16:51:17]produce_requested_data done [16:51:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166817,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:51:17]process_action_free close_receipt [16:51:17]json_value_free [16:51:17]json_value_free done [16:51:17]process_json_proto returns [16:51:17]Send response to host [16:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166817,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:51:17]free response buf [16:51:17]execute_script done [16:51:17]execute_script returns [16:51:17]free content buf [16:51:17]Sock 8.Close socket [16:51:17]Sock 8.Thread stoped [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]accept exits with 9 [16:52:06]New connection [16:52:06]New thread 3067034980 created [16:52:06]Thread 3067178340 joined [16:52:06]Waiting for new connection... [16:52:06] Sock 9.Parse request [16:52:06]Sock 9.Check first char [16:52:06]Sock 9.First char is OK [16:52:06]request: POST /json_proto HTTP/1.0 [16:52:06]Method: POST [16:52:06]URL: /json_proto [16:52:06]Method is POST - this is cgi request [16:52:06]url: /json_proto [16:52:06]query_string will be loaded in cgi processing [16:52:06]execute_cgi json_proto POST (null) [16:52:06]execute_cgi path=json_proto method=POST [16:52:06]POST find Content-Length [16:52:06]Host: 172.17.53.195:8080 [16:52:06]Content-Length: 674 [16:52:06]Content-Type: application/json [16:52:06] [16:52:06]POST finish read [16:52:06]Found Content-Length = 674 [16:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "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:52:06]execute_script... [16: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)221403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "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:52:06]POST & json_proto [16:52:06]process_json_proto [16:52:06]json parsed OK: [16:52:06]protocol is kg_v1.0 [16:52:06]action value=close_receipt [16:52:06]process_action close_receipt [16:52:06]cmd_close_receipt [16:52:06]MH_GetDate [16:52:06]Write to MH i2c: F0 00 00 B0 32 D1 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 09 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 09 00 B0 32 00 B8 29 19 67 21 48 4A 65 53 [16:52:06]GetLastDocTimeStamp 1729702275 [16:52:06]current date 1729702328 [16:52:06]FM_GetShiftState [16:52:06]SAM_PROTO_GetShiftState [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 13 01 00 [16:52:06]Write to MH i2c: E2 08 00 B1 32 80 13 01 00 00 00 00 00 60 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 B1 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2B [16:52:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_GetShiftState done [16:52:06]FM_GetShiftState done [16:52:06]opened in 1729643772 [16:52:06]opened+sec_in_day 1729730172 [16:52:06]quantity*price = 32004 [16:52:06]sum+1 = 32005 [16:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 233 23.10.2024 16:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166818 ФПД: 175891200079027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166818&fm=175891200079027&tin=02508201610067®Number=0000000000091764&sum=32000 [16:52:07]StoreToDocumentArchive [16:52:07]shift 537 fd 166818 [16:52:07]save to /storage/0537/doc_00166818 [16:52:07]save last doc name /storage/0537/doc_00166818 to /storage/kkm_last_doc_name [16:52:07]save OK [16:52:07]Clear old archive folders... [16:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:07]tlvbuf is 0206CF90 [16:52:07]SAM_PROTO_ClearQueue [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 09 00 00 [16:52:07]Write to MH i2c: E2 08 00 BE 32 80 09 00 00 00 00 00 00 62 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_ClearQueue done [16:52:07]KKMCreateOFDPacket [16:52:07]OFDProtocolAddRootSTLVToBuf [16:52:07]FM_MakeSignedData [16:52:07]FM_MakeSignedData [16:52:07]SAM_PROTO_SignData [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 01 02 [16:52:07]Write to MH i2c: E2 08 00 BF 32 80 0D 01 02 00 00 00 00 6A [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 BF 32 00 90 00 65 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=255 [16:52:07]MH_SAM_APDU [16:52: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 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 E9 00 00 00 F4 03 04 00 B8 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8B 02 00 35 04 06 00 9F F8 DC 7F [16:52:07]Write to MH i2c: E2 02 01 C0 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 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 E9 00 00 00 F4 03 04 00 B8 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8B 02 00 35 04 06 00 9F F8 DC 7F 00 00 98 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 C0 32 00 90 00 66 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=7 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 02 02 02 F4 B3 [16:52:07]Write to MH i2c: E2 0A 00 C1 32 80 0D 02 02 02 00 F4 B3 00 00 18 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 C1 32 00 90 00 67 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 03 02 [16:52:07]Write to MH i2c: E2 08 00 C2 32 80 0D 03 02 00 00 00 00 6F [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 C2 32 00 03 78 93 26 D2 E8 61 56 90 00 15 [16:52:07]RAPDU: 03 78 93 26 D2 E8 61 56 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_SignData done [16:52:07]FM_MakeSignedData done [16:52:07]CreateOFDProtocolMessage [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 11 00 00 [16:52:07]Write to MH i2c: E2 08 00 C3 32 80 11 00 00 00 00 00 00 6F [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 17 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 17 00 C3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [16:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:07]wFMCommunicate OK [16:52:07]CreateOFDProtocolMessage done [16:52:07]OFDSenderStorePacket 166818 [16:52:07]StoreOFDPacket docnum=166818 [16:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E3 F2 04 01 AD 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 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 E9 00 00 00 F4 03 04 00 B8 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8B 02 00 35 04 06 00 9F F8 DC 7F F4 B3 03 78 93 26 D2 E8 61 56 [16:52:07]CheckFolder [16:52:07]dirname=/storage/ofd_packets [16:52:07]CheckFolder done [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00166818 [16:52:07]NVStorageSaveData ofd_packets/00166818 [16:52:07]File name is /storage/ofd_packets/00166818 [16:52:07]Write 298 bytes [16:52:07]NVStorageSaveData done [16:52:07]OFDSenderStorePacket done [16:52:07]KKMCreateOFDPacket done [16:52:07]NVStorageSaveData kkm_last_timestamp [16:52:07]File name is /storage/kkm_last_timestamp [16:52:07]Write 4 bytes [16:52:07]NVStorageSaveData done [16:52:07]ExternCall_PrintAddStr [16:52:07]wPrintStart [16:52:07]Write to MH i2c: 01 00 00 C4 32 F6 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 C4 32 00 00 00 00 00 FF 0F 0B [16:52:07]RasterBufferAndPrint [16:52:07]line Счет N : (1)221403 [16:52:07]line ИНН: 02508201610067 [16:52:07]line Контрольно-Кассовый Чек [16:52:07]line ПРОДАЖА [16:52:07]line ТРК (МРК, ГНК) : 11 [16:52:07]line Товар: 2710194210 [16:52:07]line ДТ-К-5 [16:52:07]line 4.200 * 76.20 [16:52:07]line = 320.04 [16:52:07]line НДС 12% НСП 1% [16:52:07]line > о реализуемом товаре [16:52:07]line ОКРУГЛЕНИЕ: -0.04 [16:52:07]line ИТОГО: 320.00 [16:52:07]line Внесено: 320.00 [16:52:07]line СДАЧА: 0.00 [16:52:07]line НСП 1% : 2.83 [16:52:07]line НДС 12% : 33.99 [16:52:07]line Наличными: 320.00 [16:52:07]line Безнал.: 0.00 [16:52:07]line Место: АЗС № 161 "Партнер Нефть" [16:52:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:07]line СНО: Общий режим [16:52:07]line Чек 233 23.10.2024 16:52 [16:52:07]line Смена: 537 ФФД: 1.0 [16:52:07]line ЗНМ: 0300000104 [16:52:07]line РНМ: 0000000000091764 [16:52:07]line Версия ККМ: 001 [16:52:07]line ФМ: 0000000000871759 [16:52:07]line ФД: 166818 [16:52:07]line ФПД: 175891200079027 [16:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166818&fm=175891200079027&tin=02508201610067®Number=0000000000091764&sum=32000 [16:52:08]OFD Sender: Processing packet 166818 [packets to send 48, broken 47] [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00166818 [16:52:08]OFD Sender: To server: pG, [16:52:08]CommunicateWithHost lk.salyk.kg:30040 [16:52:08]ConnectInit lk.salyk.kg [16:52:08]written 0, free lines is 4095 [16:52:08]Connected sock=10 [16:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E3 F2 04 01 AD 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 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 E9 00 00 00 F4 03 04 00 B8 29 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8B 02 00 35 04 06 00 9F F8 DC 7F F4 B3 03 78 93 26 D2 E8 61 56 [16:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 3B 47 00 A9 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8B 02 00 F4 03 04 00 1F D0 18 67 B6 04 01 00 00 5D 7D 34 4A 0E 98 59 0F [16:52:08]CommunicateWithHost err = 0 [16:52:08]CheckOFDResponse [16:52:08]1017 (14) - 77093643461234 [16:52:08]1041 (16) - 0000000000871759 [16:52:08]1040 (4) - 166818 [16:52:08]1012 (4) - 23.10.2024 10:29 [16:52:08]1206 (1) - 0 [16:52:08]OFD Sender: Remove packet 166818 [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00166818 [16:52:08]NVStorageDeleteData [16:52:08]Write to MH i2c: 01 00 00 EF 32 21 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 B1 0C E5 [16:52:08]RasterBufferAndPrint [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]written 0, free lines is 3255 [16:52:08]MH_Cut [16:52:08]Write to MH i2c: D1 01 00 F6 32 01 FA [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 F6 32 00 F9 [16:52:08]Write to MH i2c: 01 00 00 F7 32 29 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]OFD Sender: No OFD packet to send [16:52:09]*** Cut start [16:52:09]*** Partial cut [16:52:09]*** CUTSNS_PIN = 1 [16:52:09]*** CUTSNS_PIN = 0 [16:52:09]*** Brake cut motor [16:52:10]Read from MH i2c: 01 [16:52:10]MH_I2C_Read... [16:52:10]*** Stop cut motor [16:52:10]*** Cut end [16:52:10]Read from MH i2c: 01 07 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: 01 07 00 F7 32 00 00 00 00 00 FF 0F 3E [16:52:10]process_action close_receipt done [16:52:10]requested_data is exist [16:52:10]produce_requested_data [16:52:10]requested_item fm.sn is exist - process it [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 11 00 00 [16:52:10]Write to MH i2c: E2 08 00 F8 32 80 11 00 00 00 00 00 00 A4 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 17 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 17 00 F8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [16:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:10]wFMCommunicate OK [16:52:10]requested_item fd.num is exist - process it [16:52:10]SAM_PROTO_GetFieldsCounters [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 13 00 00 [16:52:10]Write to MH i2c: E2 08 00 F9 32 80 13 00 00 00 00 00 00 A7 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 62 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 62 00 F9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:10]wFMCommunicate OK [16:52:10]SAM_PROTO_GetFieldsCounters done [16:52:10]requested_item shift.num is exist - process it [16:52:10]requested_item shift.opened is exist - process it [16:52:10]req_shift_opened [16:52:10]FM_GetShiftState [16:52:10]SAM_PROTO_GetShiftState [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 13 01 00 [16:52:10]Write to MH i2c: E2 08 00 FA 32 80 13 01 00 00 00 00 00 A9 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 0E 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 0E 00 FA 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 74 [16:52:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:52:10]wFMCommunicate OK [16:52:10]SAM_PROTO_GetShiftState done [16:52:10]FM_GetShiftState done [16:52:10]req_shift_opened done [16:52:10]requested_item shift.open_date is exist - process it [16:52:10]req_shift_open_date [16:52:10]req_shift_open_date done [16:52:10]produce_requested_data done [16:52:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166818,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:52:10]process_action_free close_receipt [16:52:10]json_value_free [16:52:10]json_value_free done [16:52:10]process_json_proto returns [16:52:10]Send response to host [16:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166818,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:52:10]free response buf [16:52:10]execute_script done [16:52:10]execute_script returns [16:52:10]free content buf [16:52:10]Sock 9.Close socket [16:52:10]Sock 9.Thread stoped [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:41]accept exits with 8 [16:53:41]New connection [16:53:41]New thread 3067178340 created [16:53:41]Thread 3067034980 joined [16:53:41]Waiting for new connection... [16:53:41] Sock 8.Parse request [16:53:41]Sock 8.Check first char [16:53:41]Sock 8.First char is OK [16:53:41]request: POST /json_proto HTTP/1.0 [16:53:41]Method: POST [16:53:41]URL: /json_proto [16:53:41]Method is POST - this is cgi request [16:53:41]url: /json_proto [16:53:41]query_string will be loaded in cgi processing [16:53:41]execute_cgi json_proto POST (null) [16:53:41]execute_cgi path=json_proto method=POST [16:53:41]POST find Content-Length [16:53:41]Host: 172.17.53.195:8080 [16:53:41]Content-Length: 679 [16:53:41]Content-Type: application/json [16:53:41] [16:53:41]POST finish read [16:53:41]Found Content-Length = 679 [16:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:41]execute_script... [16:53: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)221404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:41]POST & json_proto [16:53:41]process_json_proto [16:53:41]json parsed OK: [16:53:41]protocol is kg_v1.0 [16:53:41]action value=close_receipt [16:53:41]process_action close_receipt [16:53:41]cmd_close_receipt [16:53:41]MH_GetDate [16:53:41]Write to MH i2c: F0 00 00 FB 32 1C [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: F0 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: F0 09 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: F0 09 00 FB 32 00 17 2A 19 67 21 48 4A 65 FE [16:53:41]GetLastDocTimeStamp 1729702328 [16:53:41]current date 1729702423 [16:53:41]FM_GetShiftState [16:53:41]SAM_PROTO_GetShiftState [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 13 01 00 [16:53:41]Write to MH i2c: E2 08 00 FC 32 80 13 01 00 00 00 00 00 AB [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 FC 32 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 76 [16:53:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_GetShiftState done [16:53:41]FM_GetShiftState done [16:53:41]opened in 1729643772 [16:53:41]opened+sec_in_day 1729730172 [16:53:41]quantity*price = 200025 [16:53:41]sum+1 = 200026 [16:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 234 23.10.2024 16:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166819 ФПД: 240169953853265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165343&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166819&fm=240169953853265&tin=02508201610067®Number=0000000000091764&sum=200000 [16:53:42]StoreToDocumentArchive [16:53:42]shift 537 fd 166819 [16:53:42]save to /storage/0537/doc_00166819 [16:53:42]save last doc name /storage/0537/doc_00166819 to /storage/kkm_last_doc_name [16:53:42]save OK [16:53:42]Clear old archive folders... [16:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:53:42]tlvbuf is 01FCBA70 [16:53:42]SAM_PROTO_ClearQueue [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 09 00 00 [16:53:42]Write to MH i2c: E2 08 00 09 33 80 09 00 00 00 00 00 00 AE [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 09 33 00 90 00 B0 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_ClearQueue done [16:53:42]KKMCreateOFDPacket [16:53:42]OFDProtocolAddRootSTLVToBuf [16:53:42]FM_MakeSignedData [16:53:42]FM_MakeSignedData [16:53:42]SAM_PROTO_SignData [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 01 02 [16:53:42]Write to MH i2c: E2 08 00 0A 33 80 0D 01 02 00 00 00 00 B6 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 0A 33 00 90 00 B1 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]wFMCommunicate request_size=255 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 17 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8B 02 00 35 04 06 00 DA 6E EC C8 [16:53:42]Write to MH i2c: E2 02 01 0B 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 17 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8B 02 00 35 04 06 00 DA 6E EC C8 00 00 22 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 0B 33 00 90 00 B2 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]wFMCommunicate request_size=7 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 02 02 02 FF 51 [16:53:42]Write to MH i2c: E2 0A 00 0C 33 80 0D 02 02 02 00 FF 51 00 00 0D [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 0C 33 00 90 00 B3 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 03 02 [16:53:42]Write to MH i2c: E2 08 00 0D 33 80 0D 03 02 00 00 00 00 BB [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0B 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0B 00 0D 33 00 71 93 9F F8 AB 85 E9 6E 90 00 DE [16:53:42]RAPDU: 71 93 9F F8 AB 85 E9 6E 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_SignData done [16:53:42]FM_MakeSignedData done [16:53:42]CreateOFDProtocolMessage [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 11 00 00 [16:53:42]Write to MH i2c: E2 08 00 0E 33 80 11 00 00 00 00 00 00 BB [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 0E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [16:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:53:42]wFMCommunicate OK [16:53:42]CreateOFDProtocolMessage done [16:53:42]OFDSenderStorePacket 166819 [16:53:42]StoreOFDPacket docnum=166819 [16:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E 14 04 01 04 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 17 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8B 02 00 35 04 06 00 DA 6E EC C8 FF 51 71 93 9F F8 AB 85 E9 6E [16:53:42]CheckFolder [16:53:42]dirname=/storage/ofd_packets [16:53:42]CheckFolder done [16:53:42]ProducePacketName [16:53:42]name=ofd_packets/00166819 [16:53:42]NVStorageSaveData ofd_packets/00166819 [16:53:42]File name is /storage/ofd_packets/00166819 [16:53:42]Write 298 bytes [16:53:42]NVStorageSaveData done [16:53:42]OFDSenderStorePacket done [16:53:42]KKMCreateOFDPacket done [16:53:42]NVStorageSaveData kkm_last_timestamp [16:53:42]File name is /storage/kkm_last_timestamp [16:53:42]Write 4 bytes [16:53:42]NVStorageSaveData done [16:53:42]ExternCall_PrintAddStr [16:53:42]wPrintStart [16:53:42]Write to MH i2c: 01 00 00 0F 33 42 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 07 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 07 00 0F 33 00 00 00 00 00 FF 0F 57 [16:53:42]RasterBufferAndPrint [16:53:42]line Счет N : (1)221404 [16:53:42]line ИНН: 02508201610067 [16:53:42]line Контрольно-Кассовый Чек [16:53:42]line ПРОДАЖА [16:53:42]line ТРК (МРК, ГНК) : 11 [16:53:42]line Товар: 2710194210 [16:53:42]line ДТ-К-5 [16:53:42]line 26.250 * 76.20 [16:53:42]line = 2000.25 [16:53:42]line НДС 12% НСП 1% [16:53:42]line > о реализуемом товаре [16:53:42]line ОКРУГЛЕНИЕ: -0.25 [16:53:42]line ИТОГО: 2000.00 [16:53:42]line Внесено: 2000.00 [16:53:42]line СДАЧА: 0.00 [16:53:42]line НСП 1% : 17.70 [16:53:42]line НДС 12% : 212.42 [16:53:42]line Наличными: 2000.00 [16:53:42]line Безнал.: 0.00 [16:53:42]line Место: АЗС № 161 "Партнер Нефть" [16:53:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:53:42]line СНО: Общий режим [16:53:42]line Чек 234 23.10.2024 16:53 [16:53:42]line Смена: 537 ФФД: 1.0 [16:53:42]line ЗНМ: 0300000104 [16:53:42]line РНМ: 0000000000091764 [16:53:42]line Версия ККМ: 001 [16:53:42]line ФМ: 0000000000871759 [16:53:42]line ФД: 166819 [16:53:42]line ФПД: 240169953853265 [16:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165343&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166819&fm=240169953853265&tin=02508201610067®Number=0000000000091764&sum=200000 [16:53:43]OFD Sender: Processing packet 166819 [packets to send 48, broken 47] [16:53:43]ProducePacketName [16:53:43]name=ofd_packets/00166819 [16:53:43]OFD Sender: To server: pG, [16:53:43]CommunicateWithHost lk.salyk.kg:30040 [16:53:43]ConnectInit lk.salyk.kg [16:53:43]written 0, free lines is 4095 [16:53:43]Connected sock=10 [16:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E 14 04 01 04 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 17 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8B 02 00 35 04 06 00 DA 6E EC C8 FF 51 71 93 9F F8 AB 85 E9 6E [16:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4E 1B 47 00 91 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8B 02 00 F4 03 04 00 7E D0 18 67 B6 04 01 00 00 91 58 C4 E0 84 47 4A 55 [16:53:43]CommunicateWithHost err = 0 [16:53:43]CheckOFDResponse [16:53:43]1017 (14) - 77093643461234 [16:53:43]1041 (16) - 0000000000871759 [16:53:43]1040 (4) - 166819 [16:53:43]1012 (4) - 23.10.2024 10:31 [16:53:43]1206 (1) - 0 [16:53:43]OFD Sender: Remove packet 166819 [16:53:43]ProducePacketName [16:53:43]name=ofd_packets/00166819 [16:53:43]NVStorageDeleteData [16:53:43]Write to MH i2c: 01 00 00 3A 33 6D [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 07 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 AF 0C 2F [16:53:43]RasterBufferAndPrint [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]written 0, free lines is 3253 [16:53:43]MH_Cut [16:53:43]Write to MH i2c: D1 01 00 41 33 01 46 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: D1 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: D1 01 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: D1 01 00 41 33 00 45 [16:53:43]Write to MH i2c: 01 00 00 42 33 75 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:44]OFD Sender: No OFD packet to send [16:53:44]*** Cut start [16:53:44]*** Partial cut [16:53:44]*** CUTSNS_PIN = 1 [16:53:44]*** CUTSNS_PIN = 0 [16:53:44]*** Brake cut motor [16:53:45]Read from MH i2c: 01 [16:53:45]MH_I2C_Read... [16:53:45]*** Stop cut motor [16:53:45]*** Cut end [16:53:45]Read from MH i2c: 01 07 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: 01 07 00 42 33 00 00 00 00 00 FF 0F 8A [16:53:45]process_action close_receipt done [16:53:45]requested_data is exist [16:53:45]produce_requested_data [16:53:45]requested_item fm.sn is exist - process it [16:53:45]wFMCommunicate request_size=4 [16:53:45]MH_SAM_APDU [16:53:45]CAPDU: 80 11 00 00 [16:53:45]Write to MH i2c: E2 08 00 43 33 80 11 00 00 00 00 00 00 F0 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:45]Read from MH i2c: E2 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 17 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 17 00 43 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [16:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:53:45]wFMCommunicate OK [16:53:45]requested_item fd.num is exist - process it [16:53:45]SAM_PROTO_GetFieldsCounters [16:53:45]wFMCommunicate request_size=4 [16:53:45]MH_SAM_APDU [16:53:45]CAPDU: 80 13 00 00 [16:53:45]Write to MH i2c: E2 08 00 44 33 80 13 00 00 00 00 00 00 F3 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:45]Read from MH i2c: E2 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 62 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 62 00 44 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:45]wFMCommunicate OK [16:53:45]SAM_PROTO_GetFieldsCounters done [16:53:45]requested_item shift.num is exist - process it [16:53:45]requested_item shift.opened is exist - process it [16:53:45]req_shift_opened [16:53:45]FM_GetShiftState [16:53:45]SAM_PROTO_GetShiftState [16:53:45]wFMCommunicate request_size=4 [16:53:45]MH_SAM_APDU [16:53:45]CAPDU: 80 13 01 00 [16:53:45]Write to MH i2c: E2 08 00 45 33 80 13 01 00 00 00 00 00 F5 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:45]Read from MH i2c: E2 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 0E 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 0E 00 45 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C0 [16:53:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:53:45]wFMCommunicate OK [16:53:45]SAM_PROTO_GetShiftState done [16:53:45]FM_GetShiftState done [16:53:45]req_shift_opened done [16:53:45]requested_item shift.open_date is exist - process it [16:53:45]req_shift_open_date [16:53:45]req_shift_open_date done [16:53:45]produce_requested_data done [16:53:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166819,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:53:45]process_action_free close_receipt [16:53:45]json_value_free [16:53:45]json_value_free done [16:53:45]process_json_proto returns [16:53:45]Send response to host [16:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166819,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:53:45]free response buf [16:53:45]execute_script done [16:53:45]execute_script returns [16:53:45]free content buf [16:53:45]Sock 8.Close socket [16:53:45]Sock 8.Thread stoped [16:53:48]accept exits with 9 [16:53:48]New connection [16:53:48]New thread 3067034980 created [16:53:48]Thread 3067178340 joined [16:53:48]Waiting for new connection... [16:53:48] Sock 9.Parse request [16:53:48]Sock 9.Check first char [16:53:48]Sock 9.First char is OK [16:53:48]request: POST /json_proto HTTP/1.0 [16:53:48]Method: POST [16:53:48]URL: /json_proto [16:53:48]Method is POST - this is cgi request [16:53:48]url: /json_proto [16:53:48]query_string will be loaded in cgi processing [16:53:48]execute_cgi json_proto POST (null) [16:53:48]execute_cgi path=json_proto method=POST [16:53:48]POST find Content-Length [16:53:48]Host: 172.17.53.195:8080 [16:53:48]Content-Length: 736 [16:53:48]Content-Type: application/json [16:53:48] [16:53:48]POST finish read [16:53:48]Found Content-Length = 736 [16:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 166819, "base_FM": "0000000000871759", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:48]execute_script... [16:53:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 166819, "base_FM": "0000000000871759", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:48]POST & json_proto [16:53:48]process_json_proto [16:53:48]json parsed OK: [16:53:48]protocol is kg_v1.0 [16:53:48]action value=close_receipt [16:53:48]process_action close_receipt [16:53:48]cmd_close_receipt [16:53:48]MH_GetDate [16:53:48]Write to MH i2c: F0 00 00 46 33 68 [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 09 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 09 00 46 33 00 1E 2A 19 67 21 48 4A 65 51 [16:53:48]GetLastDocTimeStamp 1729702423 [16:53:48]current date 1729702430 [16:53:48]FM_GetShiftState [16:53:48]SAM_PROTO_GetShiftState [16:53:48]wFMCommunicate request_size=4 [16:53:48]MH_SAM_APDU [16:53:48]CAPDU: 80 13 01 00 [16:53:48]Write to MH i2c: E2 08 00 47 33 80 13 01 00 00 00 00 00 F7 [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:48]Read from MH i2c: E2 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 0E 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 0E 00 47 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C2 [16:53:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:53:48]wFMCommunicate OK [16:53:48]SAM_PROTO_GetShiftState done [16:53:48]FM_GetShiftState done [16:53:48]opened in 1729643772 [16:53:48]opened+sec_in_day 1729730172 [16:53:48]quantity*price = 200025 [16:53:48]sum+1 = 200026 [16:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 235 23.10.2024 16:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФД осн.: 166819 ФМ осн.: 0000000000871759 ФМ: 0000000000871759 ФД: 166820 ФПД: 234847079017115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165350&type=2&operation_type=1&fn_number=0000000000871759&fd_number=166820&fm=234847079017115&tin=02508201610067®Number=0000000000091764&sum=200000 [16:53:49]StoreToDocumentArchive [16:53:49]shift 537 fd 166820 [16:53:49]save to /storage/0537/doc_00166820 [16:53:49]save last doc name /storage/0537/doc_00166820 to /storage/kkm_last_doc_name [16:53:49]save OK [16:53:49]Clear old archive folders... [16:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:53:49]tlvbuf is 01FFE9B0 [16:53:49]SAM_PROTO_ClearQueue [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 09 00 00 [16:53:49]Write to MH i2c: E2 08 00 56 33 80 09 00 00 00 00 00 00 FB [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 56 33 00 90 00 FD [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]SAM_PROTO_ClearQueue done [16:53:49]KKMCreateOFDPacket [16:53:49]OFDProtocolAddRootSTLVToBuf [16:53:49]FM_MakeSignedData [16:53:49]FM_MakeSignedData [16:53:49]SAM_PROTO_SignData [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 01 02 [16:53:49]Write to MH i2c: E2 08 00 57 33 80 0D 01 02 00 00 00 00 03 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 57 33 00 90 00 FE [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]wFMCommunicate request_size=255 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1E 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 27 04 04 00 A3 8B 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 11 04 10 00 30 30 30 30 [16:53:49]Write to MH i2c: E2 02 01 58 33 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1E 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 27 04 04 00 A3 8B 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 11 04 10 00 30 30 30 30 00 00 6D [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 58 33 00 90 00 FF [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]wFMCommunicate request_size=35 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8B 02 00 35 04 06 00 D5 97 98 B8 AA 9B [16:53:50]Write to MH i2c: E2 26 00 59 33 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8B 02 00 35 04 06 00 D5 97 98 B8 AA 9B 00 00 30 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 59 33 00 90 00 00 [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 03 02 [16:53:50]Write to MH i2c: E2 08 00 5A 33 80 0D 03 02 00 00 00 00 08 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0B 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0B 00 5A 33 00 73 96 5A E5 5A 1B 11 EA 90 00 C1 [16:53:50]RAPDU: 73 96 5A E5 5A 1B 11 EA 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_SignData done [16:53:50]FM_MakeSignedData done [16:53:50]CreateOFDProtocolMessage [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 11 00 00 [16:53:50]Write to MH i2c: E2 08 00 5B 33 80 11 00 00 00 00 00 00 08 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 5B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [16:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:53:50]wFMCommunicate OK [16:53:50]CreateOFDProtocolMessage done [16:53:50]OFDSenderStorePacket 166820 [16:53:50]StoreOFDPacket docnum=166820 [16:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 28 01 00 00 5B D5 20 01 B2 73 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1E 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 27 04 04 00 A3 8B 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8B 02 00 35 04 06 00 D5 97 98 B8 AA 9B 73 96 5A E5 5A 1B 11 EA [16:53:50]CheckFolder [16:53:50]dirname=/storage/ofd_packets [16:53:50]CheckFolder done [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00166820 [16:53:50]NVStorageSaveData ofd_packets/00166820 [16:53:50]File name is /storage/ofd_packets/00166820 [16:53:50]Write 326 bytes [16:53:50]NVStorageSaveData done [16:53:50]OFDSenderStorePacket done [16:53:50]KKMCreateOFDPacket done [16:53:50]NVStorageSaveData kkm_last_timestamp [16:53:50]File name is /storage/kkm_last_timestamp [16:53:50]Write 4 bytes [16:53:50]NVStorageSaveData done [16:53:50]ExternCall_PrintAddStr [16:53:50]wPrintStart [16:53:50]Write to MH i2c: 01 00 00 5C 33 8F [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 5C 33 00 00 00 00 00 FF 0F A4 [16:53:50]RasterBufferAndPrint [16:53:50]line Счет N : (1)221404 [16:53:50]line ИНН: 02508201610067 [16:53:50]line Контрольно-Кассовый Чек [16:53:50]line ВОЗВРАТ ПРОДАЖИ [16:53:50]line ТРК (МРК, ГНК) : 11 [16:53:50]line Товар: 2710194210 [16:53:50]line ДТ-К-5 [16:53:50]line 26.250 * 76.20 [16:53:50]line = 2000.25 [16:53:50]line НДС 12% НСП 1% [16:53:50]line > о реализуемом товаре [16:53:50]line ОКРУГЛЕНИЕ: -0.25 [16:53:50]line ИТОГО: 2000.00 [16:53:50]line НСП 1% : 17.70 [16:53:50]line НДС 12% : 212.42 [16:53:50]line Наличными: 2000.00 [16:53:50]line Безнал.: 0.00 [16:53:50]line Место: АЗС № 161 "Партнер Нефть" [16:53:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:53:50]line СНО: Общий режим [16:53:50]line Чек 235 23.10.2024 16:53 [16:53:50]line Смена: 537 ФФД: 1.0 [16:53:50]line ЗНМ: 0300000104 [16:53:50]line РНМ: 0000000000091764 [16:53:50]line Версия ККМ: 001 [16:53:50]line ФД осн.: 166819 [16:53:50]line ФМ осн.: 0000000000871759 [16:53:50]line ФМ: 0000000000871759 [16:53:50]line ФД: 166820 [16:53:50]line ФПД: 234847079017115 [16:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165350&type=2&operation_type=1&fn_number=0000000000871759&fd_number=166820&fm=234847079017115&tin=02508201610067®Number=0000000000091764&sum=200000 [16:53:50]written 0, free lines is 4095 [16:53:50]OFD Sender: Processing packet 166820 [packets to send 48, broken 47] [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00166820 [16:53:50]OFD Sender: To server: pG, [16:53:50]CommunicateWithHost lk.salyk.kg:30040 [16:53:50]ConnectInit lk.salyk.kg [16:53:50]Connected sock=8 [16:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 28 01 00 00 5B D5 20 01 B2 73 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1E 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 27 04 04 00 A3 8B 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8B 02 00 35 04 06 00 D5 97 98 B8 AA 9B 73 96 5A E5 5A 1B 11 EA [16:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0D 3E 47 00 56 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8B 02 00 F4 03 04 00 85 D0 18 67 B6 04 01 00 00 AB 83 AC 98 35 BE C0 AC [16:53:50]CommunicateWithHost err = 0 [16:53:50]CheckOFDResponse [16:53:50]1017 (14) - 77093643461234 [16:53:50]1041 (16) - 0000000000871759 [16:53:50]1040 (4) - 166820 [16:53:50]1012 (4) - 23.10.2024 10:31 [16:53:50]1206 (1) - 0 [16:53:50]OFD Sender: Remove packet 166820 [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00166820 [16:53:50]NVStorageDeleteData [16:53:50]Write to MH i2c: 01 00 00 87 33 BA [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 87 33 00 00 00 00 00 BF 0C 8C [16:53:50]RasterBufferAndPrint [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]line [16:53:50]written 0, free lines is 3276 [16:53:50]MH_Cut [16:53:50]Write to MH i2c: D1 01 00 8E 33 01 93 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: D1 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: D1 01 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: D1 01 00 8E 33 00 92 [16:53:50]Write to MH i2c: 01 00 00 8F 33 C2 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:51]OFD Sender: No OFD packet to send [16:53:51]*** Cut start [16:53:51]*** Partial cut [16:53:51]*** CUTSNS_PIN = 1 [16:53:51]*** CUTSNS_PIN = 0 [16:53:51]*** Brake cut motor [16:53:52]Read from MH i2c: 01 [16:53:52]MH_I2C_Read... [16:53:52]*** Stop cut motor [16:53:52]*** Cut end [16:53:52]Read from MH i2c: 01 07 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: 01 07 00 8F 33 00 00 00 00 00 FF 0F D7 [16:53:52]process_action close_receipt done [16:53:52]requested_data is exist [16:53:52]produce_requested_data [16:53:52]requested_item fm.sn is exist - process it [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 11 00 00 [16:53:52]Write to MH i2c: E2 08 00 90 33 80 11 00 00 00 00 00 00 3D [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 17 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 17 00 90 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [16:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:53:52]wFMCommunicate OK [16:53:52]requested_item fd.num is exist - process it [16:53:52]SAM_PROTO_GetFieldsCounters [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 13 00 00 [16:53:52]Write to MH i2c: E2 08 00 91 33 80 13 00 00 00 00 00 00 40 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 62 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 62 00 91 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:52]wFMCommunicate OK [16:53:52]SAM_PROTO_GetFieldsCounters done [16:53:52]requested_item shift.num is exist - process it [16:53:52]requested_item shift.opened is exist - process it [16:53:52]req_shift_opened [16:53:52]FM_GetShiftState [16:53:52]SAM_PROTO_GetShiftState [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 13 01 00 [16:53:52]Write to MH i2c: E2 08 00 92 33 80 13 01 00 00 00 00 00 42 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 0E 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 0E 00 92 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0D [16:53:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:53:52]wFMCommunicate OK [16:53:52]SAM_PROTO_GetShiftState done [16:53:52]FM_GetShiftState done [16:53:52]req_shift_opened done [16:53:52]requested_item shift.open_date is exist - process it [16:53:52]req_shift_open_date [16:53:52]req_shift_open_date done [16:53:52]produce_requested_data done [16:53:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166820,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:53:52]process_action_free close_receipt [16:53:52]json_value_free [16:53:52]json_value_free done [16:53:52]process_json_proto returns [16:53:52]Send response to host [16:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166820,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:53:52]free response buf [16:53:52]execute_script done [16:53:52]execute_script returns [16:53:52]free content buf [16:53:52]Sock 9.Close socket [16:53:52]Sock 9.Thread stoped [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:03]accept exits with 10 [16:56:03]New connection [16:56:03]New thread 3067178340 created [16:56:03]Thread 3067034980 joined [16:56:03]Waiting for new connection... [16:56:03] Sock 10.Parse request [16:56:03]Sock 10.Check first char [16:56:03]Sock 10.First char is OK [16:56:03]request: POST /json_proto HTTP/1.0 [16:56:03]Method: POST [16:56:03]URL: /json_proto [16:56:03]Method is POST - this is cgi request [16:56:03]url: /json_proto [16:56:03]query_string will be loaded in cgi processing [16:56:03]execute_cgi json_proto POST (null) [16:56:03]execute_cgi path=json_proto method=POST [16:56:03]POST find Content-Length [16:56:03]Host: 172.17.53.195:8080 [16:56:03]Content-Length: 769 [16:56:03]Content-Type: application/json [16:56:03] [16:56:03]POST finish read [16:56:03]Found Content-Length = 769 [16:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 39.090, "sum" : 2900.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2900.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:03]execute_script... [16:56:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 39.090, "sum" : 2900.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2900.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:03]POST & json_proto [16:56:03]process_json_proto [16:56:03]json parsed OK: [16:56:03]protocol is kg_v1.0 [16:56:03]action value=close_receipt [16:56:03]process_action close_receipt [16:56:03]cmd_close_receipt [16:56:03]MH_GetDate [16:56:03]Write to MH i2c: F0 00 00 93 33 B5 [16:56:03]Write i2c OK [16:56:03]MH_I2C_Read... [16:56:03]Read from MH i2c: F0 [16:56:03]MH_I2C_Read... [16:56:03]Read from MH i2c: F0 09 00 [16:56:03]MH_I2C_Read... [16:56:03]Read from MH i2c: F0 09 00 93 33 00 A5 2A 19 67 21 48 4A 65 25 [16:56:03]GetLastDocTimeStamp 1729702430 [16:56:03]current date 1729702565 [16:56:03]FM_GetShiftState [16:56:03]SAM_PROTO_GetShiftState [16:56:03]wFMCommunicate request_size=4 [16:56:03]MH_SAM_APDU [16:56:03]CAPDU: 80 13 01 00 [16:56:03]Write to MH i2c: E2 08 00 94 33 80 13 01 00 00 00 00 00 44 [16:56:03]Write i2c OK [16:56:03]MH_I2C_Read... [16:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:03]Read from MH i2c: E2 [16:56:03]MH_I2C_Read... [16:56:03]Read from MH i2c: E2 0E 00 [16:56:03]MH_I2C_Read... [16:56:03]Read from MH i2c: E2 0E 00 94 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0F [16:56:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:56:03]wFMCommunicate OK [16:56:03]SAM_PROTO_GetShiftState done [16:56:03]FM_GetShiftState done [16:56:03]opened in 1729643772 [16:56:03]opened+sec_in_day 1729730172 [16:56:03]quantity*price = 290047 [16:56:03]sum+1 = 290049 [16:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2900.48 НСП 1% : 25.67 НДС 12% : 308.02 Наличными: 0.00 Безнал.: 2900.48 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 236 23.10.2024 16:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166821 ФПД: 214526635499962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165605&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166821&fm=214526635499962&tin=02508201610067®Number=0000000000091764&sum=290048 [16:56:04]StoreToDocumentArchive [16:56:04]shift 537 fd 166821 [16:56:04]save to /storage/0537/doc_00166821 [16:56:04]save last doc name /storage/0537/doc_00166821 to /storage/kkm_last_doc_name [16:56:04]save OK [16:56:04]Clear old archive folders... [16:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:04]tlvbuf is B6F8F410 [16:56:04]SAM_PROTO_ClearQueue [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 09 00 00 [16:56:04]Write to MH i2c: E2 08 00 A1 33 80 09 00 00 00 00 00 00 46 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 A1 33 00 90 00 48 [16:56:05]RAPDU: 90 00 [16:56:05]wFMCommunicate OK [16:56:05]SAM_PROTO_ClearQueue done [16:56:05]KKMCreateOFDPacket [16:56:05]OFDProtocolAddRootSTLVToBuf [16:56:05]FM_MakeSignedData [16:56:05]FM_MakeSignedData [16:56:05]SAM_PROTO_SignData [16:56:05]wFMCommunicate request_size=4 [16:56:05]MH_SAM_APDU [16:56:05]CAPDU: 80 0D 01 02 [16:56:05]Write to MH i2c: E2 08 00 A2 33 80 0D 01 02 00 00 00 00 4E [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 A2 33 00 90 00 49 [16:56:05]RAPDU: 90 00 [16:56:05]wFMCommunicate OK [16:56:05]wFMCommunicate request_size=255 [16:56:05]MH_SAM_APDU [16:56:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 98 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 A5 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8B 02 00 35 04 06 00 C3 [16:56:05]Write to MH i2c: E2 02 01 A3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 98 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 A5 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8B 02 00 35 04 06 00 C3 00 00 3E [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 A3 33 00 90 00 4A [16:56:05]RAPDU: 90 00 [16:56:05]wFMCommunicate OK [16:56:05]wFMCommunicate request_size=10 [16:56:05]MH_SAM_APDU [16:56:05]CAPDU: 80 0D 02 02 05 1C 5F E7 61 BA [16:56:05]Write to MH i2c: E2 0D 00 A4 33 80 0D 02 02 05 00 1C 5F E7 61 BA 00 00 D8 [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 03 00 A4 33 00 90 00 4B [16:56:05]RAPDU: 90 00 [16:56:05]wFMCommunicate OK [16:56:05]wFMCommunicate request_size=4 [16:56:05]MH_SAM_APDU [16:56:05]CAPDU: 80 0D 03 02 [16:56:05]Write to MH i2c: E2 08 00 A5 33 80 0D 03 02 00 00 00 00 53 [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 0B 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 0B 00 A5 33 00 46 E7 A6 71 DF B5 BA 01 90 00 E7 [16:56:05]RAPDU: 46 E7 A6 71 DF B5 BA 01 90 00 [16:56:05]wFMCommunicate OK [16:56:05]SAM_PROTO_SignData done [16:56:05]FM_MakeSignedData done [16:56:05]CreateOFDProtocolMessage [16:56:05]wFMCommunicate request_size=4 [16:56:05]MH_SAM_APDU [16:56:05]CAPDU: 80 11 00 00 [16:56:05]Write to MH i2c: E2 08 00 A6 33 80 11 00 00 00 00 00 00 53 [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:05]Read from MH i2c: E2 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 17 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: E2 17 00 A6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [16:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:56:05]wFMCommunicate OK [16:56:05]CreateOFDProtocolMessage done [16:56:05]OFDSenderStorePacket 166821 [16:56:05]StoreOFDPacket docnum=166821 [16:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D9 EA 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 98 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 A5 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8B 02 00 35 04 06 00 C3 1C 5F E7 61 BA 46 E7 A6 71 DF B5 BA 01 [16:56:05]CheckFolder [16:56:05]dirname=/storage/ofd_packets [16:56:05]CheckFolder done [16:56:05]ProducePacketName [16:56:05]name=ofd_packets/00166821 [16:56:05]NVStorageSaveData ofd_packets/00166821 [16:56:05]File name is /storage/ofd_packets/00166821 [16:56:05]Write 301 bytes [16:56:05]NVStorageSaveData done [16:56:05]OFDSenderStorePacket done [16:56:05]KKMCreateOFDPacket done [16:56:05]NVStorageSaveData kkm_last_timestamp [16:56:05]File name is /storage/kkm_last_timestamp [16:56:05]Write 4 bytes [16:56:05]NVStorageSaveData done [16:56:05]ExternCall_PrintAddStr [16:56:05]wPrintStart [16:56:05]Write to MH i2c: 01 00 00 A7 33 DA [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 07 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 07 00 A7 33 00 00 00 00 00 FF 0F EF [16:56:05]RasterBufferAndPrint [16:56:05]line Счет N : (1)221405 [16:56:05]line ИНН: 02508201610067 [16:56:05]line Контрольно-Кассовый Чек [16:56:05]line ПРОДАЖА [16:56:05]line ТРК (МРК, ГНК) : 24 [16:56:05]line Товар: 2710124500 [16:56:05]line Аи-95-К-5 [16:56:05]line 39.090 * 74.20 [16:56:05]line = 2900.48 [16:56:05]line НДС 12% НСП 1% [16:56:05]line > о реализуемом товаре [16:56:05]line ИТОГО: 2900.48 [16:56:05]line НСП 1% : 25.67 [16:56:05]line НДС 12% : 308.02 [16:56:05]line Наличными: 0.00 [16:56:05]line Безнал.: 2900.48 [16:56:05]line Место: АЗС № 161 "Партнер Нефть" [16:56:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:56:05]line СНО: Общий режим [16:56:05]line Чек 236 23.10.2024 16:56 [16:56:05]line Смена: 537 ФФД: 1.0 [16:56:05]line ЗНМ: 0300000104 [16:56:05]line РНМ: 0000000000091764 [16:56:05]line Версия ККМ: 001 [16:56:05]line Платежная система: Mbank [16:56:05]line ФМ: 0000000000871759 [16:56:05]line ФД: 166821 [16:56:05]line ФПД: 214526635499962 [16:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165605&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166821&fm=214526635499962&tin=02508201610067®Number=0000000000091764&sum=290048 [16:56:05]written 0, free lines is 4095 [16:56:05]OFD Sender: Processing packet 166821 [packets to send 48, broken 47] [16:56:05]ProducePacketName [16:56:05]name=ofd_packets/00166821 [16:56:05]OFD Sender: To server: pG, [16:56:05]CommunicateWithHost lk.salyk.kg:30040 [16:56:05]ConnectInit lk.salyk.kg [16:56:05]Connected sock=11 [16:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D9 EA 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 98 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 A5 2A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8B 02 00 35 04 06 00 C3 1C 5F E7 61 BA 46 E7 A6 71 DF B5 BA 01 [16:56:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5C 50 47 00 91 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8B 02 00 F4 03 04 00 0C D1 18 67 B6 04 01 00 00 CB C1 1E 2D 54 28 1D D0 [16:56:06]CommunicateWithHost err = 0 [16:56:06]CheckOFDResponse [16:56:06]1017 (14) - 77093643461234 [16:56:06]1041 (16) - 0000000000871759 [16:56:06]1040 (4) - 166821 [16:56:06]1012 (4) - 23.10.2024 10:33 [16:56:06]1206 (1) - 0 [16:56:06]OFD Sender: Remove packet 166821 [16:56:06]ProducePacketName [16:56:06]name=ofd_packets/00166821 [16:56:06]NVStorageDeleteData [16:56:06]Write to MH i2c: 01 00 00 D0 33 03 [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 D0 33 00 00 00 00 00 ED 0C 03 [16:56:06]RasterBufferAndPrint [16:56:06]line [16:56:06]line [16:56:06]line [16:56:06]line [16:56:06]line [16:56:06]written 0, free lines is 3314 [16:56:06]MH_Cut [16:56:06]Write to MH i2c: D1 01 00 D7 33 01 DC [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: D1 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: D1 01 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: D1 01 00 D7 33 00 DB [16:56:06]Write to MH i2c: 01 00 00 D8 33 0B [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]OFD Sender: No OFD packet to send [16:56:07]*** Cut start [16:56:07]*** Partial cut [16:56:07]*** CUTSNS_PIN = 1 [16:56:07]*** CUTSNS_PIN = 0 [16:56:07]*** Brake cut motor [16:56:07]Read from MH i2c: 01 [16:56:07]MH_I2C_Read... [16:56:07]*** Stop cut motor [16:56:07]*** Cut end [16:56:07]Read from MH i2c: 01 07 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 D8 33 00 00 00 00 00 FF 0F 20 [16:56:07]process_action close_receipt done [16:56:07]requested_data is exist [16:56:07]produce_requested_data [16:56:07]requested_item fm.sn is exist - process it [16:56:07]wFMCommunicate request_size=4 [16:56:07]MH_SAM_APDU [16:56:07]CAPDU: 80 11 00 00 [16:56:07]Write to MH i2c: E2 08 00 D9 33 80 11 00 00 00 00 00 00 86 [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:07]Read from MH i2c: E2 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 17 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 17 00 D9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [16:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:56:07]wFMCommunicate OK [16:56:07]requested_item fd.num is exist - process it [16:56:07]SAM_PROTO_GetFieldsCounters [16:56:07]wFMCommunicate request_size=4 [16:56:07]MH_SAM_APDU [16:56:07]CAPDU: 80 13 00 00 [16:56:07]Write to MH i2c: E2 08 00 DA 33 80 13 00 00 00 00 00 00 89 [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:07]Read from MH i2c: E2 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 62 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 62 00 DA 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [16:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:07]wFMCommunicate OK [16:56:07]SAM_PROTO_GetFieldsCounters done [16:56:07]requested_item shift.num is exist - process it [16:56:07]requested_item shift.opened is exist - process it [16:56:07]req_shift_opened [16:56:07]FM_GetShiftState [16:56:07]SAM_PROTO_GetShiftState [16:56:07]wFMCommunicate request_size=4 [16:56:07]MH_SAM_APDU [16:56:07]CAPDU: 80 13 01 00 [16:56:07]Write to MH i2c: E2 08 00 DB 33 80 13 01 00 00 00 00 00 8B [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0E 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0E 00 DB 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 56 [16:56:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:56:08]wFMCommunicate OK [16:56:08]SAM_PROTO_GetShiftState done [16:56:08]FM_GetShiftState done [16:56:08]req_shift_opened done [16:56:08]requested_item shift.open_date is exist - process it [16:56:08]req_shift_open_date [16:56:08]req_shift_open_date done [16:56:08]produce_requested_data done [16:56:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166821,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:56:08]process_action_free close_receipt [16:56:08]json_value_free [16:56:08]json_value_free done [16:56:08]process_json_proto returns [16:56:08]Send response to host [16:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166821,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:56:08]free response buf [16:56:08]execute_script done [16:56:08]execute_script returns [16:56:08]free content buf [16:56:08]Sock 10.Close socket [16:56:08]Sock 10.Thread stoped [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:57:56]accept exits with 8 [16:57:56]New connection [16:57:56]New thread 3067034980 created [16:57:56]Thread 3067178340 joined [16:57:56]Waiting for new connection... [16:57:56] Sock 8.Parse request [16:57:56]Sock 8.Check first char [16:57:56]Sock 8.First char is OK [16:57:56]request: POST /json_proto HTTP/1.0 [16:57:56]Method: POST [16:57:56]URL: /json_proto [16:57:56]Method is POST - this is cgi request [16:57:56]url: /json_proto [16:57:56]query_string will be loaded in cgi processing [16:57:56]execute_cgi json_proto POST (null) [16:57:56]execute_cgi path=json_proto method=POST [16:57:56]POST find Content-Length [16:57:56]Host: 172.17.53.195:8080 [16:57:56]Content-Length: 788 [16:57:56]Content-Type: application/json [16:57:56] [16:57:56]POST finish read [16:57:56]Found Content-Length = 788 [16:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 4.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:56]execute_script... [16:57: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)221406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 4.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:56]POST & json_proto [16:57:56]process_json_proto [16:57:56]json parsed OK: [16:57:56]protocol is kg_v1.0 [16:57:56]action value=close_receipt [16:57:56]process_action close_receipt [16:57:56]cmd_close_receipt [16:57:56]MH_GetDate [16:57:56]Write to MH i2c: F0 00 00 DC 33 FE [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: F0 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: F0 09 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: F0 09 00 DC 33 00 16 2B 19 67 21 48 4A 65 E0 [16:57:56]GetLastDocTimeStamp 1729702565 [16:57:56]current date 1729702678 [16:57:56]FM_GetShiftState [16:57:56]SAM_PROTO_GetShiftState [16:57:56]wFMCommunicate request_size=4 [16:57:56]MH_SAM_APDU [16:57:56]CAPDU: 80 13 01 00 [16:57:56]Write to MH i2c: E2 08 00 DD 33 80 13 01 00 00 00 00 00 8D [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:56]Read from MH i2c: E2 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 0E 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 0E 00 DD 33 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 58 [16:57:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:57:56]wFMCommunicate OK [16:57:56]SAM_PROTO_GetShiftState done [16:57:56]FM_GetShiftState done [16:57:56]opened in 1729643772 [16:57:56]opened+sec_in_day 1729730172 [16:57:56]quantity*price = 0 [16:57:56]sum+1 = 1 [16:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 237 23.10.2024 16:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 53628 ФМ: 0000000000871759 ФД: 166822 ФПД: 32837455030974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166822&fm=32837455030974&tin=02508201610067®Number=0000000000091764&sum=0 [16:57:57]StoreToDocumentArchive [16:57:57]shift 537 fd 166822 [16:57:57]save to /storage/0537/doc_00166822 [16:57:57]save last doc name /storage/0537/doc_00166822 to /storage/kkm_last_doc_name [16:57:57]save OK [16:57:57]Clear old archive folders... [16:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:57]tlvbuf is 01FE7DE0 [16:57:57]SAM_PROTO_ClearQueue [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 09 00 00 [16:57:57]Write to MH i2c: E2 08 00 EA 33 80 09 00 00 00 00 00 00 8F [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 03 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 03 00 EA 33 00 90 00 91 [16:57:57]RAPDU: 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_ClearQueue done [16:57:57]KKMCreateOFDPacket [16:57:57]OFDProtocolAddRootSTLVToBuf [16:57:57]FM_MakeSignedData [16:57:57]FM_MakeSignedData [16:57:57]SAM_PROTO_SignData [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 0D 01 02 [16:57:57]Write to MH i2c: E2 08 00 EB 33 80 0D 01 02 00 00 00 00 97 [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 EB 33 00 90 00 92 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=255 [16:57:58]MH_SAM_APDU [16:57: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 DC 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 16 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8B 02 00 35 04 06 00 1D DD 90 D7 [16:57:58]Write to MH i2c: E2 02 01 EC 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 DC 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 16 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8B 02 00 35 04 06 00 1D DD 90 D7 00 00 43 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 EC 33 00 90 00 93 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=7 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 02 02 02 AA BE [16:57:58]Write to MH i2c: E2 0A 00 ED 33 80 0D 02 02 02 00 AA BE 00 00 06 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 ED 33 00 90 00 94 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 03 02 [16:57:58]Write to MH i2c: E2 08 00 EE 33 80 0D 03 02 00 00 00 00 9C [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0B 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0B 00 EE 33 00 9C 3E 4F 3F F9 1D C8 3E 90 00 21 [16:57:58]RAPDU: 9C 3E 4F 3F F9 1D C8 3E 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_SignData done [16:57:58]FM_MakeSignedData done [16:57:58]CreateOFDProtocolMessage [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 11 00 00 [16:57:58]Write to MH i2c: E2 08 00 EF 33 80 11 00 00 00 00 00 00 9C [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 EF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [16:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:57:58]wFMCommunicate OK [16:57:58]CreateOFDProtocolMessage done [16:57:58]OFDSenderStorePacket 166822 [16:57:58]StoreOFDPacket docnum=166822 [16:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1F 54 04 01 8B 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 16 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8B 02 00 35 04 06 00 1D DD 90 D7 AA BE 9C 3E 4F 3F F9 1D C8 3E [16:57:58]CheckFolder [16:57:58]dirname=/storage/ofd_packets [16:57:58]CheckFolder done [16:57:58]ProducePacketName [16:57:58]name=ofd_packets/00166822 [16:57:58]NVStorageSaveData ofd_packets/00166822 [16:57:58]File name is /storage/ofd_packets/00166822 [16:57:58]Write 298 bytes [16:57:58]NVStorageSaveData done [16:57:58]OFDSenderStorePacket done [16:57:58]KKMCreateOFDPacket done [16:57:58]NVStorageSaveData kkm_last_timestamp [16:57:58]File name is /storage/kkm_last_timestamp [16:57:58]Write 4 bytes [16:57:58]NVStorageSaveData done [16:57:58]ExternCall_PrintAddStr [16:57:58]wPrintStart [16:57:58]Write to MH i2c: 01 00 00 F0 33 23 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 07 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 07 00 F0 33 00 00 00 00 00 FF 0F 38 [16:57:58]RasterBufferAndPrint [16:57:58]line Счет N : (1)221406 [16:57:58]line ИНН: 02508201610067 [16:57:58]line Контрольно-Кассовый Чек [16:57:58]line ПРОДАЖА [16:57:58]line ТРК (МРК, ГНК) : 21 [16:57:58]line Товар: 2710194210 [16:57:58]line ДТ-К-5 [16:57:58]line 4.060 * 0.00 [16:57:58]line = 0.00 [16:57:58]line НДС 12% НСП 1% [16:57:58]line > о реализуемом товаре [16:57:58]line ИТОГО: 0.00 [16:57:58]line НСП 1% : 0.00 [16:57:58]line НДС 12% : 0.00 [16:57:58]line Наличными: 0.00 [16:57:58]line Безнал.: 0.00 [16:57:58]line Место: АЗС № 161 "Партнер Нефть" [16:57:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:57:58]line СНО: Общий режим [16:57:58]line Чек 237 23.10.2024 16:57 [16:57:58]line Смена: 537 ФФД: 1.0 [16:57:58]line ЗНМ: 0300000104 [16:57:58]line РНМ: 0000000000091764 [16:57:58]line Версия ККМ: 001 [16:57:58]line Талоны: Топливная Карта [16:57:58]line 53628 [16:57:58]line ФМ: 0000000000871759 [16:57:58]line ФД: 166822 [16:57:58]line ФПД: 32837455030974 [16:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166822&fm=32837455030974&tin=02508201610067®Number=0000000000091764&sum=0 [16:57:58]OFD Sender: Processing packet 166822 [packets to send 48, broken 47] [16:57:58]ProducePacketName [16:57:58]name=ofd_packets/00166822 [16:57:58]OFD Sender: To server: pG, [16:57:58]CommunicateWithHost lk.salyk.kg:30040 [16:57:58]ConnectInit lk.salyk.kg [16:57:58]written 0, free lines is 4095 [16:57:58]Connected sock=10 [16:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1F 54 04 01 8B 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 16 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8B 02 00 35 04 06 00 1D DD 90 D7 AA BE 9C 3E 4F 3F F9 1D C8 3E [16:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA 17 47 00 17 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8B 02 00 F4 03 04 00 7D D1 18 67 B6 04 01 00 00 09 4A 55 C4 6D 51 1C F8 [16:57:59]CommunicateWithHost err = 0 [16:57:59]CheckOFDResponse [16:57:59]1017 (14) - 77093643461234 [16:57:59]1041 (16) - 0000000000871759 [16:57:59]1040 (4) - 166822 [16:57:59]1012 (4) - 23.10.2024 10:35 [16:57:59]1206 (1) - 0 [16:57:59]OFD Sender: Remove packet 166822 [16:57:59]ProducePacketName [16:57:59]name=ofd_packets/00166822 [16:57:59]NVStorageDeleteData [16:57:59]Write to MH i2c: 01 00 00 1A 34 4E [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 1A 34 00 00 00 00 00 D2 0C 33 [16:57:59]RasterBufferAndPrint [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]written 0, free lines is 3288 [16:57:59]MH_Cut [16:57:59]Write to MH i2c: D1 01 00 21 34 01 27 [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 01 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 01 00 21 34 00 26 [16:57:59]Write to MH i2c: 01 00 00 22 34 56 [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]OFD Sender: No OFD packet to send [16:58:00]*** Cut start [16:58:00]*** Partial cut [16:58:00]*** CUTSNS_PIN = 1 [16:58:00]*** CUTSNS_PIN = 0 [16:58:00]*** Brake cut motor [16:58:00]Read from MH i2c: 01 [16:58:00]MH_I2C_Read... [16:58:00]*** Stop cut motor [16:58:00]*** Cut end [16:58:00]Read from MH i2c: 01 07 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: 01 07 00 22 34 00 00 00 00 00 FF 0F 6B [16:58:00]process_action close_receipt done [16:58:00]requested_data is exist [16:58:00]produce_requested_data [16:58:00]requested_item fm.sn is exist - process it [16:58:00]wFMCommunicate request_size=4 [16:58:00]MH_SAM_APDU [16:58:00]CAPDU: 80 11 00 00 [16:58:00]Write to MH i2c: E2 08 00 23 34 80 11 00 00 00 00 00 00 D1 [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:00]Read from MH i2c: E2 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 17 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 17 00 23 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [16:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:58:00]wFMCommunicate OK [16:58:00]requested_item fd.num is exist - process it [16:58:00]SAM_PROTO_GetFieldsCounters [16:58:00]wFMCommunicate request_size=4 [16:58:00]MH_SAM_APDU [16:58:00]CAPDU: 80 13 00 00 [16:58:00]Write to MH i2c: E2 08 00 24 34 80 13 00 00 00 00 00 00 D4 [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:00]Read from MH i2c: E2 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 62 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 62 00 24 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [16:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:00]wFMCommunicate OK [16:58:00]SAM_PROTO_GetFieldsCounters done [16:58:00]requested_item shift.num is exist - process it [16:58:00]requested_item shift.opened is exist - process it [16:58:00]req_shift_opened [16:58:00]FM_GetShiftState [16:58:00]SAM_PROTO_GetShiftState [16:58:00]wFMCommunicate request_size=4 [16:58:00]MH_SAM_APDU [16:58:00]CAPDU: 80 13 01 00 [16:58:00]Write to MH i2c: E2 08 00 25 34 80 13 01 00 00 00 00 00 D6 [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:00]Read from MH i2c: E2 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 0E 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: E2 0E 00 25 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A1 [16:58:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:58:00]wFMCommunicate OK [16:58:00]SAM_PROTO_GetShiftState done [16:58:00]FM_GetShiftState done [16:58:00]req_shift_opened done [16:58:00]requested_item shift.open_date is exist - process it [16:58:00]req_shift_open_date [16:58:00]req_shift_open_date done [16:58:00]produce_requested_data done [16:58:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166822,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:58:00]process_action_free close_receipt [16:58:00]json_value_free [16:58:00]json_value_free done [16:58:00]process_json_proto returns [16:58:00]Send response to host [16:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166822,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:58:00]free response buf [16:58:00]execute_script done [16:58:00]execute_script returns [16:58:00]free content buf [16:58:00]Sock 8.Close socket [16:58:00]Sock 8.Thread stoped [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]accept exits with 9 [16:58:24]New connection [16:58:24]New thread 3067178340 created [16:58:24]Thread 3067034980 joined [16:58:24]Waiting for new connection... [16:58:24] Sock 9.Parse request [16:58:24]Sock 9.Check first char [16:58:24]Sock 9.First char is OK [16:58:24]request: POST /json_proto HTTP/1.0 [16:58:24]Method: POST [16:58:24]URL: /json_proto [16:58:24]Method is POST - this is cgi request [16:58:24]url: /json_proto [16:58:24]query_string will be loaded in cgi processing [16:58:24]execute_cgi json_proto POST (null) [16:58:24]execute_cgi path=json_proto method=POST [16:58:24]POST find Content-Length [16:58:24]Host: 172.17.53.195:8080 [16:58:24]Content-Length: 674 [16:58:24]Content-Type: application/json [16:58:24] [16:58:24]POST finish read [16:58:24]Found Content-Length = 674 [16:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:24]execute_script... [16:58: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)221407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:24]POST & json_proto [16:58:24]process_json_proto [16:58:24]json parsed OK: [16:58:24]protocol is kg_v1.0 [16:58:24]action value=close_receipt [16:58:24]process_action close_receipt [16:58:24]cmd_close_receipt [16:58:24]MH_GetDate [16:58:24]Write to MH i2c: F0 00 00 26 34 49 [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 09 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: F0 09 00 26 34 00 32 2B 19 67 21 48 4A 65 47 [16:58:24]GetLastDocTimeStamp 1729702678 [16:58:24]current date 1729702706 [16:58:24]FM_GetShiftState [16:58:24]SAM_PROTO_GetShiftState [16:58:24]wFMCommunicate request_size=4 [16:58:24]MH_SAM_APDU [16:58:24]CAPDU: 80 13 01 00 [16:58:24]Write to MH i2c: E2 08 00 27 34 80 13 01 00 00 00 00 00 D8 [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:24]Read from MH i2c: E2 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: E2 0E 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: E2 0E 00 27 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A3 [16:58:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:58:24]wFMCommunicate OK [16:58:24]SAM_PROTO_GetShiftState done [16:58:24]FM_GetShiftState done [16:58:24]opened in 1729643772 [16:58:24]opened+sec_in_day 1729730172 [16:58:24]quantity*price = 22021 [16:58:24]sum+1 = 22023 [16:58:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.39 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 238 23.10.2024 16:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166823 ФПД: 77130458278848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165826&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166823&fm=77130458278848&tin=02508201610067®Number=0000000000091764&sum=22000 [16:58:25]StoreToDocumentArchive [16:58:25]shift 537 fd 166823 [16:58:25]save to /storage/0537/doc_00166823 [16:58:25]save last doc name /storage/0537/doc_00166823 to /storage/kkm_last_doc_name [16:58:25]save OK [16:58:25]Clear old archive folders... [16:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:58:25]tlvbuf is B6F8C750 [16:58:25]SAM_PROTO_ClearQueue [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 09 00 00 [16:58:25]Write to MH i2c: E2 08 00 34 34 80 09 00 00 00 00 00 00 DA [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 34 34 00 90 00 DC [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_ClearQueue done [16:58:25]KKMCreateOFDPacket [16:58:25]OFDProtocolAddRootSTLVToBuf [16:58:25]FM_MakeSignedData [16:58:25]FM_MakeSignedData [16:58:25]SAM_PROTO_SignData [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 0D 01 02 [16:58:25]Write to MH i2c: E2 08 00 35 34 80 0D 01 02 00 00 00 00 E2 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 35 34 00 90 00 DD [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]wFMCommunicate request_size=255 [16:58:25]MH_SAM_APDU [16:58: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 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 32 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8B 02 00 35 04 06 00 46 26 55 91 [16:58:25]Write to MH i2c: E2 02 01 36 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 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 32 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8B 02 00 35 04 06 00 46 26 55 91 00 00 BD [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 36 34 00 90 00 DE [16:58:26]RAPDU: 90 00 [16:58:26]wFMCommunicate OK [16:58:26]wFMCommunicate request_size=7 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 0D 02 02 02 2B C0 [16:58:26]Write to MH i2c: E2 0A 00 37 34 80 0D 02 02 02 00 2B C0 00 00 D4 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 03 00 37 34 00 90 00 DF [16:58:26]RAPDU: 90 00 [16:58:26]wFMCommunicate OK [16:58:26]wFMCommunicate request_size=4 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 0D 03 02 [16:58:26]Write to MH i2c: E2 08 00 38 34 80 0D 03 02 00 00 00 00 E7 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 0B 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 0B 00 38 34 00 11 F6 13 F9 EE 4F 9F AF 90 00 86 [16:58:26]RAPDU: 11 F6 13 F9 EE 4F 9F AF 90 00 [16:58:26]wFMCommunicate OK [16:58:26]SAM_PROTO_SignData done [16:58:26]FM_MakeSignedData done [16:58:26]CreateOFDProtocolMessage [16:58:26]wFMCommunicate request_size=4 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 11 00 00 [16:58:26]Write to MH i2c: E2 08 00 39 34 80 11 00 00 00 00 00 00 E7 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 17 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 17 00 39 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [16:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:58:26]wFMCommunicate OK [16:58:26]CreateOFDProtocolMessage done [16:58:26]OFDSenderStorePacket 166823 [16:58:26]StoreOFDPacket docnum=166823 [16:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 69 DD 04 01 6A C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 32 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8B 02 00 35 04 06 00 46 26 55 91 2B C0 11 F6 13 F9 EE 4F 9F AF [16:58:26]CheckFolder [16:58:26]dirname=/storage/ofd_packets [16:58:26]CheckFolder done [16:58:26]ProducePacketName [16:58:26]name=ofd_packets/00166823 [16:58:26]NVStorageSaveData ofd_packets/00166823 [16:58:26]File name is /storage/ofd_packets/00166823 [16:58:26]Write 298 bytes [16:58:26]NVStorageSaveData done [16:58:26]OFDSenderStorePacket done [16:58:26]KKMCreateOFDPacket done [16:58:26]NVStorageSaveData kkm_last_timestamp [16:58:26]File name is /storage/kkm_last_timestamp [16:58:26]Write 4 bytes [16:58:26]NVStorageSaveData done [16:58:26]ExternCall_PrintAddStr [16:58:26]wPrintStart [16:58:26]Write to MH i2c: 01 00 00 3A 34 6E [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 3A 34 00 00 00 00 00 FF 0F 83 [16:58:26]RasterBufferAndPrint [16:58:26]line Счет N : (1)221407 [16:58:26]line ИНН: 02508201610067 [16:58:26]line Контрольно-Кассовый Чек [16:58:26]line ПРОДАЖА [16:58:26]line ТРК (МРК, ГНК) : 21 [16:58:26]line Товар: 2710194210 [16:58:26]line ДТ-К-5 [16:58:26]line 2.890 * 76.20 [16:58:26]line = 220.22 [16:58:26]line НДС 12% НСП 1% [16:58:26]line > о реализуемом товаре [16:58:26]line ОКРУГЛЕНИЕ: -0.22 [16:58:26]line ИТОГО: 220.00 [16:58:26]line Внесено: 220.00 [16:58:26]line СДАЧА: 0.00 [16:58:26]line НСП 1% : 1.95 [16:58:26]line НДС 12% : 23.39 [16:58:26]line Наличными: 220.00 [16:58:26]line Безнал.: 0.00 [16:58:26]line Место: АЗС № 161 "Партнер Нефть" [16:58:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:58:26]line СНО: Общий режим [16:58:26]line Чек 238 23.10.2024 16:58 [16:58:26]line Смена: 537 ФФД: 1.0 [16:58:26]line ЗНМ: 0300000104 [16:58:26]line РНМ: 0000000000091764 [16:58:26]line Версия ККМ: 001 [16:58:26]line ФМ: 0000000000871759 [16:58:26]line ФД: 166823 [16:58:26]line ФПД: 77130458278848 [16:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165826&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166823&fm=77130458278848&tin=02508201610067®Number=0000000000091764&sum=22000 [16:58:26]OFD Sender: Processing packet 166823 [packets to send 48, broken 47] [16:58:26]ProducePacketName [16:58:26]name=ofd_packets/00166823 [16:58:26]OFD Sender: To server: pG, [16:58:26]CommunicateWithHost lk.salyk.kg:30040 [16:58:26]ConnectInit lk.salyk.kg [16:58:26]written 0, free lines is 4095 [16:58:26]Connected sock=10 [16:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 69 DD 04 01 6A C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 32 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8B 02 00 35 04 06 00 46 26 55 91 2B C0 11 F6 13 F9 EE 4F 9F AF [16:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 88 47 00 4D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8B 02 00 F4 03 04 00 99 D1 18 67 B6 04 01 00 00 F6 BE 8B 7B 7E B0 97 60 [16:58:26]CommunicateWithHost err = 0 [16:58:26]CheckOFDResponse [16:58:26]1017 (14) - 77093643461234 [16:58:26]1041 (16) - 0000000000871759 [16:58:26]1040 (4) - 166823 [16:58:26]1012 (4) - 23.10.2024 10:36 [16:58:26]1206 (1) - 0 [16:58:26]OFD Sender: Remove packet 166823 [16:58:26]ProducePacketName [16:58:26]name=ofd_packets/00166823 [16:58:26]NVStorageDeleteData [16:58:26]Write to MH i2c: 01 00 00 65 34 99 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 65 34 00 00 00 00 00 B0 0C 5C [16:58:26]RasterBufferAndPrint [16:58:26]line [16:58:26]line [16:58:26]line [16:58:26]line [16:58:26]line [16:58:26]written 0, free lines is 3254 [16:58:26]MH_Cut [16:58:26]Write to MH i2c: D1 01 00 6C 34 01 72 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: D1 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: D1 01 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: D1 01 00 6C 34 00 71 [16:58:26]Write to MH i2c: 01 00 00 6D 34 A1 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:27]OFD Sender: No OFD packet to send [16:58:27]*** Cut start [16:58:27]*** Partial cut [16:58:27]*** CUTSNS_PIN = 1 [16:58:27]*** CUTSNS_PIN = 0 [16:58:28]*** Brake cut motor [16:58:28]Read from MH i2c: 01 [16:58:28]MH_I2C_Read... [16:58:28]*** Stop cut motor [16:58:28]*** Cut end [16:58:28]Read from MH i2c: 01 07 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: 01 07 00 6D 34 00 00 00 00 00 FF 0F B6 [16:58:28]process_action close_receipt done [16:58:28]requested_data is exist [16:58:28]produce_requested_data [16:58:28]requested_item fm.sn is exist - process it [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 11 00 00 [16:58:28]Write to MH i2c: E2 08 00 6E 34 80 11 00 00 00 00 00 00 1C [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 17 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 17 00 6E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [16:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:58:28]wFMCommunicate OK [16:58:28]requested_item fd.num is exist - process it [16:58:28]SAM_PROTO_GetFieldsCounters [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 13 00 00 [16:58:28]Write to MH i2c: E2 08 00 6F 34 80 13 00 00 00 00 00 00 1F [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 62 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 62 00 6F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:28]wFMCommunicate OK [16:58:28]SAM_PROTO_GetFieldsCounters done [16:58:28]requested_item shift.num is exist - process it [16:58:28]requested_item shift.opened is exist - process it [16:58:28]req_shift_opened [16:58:28]FM_GetShiftState [16:58:28]SAM_PROTO_GetShiftState [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 13 01 00 [16:58:28]Write to MH i2c: E2 08 00 70 34 80 13 01 00 00 00 00 00 21 [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 0E 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 0E 00 70 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EC [16:58:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [16:58:28]wFMCommunicate OK [16:58:28]SAM_PROTO_GetShiftState done [16:58:28]FM_GetShiftState done [16:58:28]req_shift_opened done [16:58:28]requested_item shift.open_date is exist - process it [16:58:28]req_shift_open_date [16:58:28]req_shift_open_date done [16:58:28]produce_requested_data done [16:58:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166823,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [16:58:28]process_action_free close_receipt [16:58:28]json_value_free [16:58:28]json_value_free done [16:58:28]process_json_proto returns [16:58:28]Send response to host [16:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166823,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [16:58:28]free response buf [16:58:28]execute_script done [16:58:28]execute_script returns [16:58:28]free content buf [16:58:28]Sock 9.Close socket [16:58:28]Sock 9.Thread stoped [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:21]accept exits with 8 [17:01:21]New connection [17:01:21]New thread 3067034980 created [17:01:21]Thread 3067178340 joined [17:01:21]Waiting for new connection... [17:01:21] Sock 8.Parse request [17:01:21]Sock 8.Check first char [17:01:21]Sock 8.First char is OK [17:01:21]request: POST /json_proto HTTP/1.0 [17:01:21]Method: POST [17:01:21]URL: /json_proto [17:01:21]Method is POST - this is cgi request [17:01:21]url: /json_proto [17:01:21]query_string will be loaded in cgi processing [17:01:21]execute_cgi json_proto POST (null) [17:01:21]execute_cgi path=json_proto method=POST [17:01:21]POST find Content-Length [17:01:21]Host: 172.17.53.195:8080 [17:01:21]Content-Length: 763 [17:01:21]Content-Type: application/json [17:01:21] [17:01:21]POST finish read [17:01:21]Found Content-Length = 763 [17:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]execute_script... [17:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]POST & json_proto [17:01:21]process_json_proto [17:01:21]json parsed OK: [17:01:21]protocol is kg_v1.0 [17:01:21]action value=close_receipt [17:01:21]process_action close_receipt [17:01:21]cmd_close_receipt [17:01:21]MH_GetDate [17:01:21]Write to MH i2c: F0 00 00 71 34 94 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 71 34 00 E3 2B 19 67 21 48 4A 65 43 [17:01:21]GetLastDocTimeStamp 1729702706 [17:01:21]current date 1729702883 [17:01:21]FM_GetShiftState [17:01:21]SAM_PROTO_GetShiftState [17:01:21]wFMCommunicate request_size=4 [17:01:21]MH_SAM_APDU [17:01:21]CAPDU: 80 13 01 00 [17:01:21]Write to MH i2c: E2 08 00 72 34 80 13 01 00 00 00 00 00 23 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:21]Read from MH i2c: E2 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 72 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EE [17:01:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:01:21]wFMCommunicate OK [17:01:21]SAM_PROTO_GetShiftState done [17:01:21]FM_GetShiftState done [17:01:21]opened in 1729643772 [17:01:21]opened+sec_in_day 1729730172 [17:01:21]quantity*price = 50063 [17:01:21]sum+1 = 50064 [17:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 239 23.10.2024 17:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166824 ФПД: 181422524824623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166824&fm=181422524824623&tin=02508201610067®Number=0000000000091764&sum=50063 [17:01:22]StoreToDocumentArchive [17:01:22]shift 537 fd 166824 [17:01:22]save to /storage/0537/doc_00166824 [17:01:22]save last doc name /storage/0537/doc_00166824 to /storage/kkm_last_doc_name [17:01:22]save OK [17:01:22]Clear old archive folders... [17:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:22]tlvbuf is 01FB3BA0 [17:01:22]SAM_PROTO_ClearQueue [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 09 00 00 [17:01:22]Write to MH i2c: E2 08 00 7F 34 80 09 00 00 00 00 00 00 25 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 7F 34 00 90 00 27 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_ClearQueue done [17:01:22]KKMCreateOFDPacket [17:01:22]OFDProtocolAddRootSTLVToBuf [17:01:22]FM_MakeSignedData [17:01:22]FM_MakeSignedData [17:01:22]SAM_PROTO_SignData [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 01 02 [17:01:22]Write to MH i2c: E2 08 00 80 34 80 0D 01 02 00 00 00 00 2D [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 80 34 00 90 00 28 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=255 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E3 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8B 02 00 35 04 06 00 A5 00 B9 25 [17:01:22]Write to MH i2c: E2 02 01 81 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E3 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8B 02 00 35 04 06 00 A5 00 B9 25 00 00 0F [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]OFD Sender: No OFD packet to send [17:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 81 34 00 90 00 29 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=7 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 02 7C 2F [17:01:22]Write to MH i2c: E2 0A 00 82 34 80 0D 02 02 02 00 7C 2F 00 00 DF [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 82 34 00 90 00 2A [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 03 02 [17:01:22]Write to MH i2c: E2 08 00 83 34 80 0D 03 02 00 00 00 00 32 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 0B 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 0B 00 83 34 00 0F 5F 0C 68 F7 77 DD D5 90 00 35 [17:01:22]RAPDU: 0F 5F 0C 68 F7 77 DD D5 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_SignData done [17:01:22]FM_MakeSignedData done [17:01:22]CreateOFDProtocolMessage [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 11 00 00 [17:01:22]Write to MH i2c: E2 08 00 84 34 80 11 00 00 00 00 00 00 32 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 17 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 17 00 84 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [17:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:01:22]wFMCommunicate OK [17:01:22]CreateOFDProtocolMessage done [17:01:22]OFDSenderStorePacket 166824 [17:01:22]StoreOFDPacket docnum=166824 [17:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 E9 04 01 45 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E3 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8B 02 00 35 04 06 00 A5 00 B9 25 7C 2F 0F 5F 0C 68 F7 77 DD D5 [17:01:22]CheckFolder [17:01:22]dirname=/storage/ofd_packets [17:01:22]CheckFolder done [17:01:22]ProducePacketName [17:01:22]name=ofd_packets/00166824 [17:01:22]NVStorageSaveData ofd_packets/00166824 [17:01:22]File name is /storage/ofd_packets/00166824 [17:01:22]Write 298 bytes [17:01:22]NVStorageSaveData done [17:01:22]OFDSenderStorePacket done [17:01:22]KKMCreateOFDPacket done [17:01:22]NVStorageSaveData kkm_last_timestamp [17:01:22]File name is /storage/kkm_last_timestamp [17:01:22]Write 4 bytes [17:01:22]NVStorageSaveData done [17:01:22]ExternCall_PrintAddStr [17:01:22]wPrintStart [17:01:22]Write to MH i2c: 01 00 00 85 34 B9 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 07 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 07 00 85 34 00 00 00 00 00 FF 0F CE [17:01:22]RasterBufferAndPrint [17:01:22]line Счет N : (1)221408 [17:01:22]line ИНН: 02508201610067 [17:01:22]line Контрольно-Кассовый Чек [17:01:22]line ПРОДАЖА [17:01:22]line ТРК (МРК, ГНК) : 31 [17:01:22]line Товар: 2710194210 [17:01:22]line ДТ-К-5 [17:01:22]line 6.570 * 76.20 [17:01:22]line = 500.63 [17:01:22]line НДС 12% НСП 1% [17:01:22]line > о реализуемом товаре [17:01:22]line ИТОГО: 500.63 [17:01:22]line НСП 1% : 4.43 [17:01:22]line НДС 12% : 53.16 [17:01:22]line Наличными: 0.00 [17:01:22]line Безнал.: 500.63 [17:01:22]line Место: АЗС № 161 "Партнер Нефть" [17:01:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:01:22]line СНО: Общий режим [17:01:22]line Чек 239 23.10.2024 17:01 [17:01:22]line Смена: 537 ФФД: 1.0 [17:01:22]line ЗНМ: 0300000104 [17:01:22]line РНМ: 0000000000091764 [17:01:22]line Версия ККМ: 001 [17:01:22]line Платежная система: Mbank [17:01:22]line ФМ: 0000000000871759 [17:01:22]line ФД: 166824 [17:01:22]line ФПД: 181422524824623 [17:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166824&fm=181422524824623&tin=02508201610067®Number=0000000000091764&sum=50063 [17:01:23]OFD Sender: Processing packet 166824 [packets to send 48, broken 47] [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00166824 [17:01:23]OFD Sender: To server: pG, [17:01:23]CommunicateWithHost lk.salyk.kg:30040 [17:01:23]ConnectInit lk.salyk.kg [17:01:23]written 0, free lines is 4095 [17:01:23]Connected sock=10 [17:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 E9 04 01 45 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E3 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8B 02 00 35 04 06 00 A5 00 B9 25 7C 2F 0F 5F 0C 68 F7 77 DD D5 [17:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 F2 47 00 68 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8B 02 00 F4 03 04 00 4A D2 18 67 B6 04 01 00 00 7E F9 77 E6 CA 7C 9B 0D [17:01:23]CommunicateWithHost err = 0 [17:01:23]CheckOFDResponse [17:01:23]1017 (14) - 77093643461234 [17:01:23]1041 (16) - 0000000000871759 [17:01:23]1040 (4) - 166824 [17:01:23]1012 (4) - 23.10.2024 10:39 [17:01:23]1206 (1) - 0 [17:01:23]OFD Sender: Remove packet 166824 [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00166824 [17:01:23]NVStorageDeleteData [17:01:23]Write to MH i2c: 01 00 00 AE 34 E2 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 AE 34 00 00 00 00 00 DE 0C D3 [17:01:23]RasterBufferAndPrint [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]written 0, free lines is 3300 [17:01:23]MH_Cut [17:01:23]Write to MH i2c: D1 01 00 B5 34 01 BB [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 01 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 01 00 B5 34 00 BA [17:01:23]Write to MH i2c: 01 00 00 B6 34 EA [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]OFD Sender: No OFD packet to send [17:01:24]*** Cut start [17:01:24]*** Partial cut [17:01:24]*** CUTSNS_PIN = 1 [17:01:24]*** CUTSNS_PIN = 0 [17:01:24]*** Brake cut motor [17:01:25]Read from MH i2c: 01 [17:01:25]MH_I2C_Read... [17:01:25]*** Stop cut motor [17:01:25]*** Cut end [17:01:25]Read from MH i2c: 01 07 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: 01 07 00 B6 34 00 00 00 00 00 FF 0F FF [17:01:25]process_action close_receipt done [17:01:25]requested_data is exist [17:01:25]produce_requested_data [17:01:25]requested_item fm.sn is exist - process it [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 11 00 00 [17:01:25]Write to MH i2c: E2 08 00 B7 34 80 11 00 00 00 00 00 00 65 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 B7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [17:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:01:25]wFMCommunicate OK [17:01:25]requested_item fd.num is exist - process it [17:01:25]SAM_PROTO_GetFieldsCounters [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 00 00 [17:01:25]Write to MH i2c: E2 08 00 B8 34 80 13 00 00 00 00 00 00 68 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 B8 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetFieldsCounters done [17:01:25]requested_item shift.num is exist - process it [17:01:25]requested_item shift.opened is exist - process it [17:01:25]req_shift_opened [17:01:25]FM_GetShiftState [17:01:25]SAM_PROTO_GetShiftState [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 01 00 [17:01:25]Write to MH i2c: E2 08 00 B9 34 80 13 01 00 00 00 00 00 6A [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 B9 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 35 [17:01:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetShiftState done [17:01:25]FM_GetShiftState done [17:01:25]req_shift_opened done [17:01:25]requested_item shift.open_date is exist - process it [17:01:25]req_shift_open_date [17:01:25]req_shift_open_date done [17:01:25]produce_requested_data done [17:01:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166824,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:01:25]process_action_free close_receipt [17:01:25]json_value_free [17:01:25]json_value_free done [17:01:25]process_json_proto returns [17:01:25]Send response to host [17:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166824,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:01:25]free response buf [17:01:25]execute_script done [17:01:25]execute_script returns [17:01:25]free content buf [17:01:25]Sock 8.Close socket [17:01:25]Sock 8.Thread stoped [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:47]accept exits with 9 [17:01:47]New connection [17:01:47]New thread 3067178340 created [17:01:47]Thread 3067034980 joined [17:01:47]Waiting for new connection... [17:01:47] Sock 9.Parse request [17:01:47]Sock 9.Check first char [17:01:47]Sock 9.First char is OK [17:01:47]request: POST /json_proto HTTP/1.0 [17:01:47]Method: POST [17:01:47]URL: /json_proto [17:01:47]Method is POST - this is cgi request [17:01:47]url: /json_proto [17:01:47]query_string will be loaded in cgi processing [17:01:47]execute_cgi json_proto POST (null) [17:01:47]execute_cgi path=json_proto method=POST [17:01:47]POST find Content-Length [17:01:47]Host: 172.17.53.195:8080 [17:01:47]Content-Length: 766 [17:01:47]Content-Type: application/json [17:01:47] [17:01:47]POST finish read [17:01:47]Found Content-Length = 766 [17:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:47]execute_script... [17:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:47]POST & json_proto [17:01:47]process_json_proto [17:01:47]json parsed OK: [17:01:47]protocol is kg_v1.0 [17:01:47]action value=close_receipt [17:01:47]process_action close_receipt [17:01:47]cmd_close_receipt [17:01:47]MH_GetDate [17:01:47]Write to MH i2c: F0 00 00 BA 34 DD [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: F0 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: F0 09 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: F0 09 00 BA 34 00 FD 2B 19 67 21 48 4A 65 A6 [17:01:47]GetLastDocTimeStamp 1729702883 [17:01:47]current date 1729702909 [17:01:47]FM_GetShiftState [17:01:47]SAM_PROTO_GetShiftState [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 13 01 00 [17:01:47]Write to MH i2c: E2 08 00 BB 34 80 13 01 00 00 00 00 00 6C [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 0E 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 0E 00 BB 34 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 37 [17:01:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:01:47]wFMCommunicate OK [17:01:47]SAM_PROTO_GetShiftState done [17:01:47]FM_GetShiftState done [17:01:47]opened in 1729643772 [17:01:47]opened+sec_in_day 1729730172 [17:01:47]quantity*price = 50041 [17:01:47]sum+1 = 50042 [17:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 240 23.10.2024 17:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166825 ФПД: 182898018451569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166825&fm=182898018451569&tin=02508201610067®Number=0000000000091764&sum=50041 [17:01:48]StoreToDocumentArchive [17:01:48]shift 537 fd 166825 [17:01:48]save to /storage/0537/doc_00166825 [17:01:48]save last doc name /storage/0537/doc_00166825 to /storage/kkm_last_doc_name [17:01:48]save OK [17:01:48]Clear old archive folders... [17:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:48]tlvbuf is 01FC74E0 [17:01:48]SAM_PROTO_ClearQueue [17:01:48]wFMCommunicate request_size=4 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 09 00 00 [17:01:48]Write to MH i2c: E2 08 00 C8 34 80 09 00 00 00 00 00 00 6E [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 03 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 03 00 C8 34 00 90 00 70 [17:01:48]RAPDU: 90 00 [17:01:48]wFMCommunicate OK [17:01:48]SAM_PROTO_ClearQueue done [17:01:48]KKMCreateOFDPacket [17:01:48]OFDProtocolAddRootSTLVToBuf [17:01:48]FM_MakeSignedData [17:01:48]FM_MakeSignedData [17:01:48]SAM_PROTO_SignData [17:01:48]wFMCommunicate request_size=4 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 0D 01 02 [17:01:48]Write to MH i2c: E2 08 00 C9 34 80 0D 01 02 00 00 00 00 76 [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 03 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 03 00 C9 34 00 90 00 71 [17:01:48]RAPDU: 90 00 [17:01:48]wFMCommunicate OK [17:01:48]wFMCommunicate request_size=255 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 FD 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8B 02 00 35 04 06 00 A6 [17:01:48]Write to MH i2c: E2 02 01 CA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 FD 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8B 02 00 35 04 06 00 A6 00 00 ED [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:49]OFD Sender: No OFD packet to send [17:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 CA 34 00 90 00 72 [17:01:49]RAPDU: 90 00 [17:01:49]wFMCommunicate OK [17:01:49]wFMCommunicate request_size=10 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 0D 02 02 05 58 43 6B 80 71 [17:01:49]Write to MH i2c: E2 0D 00 CB 34 80 0D 02 02 05 00 58 43 6B 80 71 00 00 7A [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 CB 34 00 90 00 73 [17:01:49]RAPDU: 90 00 [17:01:49]wFMCommunicate OK [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 0D 03 02 [17:01:49]Write to MH i2c: E2 08 00 CC 34 80 0D 03 02 00 00 00 00 7B [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0B 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0B 00 CC 34 00 4A 8A 24 AF 80 17 3F 91 90 00 8A [17:01:49]RAPDU: 4A 8A 24 AF 80 17 3F 91 90 00 [17:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_SignData done [17:01:49]FM_MakeSignedData done [17:01:49]CreateOFDProtocolMessage [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 11 00 00 [17:01:49]Write to MH i2c: E2 08 00 CD 34 80 11 00 00 00 00 00 00 7B [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 17 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 17 00 CD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [17:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:01:49]wFMCommunicate OK [17:01:49]CreateOFDProtocolMessage done [17:01:49]OFDSenderStorePacket 166825 [17:01:49]StoreOFDPacket docnum=166825 [17:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 3B 07 01 4D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 FD 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8B 02 00 35 04 06 00 A6 58 43 6B 80 71 4A 8A 24 AF 80 17 3F 91 [17:01:49]CheckFolder [17:01:49]dirname=/storage/ofd_packets [17:01:49]CheckFolder done [17:01:49]ProducePacketName [17:01:49]name=ofd_packets/00166825 [17:01:49]NVStorageSaveData ofd_packets/00166825 [17:01:49]File name is /storage/ofd_packets/00166825 [17:01:49]Write 301 bytes [17:01:49]NVStorageSaveData done [17:01:49]OFDSenderStorePacket done [17:01:49]KKMCreateOFDPacket done [17:01:49]NVStorageSaveData kkm_last_timestamp [17:01:49]File name is /storage/kkm_last_timestamp [17:01:49]Write 4 bytes [17:01:49]NVStorageSaveData done [17:01:49]ExternCall_PrintAddStr [17:01:49]wPrintStart [17:01:49]Write to MH i2c: 01 00 00 CE 34 02 [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: 01 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: 01 07 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: 01 07 00 CE 34 00 00 00 00 00 FF 0F 17 [17:01:49]RasterBufferAndPrint [17:01:49]line Счет N : (1)221409 [17:01:49]line ИНН: 02508201610067 [17:01:49]line Контрольно-Кассовый Чек [17:01:49]line ПРОДАЖА [17:01:49]line ТРК (МРК, ГНК) : 13 [17:01:49]line Товар: 2710124130 [17:01:49]line Аи-92-К-5 [17:01:49]line 7.480 * 66.90 [17:01:49]line = 500.41 [17:01:49]line НДС 12% НСП 1% [17:01:49]line > о реализуемом товаре [17:01:49]line ИТОГО: 500.41 [17:01:49]line НСП 1% : 4.43 [17:01:49]line НДС 12% : 53.14 [17:01:49]line Наличными: 0.00 [17:01:49]line Безнал.: 500.41 [17:01:49]line Место: АЗС № 161 "Партнер Нефть" [17:01:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:01:49]line СНО: Общий режим [17:01:49]line Чек 240 23.10.2024 17:01 [17:01:49]line Смена: 537 ФФД: 1.0 [17:01:49]line ЗНМ: 0300000104 [17:01:49]line РНМ: 0000000000091764 [17:01:49]line Версия ККМ: 001 [17:01:49]line Платежная система: Mbank [17:01:49]line ФМ: 0000000000871759 [17:01:49]line ФД: 166825 [17:01:49]line ФПД: 182898018451569 [17:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166825&fm=182898018451569&tin=02508201610067®Number=0000000000091764&sum=50041 [17:01:49]OFD Sender: Processing packet 166825 [packets to send 48, broken 47] [17:01:49]ProducePacketName [17:01:49]name=ofd_packets/00166825 [17:01:49]OFD Sender: To server: pG, [17:01:49]CommunicateWithHost lk.salyk.kg:30040 [17:01:49]ConnectInit lk.salyk.kg [17:01:49]written 0, free lines is 4095 [17:01:49]Connected sock=10 [17:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 3B 07 01 4D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 FD 2B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8B 02 00 35 04 06 00 A6 58 43 6B 80 71 4A 8A 24 AF 80 17 3F 91 [17:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 58 47 00 0A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8B 02 00 F4 03 04 00 64 D2 18 67 B6 04 01 00 00 B4 41 E9 AE 7C A8 08 DA [17:01:49]CommunicateWithHost err = 0 [17:01:49]CheckOFDResponse [17:01:49]1017 (14) - 77093643461234 [17:01:49]1041 (16) - 0000000000871759 [17:01:49]1040 (4) - 166825 [17:01:49]1012 (4) - 23.10.2024 10:39 [17:01:49]1206 (1) - 0 [17:01:49]OFD Sender: Remove packet 166825 [17:01:49]ProducePacketName [17:01:49]name=ofd_packets/00166825 [17:01:49]NVStorageDeleteData [17:01:50]Write to MH i2c: 01 00 00 F7 34 2B [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 F7 34 00 00 00 00 00 DD 0C 1B [17:01:50]RasterBufferAndPrint [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]written 0, free lines is 3299 [17:01:50]MH_Cut [17:01:50]Write to MH i2c: D1 01 00 FE 34 01 04 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 01 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 01 00 FE 34 00 03 [17:01:50]Write to MH i2c: 01 00 00 FF 34 33 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]OFD Sender: No OFD packet to send [17:01:50]*** Cut start [17:01:50]*** Partial cut [17:01:50]*** CUTSNS_PIN = 1 [17:01:50]*** CUTSNS_PIN = 0 [17:01:51]*** Brake cut motor [17:01:51]Read from MH i2c: 01 [17:01:51]MH_I2C_Read... [17:01:51]*** Stop cut motor [17:01:51]*** Cut end [17:01:51]Read from MH i2c: 01 07 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: 01 07 00 FF 34 00 00 00 00 00 FF 0F 48 [17:01:51]process_action close_receipt done [17:01:51]requested_data is exist [17:01:51]produce_requested_data [17:01:51]requested_item fm.sn is exist - process it [17:01:51]wFMCommunicate request_size=4 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 11 00 00 [17:01:51]Write to MH i2c: E2 08 00 00 35 80 11 00 00 00 00 00 00 AF [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:51]Read from MH i2c: E2 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 17 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 17 00 00 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [17:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:01:51]wFMCommunicate OK [17:01:51]requested_item fd.num is exist - process it [17:01:51]SAM_PROTO_GetFieldsCounters [17:01:51]wFMCommunicate request_size=4 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 13 00 00 [17:01:51]Write to MH i2c: E2 08 00 01 35 80 13 00 00 00 00 00 00 B2 [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:51]Read from MH i2c: E2 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 62 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 62 00 01 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:51]wFMCommunicate OK [17:01:51]SAM_PROTO_GetFieldsCounters done [17:01:51]requested_item shift.num is exist - process it [17:01:51]requested_item shift.opened is exist - process it [17:01:51]req_shift_opened [17:01:51]FM_GetShiftState [17:01:51]SAM_PROTO_GetShiftState [17:01:51]wFMCommunicate request_size=4 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 13 01 00 [17:01:51]Write to MH i2c: E2 08 00 02 35 80 13 01 00 00 00 00 00 B4 [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:51]Read from MH i2c: E2 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 0E 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 0E 00 02 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7F [17:01:51]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:01:51]wFMCommunicate OK [17:01:51]SAM_PROTO_GetShiftState done [17:01:51]FM_GetShiftState done [17:01:51]req_shift_opened done [17:01:51]requested_item shift.open_date is exist - process it [17:01:51]req_shift_open_date [17:01:51]req_shift_open_date done [17:01:51]produce_requested_data done [17:01:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166825,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:01:51]process_action_free close_receipt [17:01:51]json_value_free [17:01:51]json_value_free done [17:01:51]process_json_proto returns [17:01:51]Send response to host [17:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166825,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:01:51]free response buf [17:01:51]execute_script done [17:01:51]execute_script returns [17:01:51]free content buf [17:01:51]Sock 9.Close socket [17:01:51]Sock 9.Thread stoped [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]accept exits with 8 [17:02:45]New connection [17:02:45]New thread 3067034980 created [17:02:45]Thread 3067178340 joined [17:02:45]Waiting for new connection... [17:02:45] Sock 8.Parse request [17:02:45]Sock 8.Check first char [17:02:45]Sock 8.First char is OK [17:02:45]request: POST /json_proto HTTP/1.0 [17:02:45]Method: POST [17:02:45]URL: /json_proto [17:02:45]Method is POST - this is cgi request [17:02:45]url: /json_proto [17:02:45]query_string will be loaded in cgi processing [17:02:45]execute_cgi json_proto POST (null) [17:02:45]execute_cgi path=json_proto method=POST [17:02:45]POST find Content-Length [17:02:45]Host: 172.17.53.195:8080 [17:02:45]Content-Length: 677 [17:02:45]Content-Type: application/json [17:02:45] [17:02:45]POST finish read [17:02:45]Found Content-Length = 677 [17:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "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" ] } } [17:02:45]execute_script... [17:02: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)221411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "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" ] } } [17:02:45]POST & json_proto [17:02:45]process_json_proto [17:02:45]json parsed OK: [17:02:45]protocol is kg_v1.0 [17:02:45]action value=close_receipt [17:02:45]process_action close_receipt [17:02:45]cmd_close_receipt [17:02:45]MH_GetDate [17:02:45]Write to MH i2c: F0 00 00 03 35 27 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: F0 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: F0 09 00 [17:02:45]MH_I2C_Read... [17:02:45]OFD Sender: No OFD packet to send [17:02:45]Read from MH i2c: F0 09 00 03 35 00 37 2C 19 67 21 48 4A 65 2B [17:02:45]GetLastDocTimeStamp 1729702909 [17:02:45]current date 1729702967 [17:02:45]FM_GetShiftState [17:02:45]SAM_PROTO_GetShiftState [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 13 01 00 [17:02:45]Write to MH i2c: E2 08 00 04 35 80 13 01 00 00 00 00 00 B6 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0E 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0E 00 04 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 81 [17:02:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:02:45]wFMCommunicate OK [17:02:45]SAM_PROTO_GetShiftState done [17:02:45]FM_GetShiftState done [17:02:45]opened in 1729643772 [17:02:45]opened+sec_in_day 1729730172 [17:02:45]quantity*price = 25005 [17:02:45]sum+1 = 25006 [17:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 241 23.10.2024 17:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166826 ФПД: 185626530779845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170247&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166826&fm=185626530779845&tin=02508201610067®Number=0000000000091764&sum=25000 [17:02:46]StoreToDocumentArchive [17:02:46]shift 537 fd 166826 [17:02:46]save to /storage/0537/doc_00166826 [17:02:46]save last doc name /storage/0537/doc_00166826 to /storage/kkm_last_doc_name [17:02:46]save OK [17:02:46]Clear old archive folders... [17:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:46]tlvbuf is B6F8C860 [17:02:46]SAM_PROTO_ClearQueue [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 09 00 00 [17:02:46]Write to MH i2c: E2 08 00 11 35 80 09 00 00 00 00 00 00 B8 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 11 35 00 90 00 BA [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_ClearQueue done [17:02:46]KKMCreateOFDPacket [17:02:46]OFDProtocolAddRootSTLVToBuf [17:02:46]FM_MakeSignedData [17:02:46]FM_MakeSignedData [17:02:46]SAM_PROTO_SignData [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 01 02 [17:02:46]Write to MH i2c: E2 08 00 12 35 80 0D 01 02 00 00 00 00 C0 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 12 35 00 90 00 BB [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=255 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 F1 00 00 00 F4 03 04 00 37 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8B 02 00 35 04 06 00 A8 [17:02:46]Write to MH i2c: E2 02 01 13 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 F1 00 00 00 F4 03 04 00 37 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8B 02 00 35 04 06 00 A8 00 00 58 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:47]Read from MH i2c: E2 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 03 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 03 00 13 35 00 90 00 BC [17:02:47]RAPDU: 90 00 [17:02:47]wFMCommunicate OK [17:02:47]wFMCommunicate request_size=10 [17:02:47]MH_SAM_APDU [17:02:47]CAPDU: 80 0D 02 02 05 D3 8B 6D 92 C5 [17:02:47]Write to MH i2c: E2 0D 00 14 35 80 0D 02 02 05 00 D3 8B 6D 92 C5 00 00 EF [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:47]Read from MH i2c: E2 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 03 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 03 00 14 35 00 90 00 BD [17:02:47]RAPDU: 90 00 [17:02:47]wFMCommunicate OK [17:02:47]wFMCommunicate request_size=4 [17:02:47]MH_SAM_APDU [17:02:47]CAPDU: 80 0D 03 02 [17:02:47]Write to MH i2c: E2 08 00 15 35 80 0D 03 02 00 00 00 00 C5 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:47]Read from MH i2c: E2 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 0B 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 0B 00 15 35 00 20 CB 58 7A D8 0D E7 94 90 00 E3 [17:02:47]RAPDU: 20 CB 58 7A D8 0D E7 94 90 00 [17:02:47]wFMCommunicate OK [17:02:47]SAM_PROTO_SignData done [17:02:47]FM_MakeSignedData done [17:02:47]CreateOFDProtocolMessage [17:02:47]wFMCommunicate request_size=4 [17:02:47]MH_SAM_APDU [17:02:47]CAPDU: 80 11 00 00 [17:02:47]Write to MH i2c: E2 08 00 16 35 80 11 00 00 00 00 00 00 C5 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:47]Read from MH i2c: E2 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 17 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 17 00 16 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [17:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:47]wFMCommunicate OK [17:02:47]CreateOFDProtocolMessage done [17:02:47]OFDSenderStorePacket 166826 [17:02:47]StoreOFDPacket docnum=166826 [17:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 9A 07 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 F1 00 00 00 F4 03 04 00 37 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8B 02 00 35 04 06 00 A8 D3 8B 6D 92 C5 20 CB 58 7A D8 0D E7 94 [17:02:47]CheckFolder [17:02:47]dirname=/storage/ofd_packets [17:02:47]CheckFolder done [17:02:47]ProducePacketName [17:02:47]name=ofd_packets/00166826 [17:02:47]NVStorageSaveData ofd_packets/00166826 [17:02:47]File name is /storage/ofd_packets/00166826 [17:02:47]Write 301 bytes [17:02:47]NVStorageSaveData done [17:02:47]OFDSenderStorePacket done [17:02:47]KKMCreateOFDPacket done [17:02:47]NVStorageSaveData kkm_last_timestamp [17:02:47]File name is /storage/kkm_last_timestamp [17:02:47]Write 4 bytes [17:02:47]NVStorageSaveData done [17:02:47]ExternCall_PrintAddStr [17:02:47]wPrintStart [17:02:47]Write to MH i2c: 01 00 00 17 35 4C [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 17 35 00 00 00 00 00 FF 0F 61 [17:02:47]RasterBufferAndPrint [17:02:47]line Счет N : (1)221411 [17:02:47]line ИНН: 02508201610067 [17:02:47]line Контрольно-Кассовый Чек [17:02:47]line ПРОДАЖА [17:02:47]line ТРК (МРК, ГНК) : 34 [17:02:47]line Товар: 2710124500 [17:02:47]line Аи-95-К-5 [17:02:47]line 3.370 * 74.20 [17:02:47]line = 250.05 [17:02:47]line НДС 12% НСП 1% [17:02:47]line > о реализуемом товаре [17:02:47]line ОКРУГЛЕНИЕ: -0.05 [17:02:47]line ИТОГО: 250.00 [17:02:47]line Внесено: 250.00 [17:02:47]line СДАЧА: 0.00 [17:02:47]line НСП 1% : 2.21 [17:02:47]line НДС 12% : 26.55 [17:02:47]line Наличными: 250.00 [17:02:47]line Безнал.: 0.00 [17:02:47]line Место: АЗС № 161 "Партнер Нефть" [17:02:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:02:47]line СНО: Общий режим [17:02:47]line Чек 241 23.10.2024 17:02 [17:02:47]line Смена: 537 ФФД: 1.0 [17:02:47]line ЗНМ: 0300000104 [17:02:47]line РНМ: 0000000000091764 [17:02:47]line Версия ККМ: 001 [17:02:47]line ФМ: 0000000000871759 [17:02:47]line ФД: 166826 [17:02:47]line ФПД: 185626530779845 [17:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170247&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166826&fm=185626530779845&tin=02508201610067®Number=0000000000091764&sum=25000 [17:02:47]OFD Sender: Processing packet 166826 [packets to send 48, broken 47] [17:02:47]ProducePacketName [17:02:47]name=ofd_packets/00166826 [17:02:47]OFD Sender: To server: pG, [17:02:47]CommunicateWithHost lk.salyk.kg:30040 [17:02:47]ConnectInit lk.salyk.kg [17:02:47]written 0, free lines is 4095 [17:02:47]Connected sock=10 [17:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 9A 07 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 F1 00 00 00 F4 03 04 00 37 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8B 02 00 35 04 06 00 A8 D3 8B 6D 92 C5 20 CB 58 7A D8 0D E7 94 [17:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 02 47 00 51 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8B 02 00 F4 03 04 00 9E D2 18 67 B6 04 01 00 00 62 D3 8F 97 26 F6 A6 45 [17:02:47]CommunicateWithHost err = 0 [17:02:47]CheckOFDResponse [17:02:47]1017 (14) - 77093643461234 [17:02:47]1041 (16) - 0000000000871759 [17:02:47]1040 (4) - 166826 [17:02:47]1012 (4) - 23.10.2024 10:40 [17:02:47]1206 (1) - 0 [17:02:47]OFD Sender: Remove packet 166826 [17:02:47]ProducePacketName [17:02:47]name=ofd_packets/00166826 [17:02:47]NVStorageDeleteData [17:02:47]Write to MH i2c: 01 00 00 42 35 77 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 42 35 00 00 00 00 00 BF 0C 49 [17:02:47]RasterBufferAndPrint [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]written 0, free lines is 3270 [17:02:48]MH_Cut [17:02:48]Write to MH i2c: D1 01 00 49 35 01 50 [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: D1 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: D1 01 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: D1 01 00 49 35 00 4F [17:02:48]Write to MH i2c: 01 00 00 4A 35 7F [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]OFD Sender: No OFD packet to send [17:02:48]*** Cut start [17:02:48]*** Partial cut [17:02:48]*** CUTSNS_PIN = 1 [17:02:48]*** CUTSNS_PIN = 0 [17:02:49]*** Brake cut motor [17:02:49]Read from MH i2c: 01 [17:02:49]MH_I2C_Read... [17:02:49]*** Stop cut motor [17:02:49]*** Cut end [17:02:49]Read from MH i2c: 01 07 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: 01 07 00 4A 35 00 00 00 00 00 FF 0F 94 [17:02:49]process_action close_receipt done [17:02:49]requested_data is exist [17:02:49]produce_requested_data [17:02:49]requested_item fm.sn is exist - process it [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 11 00 00 [17:02:49]Write to MH i2c: E2 08 00 4B 35 80 11 00 00 00 00 00 00 FA [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 17 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 17 00 4B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [17:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:49]wFMCommunicate OK [17:02:49]requested_item fd.num is exist - process it [17:02:49]SAM_PROTO_GetFieldsCounters [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 13 00 00 [17:02:49]Write to MH i2c: E2 08 00 4C 35 80 13 00 00 00 00 00 00 FD [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 62 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 62 00 4C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [17:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_GetFieldsCounters done [17:02:49]requested_item shift.num is exist - process it [17:02:49]requested_item shift.opened is exist - process it [17:02:49]req_shift_opened [17:02:49]FM_GetShiftState [17:02:49]SAM_PROTO_GetShiftState [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 13 01 00 [17:02:49]Write to MH i2c: E2 08 00 4D 35 80 13 01 00 00 00 00 00 FF [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 0E 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 0E 00 4D 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CA [17:02:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_GetShiftState done [17:02:49]FM_GetShiftState done [17:02:49]req_shift_opened done [17:02:49]requested_item shift.open_date is exist - process it [17:02:49]req_shift_open_date [17:02:49]req_shift_open_date done [17:02:49]produce_requested_data done [17:02:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166826,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:02:49]process_action_free close_receipt [17:02:49]json_value_free [17:02:49]json_value_free done [17:02:49]process_json_proto returns [17:02:49]Send response to host [17:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166826,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:02:49]free response buf [17:02:49]execute_script done [17:02:49]execute_script returns [17:02:49]free content buf [17:02:49]Sock 8.Close socket [17:02:49]Sock 8.Thread stoped [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]accept exits with 9 [17:03:43]New connection [17:03:43]New thread 3067178340 created [17:03:43]Thread 3067034980 joined [17:03:43]Waiting for new connection... [17:03:43] Sock 9.Parse request [17:03:43]Sock 9.Check first char [17:03:43]Sock 9.First char is OK [17:03:43]request: POST /json_proto HTTP/1.0 [17:03:43]Method: POST [17:03:43]URL: /json_proto [17:03:43]Method is POST - this is cgi request [17:03:43]url: /json_proto [17:03:43]query_string will be loaded in cgi processing [17:03:43]execute_cgi json_proto POST (null) [17:03:43]execute_cgi path=json_proto method=POST [17:03:43]POST find Content-Length [17:03:43]Host: 172.17.53.195:8080 [17:03:43]Content-Length: 766 [17:03:43]Content-Type: application/json [17:03:43] [17:03:43]POST finish read [17:03:43]Found Content-Length = 766 [17:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.510, "sum" : 260.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]execute_script... [17:03: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)221412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.510, "sum" : 260.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]POST & json_proto [17:03:43]process_json_proto [17:03:43]json parsed OK: [17:03:43]protocol is kg_v1.0 [17:03:43]action value=close_receipt [17:03:43]process_action close_receipt [17:03:43]cmd_close_receipt [17:03:43]MH_GetDate [17:03:43]Write to MH i2c: F0 00 00 4E 35 72 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 4E 35 00 71 2C 19 67 21 48 4A 65 B0 [17:03:43]GetLastDocTimeStamp 1729702967 [17:03:43]current date 1729703025 [17:03:43]FM_GetShiftState [17:03:43]SAM_PROTO_GetShiftState [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 13 01 00 [17:03:43]Write to MH i2c: E2 08 00 4F 35 80 13 01 00 00 00 00 00 01 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 4F 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [17:03:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:03:43]wFMCommunicate OK [17:03:43]SAM_PROTO_GetShiftState done [17:03:43]FM_GetShiftState done [17:03:43]opened in 1729643772 [17:03:43]opened+sec_in_day 1729730172 [17:03:43]quantity*price = 26044 [17:03:43]sum+1 = 26045 [17:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.44 НСП 1% : 2.30 НДС 12% : 27.66 Наличными: 0.00 Безнал.: 260.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 242 23.10.2024 17:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166827 ФПД: 81172319774119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170345&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166827&fm=81172319774119&tin=02508201610067®Number=0000000000091764&sum=26044 [17:03:44]StoreToDocumentArchive [17:03:44]shift 537 fd 166827 [17:03:44]save to /storage/0537/doc_00166827 [17:03:44]save last doc name /storage/0537/doc_00166827 to /storage/kkm_last_doc_name [17:03:44]save OK [17:03:44]Clear old archive folders... [17:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:44]tlvbuf is 01F7BCF0 [17:03:44]SAM_PROTO_ClearQueue [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 09 00 00 [17:03:44]Write to MH i2c: E2 08 00 5C 35 80 09 00 00 00 00 00 00 03 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 5C 35 00 90 00 05 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_ClearQueue done [17:03:44]KKMCreateOFDPacket [17:03:44]OFDProtocolAddRootSTLVToBuf [17:03:44]FM_MakeSignedData [17:03:44]FM_MakeSignedData [17:03:44]SAM_PROTO_SignData [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 01 02 [17:03:44]Write to MH i2c: E2 08 00 5D 35 80 0D 01 02 00 00 00 00 0B [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 5D 35 00 90 00 06 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=255 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8B 02 00 35 04 06 00 49 [17:03:44]Write to MH i2c: E2 02 01 5E 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8B 02 00 35 04 06 00 49 00 00 C7 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 5E 35 00 90 00 07 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=10 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 02 02 05 D3 67 49 25 A7 [17:03:44]Write to MH i2c: E2 0D 00 5F 35 80 0D 02 02 05 00 D3 67 49 25 A7 00 00 67 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 5F 35 00 90 00 08 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 03 02 [17:03:44]Write to MH i2c: E2 08 00 60 35 80 0D 03 02 00 00 00 00 10 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0B 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0B 00 60 35 00 6C E6 E3 92 F0 8E 3E DE 90 00 72 [17:03:44]RAPDU: 6C E6 E3 92 F0 8E 3E DE 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_SignData done [17:03:44]FM_MakeSignedData done [17:03:44]CreateOFDProtocolMessage [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 11 00 00 [17:03:44]Write to MH i2c: E2 08 00 61 35 80 11 00 00 00 00 00 00 10 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 17 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 17 00 61 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [17:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:03:44]wFMCommunicate OK [17:03:44]CreateOFDProtocolMessage done [17:03:44]OFDSenderStorePacket 166827 [17:03:44]StoreOFDPacket docnum=166827 [17:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 1D 07 01 92 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8B 02 00 35 04 06 00 49 D3 67 49 25 A7 6C E6 E3 92 F0 8E 3E DE [17:03:44]CheckFolder [17:03:44]dirname=/storage/ofd_packets [17:03:44]CheckFolder done [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00166827 [17:03:44]NVStorageSaveData ofd_packets/00166827 [17:03:44]File name is /storage/ofd_packets/00166827 [17:03:44]Write 301 bytes [17:03:44]NVStorageSaveData done [17:03:44]OFDSenderStorePacket done [17:03:44]KKMCreateOFDPacket done [17:03:44]NVStorageSaveData kkm_last_timestamp [17:03:44]File name is /storage/kkm_last_timestamp [17:03:44]Write 4 bytes [17:03:44]NVStorageSaveData done [17:03:44]ExternCall_PrintAddStr [17:03:44]wPrintStart [17:03:44]Write to MH i2c: 01 00 00 62 35 97 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 62 35 00 00 00 00 00 FF 0F AC [17:03:44]RasterBufferAndPrint [17:03:44]line Счет N : (1)221412 [17:03:44]line ИНН: 02508201610067 [17:03:44]line Контрольно-Кассовый Чек [17:03:44]line ПРОДАЖА [17:03:44]line ТРК (МРК, ГНК) : 34 [17:03:44]line Товар: 2710124500 [17:03:44]line Аи-95-К-5 [17:03:44]line 3.510 * 74.20 [17:03:44]line = 260.44 [17:03:44]line НДС 12% НСП 1% [17:03:44]line > о реализуемом товаре [17:03:44]line ИТОГО: 260.44 [17:03:44]line НСП 1% : 2.30 [17:03:44]line НДС 12% : 27.66 [17:03:44]line Наличными: 0.00 [17:03:44]line Безнал.: 260.44 [17:03:44]line Место: АЗС № 161 "Партнер Нефть" [17:03:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:03:44]line СНО: Общий режим [17:03:44]line Чек 242 23.10.2024 17:03 [17:03:44]line Смена: 537 ФФД: 1.0 [17:03:44]line ЗНМ: 0300000104 [17:03:44]line РНМ: 0000000000091764 [17:03:44]line Версия ККМ: 001 [17:03:44]line Платежная система: Mbank [17:03:44]line ФМ: 0000000000871759 [17:03:44]line ФД: 166827 [17:03:44]line ФПД: 81172319774119 [17:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170345&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166827&fm=81172319774119&tin=02508201610067®Number=0000000000091764&sum=26044 [17:03:44]written 0, free lines is 4095 [17:03:44]OFD Sender: Processing packet 166827 [packets to send 48, broken 47] [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00166827 [17:03:44]OFD Sender: To server: pG, [17:03:44]CommunicateWithHost lk.salyk.kg:30040 [17:03:44]ConnectInit lk.salyk.kg [17:03:44]Connected sock=10 [17:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 1D 07 01 92 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 2C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8B 02 00 35 04 06 00 49 D3 67 49 25 A7 6C E6 E3 92 F0 8E 3E DE [17:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 55 3C 47 00 2F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8B 02 00 F4 03 04 00 D7 D2 18 67 B6 04 01 00 00 C8 EB 18 B1 02 6D E8 80 [17:03:45]CommunicateWithHost err = 0 [17:03:45]CheckOFDResponse [17:03:45]1017 (14) - 77093643461234 [17:03:45]1041 (16) - 0000000000871759 [17:03:45]1040 (4) - 166827 [17:03:45]1012 (4) - 23.10.2024 10:41 [17:03:45]1206 (1) - 0 [17:03:45]OFD Sender: Remove packet 166827 [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00166827 [17:03:45]NVStorageDeleteData [17:03:45]Write to MH i2c: 01 00 00 8B 35 C0 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 E3 0C B6 [17:03:45]RasterBufferAndPrint [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]written 0, free lines is 3305 [17:03:45]MH_Cut [17:03:45]Write to MH i2c: D1 01 00 92 35 01 99 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 01 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 01 00 92 35 00 98 [17:03:45]Write to MH i2c: 01 00 00 93 35 C8 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]OFD Sender: No OFD packet to send [17:03:45]*** Cut start [17:03:45]*** Partial cut [17:03:45]*** CUTSNS_PIN = 1 [17:03:46]*** CUTSNS_PIN = 0 [17:03:46]*** Brake cut motor [17:03:46]Read from MH i2c: 01 [17:03:46]MH_I2C_Read... [17:03:46]*** Stop cut motor [17:03:46]*** Cut end [17:03:46]Read from MH i2c: 01 07 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 93 35 00 00 00 00 00 FF 0F DD [17:03:46]process_action close_receipt done [17:03:46]requested_data is exist [17:03:46]produce_requested_data [17:03:46]requested_item fm.sn is exist - process it [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 11 00 00 [17:03:46]Write to MH i2c: E2 08 00 94 35 80 11 00 00 00 00 00 00 43 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 17 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 17 00 94 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [17:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:03:46]wFMCommunicate OK [17:03:46]requested_item fd.num is exist - process it [17:03:46]SAM_PROTO_GetFieldsCounters [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 13 00 00 [17:03:46]Write to MH i2c: E2 08 00 95 35 80 13 00 00 00 00 00 00 46 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 62 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 62 00 95 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:46]wFMCommunicate OK [17:03:46]SAM_PROTO_GetFieldsCounters done [17:03:46]requested_item shift.num is exist - process it [17:03:46]requested_item shift.opened is exist - process it [17:03:46]req_shift_opened [17:03:46]FM_GetShiftState [17:03:46]SAM_PROTO_GetShiftState [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 13 01 00 [17:03:46]Write to MH i2c: E2 08 00 96 35 80 13 01 00 00 00 00 00 48 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 0E 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 0E 00 96 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [17:03:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:03:46]wFMCommunicate OK [17:03:46]SAM_PROTO_GetShiftState done [17:03:46]FM_GetShiftState done [17:03:46]req_shift_opened done [17:03:46]requested_item shift.open_date is exist - process it [17:03:46]req_shift_open_date [17:03:46]req_shift_open_date done [17:03:46]produce_requested_data done [17:03:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166827,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:03:46]process_action_free close_receipt [17:03:46]json_value_free [17:03:46]json_value_free done [17:03:46]process_json_proto returns [17:03:46]Send response to host [17:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166827,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:03:46]free response buf [17:03:46]execute_script done [17:03:46]execute_script returns [17:03:46]free content buf [17:03:46]Sock 9.Close socket [17:03:46]Sock 9.Thread stoped [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:24]accept exits with 8 [17:06:24]New connection [17:06:24]New thread 3067034980 created [17:06:24]Thread 3067178340 joined [17:06:24]Waiting for new connection... [17:06:24] Sock 8.Parse request [17:06:24]Sock 8.Check first char [17:06:24]Sock 8.First char is OK [17:06:24]request: POST /json_proto HTTP/1.0 [17:06:24]Method: POST [17:06:24]URL: /json_proto [17:06:24]Method is POST - this is cgi request [17:06:24]url: /json_proto [17:06:24]query_string will be loaded in cgi processing [17:06:24]execute_cgi json_proto POST (null) [17:06:24]execute_cgi path=json_proto method=POST [17:06:24]POST find Content-Length [17:06:24]Host: 172.17.53.195:8080 [17:06:24]Content-Length: 767 [17:06:24]Content-Type: application/json [17:06:24] [17:06:24]POST finish read [17:06:24]Found Content-Length = 767 [17:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:24]execute_script... [17:06:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:24]POST & json_proto [17:06:24]process_json_proto [17:06:24]json parsed OK: [17:06:24]protocol is kg_v1.0 [17:06:24]action value=close_receipt [17:06:24]process_action close_receipt [17:06:24]cmd_close_receipt [17:06:24]MH_GetDate [17:06:24]Write to MH i2c: F0 00 00 97 35 BB [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 09 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: F0 09 00 97 35 00 12 2D 19 67 21 48 4A 65 9B [17:06:24]GetLastDocTimeStamp 1729703025 [17:06:24]current date 1729703186 [17:06:24]FM_GetShiftState [17:06:24]SAM_PROTO_GetShiftState [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 13 01 00 [17:06:24]Write to MH i2c: E2 08 00 98 35 80 13 01 00 00 00 00 00 4A [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0E 00 98 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 15 [17:06:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:06:24]wFMCommunicate OK [17:06:24]SAM_PROTO_GetShiftState done [17:06:24]FM_GetShiftState done [17:06:24]opened in 1729643772 [17:06:24]opened+sec_in_day 1729730172 [17:06:24]quantity*price = 70044 [17:06:24]sum+1 = 70045 [17:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 243 23.10.2024 17:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166828 ФПД: 262542728469652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170626&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166828&fm=262542728469652&tin=02508201610067®Number=0000000000091764&sum=70044 [17:06:25]StoreToDocumentArchive [17:06:25]shift 537 fd 166828 [17:06:25]save to /storage/0537/doc_00166828 [17:06:25]save last doc name /storage/0537/doc_00166828 to /storage/kkm_last_doc_name [17:06:25]save OK [17:06:25]Clear old archive folders... [17:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:25]tlvbuf is 01FC7540 [17:06:25]SAM_PROTO_ClearQueue [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 09 00 00 [17:06:25]Write to MH i2c: E2 08 00 A5 35 80 09 00 00 00 00 00 00 4C [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 03 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 03 00 A5 35 00 90 00 4E [17:06:25]RAPDU: 90 00 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_ClearQueue done [17:06:25]KKMCreateOFDPacket [17:06:25]OFDProtocolAddRootSTLVToBuf [17:06:25]FM_MakeSignedData [17:06:25]FM_MakeSignedData [17:06:25]SAM_PROTO_SignData [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 0D 01 02 [17:06:25]Write to MH i2c: E2 08 00 A6 35 80 0D 01 02 00 00 00 00 54 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 03 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 03 00 A6 35 00 90 00 4F [17:06:25]RAPDU: 90 00 [17:06:25]wFMCommunicate OK [17:06:25]wFMCommunicate request_size=255 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 12 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8B 02 00 35 04 06 00 EE [17:06:25]Write to MH i2c: E2 02 01 A7 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 12 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8B 02 00 35 04 06 00 EE 00 00 46 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 A7 35 00 90 00 50 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=10 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 05 C7 FE 11 9C 94 [17:06:26]Write to MH i2c: E2 0D 00 A8 35 80 0D 02 02 05 00 C7 FE 11 9C 94 00 00 67 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 A8 35 00 90 00 51 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 03 02 [17:06:26]Write to MH i2c: E2 08 00 A9 35 80 0D 03 02 00 00 00 00 59 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 A9 35 00 E2 9C 8B 7E D5 FC 65 E5 90 00 FC [17:06:26]RAPDU: E2 9C 8B 7E D5 FC 65 E5 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_SignData done [17:06:26]FM_MakeSignedData done [17:06:26]CreateOFDProtocolMessage [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 11 00 00 [17:06:26]Write to MH i2c: E2 08 00 AA 35 80 11 00 00 00 00 00 00 59 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 AA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [17:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:06:26]wFMCommunicate OK [17:06:26]CreateOFDProtocolMessage done [17:06:26]OFDSenderStorePacket 166828 [17:06:26]StoreOFDPacket docnum=166828 [17:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 D4 07 01 99 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 12 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8B 02 00 35 04 06 00 EE C7 FE 11 9C 94 E2 9C 8B 7E D5 FC 65 E5 [17:06:26]CheckFolder [17:06:26]dirname=/storage/ofd_packets [17:06:26]CheckFolder done [17:06:26]ProducePacketName [17:06:26]name=ofd_packets/00166828 [17:06:26]NVStorageSaveData ofd_packets/00166828 [17:06:26]File name is /storage/ofd_packets/00166828 [17:06:26]Write 301 bytes [17:06:26]NVStorageSaveData done [17:06:26]OFDSenderStorePacket done [17:06:26]KKMCreateOFDPacket done [17:06:26]NVStorageSaveData kkm_last_timestamp [17:06:26]File name is /storage/kkm_last_timestamp [17:06:26]Write 4 bytes [17:06:26]NVStorageSaveData done [17:06:26]ExternCall_PrintAddStr [17:06:26]wPrintStart [17:06:26]Write to MH i2c: 01 00 00 AB 35 E0 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 07 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 FF 0F F5 [17:06:26]RasterBufferAndPrint [17:06:26]line Счет N : (1)221413 [17:06:26]line ИНН: 02508201610067 [17:06:26]line Контрольно-Кассовый Чек [17:06:26]line ПРОДАЖА [17:06:26]line ТРК (МРК, ГНК) : 13 [17:06:26]line Товар: 2710124130 [17:06:26]line Аи-92-К-5 [17:06:26]line 10.470 * 66.90 [17:06:26]line = 700.44 [17:06:26]line НДС 12% НСП 1% [17:06:26]line > о реализуемом товаре [17:06:26]line ИТОГО: 700.44 [17:06:26]line НСП 1% : 6.20 [17:06:26]line НДС 12% : 74.38 [17:06:26]line Наличными: 0.00 [17:06:26]line Безнал.: 700.44 [17:06:26]line Место: АЗС № 161 "Партнер Нефть" [17:06:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:06:26]line СНО: Общий режим [17:06:26]line Чек 243 23.10.2024 17:06 [17:06:26]line Смена: 537 ФФД: 1.0 [17:06:26]line ЗНМ: 0300000104 [17:06:26]line РНМ: 0000000000091764 [17:06:26]line Версия ККМ: 001 [17:06:26]line Платежная система: Mbank [17:06:26]line ФМ: 0000000000871759 [17:06:26]line ФД: 166828 [17:06:26]line ФПД: 262542728469652 [17:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170626&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166828&fm=262542728469652&tin=02508201610067®Number=0000000000091764&sum=70044 [17:06:26]OFD Sender: Processing packet 166828 [packets to send 48, broken 47] [17:06:26]ProducePacketName [17:06:26]name=ofd_packets/00166828 [17:06:26]OFD Sender: To server: pG, [17:06:26]CommunicateWithHost lk.salyk.kg:30040 [17:06:26]ConnectInit lk.salyk.kg [17:06:26]written 0, free lines is 4095 [17:06:26]Connected sock=10 [17:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 D4 07 01 99 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 12 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8B 02 00 35 04 06 00 EE C7 FE 11 9C 94 E2 9C 8B 7E D5 FC 65 E5 [17:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 EA 47 00 06 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8B 02 00 F4 03 04 00 79 D3 18 67 B6 04 01 00 00 81 92 9A 43 A8 A2 60 BE [17:06:27]CommunicateWithHost err = 0 [17:06:27]CheckOFDResponse [17:06:27]1017 (14) - 77093643461234 [17:06:27]1041 (16) - 0000000000871759 [17:06:27]1040 (4) - 166828 [17:06:27]1012 (4) - 23.10.2024 10:44 [17:06:27]1206 (1) - 0 [17:06:27]OFD Sender: Remove packet 166828 [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00166828 [17:06:27]NVStorageDeleteData [17:06:27]Write to MH i2c: 01 00 00 D4 35 09 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 D4 35 00 00 00 00 00 D9 0C F5 [17:06:27]RasterBufferAndPrint [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]written 0, free lines is 3295 [17:06:27]MH_Cut [17:06:27]Write to MH i2c: D1 01 00 DB 35 01 E2 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 DB 35 00 E1 [17:06:27]Write to MH i2c: 01 00 00 DC 35 11 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]OFD Sender: No OFD packet to send [17:06:28]*** Cut start [17:06:28]*** Partial cut [17:06:28]*** CUTSNS_PIN = 1 [17:06:28]*** CUTSNS_PIN = 0 [17:06:28]*** Brake cut motor [17:06:28]Read from MH i2c: 01 [17:06:28]MH_I2C_Read... [17:06:28]*** Stop cut motor [17:06:28]*** Cut end [17:06:28]Read from MH i2c: 01 07 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: 01 07 00 DC 35 00 00 00 00 00 FF 0F 26 [17:06:28]process_action close_receipt done [17:06:28]requested_data is exist [17:06:28]produce_requested_data [17:06:28]requested_item fm.sn is exist - process it [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 11 00 00 [17:06:28]Write to MH i2c: E2 08 00 DD 35 80 11 00 00 00 00 00 00 8C [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 DD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [17:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:06:28]wFMCommunicate OK [17:06:28]requested_item fd.num is exist - process it [17:06:28]SAM_PROTO_GetFieldsCounters [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 13 00 00 [17:06:28]Write to MH i2c: E2 08 00 DE 35 80 13 00 00 00 00 00 00 8F [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 62 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 62 00 DE 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:28]wFMCommunicate OK [17:06:28]SAM_PROTO_GetFieldsCounters done [17:06:28]requested_item shift.num is exist - process it [17:06:28]requested_item shift.opened is exist - process it [17:06:28]req_shift_opened [17:06:28]FM_GetShiftState [17:06:28]SAM_PROTO_GetShiftState [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 13 01 00 [17:06:28]Write to MH i2c: E2 08 00 DF 35 80 13 01 00 00 00 00 00 91 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 0E 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 0E 00 DF 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [17:06:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:06:28]wFMCommunicate OK [17:06:28]SAM_PROTO_GetShiftState done [17:06:28]FM_GetShiftState done [17:06:28]req_shift_opened done [17:06:28]requested_item shift.open_date is exist - process it [17:06:28]req_shift_open_date [17:06:28]req_shift_open_date done [17:06:28]produce_requested_data done [17:06:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166828,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:06:28]process_action_free close_receipt [17:06:28]json_value_free [17:06:28]json_value_free done [17:06:28]process_json_proto returns [17:06:28]Send response to host [17:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166828,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:06:28]free response buf [17:06:28]execute_script done [17:06:28]execute_script returns [17:06:28]free content buf [17:06:28]Sock 8.Close socket [17:06:28]Sock 8.Thread stoped [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:26]accept exits with 9 [17:08:26]New connection [17:08:26]New thread 3067178340 created [17:08:26]Thread 3067034980 joined [17:08:26]Waiting for new connection... [17:08:26] Sock 9.Parse request [17:08:26]Sock 9.Check first char [17:08:26]Sock 9.First char is OK [17:08:26]request: POST /json_proto HTTP/1.0 [17:08:26]Method: POST [17:08:26]URL: /json_proto [17:08:26]Method is POST - this is cgi request [17:08:26]url: /json_proto [17:08:26]query_string will be loaded in cgi processing [17:08:26]execute_cgi json_proto POST (null) [17:08:26]execute_cgi path=json_proto method=POST [17:08:26]POST find Content-Length [17:08:26]Host: 172.17.53.195:8080 [17:08:26]Content-Length: 674 [17:08:26]Content-Type: application/json [17:08:26] [17:08:26]POST finish read [17:08:26]Found Content-Length = 674 [17:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:26]execute_script... [17:08: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)221414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:26]POST & json_proto [17:08:26]process_json_proto [17:08:26]json parsed OK: [17:08:26]protocol is kg_v1.0 [17:08:26]action value=close_receipt [17:08:26]process_action close_receipt [17:08:26]cmd_close_receipt [17:08:26]MH_GetDate [17:08:26]Write to MH i2c: F0 00 00 E0 35 04 [17:08:26]Write i2c OK [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: F0 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: F0 09 00 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: F0 09 00 E0 35 00 8C 2D 19 67 21 48 4A 65 5E [17:08:26]GetLastDocTimeStamp 1729703186 [17:08:26]current date 1729703308 [17:08:26]FM_GetShiftState [17:08:26]SAM_PROTO_GetShiftState [17:08:26]wFMCommunicate request_size=4 [17:08:26]MH_SAM_APDU [17:08:26]CAPDU: 80 13 01 00 [17:08:26]Write to MH i2c: E2 08 00 E1 35 80 13 01 00 00 00 00 00 93 [17:08:26]Write i2c OK [17:08:26]MH_I2C_Read... [17:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:26]Read from MH i2c: E2 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: E2 0E 00 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: E2 0E 00 E1 35 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5E [17:08:26]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:08:26]wFMCommunicate OK [17:08:26]SAM_PROTO_GetShiftState done [17:08:26]FM_GetShiftState done [17:08:26]opened in 1729643772 [17:08:26]opened+sec_in_day 1729730172 [17:08:26]quantity*price = 49987 [17:08:26]sum+1 = 49988 [17:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 244 23.10.2024 17:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166829 ФПД: 37430744118933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170828&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166829&fm=37430744118933&tin=02508201610067®Number=0000000000091764&sum=49900 [17:08:27]StoreToDocumentArchive [17:08:27]shift 537 fd 166829 [17:08:27]save to /storage/0537/doc_00166829 [17:08:27]save last doc name /storage/0537/doc_00166829 to /storage/kkm_last_doc_name [17:08:27]save OK [17:08:27]Clear old archive folders... [17:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:27]tlvbuf is 01F80180 [17:08:27]SAM_PROTO_ClearQueue [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 09 00 00 [17:08:27]Write to MH i2c: E2 08 00 EE 35 80 09 00 00 00 00 00 00 95 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 EE 35 00 90 00 97 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]SAM_PROTO_ClearQueue done [17:08:27]KKMCreateOFDPacket [17:08:27]OFDProtocolAddRootSTLVToBuf [17:08:27]FM_MakeSignedData [17:08:27]FM_MakeSignedData [17:08:27]SAM_PROTO_SignData [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 0D 01 02 [17:08:27]Write to MH i2c: E2 08 00 EF 35 80 0D 01 02 00 00 00 00 9D [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 EF 35 00 90 00 98 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]wFMCommunicate request_size=255 [17:08:27]MH_SAM_APDU [17:08: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8C 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8B 02 00 35 04 06 00 22 0B 06 34 [17:08:27]Write to MH i2c: E2 02 01 F0 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8C 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8B 02 00 35 04 06 00 22 0B 06 34 00 00 71 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 03 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 03 00 F0 35 00 90 00 99 [17:08:28]RAPDU: 90 00 [17:08:28]wFMCommunicate OK [17:08:28]wFMCommunicate request_size=7 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 0D 02 02 02 F6 95 [17:08:28]Write to MH i2c: E2 0A 00 F1 35 80 0D 02 02 02 00 F6 95 00 00 2F [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 03 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 03 00 F1 35 00 90 00 9A [17:08:28]RAPDU: 90 00 [17:08:28]wFMCommunicate OK [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 0D 03 02 [17:08:28]Write to MH i2c: E2 08 00 F2 35 80 0D 03 02 00 00 00 00 A2 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 0B 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 0B 00 F2 35 00 4D A8 3F 64 86 F1 FC CD 90 00 7B [17:08:28]RAPDU: 4D A8 3F 64 86 F1 FC CD 90 00 [17:08:28]wFMCommunicate OK [17:08:28]SAM_PROTO_SignData done [17:08:28]FM_MakeSignedData done [17:08:28]CreateOFDProtocolMessage [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 11 00 00 [17:08:28]Write to MH i2c: E2 08 00 F3 35 80 11 00 00 00 00 00 00 A2 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 17 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 17 00 F3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [17:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:28]wFMCommunicate OK [17:08:28]CreateOFDProtocolMessage done [17:08:28]OFDSenderStorePacket 166829 [17:08:28]StoreOFDPacket docnum=166829 [17:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7A AE 04 01 A3 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8C 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8B 02 00 35 04 06 00 22 0B 06 34 F6 95 4D A8 3F 64 86 F1 FC CD [17:08:28]CheckFolder [17:08:28]dirname=/storage/ofd_packets [17:08:28]CheckFolder done [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00166829 [17:08:28]NVStorageSaveData ofd_packets/00166829 [17:08:28]File name is /storage/ofd_packets/00166829 [17:08:28]Write 298 bytes [17:08:28]NVStorageSaveData done [17:08:28]OFDSenderStorePacket done [17:08:28]KKMCreateOFDPacket done [17:08:28]NVStorageSaveData kkm_last_timestamp [17:08:28]File name is /storage/kkm_last_timestamp [17:08:28]Write 4 bytes [17:08:28]NVStorageSaveData done [17:08:28]ExternCall_PrintAddStr [17:08:28]wPrintStart [17:08:28]Write to MH i2c: 01 00 00 F4 35 29 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 F4 35 00 00 00 00 00 FF 0F 3E [17:08:28]RasterBufferAndPrint [17:08:28]line Счет N : (1)221414 [17:08:28]line ИНН: 02508201610067 [17:08:28]line Контрольно-Кассовый Чек [17:08:28]line ПРОДАЖА [17:08:28]line ТРК (МРК, ГНК) : 11 [17:08:28]line Товар: 2710194210 [17:08:28]line ДТ-К-5 [17:08:28]line 6.560 * 76.20 [17:08:28]line = 499.87 [17:08:28]line НДС 12% НСП 1% [17:08:28]line > о реализуемом товаре [17:08:28]line ОКРУГЛЕНИЕ: -0.87 [17:08:28]line ИТОГО: 499.00 [17:08:28]line Внесено: 500.00 [17:08:28]line СДАЧА: 1.00 [17:08:28]line НСП 1% : 4.42 [17:08:28]line НДС 12% : 53.08 [17:08:28]line Наличными: 499.00 [17:08:28]line Безнал.: 0.00 [17:08:28]line Место: АЗС № 161 "Партнер Нефть" [17:08:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:08:28]line СНО: Общий режим [17:08:28]line Чек 244 23.10.2024 17:08 [17:08:28]line Смена: 537 ФФД: 1.0 [17:08:28]line ЗНМ: 0300000104 [17:08:28]line РНМ: 0000000000091764 [17:08:28]line Версия ККМ: 001 [17:08:28]line ФМ: 0000000000871759 [17:08:28]line ФД: 166829 [17:08:28]line ФПД: 37430744118933 [17:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170828&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166829&fm=37430744118933&tin=02508201610067®Number=0000000000091764&sum=49900 [17:08:28]OFD Sender: Processing packet 166829 [packets to send 48, broken 47] [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00166829 [17:08:28]OFD Sender: To server: pG, [17:08:28]CommunicateWithHost lk.salyk.kg:30040 [17:08:28]ConnectInit lk.salyk.kg [17:08:28]written 0, free lines is 4095 [17:08:28]Connected sock=10 [17:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7A AE 04 01 A3 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 8C 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8B 02 00 35 04 06 00 22 0B 06 34 F6 95 4D A8 3F 64 86 F1 FC CD [17:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA 99 47 00 A8 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8B 02 00 F4 03 04 00 F3 D3 18 67 B6 04 01 00 00 5D 19 A1 74 B5 82 E0 B7 [17:08:29]CommunicateWithHost err = 0 [17:08:29]CheckOFDResponse [17:08:29]1017 (14) - 77093643461234 [17:08:29]1041 (16) - 0000000000871759 [17:08:29]1040 (4) - 166829 [17:08:29]1012 (4) - 23.10.2024 10:46 [17:08:29]1206 (1) - 0 [17:08:29]OFD Sender: Remove packet 166829 [17:08:29]ProducePacketName [17:08:29]name=ofd_packets/00166829 [17:08:29]NVStorageDeleteData [17:08:29]Write to MH i2c: 01 00 00 1F 36 55 [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: 01 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: 01 07 00 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: 01 07 00 1F 36 00 00 00 00 00 B3 0C 1B [17:08:29]RasterBufferAndPrint [17:08:29]line [17:08:29]line [17:08:29]line [17:08:29]line [17:08:29]line [17:08:29]written 0, free lines is 3258 [17:08:29]MH_Cut [17:08:29]Write to MH i2c: D1 01 00 26 36 01 2E [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: D1 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: D1 01 00 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: D1 01 00 26 36 00 2D [17:08:29]Write to MH i2c: 01 00 00 27 36 5D [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]OFD Sender: No OFD packet to send [17:08:29]*** Cut start [17:08:29]*** Partial cut [17:08:29]*** CUTSNS_PIN = 1 [17:08:30]*** CUTSNS_PIN = 0 [17:08:30]*** Brake cut motor [17:08:30]Read from MH i2c: 01 [17:08:30]MH_I2C_Read... [17:08:30]*** Stop cut motor [17:08:30]*** Cut end [17:08:30]Read from MH i2c: 01 07 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: 01 07 00 27 36 00 00 00 00 00 FF 0F 72 [17:08:30]process_action close_receipt done [17:08:30]requested_data is exist [17:08:30]produce_requested_data [17:08:30]requested_item fm.sn is exist - process it [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 11 00 00 [17:08:30]Write to MH i2c: E2 08 00 28 36 80 11 00 00 00 00 00 00 D8 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 17 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 17 00 28 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [17:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:30]wFMCommunicate OK [17:08:30]requested_item fd.num is exist - process it [17:08:30]SAM_PROTO_GetFieldsCounters [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 13 00 00 [17:08:30]Write to MH i2c: E2 08 00 29 36 80 13 00 00 00 00 00 00 DB [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 62 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 62 00 29 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetFieldsCounters done [17:08:30]requested_item shift.num is exist - process it [17:08:30]requested_item shift.opened is exist - process it [17:08:30]req_shift_opened [17:08:30]FM_GetShiftState [17:08:30]SAM_PROTO_GetShiftState [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 13 01 00 [17:08:30]Write to MH i2c: E2 08 00 2A 36 80 13 01 00 00 00 00 00 DD [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 2A 36 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [17:08:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetShiftState done [17:08:30]FM_GetShiftState done [17:08:30]req_shift_opened done [17:08:30]requested_item shift.open_date is exist - process it [17:08:30]req_shift_open_date [17:08:30]req_shift_open_date done [17:08:30]produce_requested_data done [17:08:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166829,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:08:30]process_action_free close_receipt [17:08:30]json_value_free [17:08:30]json_value_free done [17:08:30]process_json_proto returns [17:08:30]Send response to host [17:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166829,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:08:30]free response buf [17:08:30]execute_script done [17:08:30]execute_script returns [17:08:30]free content buf [17:08:30]Sock 9.Close socket [17:08:30]Sock 9.Thread stoped [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:50]accept exits with 8 [17:09:50]New connection [17:09:50]New thread 3067034980 created [17:09:50]Thread 3067178340 joined [17:09:50]Waiting for new connection... [17:09:50] Sock 8.Parse request [17:09:50]Sock 8.Check first char [17:09:50]Sock 8.First char is OK [17:09:50]request: POST /json_proto HTTP/1.0 [17:09:50]Method: POST [17:09:50]URL: /json_proto [17:09:50]Method is POST - this is cgi request [17:09:50]url: /json_proto [17:09:50]query_string will be loaded in cgi processing [17:09:50]execute_cgi json_proto POST (null) [17:09:50]execute_cgi path=json_proto method=POST [17:09:50]POST find Content-Length [17:09:50]Host: 172.17.53.195:8080 [17:09:50]Content-Length: 677 [17:09:50]Content-Type: application/json [17:09:50] [17:09:50]POST finish read [17:09:50]Found Content-Length = 677 [17:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:50]execute_script... [17:09: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)221415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:50]POST & json_proto [17:09:50]process_json_proto [17:09:50]json parsed OK: [17:09:50]protocol is kg_v1.0 [17:09:50]action value=close_receipt [17:09:50]process_action close_receipt [17:09:50]cmd_close_receipt [17:09:50]MH_GetDate [17:09:50]Write to MH i2c: F0 00 00 2B 36 50 [17:09:50]Write i2c OK [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: F0 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: F0 09 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: F0 09 00 2B 36 00 E0 2D 19 67 21 48 4A 65 FE [17:09:50]GetLastDocTimeStamp 1729703308 [17:09:50]current date 1729703392 [17:09:50]FM_GetShiftState [17:09:50]SAM_PROTO_GetShiftState [17:09:50]wFMCommunicate request_size=4 [17:09:50]MH_SAM_APDU [17:09:50]CAPDU: 80 13 01 00 [17:09:50]Write to MH i2c: E2 08 00 2C 36 80 13 01 00 00 00 00 00 DF [17:09:50]Write i2c OK [17:09:50]MH_I2C_Read... [17:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:50]Read from MH i2c: E2 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 0E 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 0E 00 2C 36 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AA [17:09:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:09:50]wFMCommunicate OK [17:09:50]SAM_PROTO_GetShiftState done [17:09:50]FM_GetShiftState done [17:09:50]opened in 1729643772 [17:09:50]opened+sec_in_day 1729730172 [17:09:50]quantity*price = 50041 [17:09:50]sum+1 = 50042 [17:09:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 245 23.10.2024 17:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166830 ФПД: 103998566776256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170952&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166830&fm=103998566776256&tin=02508201610067®Number=0000000000091764&sum=50000 [17:09:51]StoreToDocumentArchive [17:09:51]shift 537 fd 166830 [17:09:51]save to /storage/0537/doc_00166830 [17:09:51]save last doc name /storage/0537/doc_00166830 to /storage/kkm_last_doc_name [17:09:51]save OK [17:09:51]Clear old archive folders... [17:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:51]tlvbuf is 01FB3E00 [17:09:51]SAM_PROTO_ClearQueue [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 09 00 00 [17:09:51]Write to MH i2c: E2 08 00 39 36 80 09 00 00 00 00 00 00 E1 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]SAM_PROTO_ClearQueue done [17:09:51]KKMCreateOFDPacket [17:09:51]OFDProtocolAddRootSTLVToBuf [17:09:51]FM_MakeSignedData [17:09:51]FM_MakeSignedData [17:09:51]SAM_PROTO_SignData [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 01 02 [17:09:51]Write to MH i2c: E2 08 00 3A 36 80 0D 01 02 00 00 00 00 E9 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 3A 36 00 90 00 E4 [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]wFMCommunicate request_size=255 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E0 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8B 02 00 35 04 06 00 5E [17:09:51]Write to MH i2c: E2 02 01 3B 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E0 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8B 02 00 35 04 06 00 5E 00 00 B5 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 3B 36 00 90 00 E5 [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]wFMCommunicate request_size=10 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 02 02 05 96 0D A1 3D C0 [17:09:51]Write to MH i2c: E2 0D 00 3C 36 80 0D 02 02 05 00 96 0D A1 3D C0 00 00 37 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 3C 36 00 90 00 E6 [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 03 02 [17:09:51]Write to MH i2c: E2 08 00 3D 36 80 0D 03 02 00 00 00 00 EE [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 0B 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 0B 00 3D 36 00 4A E1 7A B1 14 AF 26 A7 90 00 D5 [17:09:51]RAPDU: 4A E1 7A B1 14 AF 26 A7 90 00 [17:09:51]wFMCommunicate OK [17:09:51]SAM_PROTO_SignData done [17:09:51]FM_MakeSignedData done [17:09:51]CreateOFDProtocolMessage [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 11 00 00 [17:09:51]Write to MH i2c: E2 08 00 3E 36 80 11 00 00 00 00 00 00 EE [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 17 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 17 00 3E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [17:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:09:51]wFMCommunicate OK [17:09:51]CreateOFDProtocolMessage done [17:09:51]OFDSenderStorePacket 166830 [17:09:51]StoreOFDPacket docnum=166830 [17:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 6C 07 01 E1 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E0 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8B 02 00 35 04 06 00 5E 96 0D A1 3D C0 4A E1 7A B1 14 AF 26 A7 [17:09:51]CheckFolder [17:09:51]dirname=/storage/ofd_packets [17:09:51]CheckFolder done [17:09:51]ProducePacketName [17:09:51]name=ofd_packets/00166830 [17:09:51]NVStorageSaveData ofd_packets/00166830 [17:09:51]File name is /storage/ofd_packets/00166830 [17:09:51]Write 301 bytes [17:09:51]NVStorageSaveData done [17:09:51]OFDSenderStorePacket done [17:09:51]KKMCreateOFDPacket done [17:09:51]NVStorageSaveData kkm_last_timestamp [17:09:51]File name is /storage/kkm_last_timestamp [17:09:51]Write 4 bytes [17:09:51]NVStorageSaveData done [17:09:51]ExternCall_PrintAddStr [17:09:51]wPrintStart [17:09:51]Write to MH i2c: 01 00 00 3F 36 75 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 07 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 07 00 3F 36 00 00 00 00 00 FF 0F 8A [17:09:51]RasterBufferAndPrint [17:09:51]line Счет N : (1)221415 [17:09:51]line ИНН: 02508201610067 [17:09:51]line Контрольно-Кассовый Чек [17:09:51]line ПРОДАЖА [17:09:51]line ТРК (МРК, ГНК) : 23 [17:09:51]line Товар: 2710124130 [17:09:51]line Аи-92-К-5 [17:09:51]line 7.480 * 66.90 [17:09:51]line = 500.41 [17:09:51]line НДС 12% НСП 1% [17:09:51]line > о реализуемом товаре [17:09:51]line ОКРУГЛЕНИЕ: -0.41 [17:09:51]line ИТОГО: 500.00 [17:09:51]line Внесено: 500.00 [17:09:51]line СДАЧА: 0.00 [17:09:51]line НСП 1% : 4.43 [17:09:51]line НДС 12% : 53.14 [17:09:51]line Наличными: 500.00 [17:09:51]line Безнал.: 0.00 [17:09:51]line Место: АЗС № 161 "Партнер Нефть" [17:09:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:09:51]line СНО: Общий режим [17:09:51]line Чек 245 23.10.2024 17:09 [17:09:51]line Смена: 537 ФФД: 1.0 [17:09:51]line ЗНМ: 0300000104 [17:09:51]line РНМ: 0000000000091764 [17:09:51]line Версия ККМ: 001 [17:09:51]line ФМ: 0000000000871759 [17:09:51]line ФД: 166830 [17:09:51]line ФПД: 103998566776256 [17:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170952&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166830&fm=103998566776256&tin=02508201610067®Number=0000000000091764&sum=50000 [17:09:51]written 0, free lines is 4095 [17:09:51]OFD Sender: Processing packet 166830 [packets to send 48, broken 47] [17:09:51]ProducePacketName [17:09:51]name=ofd_packets/00166830 [17:09:51]OFD Sender: To server: pG, [17:09:51]CommunicateWithHost lk.salyk.kg:30040 [17:09:51]ConnectInit lk.salyk.kg [17:09:51]Connected sock=10 [17:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 6C 07 01 E1 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E0 2D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8B 02 00 35 04 06 00 5E 96 0D A1 3D C0 4A E1 7A B1 14 AF 26 A7 [17:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD 42 47 00 A3 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8B 02 00 F4 03 04 00 46 D4 18 67 B6 04 01 00 00 CD 17 38 69 80 23 2B 66 [17:09:52]CommunicateWithHost err = 0 [17:09:52]CheckOFDResponse [17:09:52]1017 (14) - 77093643461234 [17:09:52]1041 (16) - 0000000000871759 [17:09:52]1040 (4) - 166830 [17:09:52]1012 (4) - 23.10.2024 10:47 [17:09:52]1206 (1) - 0 [17:09:52]OFD Sender: Remove packet 166830 [17:09:52]ProducePacketName [17:09:52]name=ofd_packets/00166830 [17:09:52]NVStorageDeleteData [17:09:52]Write to MH i2c: 01 00 00 6A 36 A0 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 6A 36 00 00 00 00 00 B0 0C 63 [17:09:52]RasterBufferAndPrint [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]written 0, free lines is 3253 [17:09:52]MH_Cut [17:09:52]Write to MH i2c: D1 01 00 71 36 01 79 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 01 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 01 00 71 36 00 78 [17:09:52]Write to MH i2c: 01 00 00 72 36 A8 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]int [17:09:52]*** FLAG_PRN_PAP2 set [17:09:52]*** Cut start [17:09:52]*** Partial cut [17:09:52]*** CUTSNS_PIN = 1 [17:09:52]*** CUTSNS_PIN = 0 [17:09:52]*** Brake cut motor [17:09:52]OFD Sender: No OFD packet to send [17:09:52]Read from MH i2c: 01 [17:09:52]MH_I2C_Read... [17:09:52]*** Stop cut motor [17:09:52]*** Cut end [17:09:52]Read from MH i2c: 01 07 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 72 36 00 02 00 00 00 FF 0F BF [17:09:52]process_action close_receipt done [17:09:52]requested_data is exist [17:09:52]produce_requested_data [17:09:52]requested_item fm.sn is exist - process it [17:09:52]wFMCommunicate request_size=4 [17:09:52]MH_SAM_APDU [17:09:52]CAPDU: 80 11 00 00 [17:09:52]Write to MH i2c: E2 08 00 73 36 80 11 00 00 00 00 00 00 23 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:52]Read from MH i2c: E2 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: E2 17 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: E2 17 00 73 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [17:09:52]RAPDU: Write to MH i2c: 11 01 04 00 10 00 00 74 30 36 30 AA 30 30 [17:09:52]30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:09:52]wFMCommunicate OK [17:09:52]requested_item fd.num is exist - process it [17:09:52]SAM_PROTO_GetFieldsCounters [17:09:52]wFMCommunicate request_size=4 [17:09:52]Write i2c OK [17:09:52]MH_SAM_APDU [17:09:52]MH_I2C_Read... [17:09:52]CAPDU: 80 13 Read from MH i2c: 00 01 00 [17:09:52] [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 74 36 00 02 00 00 00 FF 0F C1 [17:09:52]Write to MH i2c: state=0 [17:09:52]E2 Cover opened [17:09:52]08 00 75 36 80 13 00 00 00 00 00 00 27 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:53]Read from MH i2c: E2 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 62 00 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 62 00 75 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:53]wFMCommunicate OK [17:09:53]SAM_PROTO_GetFieldsCounters done [17:09:53]requested_item shift.num is exist - process it [17:09:53]requested_item shift.opened is exist - process it [17:09:53]req_shift_opened [17:09:53]FM_GetShiftState [17:09:53]SAM_PROTO_GetShiftState [17:09:53]wFMCommunicate request_size=4 [17:09:53]MH_SAM_APDU [17:09:53]CAPDU: 80 13 01 00 [17:09:53]Write to MH i2c: E2 08 00 76 36 80 13 01 00 00 00 00 00 29 [17:09:53]Write i2c OK [17:09:53]MH_I2C_Read... [17:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:53]Read from MH i2c: E2 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 0E 00 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 0E 00 76 36 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F4 [17:09:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:09:53]wFMCommunicate OK [17:09:53]SAM_PROTO_GetShiftState done [17:09:53]FM_GetShiftState done [17:09:53]req_shift_opened done [17:09:53]requested_item shift.open_date is exist - process it [17:09:53]req_shift_open_date [17:09:53]req_shift_open_date done [17:09:53]produce_requested_data done [17:09:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166830,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:09:53]process_action_free close_receipt [17:09:53]json_value_free [17:09:53]json_value_free done [17:09:53]process_json_proto returns [17:09:53]Send response to host [17:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166830,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:09:53]free response buf [17:09:53]execute_script done [17:09:53]execute_script returns [17:09:53]free content buf [17:09:53]Sock 8.Close socket [17:09:53]Sock 8.Thread stoped [17:09:57]OFD Sender: No OFD packet to send [17:09:57]Write to MH i2c: 01 00 00 77 36 AD [17:09:57]Write i2c OK [17:09:57]MH_I2C_Read... [17:09:57]Read from MH i2c: 01 [17:09:57]MH_I2C_Read... [17:09:57]Read from MH i2c: 01 07 00 [17:09:57]MH_I2C_Read... [17:09:57]Read from MH i2c: 01 07 00 77 36 00 02 00 00 00 FF 0F C4 [17:09:57]state=3 [17:09:57]Cover opened [17:10:02]OFD Sender: No OFD packet to send [17:10:03]Write to MH i2c: 01 00 00 78 36 AE [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: 01 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: 01 07 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: 01 07 00 78 36 00 02 00 00 00 FF 0F C5 [17:10:03]state=3 [17:10:03]Cover opened [17:10:07]OFD Sender: No OFD packet to send [17:10:08]Write to MH i2c: 01 00 00 79 36 AF [17:10:08]Write i2c OK [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: 01 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: 01 07 00 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: 01 07 00 79 36 00 02 00 00 00 FF 0F C6 [17:10:08]state=3 [17:10:08]Cover opened [17:10:12]OFD Sender: No OFD packet to send [17:10:13]Write to MH i2c: 01 00 00 7A 36 B0 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 7A 36 00 02 00 00 00 FF 0F C7 [17:10:13]state=3 [17:10:13]Cover opened [17:10:17]OFD Sender: No OFD packet to send [17:10:18]Write to MH i2c: 01 00 00 7B 36 B1 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 7B 36 00 02 00 00 00 FF 0F C8 [17:10:18]state=3 [17:10:18]Cover opened [17:10:22]OFD Sender: No OFD packet to send [17:10:23]Write to MH i2c: 01 00 00 7C 36 B2 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 07 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 07 00 7C 36 00 02 00 00 00 FF 0F C9 [17:10:23]state=3 [17:10:23]Cover opened [17:10:27]OFD Sender: No OFD packet to send [17:10:28]Write to MH i2c: 01 00 00 7D 36 B3 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 7D 36 00 02 00 00 00 FF 0F CA [17:10:28]state=3 [17:10:28]Cover opened [17:10:32]OFD Sender: No OFD packet to send [17:10:33]Write to MH i2c: 01 00 00 7E 36 B4 [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 7E 36 00 02 00 00 00 FF 0F CB [17:10:33]state=3 [17:10:33]Cover opened [17:10:37]OFD Sender: No OFD packet to send [17:10:38]Write to MH i2c: 01 00 00 7F 36 B5 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 7F 36 00 02 00 00 00 FF 0F CC [17:10:38]state=3 [17:10:38]Cover opened [17:10:42]OFD Sender: No OFD packet to send [17:10:43]Write to MH i2c: 01 00 00 80 36 B6 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 80 36 00 02 00 00 00 FF 0F CD [17:10:43]state=3 [17:10:43]Cover opened [17:10:47]OFD Sender: No OFD packet to send [17:10:48]Write to MH i2c: 01 00 00 81 36 B7 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 81 36 00 02 00 00 00 FF 0F CE [17:10:48]state=3 [17:10:48]Cover opened [17:10:52]OFD Sender: No OFD packet to send [17:10:53]Write to MH i2c: 01 00 00 82 36 B8 [17:10:53]Write i2c OK [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 07 00 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 07 00 82 36 00 02 00 00 00 FF 0F CF [17:10:53]state=3 [17:10:53]Cover opened [17:10:57]OFD Sender: No OFD packet to send [17:10:58]Write to MH i2c: 01 00 00 83 36 B9 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 83 36 00 02 00 00 00 FF 0F D0 [17:10:58]state=3 [17:10:58]Cover opened [17:11:02]OFD Sender: No OFD packet to send [17:11:03]Write to MH i2c: 01 00 00 84 36 BA [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 84 36 00 02 00 00 00 FF 0F D1 [17:11:03]state=3 [17:11:03]Cover opened [17:11:07]OFD Sender: No OFD packet to send [17:11:08]Write to MH i2c: 01 00 00 85 36 BB [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 07 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 07 00 85 36 00 02 00 00 00 FF 0F D2 [17:11:08]state=3 [17:11:08]Cover opened [17:11:12]OFD Sender: No OFD packet to send [17:11:13]Write to MH i2c: 01 00 00 86 36 BC [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 86 36 00 02 00 00 00 FF 0F D3 [17:11:13]state=3 [17:11:13]Cover opened [17:11:17]OFD Sender: No OFD packet to send [17:11:18]Write to MH i2c: 01 00 00 87 36 BD [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 07 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 07 00 87 36 00 02 00 00 00 FF 0F D4 [17:11:18]state=3 [17:11:18]Cover opened [17:11:22]OFD Sender: No OFD packet to send [17:11:23]Write to MH i2c: 01 00 00 88 36 BE [17:11:23]Write i2c OK [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 07 00 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 07 00 88 36 00 02 00 00 00 FF 0F D5 [17:11:23]state=3 [17:11:23]Cover opened [17:11:27]OFD Sender: No OFD packet to send [17:11:28]Write to MH i2c: 01 00 00 89 36 BF [17:11:28]Write i2c OK [17:11:28]MH_I2C_Read... [17:11:28]Read from MH i2c: 01 [17:11:28]MH_I2C_Read... [17:11:28]Read from MH i2c: 01 07 00 [17:11:28]MH_I2C_Read... [17:11:28]Read from MH i2c: 01 07 00 89 36 00 02 00 00 00 FF 0F D6 [17:11:28]state=3 [17:11:28]Cover opened [17:11:32]OFD Sender: No OFD packet to send [17:11:33]Write to MH i2c: 01 00 00 8A 36 C0 [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 07 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 07 00 8A 36 00 02 00 00 00 FF 0F D7 [17:11:33]state=3 [17:11:33]Cover opened [17:11:37]OFD Sender: No OFD packet to send [17:11:38]Write to MH i2c: 01 00 00 8B 36 C1 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 8B 36 00 02 00 00 00 FF 0F D8 [17:11:38]state=3 [17:11:38]Cover opened [17:11:42]OFD Sender: No OFD packet to send [17:11:43]Write to MH i2c: 01 00 00 8C 36 C2 [17:11:43]Write i2c OK [17:11:43]MH_I2C_Read... [17:11:43]Read from MH i2c: 01 [17:11:43]MH_I2C_Read... [17:11:43]Read from MH i2c: 01 07 00 [17:11:43]MH_I2C_Read... [17:11:43]Read from MH i2c: 01 07 00 8C 36 00 02 00 00 00 FF 0F D9 [17:11:43]state=3 [17:11:43]Cover opened [17:11:47]OFD Sender: No OFD packet to send [17:11:48]Write to MH i2c: 01 00 00 8D 36 C3 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 8D 36 00 02 00 00 00 FF 0F DA [17:11:48]state=3 [17:11:48]Cover opened [17:11:52]OFD Sender: No OFD packet to send [17:11:53]Write to MH i2c: 01 00 00 8E 36 C4 [17:11:53]Write i2c OK [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 07 00 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 07 00 8E 36 00 02 00 00 00 FF 0F DB [17:11:53]state=3 [17:11:53]Cover opened [17:11:57]OFD Sender: No OFD packet to send [17:11:58]Write to MH i2c: 01 00 00 8F 36 C5 [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 07 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 07 00 8F 36 00 02 00 00 00 FF 0F DC [17:11:58]state=3 [17:11:58]Cover opened [17:12:02]OFD Sender: No OFD packet to send [17:12:03]Write to MH i2c: 01 00 00 90 36 C6 [17:12:03]Write i2c OK [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: 01 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: 01 07 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: 01 07 00 90 36 00 02 00 00 00 FF 0F DD [17:12:03]state=3 [17:12:03]Cover opened [17:12:07]OFD Sender: No OFD packet to send [17:12:08]Write to MH i2c: 01 00 00 91 36 C7 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 91 36 00 02 00 00 00 FF 0F DE [17:12:08]state=3 [17:12:08]Cover opened [17:12:12]OFD Sender: No OFD packet to send [17:12:13]Write to MH i2c: 01 00 00 92 36 C8 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: 01 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: 01 07 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: 01 07 00 92 36 00 02 00 00 00 FF 0F DF [17:12:13]state=3 [17:12:13]Cover opened [17:12:17]OFD Sender: No OFD packet to send [17:12:18]Write to MH i2c: 01 00 00 93 36 C9 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 07 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 07 00 93 36 00 02 00 00 00 FF 0F E0 [17:12:18]state=3 [17:12:18]Cover opened [17:12:22]OFD Sender: No OFD packet to send [17:12:23]Write to MH i2c: 01 00 00 94 36 CA [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 07 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 07 00 94 36 00 02 00 00 00 FF 0F E1 [17:12:23]state=3 [17:12:23]Cover opened [17:12:27]OFD Sender: No OFD packet to send [17:12:28]Write to MH i2c: 01 00 00 95 36 CB [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 95 36 00 02 00 00 00 FF 0F E2 [17:12:28]state=3 [17:12:28]Cover opened [17:12:32]OFD Sender: No OFD packet to send [17:12:33]Write to MH i2c: 01 00 00 96 36 CC [17:12:33]Write i2c OK [17:12:33]MH_I2C_Read... [17:12:33]Read from MH i2c: 01 [17:12:33]MH_I2C_Read... [17:12:33]Read from MH i2c: 01 07 00 [17:12:33]MH_I2C_Read... [17:12:33]Read from MH i2c: 01 07 00 96 36 00 02 00 00 00 FF 0F E3 [17:12:33]state=3 [17:12:33]Cover opened [17:12:37]OFD Sender: No OFD packet to send [17:12:38]Write to MH i2c: 01 00 00 97 36 CD [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 97 36 00 02 00 00 00 FF 0F E4 [17:12:38]state=3 [17:12:38]Cover opened [17:12:42]OFD Sender: No OFD packet to send [17:12:43]Write to MH i2c: 01 00 00 98 36 CE [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: 01 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: 01 07 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: 01 07 00 98 36 00 02 00 00 00 FF 0F E5 [17:12:43]state=3 [17:12:43]Cover opened [17:12:47]OFD Sender: No OFD packet to send [17:12:48]Write to MH i2c: 01 00 00 99 36 CF [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 07 00 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 07 00 99 36 00 02 00 00 00 FF 0F E6 [17:12:48]state=3 [17:12:48]Cover opened [17:12:52]OFD Sender: No OFD packet to send [17:12:53]Write to MH i2c: 01 00 00 9A 36 D0 [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 9A 36 00 02 00 00 00 FF 0F E7 [17:12:53]state=3 [17:12:53]Cover opened [17:12:57]OFD Sender: No OFD packet to send [17:12:58]Write to MH i2c: 01 00 00 9B 36 D1 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 9B 36 00 02 00 00 00 FF 0F E8 [17:12:58]state=3 [17:12:58]Cover opened [17:13:02]OFD Sender: No OFD packet to send [17:13:03]Write to MH i2c: 01 00 00 9C 36 D2 [17:13:03]Write i2c OK [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: 01 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: 01 07 00 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: 01 07 00 9C 36 00 02 00 00 00 FF 0F E9 [17:13:03]state=3 [17:13:03]Cover opened [17:13:07]OFD Sender: No OFD packet to send [17:13:08]Write to MH i2c: 01 00 00 9D 36 D3 [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: 01 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: 01 07 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: 01 07 00 9D 36 00 02 00 00 00 FF 0F EA [17:13:08]state=3 [17:13:08]Cover opened [17:13:12]OFD Sender: No OFD packet to send [17:13:13]Write to MH i2c: 01 00 00 9E 36 D4 [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: 01 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: 01 07 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: 01 07 00 9E 36 00 02 00 00 00 FF 0F EB [17:13:13]state=3 [17:13:13]Cover opened [17:13:17]OFD Sender: No OFD packet to send [17:13:18]Write to MH i2c: 01 00 00 9F 36 D5 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 9F 36 00 02 00 00 00 FF 0F EC [17:13:18]state=3 [17:13:18]Cover opened [17:13:22]OFD Sender: No OFD packet to send [17:13:23]Write to MH i2c: 01 00 00 A0 36 D6 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 07 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: 01 07 00 A0 36 00 02 00 00 00 FF 0F ED [17:13:23]state=3 [17:13:23]Cover opened [17:13:27]OFD Sender: No OFD packet to send [17:13:28]Write to MH i2c: 01 00 00 A1 36 D7 [17:13:28]Write i2c OK [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: 01 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: 01 07 00 [17:13:28]MH_I2C_Read... [17:13:28]Read from MH i2c: 01 07 00 A1 36 00 02 00 00 00 FF 0F EE [17:13:28]state=3 [17:13:28]Cover opened [17:13:32]OFD Sender: No OFD packet to send [17:13:33]Write to MH i2c: 01 00 00 A2 36 D8 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 A2 36 00 02 00 00 00 FF 0F EF [17:13:33]state=3 [17:13:33]Cover opened [17:13:37]OFD Sender: No OFD packet to send [17:13:38]Write to MH i2c: 01 00 00 A3 36 D9 [17:13:38]Write i2c OK [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: 01 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: 01 07 00 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: 01 07 00 A3 36 00 02 00 00 00 FF 0F F0 [17:13:38]state=3 [17:13:38]Cover opened [17:13:42]OFD Sender: No OFD packet to send [17:13:43]Write to MH i2c: 01 00 00 A4 36 DA [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 07 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 07 00 A4 36 00 02 00 00 00 FF 0F F1 [17:13:43]state=3 [17:13:43]Cover opened [17:13:47]OFD Sender: No OFD packet to send [17:13:48]Write to MH i2c: 01 00 00 A5 36 DB [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 A5 36 00 02 00 00 00 FF 0F F2 [17:13:48]state=3 [17:13:48]Cover opened [17:13:52]OFD Sender: No OFD packet to send [17:13:53]Write to MH i2c: 01 00 00 A6 36 DC [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 A6 36 00 02 00 00 00 FF 0F F3 [17:13:53]state=3 [17:13:53]Cover opened [17:13:57]OFD Sender: No OFD packet to send [17:13:58]Write to MH i2c: 01 00 00 A7 36 DD [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 A7 36 00 02 00 00 00 FF 0F F4 [17:13:58]state=3 [17:13:58]Cover opened [17:14:02]OFD Sender: No OFD packet to send [17:14:03]Write to MH i2c: 01 00 00 A8 36 DE [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 07 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 07 00 A8 36 00 02 00 00 00 FF 0F F5 [17:14:03]state=3 [17:14:03]Cover opened [17:14:07]OFD Sender: No OFD packet to send [17:14:08]Write to MH i2c: 01 00 00 A9 36 DF [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 A9 36 00 02 00 00 00 FF 0F F6 [17:14:08]state=3 [17:14:08]Cover opened [17:14:12]OFD Sender: No OFD packet to send [17:14:13]Write to MH i2c: 01 00 00 AA 36 E0 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 07 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 07 00 AA 36 00 02 00 00 00 FF 0F F7 [17:14:13]state=3 [17:14:13]Cover opened [17:14:17]OFD Sender: No OFD packet to send [17:14:18]Write to MH i2c: 01 00 00 AB 36 E1 [17:14:18]Write i2c OK [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 07 00 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 07 00 AB 36 00 02 00 00 00 FF 0F F8 [17:14:18]state=3 [17:14:18]Cover opened [17:14:22]OFD Sender: No OFD packet to send [17:14:23]Write to MH i2c: 01 00 00 AC 36 E2 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 07 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 07 00 AC 36 00 02 00 00 00 FF 0F F9 [17:14:23]state=3 [17:14:23]Cover opened [17:14:27]OFD Sender: No OFD packet to send [17:14:28]Write to MH i2c: 01 00 00 AD 36 E3 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: 01 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: 01 07 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: 01 07 00 AD 36 00 02 00 00 00 FF 0F FA [17:14:28]state=3 [17:14:28]Cover opened [17:14:32]OFD Sender: No OFD packet to send [17:14:33]Write to MH i2c: 01 00 00 AE 36 E4 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: 01 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: 01 07 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: 01 07 00 AE 36 00 02 00 00 00 FF 0F FB [17:14:33]state=3 [17:14:33]Cover opened [17:14:37]OFD Sender: No OFD packet to send [17:14:38]Write to MH i2c: 01 00 00 AF 36 E5 [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: 01 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: 01 07 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: 01 07 00 AF 36 00 02 00 00 00 FF 0F FC [17:14:38]state=3 [17:14:38]Cover opened [17:14:42]OFD Sender: No OFD packet to send [17:14:43]Write to MH i2c: 01 00 00 B0 36 E6 [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 07 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 07 00 B0 36 00 02 00 00 00 FF 0F FD [17:14:43]state=3 [17:14:43]Cover opened [17:14:47]OFD Sender: No OFD packet to send [17:14:48]Write to MH i2c: 01 00 00 B1 36 E7 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 B1 36 00 02 00 00 00 FF 0F FE [17:14:48]state=3 [17:14:48]Cover opened [17:14:52]OFD Sender: No OFD packet to send [17:14:53]Write to MH i2c: 01 00 00 B2 36 E8 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: 01 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: 01 07 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: 01 07 00 B2 36 00 02 00 00 00 FF 0F FF [17:14:53]state=3 [17:14:53]Cover opened [17:14:57]OFD Sender: No OFD packet to send [17:14:58]Write to MH i2c: 01 00 00 B3 36 E9 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 B3 36 00 02 00 00 00 FF 0F 00 [17:14:58]state=3 [17:14:58]Cover opened [17:15:02]OFD Sender: No OFD packet to send [17:15:03]Write to MH i2c: 01 00 00 B4 36 EA [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: 01 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: 01 07 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: 01 07 00 B4 36 00 02 00 00 00 FF 0F 01 [17:15:03]state=3 [17:15:03]Cover opened [17:15:07]OFD Sender: No OFD packet to send [17:15:08]Write to MH i2c: 01 00 00 B5 36 EB [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 07 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 07 00 B5 36 00 02 00 00 00 FF 0F 02 [17:15:08]state=3 [17:15:08]Cover opened [17:15:12]OFD Sender: No OFD packet to send [17:15:13]Write to MH i2c: 01 00 00 B6 36 EC [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: 01 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: 01 07 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: 01 07 00 B6 36 00 02 00 00 00 FF 0F 03 [17:15:13]state=3 [17:15:13]Cover opened [17:15:17]OFD Sender: No OFD packet to send [17:15:18]Write to MH i2c: 01 00 00 B7 36 ED [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 B7 36 00 02 00 00 00 FF 0F 04 [17:15:18]state=3 [17:15:18]Cover opened [17:15:22]OFD Sender: No OFD packet to send [17:15:23]Write to MH i2c: 01 00 00 B8 36 EE [17:15:23]Write i2c OK [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: 01 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: 01 07 00 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: 01 07 00 B8 36 00 02 00 00 00 FF 0F 05 [17:15:23]state=3 [17:15:23]Cover opened [17:15:27]OFD Sender: No OFD packet to send [17:15:28]Write to MH i2c: 01 00 00 B9 36 EF [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 B9 36 00 02 00 00 00 FF 0F 06 [17:15:28]state=3 [17:15:28]Cover opened [17:15:32]OFD Sender: No OFD packet to send [17:15:33]Write to MH i2c: 01 00 00 BA 36 F0 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 BA 36 00 02 00 00 00 FF 0F 07 [17:15:33]state=3 [17:15:33]Cover opened [17:15:37]OFD Sender: No OFD packet to send [17:15:38]Write to MH i2c: 01 00 00 BB 36 F1 [17:15:38]Write i2c OK [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: 01 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: 01 07 00 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: 01 07 00 BB 36 00 02 00 00 00 FF 0F 08 [17:15:38]state=3 [17:15:38]Cover opened [17:15:42]OFD Sender: No OFD packet to send [17:15:43]Write to MH i2c: 01 00 00 BC 36 F2 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 BC 36 00 02 00 00 00 FF 0F 09 [17:15:43]state=3 [17:15:43]Cover opened [17:15:47]OFD Sender: No OFD packet to send [17:15:48]Write to MH i2c: 01 00 00 BD 36 F3 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 07 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 07 00 BD 36 00 02 00 00 00 FF 0F 0A [17:15:48]state=3 [17:15:48]Cover opened [17:15:52]OFD Sender: No OFD packet to send [17:15:53]Write to MH i2c: 01 00 00 BE 36 F4 [17:15:53]Write i2c OK [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: 01 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: 01 07 00 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: 01 07 00 BE 36 00 02 00 00 00 FF 0F 0B [17:15:53]state=3 [17:15:53]Cover opened [17:15:57]OFD Sender: No OFD packet to send [17:15:58]Write to MH i2c: 01 00 00 BF 36 F5 [17:15:58]Write i2c OK [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: 01 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: 01 07 00 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: 01 07 00 BF 36 00 02 00 00 00 FF 0F 0C [17:15:58]state=3 [17:15:58]Cover opened [17:16:03]OFD Sender: No OFD packet to send [17:16:03]Write to MH i2c: 01 00 00 C0 36 F6 [17:16:03]Write i2c OK [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: 01 [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: 01 07 00 [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: 01 07 00 C0 36 00 02 00 00 00 FF 0F 0D [17:16:03]state=3 [17:16:03]Cover opened [17:16:08]OFD Sender: No OFD packet to send [17:16:08]Write to MH i2c: 01 00 00 C1 36 F7 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 07 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 07 00 C1 36 00 02 00 00 00 FF 0F 0E [17:16:08]state=3 [17:16:08]Cover opened [17:16:13]OFD Sender: No OFD packet to send [17:16:13]Write to MH i2c: 01 00 00 C2 36 F8 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 07 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: 01 07 00 C2 36 00 02 00 00 00 FF 0F 0F [17:16:13]state=3 [17:16:13]Cover opened [17:16:18]OFD Sender: No OFD packet to send [17:16:18]Write to MH i2c: 01 00 00 C3 36 F9 [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 C3 36 00 02 00 00 00 FF 0F 10 [17:16:18]state=3 [17:16:18]Cover opened [17:16:23]OFD Sender: No OFD packet to send [17:16:23]Write to MH i2c: 01 00 00 C4 36 FA [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 C4 36 00 02 00 00 00 FF 0F 11 [17:16:23]state=3 [17:16:23]Cover opened [17:16:28]OFD Sender: No OFD packet to send [17:16:28]Write to MH i2c: 01 00 00 C5 36 FB [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 07 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 07 00 C5 36 00 02 00 00 00 FF 0F 12 [17:16:28]state=3 [17:16:28]Cover opened [17:16:33]OFD Sender: No OFD packet to send [17:16:33]Write to MH i2c: 01 00 00 C6 36 FC [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 C6 36 00 02 00 00 00 FF 0F 13 [17:16:33]state=3 [17:16:33]Cover opened [17:16:38]OFD Sender: No OFD packet to send [17:16:38]Write to MH i2c: 01 00 00 C7 36 FD [17:16:38]Write i2c OK [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: 01 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: 01 07 00 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: 01 07 00 C7 36 00 02 00 00 00 FF 0F 14 [17:16:38]state=3 [17:16:38]Cover opened [17:16:43]OFD Sender: No OFD packet to send [17:16:43]Write to MH i2c: 01 00 00 C8 36 FE [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 C8 36 00 02 00 00 00 FF 0F 15 [17:16:43]state=3 [17:16:43]Cover opened [17:16:48]OFD Sender: No OFD packet to send [17:16:48]Write to MH i2c: 01 00 00 C9 36 FF [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 07 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: 01 07 00 C9 36 00 02 00 00 00 FF 0F 16 [17:16:48]state=3 [17:16:48]Cover opened [17:16:53]OFD Sender: No OFD packet to send [17:16:53]Write to MH i2c: 01 00 00 CA 36 00 [17:16:53]Write i2c OK [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: 01 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: 01 07 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: 01 07 00 CA 36 00 02 00 00 00 FF 0F 17 [17:16:53]state=3 [17:16:53]Cover opened [17:16:58]OFD Sender: No OFD packet to send [17:16:58]Write to MH i2c: 01 00 00 CB 36 01 [17:16:58]Write i2c OK [17:16:58]MH_I2C_Read... [17:16:58]Read from MH i2c: 01 [17:16:58]MH_I2C_Read... [17:16:58]Read from MH i2c: 01 07 00 [17:16:58]MH_I2C_Read... [17:16:58]Read from MH i2c: 01 07 00 CB 36 00 02 00 00 00 FF 0F 18 [17:16:58]state=3 [17:16:58]Cover opened [17:17:03]OFD Sender: No OFD packet to send [17:17:03]Write to MH i2c: 01 00 00 CC 36 02 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 CC 36 00 02 00 00 00 FF 0F 19 [17:17:03]state=3 [17:17:03]Cover opened [17:17:08]OFD Sender: No OFD packet to send [17:17:08]Write to MH i2c: 01 00 00 CD 36 03 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 07 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 07 00 CD 36 00 02 00 00 00 FF 0F 1A [17:17:08]state=3 [17:17:08]Cover opened [17:17:13]OFD Sender: No OFD packet to send [17:17:13]Write to MH i2c: 01 00 00 CE 36 04 [17:17:13]Write i2c OK [17:17:13]MH_I2C_Read... [17:17:13]Read from MH i2c: 01 [17:17:13]MH_I2C_Read... [17:17:13]Read from MH i2c: 01 07 00 [17:17:13]MH_I2C_Read... [17:17:13]Read from MH i2c: 01 07 00 CE 36 00 02 00 00 00 FF 0F 1B [17:17:13]state=3 [17:17:13]Cover opened [17:17:18]OFD Sender: No OFD packet to send [17:17:18]Write to MH i2c: 01 00 00 CF 36 05 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 CF 36 00 02 00 00 00 FF 0F 1C [17:17:18]state=3 [17:17:18]Cover opened [17:17:23]OFD Sender: No OFD packet to send [17:17:23]Write to MH i2c: 01 00 00 D0 36 06 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 D0 36 00 02 00 00 00 FF 0F 1D [17:17:23]state=3 [17:17:23]Cover opened [17:17:28]OFD Sender: No OFD packet to send [17:17:28]Write to MH i2c: 01 00 00 D1 36 07 [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 07 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 07 00 D1 36 00 02 00 00 00 FF 0F 1E [17:17:28]state=3 [17:17:28]Cover opened [17:17:33]OFD Sender: No OFD packet to send [17:17:33]Write to MH i2c: 01 00 00 D2 36 08 [17:17:33]Write i2c OK [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 07 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 07 00 D2 36 00 02 00 00 00 FF 0F 1F [17:17:33]state=3 [17:17:33]Cover opened [17:17:38]OFD Sender: No OFD packet to send [17:17:38]Write to MH i2c: 01 00 00 D3 36 09 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 D3 36 00 02 00 00 00 FF 0F 20 [17:17:38]state=3 [17:17:38]Cover opened [17:17:43]OFD Sender: No OFD packet to send [17:17:43]Write to MH i2c: 01 00 00 D4 36 0A [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 D4 36 00 02 00 00 00 FF 0F 21 [17:17:43]state=3 [17:17:43]Cover opened [17:17:48]OFD Sender: No OFD packet to send [17:17:48]Write to MH i2c: 01 00 00 D5 36 0B [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 07 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 07 00 D5 36 00 02 00 00 00 FF 0F 22 [17:17:48]state=3 [17:17:48]Cover opened [17:17:53]OFD Sender: No OFD packet to send [17:17:53]Write to MH i2c: 01 00 00 D6 36 0C [17:17:53]Write i2c OK [17:17:53]MH_I2C_Read... [17:17:53]Read from MH i2c: 01 [17:17:53]MH_I2C_Read... [17:17:53]Read from MH i2c: 01 07 00 [17:17:53]MH_I2C_Read... [17:17:53]Read from MH i2c: 01 07 00 D6 36 00 02 00 00 00 FF 0F 23 [17:17:53]state=3 [17:17:53]Cover opened [17:17:58]OFD Sender: No OFD packet to send [17:17:58]Write to MH i2c: 01 00 00 D7 36 0D [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 07 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 07 00 D7 36 00 02 00 00 00 FF 0F 24 [17:17:58]state=3 [17:17:58]Cover opened [17:18:03]OFD Sender: No OFD packet to send [17:18:03]Write to MH i2c: 01 00 00 D8 36 0E [17:18:03]Write i2c OK [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: 01 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: 01 07 00 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: 01 07 00 D8 36 00 02 00 00 00 FF 0F 25 [17:18:03]state=3 [17:18:03]Cover opened [17:18:08]OFD Sender: No OFD packet to send [17:18:08]Write to MH i2c: 01 00 00 D9 36 0F [17:18:08]Write i2c OK [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: 01 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: 01 07 00 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: 01 07 00 D9 36 00 02 00 00 00 FF 0F 26 [17:18:08]state=3 [17:18:08]Cover opened [17:18:13]OFD Sender: No OFD packet to send [17:18:13]Write to MH i2c: 01 00 00 DA 36 10 [17:18:13]Write i2c OK [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: 01 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: 01 07 00 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: 01 07 00 DA 36 00 02 00 00 00 FF 0F 27 [17:18:13]state=3 [17:18:13]Cover opened [17:18:18]OFD Sender: No OFD packet to send [17:18:18]Write to MH i2c: 01 00 00 DB 36 11 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 DB 36 00 02 00 00 00 FF 0F 28 [17:18:18]state=3 [17:18:18]Cover opened [17:18:23]OFD Sender: No OFD packet to send [17:18:23]Write to MH i2c: 01 00 00 DC 36 12 [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 DC 36 00 02 00 00 00 FF 0F 29 [17:18:23]state=3 [17:18:23]Cover opened [17:18:28]OFD Sender: No OFD packet to send [17:18:28]Write to MH i2c: 01 00 00 DD 36 13 [17:18:28]Write i2c OK [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 [17:18:28]MH_I2C_Read... [17:18:28]Read from MH i2c: 01 07 00 DD 36 00 02 00 00 00 FF 0F 2A [17:18:28]state=3 [17:18:28]Cover opened [17:18:33]OFD Sender: No OFD packet to send [17:18:33]Write to MH i2c: 01 00 00 DE 36 14 [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 07 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 07 00 DE 36 00 02 00 00 00 FF 0F 2B [17:18:33]state=3 [17:18:33]Cover opened [17:18:38]OFD Sender: No OFD packet to send [17:18:38]Write to MH i2c: 01 00 00 DF 36 15 [17:18:38]Write i2c OK [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 07 00 [17:18:38]MH_I2C_Read... [17:18:38]Read from MH i2c: 01 07 00 DF 36 00 02 00 00 00 FF 0F 2C [17:18:38]state=3 [17:18:38]Cover opened [17:18:43]OFD Sender: No OFD packet to send [17:18:43]Write to MH i2c: 01 00 00 E0 36 16 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 07 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 07 00 E0 36 00 02 00 00 00 FF 0F 2D [17:18:43]state=3 [17:18:43]Cover opened [17:18:48]OFD Sender: No OFD packet to send [17:18:48]Write to MH i2c: 01 00 00 E1 36 17 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 E1 36 00 02 00 00 00 FF 0F 2E [17:18:48]state=3 [17:18:48]Cover opened [17:18:53]OFD Sender: No OFD packet to send [17:18:53]Write to MH i2c: 01 00 00 E2 36 18 [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: 01 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: 01 07 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: 01 07 00 E2 36 00 02 00 00 00 FF 0F 2F [17:18:53]state=3 [17:18:53]Cover opened [17:18:58]OFD Sender: No OFD packet to send [17:18:58]Write to MH i2c: 01 00 00 E3 36 19 [17:18:58]Write i2c OK [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: 01 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: 01 07 00 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: 01 07 00 E3 36 00 02 00 00 00 FF 0F 30 [17:18:58]state=3 [17:18:58]Cover opened [17:19:03]OFD Sender: No OFD packet to send [17:19:03]Write to MH i2c: 01 00 00 E4 36 1A [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 E4 36 00 02 00 00 00 FF 0F 31 [17:19:03]state=3 [17:19:03]Cover opened [17:19:08]OFD Sender: No OFD packet to send [17:19:08]Write to MH i2c: 01 00 00 E5 36 1B [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: 01 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: 01 07 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: 01 07 00 E5 36 00 02 00 00 00 FF 0F 32 [17:19:08]state=3 [17:19:08]Cover opened [17:19:13]OFD Sender: No OFD packet to send [17:19:13]Write to MH i2c: 01 00 00 E6 36 1C [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 E6 36 00 02 00 00 00 FF 0F 33 [17:19:13]state=3 [17:19:13]Cover opened [17:19:18]OFD Sender: No OFD packet to send [17:19:18]accept exits with 9 [17:19:18]New connection [17:19:18]New thread 3067178340 created [17:19:18]Thread 3067034980 joined [17:19:18]Waiting for new connection... [17:19:18] Sock 9.Parse request [17:19:18]Sock 9.Check first char [17:19:18]Sock 9.First char is OK [17:19:18]request: POST /json_proto HTTP/1.0 [17:19:18]Method: POST [17:19:18]URL: /json_proto [17:19:18]Method is POST - this is cgi request [17:19:18]url: /json_proto [17:19:18]query_string will be loaded in cgi processing [17:19:18]execute_cgi json_proto POST (null) [17:19:18]execute_cgi path=json_proto method=POST [17:19:18]POST find Content-Length [17:19:18]Host: 172.17.53.195:8080 [17:19:18]Content-Length: 678 [17:19:18]Content-Type: application/json [17:19:18] [17:19:18]POST finish read [17:19:18]Found Content-Length = 678 [17:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.950, "sum" : 799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:18]execute_script... [17:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.950, "sum" : 799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:18]POST & json_proto [17:19:18]process_json_proto [17:19:18]json parsed OK: [17:19:18]protocol is kg_v1.0 [17:19:18]action value=close_receipt [17:19:18]process_action close_receipt [17:19:18]cmd_close_receipt [17:19:18]MH_GetDate [17:19:18]Write to MH i2c: F0 00 00 E7 36 0C [17:19:18]Write i2c OK [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: F0 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: F0 09 00 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: F0 09 00 E7 36 00 18 30 19 67 21 48 4A 65 F5 [17:19:18]GetLastDocTimeStamp 1729703392 [17:19:18]current date 1729703960 [17:19:18]FM_GetShiftState [17:19:18]SAM_PROTO_GetShiftState [17:19:18]wFMCommunicate request_size=4 [17:19:18]MH_SAM_APDU [17:19:18]CAPDU: 80 13 01 00 [17:19:18]Write to MH i2c: 01 00 00 E8 36 1E [17:19:18]Write i2c OK [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: 01 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: 01 07 00 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: 01 07 00 E8 36 00 02 00 00 00 FF 0F 35 [17:19:18]state=3 [17:19:18]Cover opened [17:19:18]Write to MH i2c: E2 08 00 E9 36 80 13 01 00 00 00 00 00 9C [17:19:18]Write i2c OK [17:19:18]MH_I2C_Read... [17:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:18]Read from MH i2c: E2 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: E2 0E 00 [17:19:18]MH_I2C_Read... [17:19:18]Read from MH i2c: E2 0E 00 E9 36 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 67 [17:19:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:19:18]wFMCommunicate OK [17:19:18]SAM_PROTO_GetShiftState done [17:19:18]FM_GetShiftState done [17:19:18]opened in 1729643772 [17:19:18]opened+sec_in_day 1729730172 [17:19:18]quantity*price = 79945 [17:19:18]sum+1 = 79947 [17:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.07 НДС 12% : 84.90 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 246 23.10.2024 17:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166831 ФПД: 236595380936057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171920&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166831&fm=236595380936057&tin=02508201610067®Number=0000000000091764&sum=79900 [17:19:19]StoreToDocumentArchive [17:19:19]shift 537 fd 166831 [17:19:19]save to /storage/0537/doc_00166831 [17:19:19]save last doc name /storage/0537/doc_00166831 to /storage/kkm_last_doc_name [17:19:19]save OK [17:19:19]Clear old archive folders... [17:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:19]tlvbuf is 01FE0E50 [17:19:19]SAM_PROTO_ClearQueue [17:19:19]wFMCommunicate request_size=4 [17:19:19]MH_SAM_APDU [17:19:19]CAPDU: 80 09 00 00 [17:19:19]Write to MH i2c: E2 08 00 F6 36 80 09 00 00 00 00 00 00 9E [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:19]Read from MH i2c: E2 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 03 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 03 00 F6 36 00 90 00 A0 [17:19:19]RAPDU: 90 00 [17:19:19]wFMCommunicate OK [17:19:19]SAM_PROTO_ClearQueue done [17:19:19]KKMCreateOFDPacket [17:19:19]OFDProtocolAddRootSTLVToBuf [17:19:19]FM_MakeSignedData [17:19:19]FM_MakeSignedData [17:19:19]SAM_PROTO_SignData [17:19:19]wFMCommunicate request_size=4 [17:19:19]MH_SAM_APDU [17:19:19]CAPDU: 80 0D 01 02 [17:19:19]Write to MH i2c: E2 08 00 F7 36 80 0D 01 02 00 00 00 00 A6 [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:19]Read from MH i2c: E2 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 03 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 03 00 F7 36 00 90 00 A1 [17:19:19]RAPDU: 90 00 [17:19:19]wFMCommunicate OK [17:19:19]wFMCommunicate request_size=255 [17:19:19]MH_SAM_APDU [17:19: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 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 F6 00 00 00 F4 03 04 00 18 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8B 02 00 35 04 06 00 D7 [17:19:19]Write to MH i2c: E2 02 01 F8 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 F6 00 00 00 F4 03 04 00 18 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8B 02 00 35 04 06 00 D7 00 00 F8 [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:20]Read from MH i2c: E2 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 03 00 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 03 00 F8 36 00 90 00 A2 [17:19:20]RAPDU: 90 00 [17:19:20]wFMCommunicate OK [17:19:20]wFMCommunicate request_size=10 [17:19:20]MH_SAM_APDU [17:19:20]CAPDU: 80 0D 02 02 05 2E A7 A2 DD 79 [17:19:20]Write to MH i2c: E2 0D 00 F9 36 80 0D 02 02 05 00 2E A7 A2 DD 79 00 00 80 [17:19:20]Write i2c OK [17:19:20]MH_I2C_Read... [17:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:20]Read from MH i2c: E2 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 03 00 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 03 00 F9 36 00 90 00 A3 [17:19:20]RAPDU: 90 00 [17:19:20]wFMCommunicate OK [17:19:20]wFMCommunicate request_size=4 [17:19:20]MH_SAM_APDU [17:19:20]CAPDU: 80 0D 03 02 [17:19:20]Write to MH i2c: E2 08 00 FA 36 80 0D 03 02 00 00 00 00 AB [17:19:20]Write i2c OK [17:19:20]MH_I2C_Read... [17:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:20]Read from MH i2c: E2 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 0B 00 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 0B 00 FA 36 00 77 E5 72 A7 56 35 F7 02 90 00 A5 [17:19:20]RAPDU: 77 E5 72 A7 56 35 F7 02 90 00 [17:19:20]wFMCommunicate OK [17:19:20]SAM_PROTO_SignData done [17:19:20]FM_MakeSignedData done [17:19:20]CreateOFDProtocolMessage [17:19:20]wFMCommunicate request_size=4 [17:19:20]MH_SAM_APDU [17:19:20]CAPDU: 80 11 00 00 [17:19:20]Write to MH i2c: E2 08 00 FB 36 80 11 00 00 00 00 00 00 AB [17:19:20]Write i2c OK [17:19:20]MH_I2C_Read... [17:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:20]Read from MH i2c: E2 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 17 00 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: E2 17 00 FB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [17:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:19:20]wFMCommunicate OK [17:19:20]CreateOFDProtocolMessage done [17:19:20]OFDSenderStorePacket 166831 [17:19:20]StoreOFDPacket docnum=166831 [17:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 B9 07 01 F4 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 F6 00 00 00 F4 03 04 00 18 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8B 02 00 35 04 06 00 D7 2E A7 A2 DD 79 77 E5 72 A7 56 35 F7 02 [17:19:20]CheckFolder [17:19:20]dirname=/storage/ofd_packets [17:19:20]CheckFolder done [17:19:20]ProducePacketName [17:19:20]name=ofd_packets/00166831 [17:19:20]NVStorageSaveData ofd_packets/00166831 [17:19:20]File name is /storage/ofd_packets/00166831 [17:19:20]Write 301 bytes [17:19:20]NVStorageSaveData done [17:19:20]OFDSenderStorePacket done [17:19:20]KKMCreateOFDPacket done [17:19:20]NVStorageSaveData kkm_last_timestamp [17:19:20]File name is /storage/kkm_last_timestamp [17:19:20]Write 4 bytes [17:19:20]NVStorageSaveData done [17:19:20]ExternCall_PrintAddStr [17:19:20]wPrintStart [17:19:20]Write to MH i2c: 01 00 00 FC 36 32 [17:19:20]Write i2c OK [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: 01 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: 01 07 00 [17:19:20]MH_I2C_Read... [17:19:20]Read from MH i2c: 01 07 00 FC 36 00 02 00 00 00 FF 0F 49 [17:19:20]RasterBufferAndPrint [17:19:20]line Счет N : (1)221416 [17:19:20]line ИНН: 02508201610067 [17:19:20]line Контрольно-Кассовый Чек [17:19:20]line ПРОДАЖА [17:19:20]line ТРК (МРК, ГНК) : 43 [17:19:20]line Товар: 2710124130 [17:19:20]line Аи-92-К-5 [17:19:20]line 11.950 * 66.90 [17:19:20]line = 799.46 [17:19:20]line НДС 12% НСП 1% [17:19:20]line > о реализуемом товаре [17:19:20]line ОКРУГЛЕНИЕ: -0.46 [17:19:20]line ИТОГО: 799.00 [17:19:20]line Внесено: 800.00 [17:19:20]line СДАЧА: 1.00 [17:19:20]line НСП 1% : 7.07 [17:19:20]line НДС 12% : 84.90 [17:19:20]line Наличными: 799.00 [17:19:20]line Безнал.: 0.00 [17:19:20]line Место: АЗС № 161 "Партнер Нефть" [17:19:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:19:20]line СНО: Общий режим [17:19:20]line Чек 246 23.10.2024 17:19 [17:19:20]line Смена: 537 ФФД: 1.0 [17:19:20]line ЗНМ: 0300000104 [17:19:20]line РНМ: 0000000000091764 [17:19:20]line Версия ККМ: 001 [17:19:20]line ФМ: 0000000000871759 [17:19:20]line ФД: 166831 [17:19:20]line ФПД: 236595380936057 [17:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171920&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166831&fm=236595380936057&tin=02508201610067®Number=0000000000091764&sum=79900 [17:19:20]OFD Sender: Processing packet 166831 [packets to send 48, broken 47] [17:19:20]ProducePacketName [17:19:20]name=ofd_packets/00166831 [17:19:20]OFD Sender: To server: pG, [17:19:20]CommunicateWithHost lk.salyk.kg:30040 [17:19:20]ConnectInit lk.salyk.kg [17:19:20]written 0, free lines is 4095 [17:19:20]Error from MH - 05 [17:19:20]process_action_free close_receipt [17:19:20]json_value_free [17:19:20]json_value_free done [17:19:20]process_json_proto returns [17:19:20]Send response to host [17:19:20]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [17:19:20]free response buf [17:19:20]execute_script done [17:19:20]execute_script returns [17:19:20]free content buf [17:19:20]Sock 9.Close socket [17:19:20]Sock 9.Thread stoped [17:19:20]Connected sock=10 [17: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 31 37 35 39 0F 01 00 00 04 B9 07 01 F4 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 F6 00 00 00 F4 03 04 00 18 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8B 02 00 35 04 06 00 D7 2E A7 A2 DD 79 77 E5 72 A7 56 35 F7 02 [17:19:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A3 C6 47 00 2B 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8B 02 00 F4 03 04 00 7F D6 18 67 B6 04 01 00 00 13 DA 04 19 3D 23 04 6F [17:19:21]CommunicateWithHost err = 0 [17:19:21]CheckOFDResponse [17:19:21]1017 (14) - 77093643461234 [17:19:21]1041 (16) - 0000000000871759 [17:19:21]1040 (4) - 166831 [17:19:21]1012 (4) - 23.10.2024 10:57 [17:19:21]1206 (1) - 0 [17:19:21]OFD Sender: Remove packet 166831 [17:19:21]ProducePacketName [17:19:21]name=ofd_packets/00166831 [17:19:21]NVStorageDeleteData [17:19:21]OFD Sender: No OFD packet to send [17:19:23]Write to MH i2c: 01 00 00 FF 36 35 [17:19:23]Write i2c OK [17:19:23]MH_I2C_Read... [17:19:23]Read from MH i2c: 01 [17:19:23]MH_I2C_Read... [17:19:23]Read from MH i2c: 01 07 00 [17:19:23]MH_I2C_Read... [17:19:23]Read from MH i2c: 01 07 00 FF 36 00 02 00 00 00 FF 0F 4C [17:19:23]state=3 [17:19:23]Cover opened [17:19:26]OFD Sender: No OFD packet to send [17:19:28]Write to MH i2c: 01 00 00 00 37 37 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 00 37 00 02 00 00 00 FF 0F 4E [17:19:28]state=3 [17:19:28]Cover opened [17:19:31]OFD Sender: No OFD packet to send [17:19:33]Write to MH i2c: 01 00 00 01 37 38 [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 07 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 07 00 01 37 00 02 00 00 00 FF 0F 4F [17:19:33]state=3 [17:19:33]Cover opened [17:19:36]OFD Sender: No OFD packet to send [17:19:38]Write to MH i2c: 01 00 00 02 37 39 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 02 37 00 02 00 00 00 FF 0F 50 [17:19:38]state=3 [17:19:38]Cover opened [17:19:41]OFD Sender: No OFD packet to send [17:19:43]Write to MH i2c: 01 00 00 03 37 3A [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: 01 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: 01 07 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: 01 07 00 03 37 00 02 00 00 00 FF 0F 51 [17:19:43]state=3 [17:19:43]Cover opened [17:19:46]OFD Sender: No OFD packet to send [17:19:48]Write to MH i2c: 01 00 00 04 37 3B [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 04 37 00 02 00 00 00 FF 0F 52 [17:19:48]state=3 [17:19:48]Cover opened [17:19:51]OFD Sender: No OFD packet to send [17:19:53]Write to MH i2c: 01 00 00 05 37 3C [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: 01 [17:19:53]MH_I2C_Read... [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 05 37 00 02 00 00 00 FF 0F 53 [17:19:53]state=3 [17:19:53]Cover opened [17:19:56]OFD Sender: No OFD packet to send [17:19:58]Write to MH i2c: 01 00 00 06 37 3D [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 06 37 00 02 00 00 00 FF 0F 54 [17:19:58]state=3 [17:19:58]Cover opened [17:20:01]OFD Sender: No OFD packet to send [17:20:03]Write to MH i2c: 01 00 00 07 37 3E [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 07 37 00 02 00 00 00 FF 0F 55 [17:20:03]state=3 [17:20:03]Cover opened [17:20:06]OFD Sender: No OFD packet to send [17:20:08]Write to MH i2c: 01 00 00 08 37 3F [17:20:08]Write i2c OK [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: 01 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: 01 07 00 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: 01 07 00 08 37 00 02 00 00 00 FF 0F 56 [17:20:08]state=3 [17:20:08]Cover opened [17:20:11]OFD Sender: No OFD packet to send [17:20:13]Write to MH i2c: 01 00 00 09 37 40 [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 07 00 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 07 00 09 37 00 02 00 00 00 FF 0F 57 [17:20:13]state=3 [17:20:13]Cover opened [17:20:16]OFD Sender: No OFD packet to send [17:20:18]Write to MH i2c: 01 00 00 0A 37 41 [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: 01 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: 01 07 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: 01 07 00 0A 37 00 02 00 00 00 FF 0F 58 [17:20:18]state=3 [17:20:18]Cover opened [17:20:21]OFD Sender: No OFD packet to send [17:20:23]Write to MH i2c: 01 00 00 0B 37 42 [17:20:23]Write i2c OK [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 [17:20:23]MH_I2C_Read... [17:20:23]Read from MH i2c: 01 07 00 0B 37 00 02 00 00 00 FF 0F 59 [17:20:23]state=3 [17:20:23]Cover opened [17:20:26]OFD Sender: No OFD packet to send [17:20:28]Write to MH i2c: 01 00 00 0C 37 43 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 0C 37 00 02 00 00 00 FF 0F 5A [17:20:28]state=3 [17:20:28]Cover opened [17:20:31]OFD Sender: No OFD packet to send [17:20:33]Write to MH i2c: 01 00 00 0D 37 44 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 07 00 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 07 00 0D 37 00 02 00 00 00 FF 0F 5B [17:20:33]state=3 [17:20:33]Cover opened [17:20:36]OFD Sender: No OFD packet to send [17:20:38]Write to MH i2c: 01 00 00 0E 37 45 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 0E 37 00 02 00 00 00 FF 0F 5C [17:20:38]state=3 [17:20:38]Cover opened [17:20:41]OFD Sender: No OFD packet to send [17:20:43]Write to MH i2c: 01 00 00 0F 37 46 [17:20:43]Write i2c OK [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: 01 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: 01 07 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: 01 07 00 0F 37 00 02 00 00 00 FF 0F 5D [17:20:43]state=3 [17:20:43]Cover opened [17:20:46]OFD Sender: No OFD packet to send [17:20:48]Write to MH i2c: 01 00 00 10 37 47 [17:20:48]Write i2c OK [17:20:48]MH_I2C_Read... [17:20:48]Read from MH i2c: 01 [17:20:48]MH_I2C_Read... [17:20:48]Read from MH i2c: 01 07 00 [17:20:48]MH_I2C_Read... [17:20:48]Read from MH i2c: 01 07 00 10 37 00 02 00 00 00 FF 0F 5E [17:20:48]state=3 [17:20:48]Cover opened [17:20:51]OFD Sender: No OFD packet to send [17:20:53]Write to MH i2c: 01 00 00 11 37 48 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 11 37 00 02 00 00 00 FF 0F 5F [17:20:53]state=3 [17:20:53]Cover opened [17:20:56]OFD Sender: No OFD packet to send [17:20:58]Write to MH i2c: 01 00 00 12 37 49 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 12 37 00 02 00 00 00 FF 0F 60 [17:20:58]state=3 [17:20:58]Cover opened [17:21:01]OFD Sender: No OFD packet to send [17:21:03]Write to MH i2c: 01 00 00 13 37 4A [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 13 37 00 02 00 00 00 FF 0F 61 [17:21:03]state=3 [17:21:03]Cover opened [17:21:06]OFD Sender: No OFD packet to send [17:21:08]Write to MH i2c: 01 00 00 14 37 4B [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: 01 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: 01 07 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: 01 07 00 14 37 00 02 00 00 00 FF 0F 62 [17:21:08]state=3 [17:21:08]Cover opened [17:21:11]OFD Sender: No OFD packet to send [17:21:13]Write to MH i2c: 01 00 00 15 37 4C [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 15 37 00 02 00 00 00 FF 0F 63 [17:21:13]state=3 [17:21:13]Cover opened [17:21:16]OFD Sender: No OFD packet to send [17:21:18]Write to MH i2c: 01 00 00 16 37 4D [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: 01 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: 01 07 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: 01 07 00 16 37 00 02 00 00 00 FF 0F 64 [17:21:18]state=3 [17:21:18]Cover opened [17:21:21]OFD Sender: No OFD packet to send [17:21:23]Write to MH i2c: 01 00 00 17 37 4E [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: 01 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: 01 07 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: 01 07 00 17 37 00 02 00 00 00 FF 0F 65 [17:21:23]state=3 [17:21:23]Cover opened [17:21:26]OFD Sender: No OFD packet to send [17:21:28]Write to MH i2c: 01 00 00 18 37 4F [17:21:28]Write i2c OK [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: 01 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: 01 07 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: 01 07 00 18 37 00 02 00 00 00 FF 0F 66 [17:21:28]state=3 [17:21:28]Cover opened [17:21:31]OFD Sender: No OFD packet to send [17:21:33]Write to MH i2c: 01 00 00 19 37 50 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 07 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 07 00 19 37 00 02 00 00 00 FF 0F 67 [17:21:33]state=3 [17:21:33]Cover opened [17:21:36]OFD Sender: No OFD packet to send [17:21:38]Write to MH i2c: 01 00 00 1A 37 51 [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 07 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 07 00 1A 37 00 02 00 00 00 FF 0F 68 [17:21:38]state=3 [17:21:38]Cover opened [17:21:41]OFD Sender: No OFD packet to send [17:21:43]Write to MH i2c: 01 00 00 1B 37 52 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 1B 37 00 02 00 00 00 FF 0F 69 [17:21:43]state=3 [17:21:43]Cover opened [17:21:46]OFD Sender: No OFD packet to send [17:21:48]Write to MH i2c: 01 00 00 1C 37 53 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 07 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 07 00 1C 37 00 02 00 00 00 FF 0F 6A [17:21:48]state=3 [17:21:48]Cover opened [17:21:51]OFD Sender: No OFD packet to send [17:21:53]Write to MH i2c: 01 00 00 1D 37 54 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 1D 37 00 02 00 00 00 FF 0F 6B [17:21:53]state=3 [17:21:53]Cover opened [17:21:56]OFD Sender: No OFD packet to send [17:21:58]Write to MH i2c: 01 00 00 1E 37 55 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 1E 37 00 02 00 00 00 FF 0F 6C [17:21:58]state=3 [17:21:58]Cover opened [17:22:01]OFD Sender: No OFD packet to send [17:22:03]Write to MH i2c: 01 00 00 1F 37 56 [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 07 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 07 00 1F 37 00 02 00 00 00 FF 0F 6D [17:22:03]state=3 [17:22:03]Cover opened [17:22:06]OFD Sender: No OFD packet to send [17:22:08]Write to MH i2c: 01 00 00 20 37 57 [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: 01 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: 01 07 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: 01 07 00 20 37 00 02 00 00 00 FF 0F 6E [17:22:08]state=3 [17:22:08]Cover opened [17:22:11]OFD Sender: No OFD packet to send [17:22:13]Write to MH i2c: 01 00 00 21 37 58 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: 01 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: 01 07 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: 01 07 00 21 37 00 02 00 00 00 FF 0F 6F [17:22:13]state=3 [17:22:13]Cover opened [17:22:16]int [17:22:16]Write to MH i2c: 01 00 00 22 37 59 [17:22:16]*** FLAG_PRN_KEY set [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 22 37 00 0A 00 00 00 FF 0F 78 [17:22:16]state=3 [17:22:16]Cover opened [17:22:16]Key pressed [17:22:16]Key pressed with opened cover [17:22:16]OFD Sender: No OFD packet to send [17:22:16]int [17:22:16]Write to MH i2c: 01 00 00 23 37 5A [17:22:16]*** FLAG_PRN_KEY reset [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 23 37 00 02 00 00 00 FF 0F 71 [17:22:16]state=4 [17:22:16]Cover opened [17:22:16]Key released [17:22:17]int [17:22:17]Write to MH i2c: 01 00 00 24 37 5B [17:22:17]*** FLAG_PRN_PAP1 set [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 07 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 07 00 24 37 00 03 00 00 00 FF 0F 73 [17:22:17]state=3 [17:22:17]No paper [17:22:17]Cover opened [17:22:21]OFD Sender: No OFD packet to send [17:22:22]Write to MH i2c: 01 00 00 25 37 5C [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 07 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 07 00 25 37 00 03 00 00 00 FF 0F 74 [17:22:22]state=3 [17:22:22]No paper [17:22:22]Cover opened [17:22:26]OFD Sender: No OFD packet to send [17:22:27]Write to MH i2c: 01 00 00 26 37 5D [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 07 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 07 00 26 37 00 03 00 00 00 FF 0F 75 [17:22:27]state=3 [17:22:27]No paper [17:22:27]Cover opened [17:22:29]int [17:22:29]Write to MH i2c: 01 00 00 27 37 5E [17:22:29]*** FLAG_PRN_PAP2 reset [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 27 37 00 01 00 00 00 FF 0F 74 [17:22:29]state=3 [17:22:29]No paper [17:22:29]Cover closed [17:22:30]int [17:22:30]Write to MH i2c: 01 00 00 28 37 5F [17:22:30]*** FLAG_PRN_PAP1 reset [17:22:30]Write i2c OK [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: 01 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: 01 07 00 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: 01 07 00 28 37 00 00 00 00 00 FF 0F 74 [17:22:30]state=0 [17:22:31]OFD Sender: No OFD packet to send [17:22:33]accept exits with 8 [17:22:33]New connection [17:22:33]New thread 3067034980 created [17:22:33]Thread 3067178340 joined [17:22:33]Waiting for new connection... [17:22:33] Sock 8.Parse request [17:22:33]Sock 8.Check first char [17:22:33]Sock 8.First char is OK [17:22:33]request: POST /json_proto HTTP/1.0 [17:22:33]Method: POST [17:22:33]URL: /json_proto [17:22:33]Method is POST - this is cgi request [17:22:33]url: /json_proto [17:22:33]query_string will be loaded in cgi processing [17:22:33]execute_cgi json_proto POST (null) [17:22:33]execute_cgi path=json_proto method=POST [17:22:33]POST find Content-Length [17:22:33]Host: 172.17.53.195:8080 [17:22:33]Content-Length: 215 [17:22:33]Content-Type: application/json [17:22:33] [17:22:33]POST finish read [17:22:33]Found Content-Length = 215 [17:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:33]execute_script... [17:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:33]POST & json_proto [17:22:33]process_json_proto [17:22:33]json parsed OK: [17:22:33]protocol is kg_v1.0 [17:22:33]action value=get_value [17:22:33]process_action get_value [17:22:33]cmd_get_value [17:22:33]process_action get_value done [17:22:33]requested_data is exist [17:22:33]produce_requested_data [17:22:33]requested_item kkm.sn is exist - process it [17:22:33]requested_item kkm.ver is exist - process it [17:22:33]requested_item fm.sn is exist - process it [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 11 00 00 [17:22:33]Write to MH i2c: E2 08 00 29 37 80 11 00 00 00 00 00 00 DA [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 17 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 17 00 29 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [17:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:22:33]wFMCommunicate OK [17:22:33]requested_item fd.num is exist - process it [17:22:33]SAM_PROTO_GetFieldsCounters [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 13 00 00 [17:22:33]Write to MH i2c: E2 08 00 2A 37 80 13 00 00 00 00 00 00 DD [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 62 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 62 00 2A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [17:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:33]wFMCommunicate OK [17:22:33]SAM_PROTO_GetFieldsCounters done [17:22:33]requested_item shift.num is exist - process it [17:22:33]requested_item shift.opened is exist - process it [17:22:33]req_shift_opened [17:22:33]FM_GetShiftState [17:22:33]SAM_PROTO_GetShiftState [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 13 01 00 [17:22:33]Write to MH i2c: E2 08 00 2B 37 80 13 01 00 00 00 00 00 DF [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0E 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0E 00 2B 37 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AA [17:22:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:22:33]wFMCommunicate OK [17:22:33]SAM_PROTO_GetShiftState done [17:22:33]FM_GetShiftState done [17:22:33]req_shift_opened done [17:22:33]requested_item shift.open_date is exist - process it [17:22:33]req_shift_open_date [17:22:33]req_shift_open_date done [17:22:33]produce_requested_data done [17:22:33]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166831,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:22:33]process_action_free get_value [17:22:33]json_value_free [17:22:33]json_value_free done [17:22:33]process_json_proto returns [17:22:33]Send response to host [17:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166831,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:22:33]free response buf [17:22:33]execute_script done [17:22:33]execute_script returns [17:22:33]free content buf [17:22:33]Sock 8.Close socket [17:22:33]Sock 8.Thread stoped [17:22:33]accept exits with 9 [17:22:33]New connection [17:22:33]New thread 3067178340 created [17:22:33]Thread 3067034980 joined [17:22:33]Waiting for new connection... [17:22:33] Sock 9.Parse request [17:22:33]Sock 9.Check first char [17:22:33]Sock 9.First char is OK [17:22:33]request: POST /json_proto HTTP/1.0 [17:22:33]Method: POST [17:22:33]URL: /json_proto [17:22:33]Method is POST - this is cgi request [17:22:33]url: /json_proto [17:22:33]query_string will be loaded in cgi processing [17:22:33]execute_cgi json_proto POST (null) [17:22:33]execute_cgi path=json_proto method=POST [17:22:33]POST find Content-Length [17:22:33]Host: 172.17.53.195:8080 [17:22:33]Content-Length: 331 [17:22:33]Content-Type: application/json [17:22:33] [17:22:33]POST finish read [17:22:33]Found Content-Length = 331 [17:22:33]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:22:33]execute_script... [17:22:33]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:22:33]POST & json_proto [17:22:33]process_json_proto [17:22:33]json parsed OK: [17:22:33]protocol is kg_v1.0 [17:22:33]action value=get_value [17:22:33]process_action get_value [17:22:33]cmd_get_value [17:22:33]process_action get_value done [17:22:33]requested_data is exist [17:22:33]produce_requested_data [17:22:33]requested_item fm.sale.total is exist - process it [17:22:33]SAM_PROTO_GetFMData [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 13 03 00 [17:22:33]Write to MH i2c: E2 08 00 2C 37 80 13 03 00 00 00 00 00 E2 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 2C 37 00 C5 04 85 04 C1 04 6E 04 04 00 7D 87 02 00 69 04 A3 00 6F 04 04 00 7D 86 02 00 B1 04 05 00 C0 08 81 B5 03 70 04 05 00 D4 C1 40 2B 03 72 04 04 00 EC 46 40 8A 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 21 FA DF 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D8 E6 67 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 00 01 00 00 B1 04 04 00 E0 0C B3 0A 70 04 04 00 E0 0C B3 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 E4 22 01 EF 03 09 90 00 07 [17:22:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D 87 02 00 69 04 A3 00 6F 04 04 00 7D 86 02 00 B1 04 05 00 C0 08 81 B5 03 70 04 05 00 D4 C1 40 2B 03 72 04 04 00 EC 46 40 8A 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 21 FA DF 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D8 E6 67 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 00 01 00 00 B1 04 04 00 E0 0C B3 0A 70 04 04 00 E0 0C B3 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 E4 22 01 EF 03 09 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 17 00 00 [17:22:34]Write to MH i2c: E2 08 00 2D 37 80 17 00 00 00 00 00 00 E4 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 2D 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 3D 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A1 [17:22:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 3D 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 17 00 00 [17:22:34]Write to MH i2c: E2 08 00 2E 37 80 17 00 00 00 00 00 00 E5 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 2E 37 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F7 [17:22:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 17 00 00 [17:22:34]Write to MH i2c: E2 08 00 2F 37 80 17 00 00 00 00 00 00 E6 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 FD 00 2F 37 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 72 [17:22:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 17 00 00 [17:22:34]Write to MH i2c: E2 08 00 30 37 80 17 00 00 00 00 00 00 E7 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 E2 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 E2 00 30 37 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [17:22:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:35]wFMCommunicate OK [17:22:35]SAM_PROTO_GetFMData done [17:22:35]requested_item fm.sale_refund.total is exist - process it [17:22:35]requested_item fm.buy.total is exist - process it [17:22:35]requested_item shift.sale.total is exist - process it [17:22:35]SAM_PROTO_GetShiftData [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 13 02 00 [17:22:35]Write to MH i2c: E2 08 00 31 37 80 13 02 00 00 00 00 00 E6 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 FD 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 FD 00 31 37 00 BA 04 AA 04 B6 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F5 00 00 00 B1 04 04 00 32 CE 24 01 70 04 03 00 38 A9 E6 72 04 03 00 FA 24 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E9 1A 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8C 97 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 40 0D 03 70 04 03 00 40 0D 03 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 FA 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 57 [17:22:35]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F5 00 00 00 B1 04 04 00 32 CE 24 01 70 04 03 00 38 A9 E6 72 04 03 00 FA 24 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E9 1A 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8C 97 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 40 0D 03 70 04 03 00 40 0D 03 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 FA 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:22:35]wFMCommunicate OK [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 17 00 00 [17:22:35]Write to MH i2c: E2 08 00 32 37 80 17 00 00 00 00 00 00 E9 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 FD 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 FD 00 32 37 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [17:22:35]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:35]wFMCommunicate OK [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 17 00 00 [17:22:35]Write to MH i2c: E2 08 00 33 37 80 17 00 00 00 00 00 00 EA [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:36]Read from MH i2c: E2 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 FD 00 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 FD 00 33 37 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [17:22:36]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:36]wFMCommunicate OK [17:22:36]wFMCommunicate request_size=4 [17:22:36]MH_SAM_APDU [17:22:36]CAPDU: 80 17 00 00 [17:22:36]Write to MH i2c: E2 08 00 34 37 80 17 00 00 00 00 00 00 EB [17:22:36]Write i2c OK [17:22:36]MH_I2C_Read... [17:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:36]Read from MH i2c: E2 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 FD 00 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 FD 00 34 37 00 00 EF 03 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 90 00 63 [17:22:36]RAPDU: 00 EF 03 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 90 00 [17:22:36]wFMCommunicate OK [17:22:36]wFMCommunicate request_size=4 [17:22:36]MH_SAM_APDU [17:22:36]CAPDU: 80 17 00 00 [17:22:36]Write to MH i2c: E2 08 00 35 37 80 17 00 00 00 00 00 00 EC [17:22:36]Write i2c OK [17:22:36]MH_I2C_Read... [17:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:22:36]Read from MH i2c: E2 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 D7 00 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: E2 D7 00 35 37 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 CF [17:22:36]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 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:22:36]wFMCommunicate OK [17:22:36]SAM_PROTO_GetShiftData done [17:22:36]requested_item shift.sale.total_cash is exist - process it [17:22:36]requested_item shift.sale_refund.total is exist - process it [17:22:36]requested_item shift.sale_refund.total_cash is exist - process it [17:22:36]requested_item shift.buy.total is exist - process it [17:22:36]requested_item shift.buy.total_cash is exist - process it [17:22:36]produce_requested_data done [17:22:36]produce_requested_data return {"fm.sale.total":159300343.68,"fm.sale_refund.total":1795064.00,"fm.buy.total":0.00,"shift.sale.total":191892.98,"shift.sale.total_cash":151166.00,"shift.sale_refund.total":2000.00,"shift.sale_refund.total_cash":2000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:22:36]process_action_free get_value [17:22:36]json_value_free [17:22:36]json_value_free done [17:22:36]process_json_proto returns [17:22:36]Send response to host [17:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159300343.68,"fm.sale_refund.total":1795064.00,"fm.buy.total":0.00,"shift.sale.total":191892.98,"shift.sale.total_cash":151166.00,"shift.sale_refund.total":2000.00,"shift.sale_refund.total_cash":2000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:22:36]free response buf [17:22:36]execute_script done [17:22:36]execute_script returns [17:22:36]free content buf [17:22:36]Sock 9.Close socket [17:22:36]Sock 9.Thread stoped [17:22:36]OFD Sender: No OFD packet to send [17:22:36]accept exits with 8 [17:22:36]New connection [17:22:36]New thread 3067034980 created [17:22:36]Thread 3067178340 joined [17:22:36]Waiting for new connection... [17:22:36] Sock 8.Parse request [17:22:36]Sock 8.Check first char [17:22:36]Sock 8.First char is OK [17:22:36]request: POST /json_proto HTTP/1.0 [17:22:36]Method: POST [17:22:36]URL: /json_proto [17:22:36]Method is POST - this is cgi request [17:22:36]url: /json_proto [17:22:36]query_string will be loaded in cgi processing [17:22:36]execute_cgi json_proto POST (null) [17:22:36]execute_cgi path=json_proto method=POST [17:22:36]POST find Content-Length [17:22:36]Host: 172.17.53.195:8080 [17:22:36]Content-Length: 144 [17:22:36]Content-Type: application/json [17:22:36] [17:22:36]POST finish read [17:22:36]Found Content-Length = 144 [17:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:22:36]execute_script... [17:22:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:22:36]POST & json_proto [17:22:36]process_json_proto [17:22:36]json parsed OK: [17:22:36]protocol is kg_v1.0 [17:22:36]action value=print_doc [17:22:36]process_action print_doc [17:22:36]ExternCall_PrintAddStr [17:22:36]wPrintStart [17:22:36]Write to MH i2c: 01 00 00 36 37 6D [17:22:36]Write i2c OK [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: 01 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: 01 07 00 [17:22:36]MH_I2C_Read... [17:22:36]Read from MH i2c: 01 07 00 36 37 00 00 00 00 00 FF 0F 82 [17:22:36]RasterBufferAndPrint [17:22:36]line Счет N : (1)221416 [17:22:36]line ИНН: 02508201610067 [17:22:36]line Контрольно-Кассовый Чек [17:22:36]line ПРОДАЖА [17:22:36]line ТРК (МРК, ГНК) : 43 [17:22:36]line Товар: 2710124130 [17:22:36]line Аи-92-К-5 [17:22:36]line 11.950 * 66.90 [17:22:36]line = 799.46 [17:22:36]line НДС 12% НСП 1% [17:22:36]line > о реализуемом товаре [17:22:36]line ОКРУГЛЕНИЕ: -0.46 [17:22:36]line ИТОГО: 799.00 [17:22:36]line Внесено: 800.00 [17:22:36]line СДАЧА: 1.00 [17:22:36]line НСП 1% : 7.07 [17:22:36]line НДС 12% : 84.90 [17:22:36]line Наличными: 799.00 [17:22:36]line Безнал.: 0.00 [17:22:36]line Место: АЗС № 161 "Партнер Нефть" [17:22:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:22:36]line СНО: Общий режим [17:22:36]line Чек 246 23.10.2024 17:19 [17:22:36]line Смена: 537 ФФД: 1.0 [17:22:36]line ЗНМ: 0300000104 [17:22:36]line РНМ: 0000000000091764 [17:22:36]line Версия ККМ: 001 [17:22:36]line ФМ: 0000000000871759 [17:22:36]line ФД: 166831 [17:22:36]line ФПД: 236595380936057 [17:22:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171920&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166831&fm=236595380936057&tin=02508201610067®Number=0000000000091764&sum=79900 [17:22:36]written 0, free lines is 4095 [17:22:37]Write to MH i2c: 01 00 00 61 37 98 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: 01 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: 01 07 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 BF 0C 6A [17:22:37]RasterBufferAndPrint [17:22:37]line [17:22:37]line [17:22:37]line [17:22:37]line [17:22:37]line [17:22:37]written 0, free lines is 3275 [17:22:37]MH_Cut [17:22:37]Write to MH i2c: D1 01 00 68 37 01 71 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: D1 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: D1 01 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: D1 01 00 68 37 00 70 [17:22:37]Write to MH i2c: 01 00 00 69 37 A0 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:38]*** Cut start [17:22:38]*** Partial cut [17:22:38]*** CUTSNS_PIN = 1 [17:22:38]*** CUTSNS_PIN = 0 [17:22:38]*** Brake cut motor [17:22:38]Read from MH i2c: 01 [17:22:38]MH_I2C_Read... [17:22:38]*** Stop cut motor [17:22:38]*** Cut end [17:22:38]Read from MH i2c: 01 07 00 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: 01 07 00 69 37 00 00 00 00 00 FF 0F B5 [17:22:38]process_action print_doc done [17:22:38]requested_data is exist [17:22:38]produce_requested_data [17:22:38]produce_requested_data return (null) [17:22:38]process_action_free print_doc [17:22:38]json_value_free [17:22:38]json_value_free done [17:22:38]process_json_proto returns [17:22:38]Send response to host [17:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:22:38]free response buf [17:22:38]execute_script done [17:22:38]execute_script returns [17:22:38]free content buf [17:22:38]Sock 8.Close socket [17:22:38]Sock 8.Thread stoped [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]accept exits with 9 [17:23:06]New connection [17:23:06]New thread 3067178340 created [17:23:06]Thread 3067034980 joined [17:23:06]Waiting for new connection... [17:23:06] Sock 9.Parse request [17:23:06]Sock 9.Check first char [17:23:06]Sock 9.First char is OK [17:23:06]request: POST /json_proto HTTP/1.0 [17:23:06]Method: POST [17:23:06]URL: /json_proto [17:23:06]Method is POST - this is cgi request [17:23:06]url: /json_proto [17:23:06]query_string will be loaded in cgi processing [17:23:06]execute_cgi json_proto POST (null) [17:23:06]execute_cgi path=json_proto method=POST [17:23:06]POST find Content-Length [17:23:06]Host: 172.17.53.195:8080 [17:23:06]Content-Length: 677 [17:23:06]Content-Type: application/json [17:23:06] [17:23:06]POST finish read [17:23:06]Found Content-Length = 677 [17:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:06]execute_script... [17:23: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)221417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:06]POST & json_proto [17:23:06]process_json_proto [17:23:06]json parsed OK: [17:23:06]protocol is kg_v1.0 [17:23:06]action value=close_receipt [17:23:06]process_action close_receipt [17:23:06]cmd_close_receipt [17:23:06]MH_GetDate [17:23:06]Write to MH i2c: F0 00 00 6A 37 90 [17:23:06]Write i2c OK [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: F0 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: F0 09 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: F0 09 00 6A 37 00 FC 30 19 67 21 48 4A 65 5D [17:23:06]GetLastDocTimeStamp 1729703960 [17:23:06]current date 1729704188 [17:23:06]FM_GetShiftState [17:23:06]SAM_PROTO_GetShiftState [17:23:06]wFMCommunicate request_size=4 [17:23:06]MH_SAM_APDU [17:23:06]CAPDU: 80 13 01 00 [17:23:06]Write to MH i2c: E2 08 00 6B 37 80 13 01 00 00 00 00 00 1F [17:23:06]Write i2c OK [17:23:06]MH_I2C_Read... [17:23:06]OFD Sender: No OFD packet to send [17:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:06]Read from MH i2c: E2 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 0E 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 0E 00 6B 37 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EA [17:23:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:23:06]wFMCommunicate OK [17:23:06]SAM_PROTO_GetShiftState done [17:23:06]FM_GetShiftState done [17:23:06]opened in 1729643772 [17:23:06]opened+sec_in_day 1729730172 [17:23:06]quantity*price = 20003 [17:23:06]sum+1 = 20004 [17:23:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 247 23.10.2024 17:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166832 ФПД: 187848512934141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166832&fm=187848512934141&tin=02508201610067®Number=0000000000091764&sum=20000 [17:23:07]StoreToDocumentArchive [17:23:07]shift 537 fd 166832 [17:23:07]save to /storage/0537/doc_00166832 [17:23:07]save last doc name /storage/0537/doc_00166832 to /storage/kkm_last_doc_name [17:23:07]save OK [17:23:07]Clear old archive folders... [17:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:07]tlvbuf is 0201B0C0 [17:23:07]SAM_PROTO_ClearQueue [17:23:07]wFMCommunicate request_size=4 [17:23:07]MH_SAM_APDU [17:23:07]CAPDU: 80 09 00 00 [17:23:07]Write to MH i2c: E2 08 00 78 37 80 09 00 00 00 00 00 00 21 [17:23:07]Write i2c OK [17:23:07]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 78 37 00 90 00 23 [17:23:08]RAPDU: 90 00 [17:23:08]wFMCommunicate OK [17:23:08]SAM_PROTO_ClearQueue done [17:23:08]KKMCreateOFDPacket [17:23:08]OFDProtocolAddRootSTLVToBuf [17:23:08]FM_MakeSignedData [17:23:08]FM_MakeSignedData [17:23:08]SAM_PROTO_SignData [17:23:08]wFMCommunicate request_size=4 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 0D 01 02 [17:23:08]Write to MH i2c: E2 08 00 79 37 80 0D 01 02 00 00 00 00 29 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 79 37 00 90 00 24 [17:23:08]RAPDU: 90 00 [17:23:08]wFMCommunicate OK [17:23:08]wFMCommunicate request_size=255 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FC 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8B 02 00 35 04 06 00 AA [17:23:08]Write to MH i2c: E2 02 01 7A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FC 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8B 02 00 35 04 06 00 AA 00 00 26 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 7A 37 00 90 00 25 [17:23:08]RAPDU: 90 00 [17:23:08]wFMCommunicate OK [17:23:08]wFMCommunicate request_size=10 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 0D 02 02 05 D8 E3 E2 90 FD [17:23:08]Write to MH i2c: E2 0D 00 7B 37 80 0D 02 02 05 00 D8 E3 E2 90 FD 00 00 60 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 03 00 7B 37 00 90 00 26 [17:23:08]RAPDU: 90 00 [17:23:08]wFMCommunicate OK [17:23:08]wFMCommunicate request_size=4 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 0D 03 02 [17:23:08]Write to MH i2c: E2 08 00 7C 37 80 0D 03 02 00 00 00 00 2E [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 0B 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 0B 00 7C 37 00 02 EC CA 3C AE 51 15 BC 90 00 F3 [17:23:08]RAPDU: 02 EC CA 3C AE 51 15 BC 90 00 [17:23:08]wFMCommunicate OK [17:23:08]SAM_PROTO_SignData done [17:23:08]FM_MakeSignedData done [17:23:08]CreateOFDProtocolMessage [17:23:08]wFMCommunicate request_size=4 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 11 00 00 [17:23:08]Write to MH i2c: E2 08 00 7D 37 80 11 00 00 00 00 00 00 2E [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 17 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 17 00 7D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [17:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:08]wFMCommunicate OK [17:23:08]CreateOFDProtocolMessage done [17:23:08]OFDSenderStorePacket 166832 [17:23:08]StoreOFDPacket docnum=166832 [17:23:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2E F0 07 01 13 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FC 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8B 02 00 35 04 06 00 AA D8 E3 E2 90 FD 02 EC CA 3C AE 51 15 BC [17:23:08]CheckFolder [17:23:08]dirname=/storage/ofd_packets [17:23:08]CheckFolder done [17:23:08]ProducePacketName [17:23:08]name=ofd_packets/00166832 [17:23:08]NVStorageSaveData ofd_packets/00166832 [17:23:08]File name is /storage/ofd_packets/00166832 [17:23:08]Write 301 bytes [17:23:08]NVStorageSaveData done [17:23:08]OFDSenderStorePacket done [17:23:08]KKMCreateOFDPacket done [17:23:08]NVStorageSaveData kkm_last_timestamp [17:23:08]File name is /storage/kkm_last_timestamp [17:23:08]Write 4 bytes [17:23:08]NVStorageSaveData done [17:23:08]ExternCall_PrintAddStr [17:23:08]wPrintStart [17:23:08]Write to MH i2c: 01 00 00 7E 37 B5 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: 01 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: 01 07 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: 01 07 00 7E 37 00 00 00 00 00 FF 0F CA [17:23:08]RasterBufferAndPrint [17:23:08]line Счет N : (1)221417 [17:23:08]line ИНН: 02508201610067 [17:23:08]line Контрольно-Кассовый Чек [17:23:08]line ПРОДАЖА [17:23:08]line ТРК (МРК, ГНК) : 33 [17:23:08]line Товар: 2710124130 [17:23:08]line Аи-92-К-5 [17:23:08]line 2.990 * 66.90 [17:23:08]line = 200.03 [17:23:08]line НДС 12% НСП 1% [17:23:08]line > о реализуемом товаре [17:23:08]line ОКРУГЛЕНИЕ: -0.03 [17:23:08]line ИТОГО: 200.00 [17:23:08]line Внесено: 200.00 [17:23:08]line СДАЧА: 0.00 [17:23:08]line НСП 1% : 1.77 [17:23:08]line НДС 12% : 21.24 [17:23:08]line Наличными: 200.00 [17:23:08]line Безнал.: 0.00 [17:23:08]line Место: АЗС № 161 "Партнер Нефть" [17:23:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:23:08]line СНО: Общий режим [17:23:08]line Чек 247 23.10.2024 17:23 [17:23:08]line Смена: 537 ФФД: 1.0 [17:23:08]line ЗНМ: 0300000104 [17:23:08]line РНМ: 0000000000091764 [17:23:08]line Версия ККМ: 001 [17:23:08]line ФМ: 0000000000871759 [17:23:08]line ФД: 166832 [17:23:08]line ФПД: 187848512934141 [17:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166832&fm=187848512934141&tin=02508201610067®Number=0000000000091764&sum=20000 [17:23:08]OFD Sender: Processing packet 166832 [packets to send 48, broken 47] [17:23:08]ProducePacketName [17:23:08]name=ofd_packets/00166832 [17:23:08]OFD Sender: To server: pG, [17:23:08]CommunicateWithHost lk.salyk.kg:30040 [17:23:08]ConnectInit lk.salyk.kg [17:23:08]written 0, free lines is 4095 [17:23:08]Connected sock=10 [17:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2E F0 07 01 13 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FC 30 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8B 02 00 35 04 06 00 AA D8 E3 E2 90 FD 02 EC CA 3C AE 51 15 BC [17:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 09 EB 47 00 34 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8B 02 00 F4 03 04 00 63 D7 18 67 B6 04 01 00 00 82 4D D9 0B 29 70 1C 7B [17:23:09]CommunicateWithHost err = 0 [17:23:09]CheckOFDResponse [17:23:09]1017 (14) - 77093643461234 [17:23:09]1041 (16) - 0000000000871759 [17:23:09]1040 (4) - 166832 [17:23:09]1012 (4) - 23.10.2024 11:00 [17:23:09]1206 (1) - 0 [17:23:09]OFD Sender: Remove packet 166832 [17:23:09]ProducePacketName [17:23:09]name=ofd_packets/00166832 [17:23:09]NVStorageDeleteData [17:23:09]Write to MH i2c: 01 00 00 A9 37 E0 [17:23:09]Write i2c OK [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: 01 [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: 01 07 00 [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: 01 07 00 A9 37 00 00 00 00 00 B0 0C A3 [17:23:09]RasterBufferAndPrint [17:23:09]line [17:23:09]line [17:23:09]line [17:23:09]line [17:23:09]line [17:23:09]written 0, free lines is 3256 [17:23:09]MH_Cut [17:23:09]Write to MH i2c: D1 01 00 B0 37 01 B9 [17:23:09]Write i2c OK [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: D1 [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: D1 01 00 [17:23:09]MH_I2C_Read... [17:23:09]Read from MH i2c: D1 01 00 B0 37 00 B8 [17:23:09]Write to MH i2c: 01 00 00 B1 37 E8 [17:23:09]Write i2c OK [17:23:09]MH_I2C_Read... [17:23:09]OFD Sender: No OFD packet to send [17:23:10]*** Cut start [17:23:10]*** Partial cut [17:23:10]*** CUTSNS_PIN = 1 [17:23:10]*** CUTSNS_PIN = 0 [17:23:10]*** Brake cut motor [17:23:10]Read from MH i2c: 01 [17:23:10]MH_I2C_Read... [17:23:10]*** Stop cut motor [17:23:10]*** Cut end [17:23:10]Read from MH i2c: 01 07 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: 01 07 00 B1 37 00 00 00 00 00 FF 0F FD [17:23:10]process_action close_receipt done [17:23:10]requested_data is exist [17:23:10]produce_requested_data [17:23:10]requested_item fm.sn is exist - process it [17:23:10]wFMCommunicate request_size=4 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 11 00 00 [17:23:10]Write to MH i2c: E2 08 00 B2 37 80 11 00 00 00 00 00 00 63 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 17 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 17 00 B2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [17:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:10]wFMCommunicate OK [17:23:10]requested_item fd.num is exist - process it [17:23:10]SAM_PROTO_GetFieldsCounters [17:23:10]wFMCommunicate request_size=4 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 13 00 00 [17:23:10]Write to MH i2c: E2 08 00 B3 37 80 13 00 00 00 00 00 00 66 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:11]Read from MH i2c: E2 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: E2 62 00 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: E2 62 00 B3 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:11]wFMCommunicate OK [17:23:11]SAM_PROTO_GetFieldsCounters done [17:23:11]requested_item shift.num is exist - process it [17:23:11]requested_item shift.opened is exist - process it [17:23:11]req_shift_opened [17:23:11]FM_GetShiftState [17:23:11]SAM_PROTO_GetShiftState [17:23:11]wFMCommunicate request_size=4 [17:23:11]MH_SAM_APDU [17:23:11]CAPDU: 80 13 01 00 [17:23:11]Write to MH i2c: E2 08 00 B4 37 80 13 01 00 00 00 00 00 68 [17:23:11]Write i2c OK [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: E2 [17:23:11]MH_I2C_Read... [17:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:11]Read from MH i2c: E2 0E 00 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: E2 0E 00 B4 37 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 33 [17:23:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:23:11]wFMCommunicate OK [17:23:11]SAM_PROTO_GetShiftState done [17:23:11]FM_GetShiftState done [17:23:11]req_shift_opened done [17:23:11]requested_item shift.open_date is exist - process it [17:23:11]req_shift_open_date [17:23:11]req_shift_open_date done [17:23:11]produce_requested_data done [17:23:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166832,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:23:11]process_action_free close_receipt [17:23:11]json_value_free [17:23:11]json_value_free done [17:23:11]process_json_proto returns [17:23:11]Send response to host [17:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166832,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:23:11]free response buf [17:23:11]execute_script done [17:23:11]execute_script returns [17:23:11]free content buf [17:23:11]Sock 9.Close socket [17:23:11]Sock 9.Thread stoped [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:05]accept exits with 8 [17:25:05]New connection [17:25:05]New thread 3067034980 created [17:25:05]Thread 3067178340 joined [17:25:05]Waiting for new connection... [17:25:05] Sock 8.Parse request [17:25:05]Sock 8.Check first char [17:25:05]Sock 8.First char is OK [17:25:05]request: POST /json_proto HTTP/1.0 [17:25:05]Method: POST [17:25:05]URL: /json_proto [17:25:05]Method is POST - this is cgi request [17:25:05]url: /json_proto [17:25:05]query_string will be loaded in cgi processing [17:25:05]execute_cgi json_proto POST (null) [17:25:05]execute_cgi path=json_proto method=POST [17:25:05]POST find Content-Length [17:25:05]Host: 172.17.53.195:8080 [17:25:05]Content-Length: 682 [17:25:05]Content-Type: application/json [17:25:05] [17:25:05]POST finish read [17:25:05]Found Content-Length = 682 [17:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:05]execute_script... [17:25: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)221418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:05]POST & json_proto [17:25:05]process_json_proto [17:25:05]json parsed OK: [17:25:05]protocol is kg_v1.0 [17:25:05]action value=close_receipt [17:25:05]process_action close_receipt [17:25:05]cmd_close_receipt [17:25:05]MH_GetDate [17:25:05]Write to MH i2c: F0 00 00 B5 37 DB [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: F0 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: F0 09 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: F0 09 00 B5 37 00 73 31 19 67 21 48 4A 65 20 [17:25:05]GetLastDocTimeStamp 1729704188 [17:25:05]current date 1729704307 [17:25:05]FM_GetShiftState [17:25:05]SAM_PROTO_GetShiftState [17:25:05]wFMCommunicate request_size=4 [17:25:05]MH_SAM_APDU [17:25:05]CAPDU: 80 13 01 00 [17:25:05]Write to MH i2c: E2 08 00 B6 37 80 13 01 00 00 00 00 00 6A [17:25:05]Write i2c OK [17:25:05]MH_I2C_Read... [17:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:05]Read from MH i2c: E2 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 0E 00 [17:25:05]MH_I2C_Read... [17:25:05]Read from MH i2c: E2 0E 00 B6 37 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 35 [17:25:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:25:05]wFMCommunicate OK [17:25:05]SAM_PROTO_GetShiftState done [17:25:05]FM_GetShiftState done [17:25:05]opened in 1729643772 [17:25:05]opened+sec_in_day 1729730172 [17:25:05]quantity*price = 120055 [17:25:05]sum+1 = 120057 [17:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 248 23.10.2024 17:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166833 ФПД: 34742221620941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166833&fm=34742221620941&tin=02508201610067®Number=0000000000091764&sum=120000 [17:25:06]StoreToDocumentArchive [17:25:06]shift 537 fd 166833 [17:25:06]save to /storage/0537/doc_00166833 [17:25:06]save last doc name /storage/0537/doc_00166833 to /storage/kkm_last_doc_name [17:25:06]save OK [17:25:06]Clear old archive folders... [17:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:06]tlvbuf is 01FE8680 [17:25:06]SAM_PROTO_ClearQueue [17:25:06]wFMCommunicate request_size=4 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 09 00 00 [17:25:06]Write to MH i2c: E2 08 00 C3 37 80 09 00 00 00 00 00 00 6C [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 C3 37 00 90 00 6E [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]SAM_PROTO_ClearQueue done [17:25:06]KKMCreateOFDPacket [17:25:06]OFDProtocolAddRootSTLVToBuf [17:25:06]FM_MakeSignedData [17:25:06]FM_MakeSignedData [17:25:06]SAM_PROTO_SignData [17:25:06]wFMCommunicate request_size=4 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 01 02 [17:25:06]Write to MH i2c: E2 08 00 C4 37 80 0D 01 02 00 00 00 00 74 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 C4 37 00 90 00 6F [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]wFMCommunicate request_size=255 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 73 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8B 02 00 35 04 06 00 1F [17:25:06]Write to MH i2c: E2 02 01 C5 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 73 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8B 02 00 35 04 06 00 1F 00 00 C7 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 C5 37 00 90 00 70 [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]wFMCommunicate request_size=10 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 02 02 05 99 0D C7 46 CD [17:25:06]Write to MH i2c: E2 0D 00 C6 37 80 0D 02 02 05 00 99 0D C7 46 CD 00 00 01 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 03 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 03 00 C6 37 00 90 00 71 [17:25:07]RAPDU: 90 00 [17:25:07]wFMCommunicate OK [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 0D 03 02 [17:25:07]Write to MH i2c: E2 08 00 C7 37 80 0D 03 02 00 00 00 00 79 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 0B 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 0B 00 C7 37 00 44 18 7B 37 D6 A1 C4 C3 90 00 86 [17:25:07]RAPDU: 44 18 7B 37 D6 A1 C4 C3 90 00 [17:25:07]wFMCommunicate OK [17:25:07]SAM_PROTO_SignData done [17:25:07]FM_MakeSignedData done [17:25:07]CreateOFDProtocolMessage [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 11 00 00 [17:25:07]Write to MH i2c: E2 08 00 C8 37 80 11 00 00 00 00 00 00 79 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 17 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 17 00 C8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [17:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:07]wFMCommunicate OK [17:25:07]CreateOFDProtocolMessage done [17:25:07]OFDSenderStorePacket 166833 [17:25:07]StoreOFDPacket docnum=166833 [17:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 62 D9 07 01 6A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 73 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8B 02 00 35 04 06 00 1F 99 0D C7 46 CD 44 18 7B 37 D6 A1 C4 C3 [17:25:07]CheckFolder [17:25:07]dirname=/storage/ofd_packets [17:25:07]CheckFolder done [17:25:07]ProducePacketName [17:25:07]name=ofd_packets/00166833 [17:25:07]NVStorageSaveData ofd_packets/00166833 [17:25:07]File name is /storage/ofd_packets/00166833 [17:25:07]Write 301 bytes [17:25:07]NVStorageSaveData done [17:25:07]OFDSenderStorePacket done [17:25:07]KKMCreateOFDPacket done [17:25:07]NVStorageSaveData kkm_last_timestamp [17:25:07]File name is /storage/kkm_last_timestamp [17:25:07]Write 4 bytes [17:25:07]NVStorageSaveData done [17:25:07]ExternCall_PrintAddStr [17:25:07]wPrintStart [17:25:07]Write to MH i2c: 01 00 00 C9 37 00 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 C9 37 00 00 00 00 00 FF 0F 15 [17:25:07]RasterBufferAndPrint [17:25:07]line Счет N : (1)221418 [17:25:07]line ИНН: 02508201610067 [17:25:07]line Контрольно-Кассовый Чек [17:25:07]line ПРОДАЖА [17:25:07]line ТРК (МРК, ГНК) : 14 [17:25:07]line Товар: 2710124500 [17:25:07]line Аи-95-К-5 [17:25:07]line 16.180 * 74.20 [17:25:07]line = 1200.56 [17:25:07]line НДС 12% НСП 1% [17:25:07]line > о реализуемом товаре [17:25:07]line ОКРУГЛЕНИЕ: -0.56 [17:25:07]line ИТОГО: 1200.00 [17:25:07]line Внесено: 1200.00 [17:25:07]line СДАЧА: 0.00 [17:25:07]line НСП 1% : 10.62 [17:25:07]line НДС 12% : 127.49 [17:25:07]line Наличными: 1200.00 [17:25:07]line Безнал.: 0.00 [17:25:07]line Место: АЗС № 161 "Партнер Нефть" [17:25:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:25:07]line СНО: Общий режим [17:25:07]line Чек 248 23.10.2024 17:25 [17:25:07]line Смена: 537 ФФД: 1.0 [17:25:07]line ЗНМ: 0300000104 [17:25:07]line РНМ: 0000000000091764 [17:25:07]line Версия ККМ: 001 [17:25:07]line ФМ: 0000000000871759 [17:25:07]line ФД: 166833 [17:25:07]line ФПД: 34742221620941 [17:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166833&fm=34742221620941&tin=02508201610067®Number=0000000000091764&sum=120000 [17:25:07]OFD Sender: Processing packet 166833 [packets to send 48, broken 47] [17:25:07]ProducePacketName [17:25:07]name=ofd_packets/00166833 [17:25:07]OFD Sender: To server: pG, [17:25:07]CommunicateWithHost lk.salyk.kg:30040 [17:25:07]ConnectInit lk.salyk.kg [17:25:07]written 0, free lines is 4095 [17:25:07]Connected sock=10 [17:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 62 D9 07 01 6A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 73 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8B 02 00 35 04 06 00 1F 99 0D C7 46 CD 44 18 7B 37 D6 A1 C4 C3 [17:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A9 48 47 00 0B BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8B 02 00 F4 03 04 00 DA D7 18 67 B6 04 01 00 00 43 69 96 E7 D8 02 27 35 [17:25:07]CommunicateWithHost err = 0 [17:25:07]CheckOFDResponse [17:25:07]1017 (14) - 77093643461234 [17:25:07]1041 (16) - 0000000000871759 [17:25:07]1040 (4) - 166833 [17:25:07]1012 (4) - 23.10.2024 11:02 [17:25:07]1206 (1) - 0 [17:25:07]OFD Sender: Remove packet 166833 [17:25:07]ProducePacketName [17:25:07]name=ofd_packets/00166833 [17:25:07]NVStorageDeleteData [17:25:07]Write to MH i2c: 01 00 00 F4 37 2B [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 F4 37 00 00 00 00 00 B6 0C F4 [17:25:07]RasterBufferAndPrint [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]written 0, free lines is 3260 [17:25:07]MH_Cut [17:25:07]Write to MH i2c: D1 01 00 FB 37 01 04 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 01 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 01 00 FB 37 00 03 [17:25:07]Write to MH i2c: 01 00 00 FC 37 33 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:08]OFD Sender: No OFD packet to send [17:25:08]*** Cut start [17:25:08]*** Partial cut [17:25:08]*** CUTSNS_PIN = 1 [17:25:08]*** CUTSNS_PIN = 0 [17:25:09]*** Brake cut motor [17:25:09]Read from MH i2c: 01 [17:25:09]MH_I2C_Read... [17:25:09]*** Stop cut motor [17:25:09]*** Cut end [17:25:09]Read from MH i2c: 01 07 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [17:25:09]process_action close_receipt done [17:25:09]requested_data is exist [17:25:09]produce_requested_data [17:25:09]requested_item fm.sn is exist - process it [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 11 00 00 [17:25:09]Write to MH i2c: E2 08 00 FD 37 80 11 00 00 00 00 00 00 AE [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 17 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 17 00 FD 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [17:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:09]wFMCommunicate OK [17:25:09]requested_item fd.num is exist - process it [17:25:09]SAM_PROTO_GetFieldsCounters [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 13 00 00 [17:25:09]Write to MH i2c: E2 08 00 FE 37 80 13 00 00 00 00 00 00 B1 [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 62 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 62 00 FE 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [17:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:09]wFMCommunicate OK [17:25:09]SAM_PROTO_GetFieldsCounters done [17:25:09]requested_item shift.num is exist - process it [17:25:09]requested_item shift.opened is exist - process it [17:25:09]req_shift_opened [17:25:09]FM_GetShiftState [17:25:09]SAM_PROTO_GetShiftState [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 13 01 00 [17:25:09]Write to MH i2c: E2 08 00 FF 37 80 13 01 00 00 00 00 00 B3 [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 0E 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 0E 00 FF 37 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [17:25:09]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:25:09]wFMCommunicate OK [17:25:09]SAM_PROTO_GetShiftState done [17:25:09]FM_GetShiftState done [17:25:09]req_shift_opened done [17:25:09]requested_item shift.open_date is exist - process it [17:25:09]req_shift_open_date [17:25:09]req_shift_open_date done [17:25:09]produce_requested_data done [17:25:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166833,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:25:09]process_action_free close_receipt [17:25:09]json_value_free [17:25:09]json_value_free done [17:25:09]process_json_proto returns [17:25:09]Send response to host [17:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166833,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:25:09]free response buf [17:25:09]execute_script done [17:25:09]execute_script returns [17:25:09]free content buf [17:25:09]Sock 8.Close socket [17:25:09]Sock 8.Thread stoped [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:52]accept exits with 9 [17:25:52]New connection [17:25:52]New thread 3067178340 created [17:25:52]Thread 3067034980 joined [17:25:52]Waiting for new connection... [17:25:52] Sock 9.Parse request [17:25:52]Sock 9.Check first char [17:25:52]Sock 9.First char is OK [17:25:52]request: POST /json_proto HTTP/1.0 [17:25:52]Method: POST [17:25:52]URL: /json_proto [17:25:52]Method is POST - this is cgi request [17:25:52]url: /json_proto [17:25:52]query_string will be loaded in cgi processing [17:25:52]execute_cgi json_proto POST (null) [17:25:52]execute_cgi path=json_proto method=POST [17:25:52]POST find Content-Length [17:25:52]Host: 172.17.53.195:8080 [17:25:52]Content-Length: 677 [17:25:52]Content-Type: application/json [17:25:52] [17:25:52]POST finish read [17:25:52]Found Content-Length = 677 [17:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:52]execute_script... [17:25: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)221419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:52]POST & json_proto [17:25:52]process_json_proto [17:25:52]json parsed OK: [17:25:52]protocol is kg_v1.0 [17:25:52]action value=close_receipt [17:25:52]process_action close_receipt [17:25:52]cmd_close_receipt [17:25:52]MH_GetDate [17:25:52]Write to MH i2c: F0 00 00 00 38 27 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: F0 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: F0 09 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: F0 09 00 00 38 00 A2 31 19 67 21 48 4A 65 9B [17:25:52]GetLastDocTimeStamp 1729704307 [17:25:52]current date 1729704354 [17:25:52]FM_GetShiftState [17:25:52]SAM_PROTO_GetShiftState [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 13 01 00 [17:25:52]Write to MH i2c: E2 08 00 01 38 80 13 01 00 00 00 00 00 B6 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 01 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 81 [17:25:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetShiftState done [17:25:52]FM_GetShiftState done [17:25:52]opened in 1729643772 [17:25:52]opened+sec_in_day 1729730172 [17:25:52]quantity*price = 50041 [17:25:52]sum+1 = 50042 [17:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 249 23.10.2024 17:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166834 ФПД: 150379261134946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166834&fm=150379261134946&tin=02508201610067®Number=0000000000091764&sum=50000 [17:25:53]StoreToDocumentArchive [17:25:53]shift 537 fd 166834 [17:25:53]save to /storage/0537/doc_00166834 [17:25:53]save last doc name /storage/0537/doc_00166834 to /storage/kkm_last_doc_name [17:25:53]save OK [17:25:53]Clear old archive folders... [17:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:53]tlvbuf is 01FE0E50 [17:25:53]SAM_PROTO_ClearQueue [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 09 00 00 [17:25:53]Write to MH i2c: E2 08 00 0E 38 80 09 00 00 00 00 00 00 B8 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 0E 38 00 90 00 BA [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]SAM_PROTO_ClearQueue done [17:25:53]KKMCreateOFDPacket [17:25:53]OFDProtocolAddRootSTLVToBuf [17:25:53]FM_MakeSignedData [17:25:53]FM_MakeSignedData [17:25:53]SAM_PROTO_SignData [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 0D 01 02 [17:25:53]Write to MH i2c: E2 08 00 0F 38 80 0D 01 02 00 00 00 00 C0 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 0F 38 00 90 00 BB [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]wFMCommunicate request_size=255 [17:25:53]MH_SAM_APDU [17:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A2 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8B 02 00 35 04 06 00 88 [17:25:53]Write to MH i2c: E2 02 01 10 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A2 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8B 02 00 35 04 06 00 88 00 00 84 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 03 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 03 00 10 38 00 90 00 BC [17:25:54]RAPDU: 90 00 [17:25:54]wFMCommunicate OK [17:25:54]wFMCommunicate request_size=10 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 0D 02 02 05 C4 E6 71 08 62 [17:25:54]Write to MH i2c: E2 0D 00 11 38 80 0D 02 02 05 00 C4 E6 71 08 62 00 00 52 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 03 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [17:25:54]RAPDU: 90 00 [17:25:54]wFMCommunicate OK [17:25:54]wFMCommunicate request_size=4 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 0D 03 02 [17:25:54]Write to MH i2c: E2 08 00 12 38 80 0D 03 02 00 00 00 00 C5 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 0B 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 0B 00 12 38 00 42 26 F0 0E 92 DB 26 E9 90 00 A8 [17:25:54]RAPDU: 42 26 F0 0E 92 DB 26 E9 90 00 [17:25:54]wFMCommunicate OK [17:25:54]SAM_PROTO_SignData done [17:25:54]FM_MakeSignedData done [17:25:54]CreateOFDProtocolMessage [17:25:54]wFMCommunicate request_size=4 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 11 00 00 [17:25:54]Write to MH i2c: E2 08 00 13 38 80 11 00 00 00 00 00 00 C5 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 17 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 17 00 13 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [17:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:54]wFMCommunicate OK [17:25:54]CreateOFDProtocolMessage done [17:25:54]OFDSenderStorePacket 166834 [17:25:54]StoreOFDPacket docnum=166834 [17:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC E2 07 01 1D 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A2 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8B 02 00 35 04 06 00 88 C4 E6 71 08 62 42 26 F0 0E 92 DB 26 E9 [17:25:54]CheckFolder [17:25:54]dirname=/storage/ofd_packets [17:25:54]CheckFolder done [17:25:54]ProducePacketName [17:25:54]name=ofd_packets/00166834 [17:25:54]NVStorageSaveData ofd_packets/00166834 [17:25:54]File name is /storage/ofd_packets/00166834 [17:25:54]Write 301 bytes [17:25:54]NVStorageSaveData done [17:25:54]OFDSenderStorePacket done [17:25:54]KKMCreateOFDPacket done [17:25:54]NVStorageSaveData kkm_last_timestamp [17:25:54]File name is /storage/kkm_last_timestamp [17:25:54]Write 4 bytes [17:25:54]NVStorageSaveData done [17:25:54]ExternCall_PrintAddStr [17:25:54]wPrintStart [17:25:54]Write to MH i2c: 01 00 00 14 38 4C [17:25:54]OFD Sender: Processing packet 166834 [packets to send 48, broken 47] [17:25:54]ProducePacketName [17:25:54]name=ofd_packets/00166834 [17:25:54]OFD Sender: To server: pG, [17:25:54]CommunicateWithHost lk.salyk.kg:30040 [17:25:54]ConnectInit lk.salyk.kg [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 07 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 FF 0F 61 [17:25:54]RasterBufferAndPrint [17:25:54]line Счет N : (1)221419 [17:25:54]line ИНН: 02508201610067 [17:25:54]line Контрольно-Кассовый Чек [17:25:54]line ПРОДАЖА [17:25:54]line ТРК (МРК, ГНК) : 33 [17:25:54]line Товар: 2710124130 [17:25:54]line Аи-92-К-5 [17:25:54]line 7.480 * 66.90 [17:25:54]line = 500.41 [17:25:54]line НДС 12% НСП 1% [17:25:54]line > о реализуемом товаре [17:25:54]line ОКРУГЛЕНИЕ: -0.41 [17:25:54]line ИТОГО: 500.00 [17:25:54]line Внесено: 500.00 [17:25:54]line СДАЧА: 0.00 [17:25:54]line НСП 1% : 4.43 [17:25:54]line НДС 12% : 53.14 [17:25:54]line Наличными: 500.00 [17:25:54]line Безнал.: 0.00 [17:25:54]line Место: АЗС № 161 "Партнер Нефть" [17:25:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:25:54]line СНО: Общий режим [17:25:54]line Чек 249 23.10.2024 17:25 [17:25:54]line Смена: 537 ФФД: 1.0 [17:25:54]line ЗНМ: 0300000104 [17:25:54]line РНМ: 0000000000091764 [17:25:54]line Версия ККМ: 001 [17:25:54]line ФМ: 0000000000871759 [17:25:54]line ФД: 166834 [17:25:54]line ФПД: 150379261134946 [17:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166834&fm=150379261134946&tin=02508201610067®Number=0000000000091764&sum=50000 [17:25:54]Connected sock=10 [17:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC E2 07 01 1D 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A2 31 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8B 02 00 35 04 06 00 88 C4 E6 71 08 62 42 26 F0 0E 92 DB 26 E9 [17:25:54]written 0, free lines is 4095 [17:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FB EC 47 00 4E 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8B 02 00 F4 03 04 00 09 D8 18 67 B6 04 01 00 00 31 36 6A 0C A5 91 2C 8E [17:25:54]CommunicateWithHost err = 0 [17:25:54]CheckOFDResponse [17:25:54]1017 (14) - 77093643461234 [17:25:54]1041 (16) - 0000000000871759 [17:25:54]1040 (4) - 166834 [17:25:54]1012 (4) - 23.10.2024 11:03 [17:25:54]1206 (1) - 0 [17:25:54]OFD Sender: Remove packet 166834 [17:25:54]ProducePacketName [17:25:54]name=ofd_packets/00166834 [17:25:54]NVStorageDeleteData [17:25:54]Write to MH i2c: 01 00 00 3F 38 77 [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: 01 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: 01 07 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: 01 07 00 3F 38 00 00 00 00 00 B3 0C 3D [17:25:55]RasterBufferAndPrint [17:25:55]line [17:25:55]line [17:25:55]line [17:25:55]line [17:25:55]line [17:25:55]written 0, free lines is 3258 [17:25:55]MH_Cut [17:25:55]Write to MH i2c: D1 01 00 46 38 01 50 [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: D1 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: D1 01 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: D1 01 00 46 38 00 4F [17:25:55]Write to MH i2c: 01 00 00 47 38 7F [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]OFD Sender: No OFD packet to send [17:25:55]*** Cut start [17:25:55]*** Partial cut [17:25:55]*** CUTSNS_PIN = 1 [17:25:55]*** CUTSNS_PIN = 0 [17:25:56]*** Brake cut motor [17:25:56]Read from MH i2c: 01 [17:25:56]MH_I2C_Read... [17:25:56]*** Stop cut motor [17:25:56]*** Cut end [17:25:56]Read from MH i2c: 01 07 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: 01 07 00 47 38 00 00 00 00 00 FF 0F 94 [17:25:56]process_action close_receipt done [17:25:56]requested_data is exist [17:25:56]produce_requested_data [17:25:56]requested_item fm.sn is exist - process it [17:25:56]wFMCommunicate request_size=4 [17:25:56]MH_SAM_APDU [17:25:56]CAPDU: 80 11 00 00 [17:25:56]Write to MH i2c: E2 08 00 48 38 80 11 00 00 00 00 00 00 FA [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:56]Read from MH i2c: E2 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 17 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 17 00 48 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [17:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:56]wFMCommunicate OK [17:25:56]requested_item fd.num is exist - process it [17:25:56]SAM_PROTO_GetFieldsCounters [17:25:56]wFMCommunicate request_size=4 [17:25:56]MH_SAM_APDU [17:25:56]CAPDU: 80 13 00 00 [17:25:56]Write to MH i2c: E2 08 00 49 38 80 13 00 00 00 00 00 00 FD [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:56]Read from MH i2c: E2 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 62 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 62 00 49 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:56]wFMCommunicate OK [17:25:56]SAM_PROTO_GetFieldsCounters done [17:25:56]requested_item shift.num is exist - process it [17:25:56]requested_item shift.opened is exist - process it [17:25:56]req_shift_opened [17:25:56]FM_GetShiftState [17:25:56]SAM_PROTO_GetShiftState [17:25:56]wFMCommunicate request_size=4 [17:25:56]MH_SAM_APDU [17:25:56]CAPDU: 80 13 01 00 [17:25:56]Write to MH i2c: E2 08 00 4A 38 80 13 01 00 00 00 00 00 FF [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:56]Read from MH i2c: E2 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 0E 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 0E 00 4A 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CA [17:25:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:25:56]wFMCommunicate OK [17:25:56]SAM_PROTO_GetShiftState done [17:25:56]FM_GetShiftState done [17:25:56]req_shift_opened done [17:25:56]requested_item shift.open_date is exist - process it [17:25:56]req_shift_open_date [17:25:56]req_shift_open_date done [17:25:56]produce_requested_data done [17:25:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166834,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:25:56]process_action_free close_receipt [17:25:56]json_value_free [17:25:56]json_value_free done [17:25:56]process_json_proto returns [17:25:56]Send response to host [17:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166834,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:25:56]free response buf [17:25:56]execute_script done [17:25:56]execute_script returns [17:25:56]free content buf [17:25:56]Sock 9.Close socket [17:25:56]Sock 9.Thread stoped [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]accept exits with 8 [17:27:55]New connection [17:27:55]New thread 3067034980 created [17:27:55]Thread 3067178340 joined [17:27:55]Waiting for new connection... [17:27:55] Sock 8.Parse request [17:27:55]Sock 8.Check first char [17:27:55]Sock 8.First char is OK [17:27:55]request: POST /json_proto HTTP/1.0 [17:27:55]Method: POST [17:27:55]URL: /json_proto [17:27:55]Method is POST - this is cgi request [17:27:55]url: /json_proto [17:27:55]query_string will be loaded in cgi processing [17:27:55]execute_cgi json_proto POST (null) [17:27:55]execute_cgi path=json_proto method=POST [17:27:55]POST find Content-Length [17:27:55]Host: 172.17.53.195:8080 [17:27:55]Content-Length: 677 [17:27:55]Content-Type: application/json [17:27:55] [17:27:55]POST finish read [17:27:55]Found Content-Length = 677 [17:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:55]execute_script... [17:27: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)221420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:55]POST & json_proto [17:27:55]process_json_proto [17:27:55]json parsed OK: [17:27:55]protocol is kg_v1.0 [17:27:55]action value=close_receipt [17:27:55]process_action close_receipt [17:27:55]cmd_close_receipt [17:27:55]MH_GetDate [17:27:55]Write to MH i2c: F0 00 00 4B 38 72 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: F0 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: F0 09 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: F0 09 00 4B 38 00 1D 32 19 67 21 48 4A 65 62 [17:27:55]GetLastDocTimeStamp 1729704354 [17:27:55]current date 1729704477 [17:27:55]FM_GetShiftState [17:27:55]SAM_PROTO_GetShiftState [17:27:55]wFMCommunicate request_size=4 [17:27:55]MH_SAM_APDU [17:27:55]CAPDU: 80 13 01 00 [17:27:55]Write to MH i2c: E2 08 00 4C 38 80 13 01 00 00 00 00 00 01 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:55]Read from MH i2c: E2 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 0E 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 0E 00 4C 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [17:27:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:27:55]wFMCommunicate OK [17:27:55]SAM_PROTO_GetShiftState done [17:27:55]FM_GetShiftState done [17:27:55]opened in 1729643772 [17:27:55]opened+sec_in_day 1729730172 [17:27:55]quantity*price = 50041 [17:27:55]sum+1 = 50042 [17:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 250 23.10.2024 17:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166835 ФПД: 821758689690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172757&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166835&fm=821758689690&tin=02508201610067®Number=0000000000091764&sum=50000 [17:27:56]StoreToDocumentArchive [17:27:56]shift 537 fd 166835 [17:27:56]save to /storage/0537/doc_00166835 [17:27:56]save last doc name /storage/0537/doc_00166835 to /storage/kkm_last_doc_name [17:27:56]save OK [17:27:56]Clear old archive folders... [17:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:56]tlvbuf is 0206CD80 [17:27:56]SAM_PROTO_ClearQueue [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 09 00 00 [17:27:56]Write to MH i2c: E2 08 00 59 38 80 09 00 00 00 00 00 00 03 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 59 38 00 90 00 05 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_ClearQueue done [17:27:56]KKMCreateOFDPacket [17:27:56]OFDProtocolAddRootSTLVToBuf [17:27:56]FM_MakeSignedData [17:27:56]FM_MakeSignedData [17:27:56]SAM_PROTO_SignData [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 01 02 [17:27:56]Write to MH i2c: E2 08 00 5A 38 80 0D 01 02 00 00 00 00 0B [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 5A 38 00 90 00 06 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]wFMCommunicate request_size=255 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 1D 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8B 02 00 35 04 06 00 00 [17:27:56]Write to MH i2c: E2 02 01 5B 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 1D 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8B 02 00 35 04 06 00 00 00 00 C5 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]wFMCommunicate request_size=10 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 02 02 05 BF 54 A2 81 9A [17:27:56]Write to MH i2c: E2 0D 00 5C 38 80 0D 02 02 05 00 BF 54 A2 81 9A 00 00 E8 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 03 02 [17:27:56]Write to MH i2c: E2 08 00 5D 38 80 0D 03 02 00 00 00 00 10 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0B 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0B 00 5D 38 00 63 37 EC 35 64 B1 30 44 90 00 55 [17:27:56]RAPDU: 63 37 EC 35 64 B1 30 44 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_SignData done [17:27:56]FM_MakeSignedData done [17:27:56]CreateOFDProtocolMessage [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 11 00 00 [17:27:56]Write to MH i2c: E2 08 00 5E 38 80 11 00 00 00 00 00 00 10 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 5E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [17:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:27:56]wFMCommunicate OK [17:27:56]CreateOFDProtocolMessage done [17:27:56]OFDSenderStorePacket 166835 [17:27:56]StoreOFDPacket docnum=166835 [17:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 25 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 1D 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8B 02 00 35 04 06 00 00 BF 54 A2 81 9A 63 37 EC 35 64 B1 30 44 [17:27:56]CheckFolder [17:27:56]dirname=/storage/ofd_packets [17:27:56]CheckFolder done [17:27:56]ProducePacketName [17:27:56]name=ofd_packets/00166835 [17:27:56]NVStorageSaveData ofd_packets/00166835 [17:27:56]File name is /storage/ofd_packets/00166835 [17:27:56]Write 301 bytes [17:27:56]NVStorageSaveData done [17:27:56]OFDSenderStorePacket done [17:27:56]KKMCreateOFDPacket done [17:27:56]NVStorageSaveData kkm_last_timestamp [17:27:56]File name is /storage/kkm_last_timestamp [17:27:56]Write 4 bytes [17:27:56]NVStorageSaveData done [17:27:56]ExternCall_PrintAddStr [17:27:56]wPrintStart [17:27:56]Write to MH i2c: 01 00 00 5F 38 97 [17:27:56]OFD Sender: Processing packet 166835 [packets to send 48, broken 47] [17:27:56]ProducePacketName [17:27:56]name=ofd_packets/00166835 [17:27:56]OFD Sender: To server: pG, [17:27:56]CommunicateWithHost lk.salyk.kg:30040 [17:27:56]ConnectInit lk.salyk.kg [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 5F 38 00 00 00 00 00 FF 0F AC [17:27:56]RasterBufferAndPrint [17:27:56]line Счет N : (1)221420 [17:27:56]line ИНН: 02508201610067 [17:27:56]line Контрольно-Кассовый Чек [17:27:56]line ПРОДАЖА [17:27:56]line ТРК (МРК, ГНК) : 23 [17:27:56]line Товар: 2710124130 [17:27:56]line Аи-92-К-5 [17:27:56]line 7.480 * 66.90 [17:27:56]line = 500.41 [17:27:56]line НДС 12% НСП 1% [17:27:56]line > о реализуемом товаре [17:27:56]line ОКРУГЛЕНИЕ: -0.41 [17:27:56]line ИТОГО: 500.00 [17:27:56]line Внесено: 500.00 [17:27:56]line СДАЧА: 0.00 [17:27:56]line НСП 1% : 4.43 [17:27:56]line НДС 12% : 53.14 [17:27:56]line Наличными: 500.00 [17:27:56]line Безнал.: 0.00 [17:27:56]line Место: АЗС № 161 "Партнер Нефть" [17:27:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:27:56]line СНО: Общий режим [17:27:56]line Чек 250 23.10.2024 17:27 [17:27:56]line Смена: 537 ФФД: 1.0 [17:27:56]line ЗНМ: 0300000104 [17:27:56]line РНМ: 0000000000091764 [17:27:56]line Версия ККМ: 001 [17:27:56]line ФМ: 0000000000871759 [17:27:56]line ФД: 166835 [17:27:56]line ФПД: 821758689690 [17:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172757&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166835&fm=821758689690&tin=02508201610067®Number=0000000000091764&sum=50000 [17:27:57]Connected sock=10 [17:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 25 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 1D 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8B 02 00 35 04 06 00 00 BF 54 A2 81 9A 63 37 EC 35 64 B1 30 44 [17:27:57]written 0, free lines is 4095 [17:27:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5C 5C 47 00 EF 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8B 02 00 F4 03 04 00 84 D8 18 67 B6 04 01 00 00 BE 4B 1B CD 4B A1 8B 22 [17:27:57]CommunicateWithHost err = 0 [17:27:57]CheckOFDResponse [17:27:57]1017 (14) - 77093643461234 [17:27:57]1041 (16) - 0000000000871759 [17:27:57]1040 (4) - 166835 [17:27:57]1012 (4) - 23.10.2024 11:05 [17:27:57]1206 (1) - 0 [17:27:57]OFD Sender: Remove packet 166835 [17:27:57]ProducePacketName [17:27:57]name=ofd_packets/00166835 [17:27:57]NVStorageDeleteData [17:27:57]Write to MH i2c: 01 00 00 8A 38 C2 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 8A 38 00 00 00 00 00 AF 0C 84 [17:27:57]RasterBufferAndPrint [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]written 0, free lines is 3253 [17:27:57]MH_Cut [17:27:57]Write to MH i2c: D1 01 00 91 38 01 9B [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 01 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 01 00 91 38 00 9A [17:27:57]Write to MH i2c: 01 00 00 92 38 CA [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]OFD Sender: No OFD packet to send [17:27:58]*** Cut start [17:27:58]*** Partial cut [17:27:58]*** CUTSNS_PIN = 1 [17:27:58]*** CUTSNS_PIN = 0 [17:27:58]*** Brake cut motor [17:27:59]Read from MH i2c: 01 [17:27:59]MH_I2C_Read... [17:27:59]*** Stop cut motor [17:27:59]*** Cut end [17:27:59]Read from MH i2c: 01 07 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 92 38 00 00 00 00 00 FF 0F DF [17:27:59]process_action close_receipt done [17:27:59]requested_data is exist [17:27:59]produce_requested_data [17:27:59]requested_item fm.sn is exist - process it [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 11 00 00 [17:27:59]Write to MH i2c: E2 08 00 93 38 80 11 00 00 00 00 00 00 45 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 93 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [17:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:27:59]wFMCommunicate OK [17:27:59]requested_item fd.num is exist - process it [17:27:59]SAM_PROTO_GetFieldsCounters [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 13 00 00 [17:27:59]Write to MH i2c: E2 08 00 94 38 80 13 00 00 00 00 00 00 48 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 62 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 62 00 94 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [17:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_GetFieldsCounters done [17:27:59]requested_item shift.num is exist - process it [17:27:59]requested_item shift.opened is exist - process it [17:27:59]req_shift_opened [17:27:59]FM_GetShiftState [17:27:59]SAM_PROTO_GetShiftState [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 13 01 00 [17:27:59]Write to MH i2c: E2 08 00 95 38 80 13 01 00 00 00 00 00 4A [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0E 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0E 00 95 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 15 [17:27:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_GetShiftState done [17:27:59]FM_GetShiftState done [17:27:59]req_shift_opened done [17:27:59]requested_item shift.open_date is exist - process it [17:27:59]req_shift_open_date [17:27:59]req_shift_open_date done [17:27:59]produce_requested_data done [17:27:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166835,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:27:59]process_action_free close_receipt [17:27:59]json_value_free [17:27:59]json_value_free done [17:27:59]process_json_proto returns [17:27:59]Send response to host [17:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166835,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:27:59]free response buf [17:27:59]execute_script done [17:27:59]execute_script returns [17:27:59]free content buf [17:27:59]Sock 8.Close socket [17:27:59]Sock 8.Thread stoped [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:18]accept exits with 9 [17:29:18]New connection [17:29:18]New thread 3067178340 created [17:29:18]Thread 3067034980 joined [17:29:18]Waiting for new connection... [17:29:18] Sock 9.Parse request [17:29:18]Sock 9.Check first char [17:29:18]Sock 9.First char is OK [17:29:18]request: POST /json_proto HTTP/1.0 [17:29:18]Method: POST [17:29:18]URL: /json_proto [17:29:18]Method is POST - this is cgi request [17:29:18]url: /json_proto [17:29:18]query_string will be loaded in cgi processing [17:29:18]execute_cgi json_proto POST (null) [17:29:18]execute_cgi path=json_proto method=POST [17:29:18]POST find Content-Length [17:29:18]Host: 172.17.53.195:8080 [17:29:18]Content-Length: 678 [17:29:18]Content-Type: application/json [17:29:18] [17:29:18]POST finish read [17:29:18]Found Content-Length = 678 [17:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:18]execute_script... [17:29: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)221421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:18]POST & json_proto [17:29:18]process_json_proto [17:29:18]json parsed OK: [17:29:18]protocol is kg_v1.0 [17:29:18]action value=close_receipt [17:29:18]process_action close_receipt [17:29:18]cmd_close_receipt [17:29:18]MH_GetDate [17:29:18]Write to MH i2c: F0 00 00 96 38 BD [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: F0 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: F0 09 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: F0 09 00 96 38 00 70 32 19 67 21 48 4A 65 00 [17:29:18]GetLastDocTimeStamp 1729704477 [17:29:18]current date 1729704560 [17:29:18]FM_GetShiftState [17:29:18]SAM_PROTO_GetShiftState [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 13 01 00 [17:29:18]Write to MH i2c: E2 08 00 97 38 80 13 01 00 00 00 00 00 4C [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 0E 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 0E 00 97 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 17 [17:29:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:29:18]wFMCommunicate OK [17:29:18]SAM_PROTO_GetShiftState done [17:29:18]FM_GetShiftState done [17:29:18]opened in 1729643772 [17:29:18]opened+sec_in_day 1729730172 [17:29:18]quantity*price = 70044 [17:29:18]sum+1 = 70045 [17:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 251 23.10.2024 17:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166836 ФПД: 225682486866929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172920&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166836&fm=225682486866929&tin=02508201610067®Number=0000000000091764&sum=70000 [17:29:19]StoreToDocumentArchive [17:29:19]shift 537 fd 166836 [17:29:19]save to /storage/0537/doc_00166836 [17:29:19]save last doc name /storage/0537/doc_00166836 to /storage/kkm_last_doc_name [17:29:19]save OK [17:29:19]Clear old archive folders... [17:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:19]tlvbuf is 01FB3800 [17:29:19]SAM_PROTO_ClearQueue [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 09 00 00 [17:29:19]Write to MH i2c: E2 08 00 A4 38 80 09 00 00 00 00 00 00 4E [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 03 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 03 00 A4 38 00 90 00 50 [17:29:19]RAPDU: 90 00 [17:29:19]wFMCommunicate OK [17:29:19]SAM_PROTO_ClearQueue done [17:29:19]KKMCreateOFDPacket [17:29:19]OFDProtocolAddRootSTLVToBuf [17:29:19]FM_MakeSignedData [17:29:19]FM_MakeSignedData [17:29:19]SAM_PROTO_SignData [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 0D 01 02 [17:29:19]Write to MH i2c: E2 08 00 A5 38 80 0D 01 02 00 00 00 00 56 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 03 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 03 00 A5 38 00 90 00 51 [17:29:19]RAPDU: 90 00 [17:29:19]wFMCommunicate OK [17:29:19]wFMCommunicate request_size=255 [17:29:19]MH_SAM_APDU [17:29: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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8B 02 00 35 04 06 00 CD [17:29:19]Write to MH i2c: E2 02 01 A6 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8B 02 00 35 04 06 00 CD 00 00 42 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 03 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 03 00 A6 38 00 90 00 52 [17:29:20]RAPDU: 90 00 [17:29:20]wFMCommunicate OK [17:29:20]wFMCommunicate request_size=10 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 0D 02 02 05 41 CC 76 33 F1 [17:29:20]Write to MH i2c: E2 0D 00 A7 38 80 0D 02 02 05 00 41 CC 76 33 F1 00 00 0A [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 03 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 03 00 A7 38 00 90 00 53 [17:29:20]RAPDU: 90 00 [17:29:20]wFMCommunicate OK [17:29:20]wFMCommunicate request_size=4 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 0D 03 02 [17:29:20]Write to MH i2c: E2 08 00 A8 38 80 0D 03 02 00 00 00 00 5B [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 0B 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 0B 00 A8 38 00 73 75 C7 5E 75 5A E6 3D 90 00 5B [17:29:20]RAPDU: 73 75 C7 5E 75 5A E6 3D 90 00 [17:29:20]wFMCommunicate OK [17:29:20]SAM_PROTO_SignData done [17:29:20]FM_MakeSignedData done [17:29:20]CreateOFDProtocolMessage [17:29:20]wFMCommunicate request_size=4 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 11 00 00 [17:29:20]Write to MH i2c: E2 08 00 A9 38 80 11 00 00 00 00 00 00 5B [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 17 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 17 00 A9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [17:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:29:20]wFMCommunicate OK [17:29:20]CreateOFDProtocolMessage done [17:29:20]OFDSenderStorePacket 166836 [17:29:20]StoreOFDPacket docnum=166836 [17:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 22 07 01 FB 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8B 02 00 35 04 06 00 CD 41 CC 76 33 F1 73 75 C7 5E 75 5A E6 3D [17:29:20]CheckFolder [17:29:20]dirname=/storage/ofd_packets [17:29:20]CheckFolder done [17:29:20]ProducePacketName [17:29:20]name=ofd_packets/00166836 [17:29:20]NVStorageSaveData ofd_packets/00166836 [17:29:20]File name is /storage/ofd_packets/00166836 [17:29:20]Write 301 bytes [17:29:20]NVStorageSaveData done [17:29:20]OFDSenderStorePacket done [17:29:20]KKMCreateOFDPacket done [17:29:20]NVStorageSaveData kkm_last_timestamp [17:29:20]File name is /storage/kkm_last_timestamp [17:29:20]Write 4 bytes [17:29:20]NVStorageSaveData done [17:29:20]ExternCall_PrintAddStr [17:29:20]wPrintStart [17:29:20]Write to MH i2c: 01 00 00 AA 38 E2 [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: 01 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: 01 07 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: 01 07 00 AA 38 00 00 00 00 00 FF 0F F7 [17:29:20]RasterBufferAndPrint [17:29:20]line Счет N : (1)221421 [17:29:20]line ИНН: 02508201610067 [17:29:20]line Контрольно-Кассовый Чек [17:29:20]line ПРОДАЖА [17:29:20]line ТРК (МРК, ГНК) : 33 [17:29:20]line Товар: 2710124130 [17:29:20]line Аи-92-К-5 [17:29:20]line 10.470 * 66.90 [17:29:20]line = 700.44 [17:29:20]line НДС 12% НСП 1% [17:29:20]line > о реализуемом товаре [17:29:20]line ОКРУГЛЕНИЕ: -0.44 [17:29:20]line ИТОГО: 700.00 [17:29:20]line Внесено: 700.00 [17:29:20]line СДАЧА: 0.00 [17:29:20]line НСП 1% : 6.20 [17:29:20]line НДС 12% : 74.38 [17:29:20]line Наличными: 700.00 [17:29:20]line Безнал.: 0.00 [17:29:20]line Место: АЗС № 161 "Партнер Нефть" [17:29:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:29:20]line СНО: Общий режим [17:29:20]line Чек 251 23.10.2024 17:29 [17:29:20]line Смена: 537 ФФД: 1.0 [17:29:20]line ЗНМ: 0300000104 [17:29:20]line РНМ: 0000000000091764 [17:29:20]line Версия ККМ: 001 [17:29:20]line ФМ: 0000000000871759 [17:29:20]line ФД: 166836 [17:29:20]line ФПД: 225682486866929 [17:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172920&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166836&fm=225682486866929&tin=02508201610067®Number=0000000000091764&sum=70000 [17:29:20]OFD Sender: Processing packet 166836 [packets to send 48, broken 47] [17:29:20]ProducePacketName [17:29:20]name=ofd_packets/00166836 [17:29:20]OFD Sender: To server: pG, [17:29:20]CommunicateWithHost lk.salyk.kg:30040 [17:29:20]ConnectInit lk.salyk.kg [17:29:20]written 0, free lines is 4095 [17:29:20]Connected sock=10 [17:29:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 66 22 07 01 FB 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8B 02 00 35 04 06 00 CD 41 CC 76 33 F1 73 75 C7 5E 75 5A E6 3D [17:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 6F 47 00 41 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8B 02 00 F4 03 04 00 D7 D8 18 67 B6 04 01 00 00 70 23 B8 2E 3D B9 AA 91 [17:29:21]CommunicateWithHost err = 0 [17:29:21]CheckOFDResponse [17:29:21]1017 (14) - 77093643461234 [17:29:21]1041 (16) - 0000000000871759 [17:29:21]1040 (4) - 166836 [17:29:21]1012 (4) - 23.10.2024 11:07 [17:29:21]1206 (1) - 0 [17:29:21]OFD Sender: Remove packet 166836 [17:29:21]ProducePacketName [17:29:21]name=ofd_packets/00166836 [17:29:21]NVStorageDeleteData [17:29:21]Write to MH i2c: 01 00 00 D5 38 0D [17:29:21]Write i2c OK [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: 01 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: 01 07 00 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: 01 07 00 D5 38 00 00 00 00 00 C2 0C E2 [17:29:21]RasterBufferAndPrint [17:29:21]line [17:29:21]line [17:29:21]line [17:29:21]line [17:29:21]line [17:29:21]written 0, free lines is 3275 [17:29:21]MH_Cut [17:29:21]Write to MH i2c: D1 01 00 DC 38 01 E6 [17:29:21]Write i2c OK [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: D1 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: D1 01 00 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: D1 01 00 DC 38 00 E5 [17:29:21]Write to MH i2c: 01 00 00 DD 38 15 [17:29:21]Write i2c OK [17:29:21]MH_I2C_Read... [17:29:21]OFD Sender: No OFD packet to send [17:29:22]*** Cut start [17:29:22]*** Partial cut [17:29:22]*** CUTSNS_PIN = 1 [17:29:22]*** CUTSNS_PIN = 0 [17:29:22]*** Brake cut motor [17:29:22]Read from MH i2c: 01 [17:29:22]MH_I2C_Read... [17:29:22]*** Stop cut motor [17:29:22]*** Cut end [17:29:22]Read from MH i2c: 01 07 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: 01 07 00 DD 38 00 00 00 00 00 FF 0F 2A [17:29:22]process_action close_receipt done [17:29:22]requested_data is exist [17:29:22]produce_requested_data [17:29:22]requested_item fm.sn is exist - process it [17:29:22]wFMCommunicate request_size=4 [17:29:22]MH_SAM_APDU [17:29:22]CAPDU: 80 11 00 00 [17:29:22]Write to MH i2c: E2 08 00 DE 38 80 11 00 00 00 00 00 00 90 [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:22]Read from MH i2c: E2 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 17 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 17 00 DE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [17:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:29:22]wFMCommunicate OK [17:29:22]requested_item fd.num is exist - process it [17:29:22]SAM_PROTO_GetFieldsCounters [17:29:22]wFMCommunicate request_size=4 [17:29:22]MH_SAM_APDU [17:29:22]CAPDU: 80 13 00 00 [17:29:22]Write to MH i2c: E2 08 00 DF 38 80 13 00 00 00 00 00 00 93 [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:22]Read from MH i2c: E2 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 62 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 62 00 DF 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [17:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:22]wFMCommunicate OK [17:29:22]SAM_PROTO_GetFieldsCounters done [17:29:22]requested_item shift.num is exist - process it [17:29:22]requested_item shift.opened is exist - process it [17:29:22]req_shift_opened [17:29:22]FM_GetShiftState [17:29:22]SAM_PROTO_GetShiftState [17:29:22]wFMCommunicate request_size=4 [17:29:22]MH_SAM_APDU [17:29:22]CAPDU: 80 13 01 00 [17:29:22]Write to MH i2c: E2 08 00 E0 38 80 13 01 00 00 00 00 00 95 [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:22]Read from MH i2c: E2 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 0E 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 0E 00 E0 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 60 [17:29:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:29:22]wFMCommunicate OK [17:29:22]SAM_PROTO_GetShiftState done [17:29:22]FM_GetShiftState done [17:29:22]req_shift_opened done [17:29:22]requested_item shift.open_date is exist - process it [17:29:22]req_shift_open_date [17:29:22]req_shift_open_date done [17:29:22]produce_requested_data done [17:29:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166836,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:29:22]process_action_free close_receipt [17:29:22]json_value_free [17:29:22]json_value_free done [17:29:22]process_json_proto returns [17:29:22]Send response to host [17:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166836,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:29:22]free response buf [17:29:22]execute_script done [17:29:22]execute_script returns [17:29:22]free content buf [17:29:22]Sock 9.Close socket [17:29:22]Sock 9.Thread stoped [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:25]accept exits with 8 [17:30:25]New connection [17:30:25]New thread 3067034980 created [17:30:25]Thread 3067178340 joined [17:30:25]Waiting for new connection... [17:30:25] Sock 8.Parse request [17:30:25]Sock 8.Check first char [17:30:25]Sock 8.First char is OK [17:30:25]request: POST /json_proto HTTP/1.0 [17:30:25]Method: POST [17:30:25]URL: /json_proto [17:30:25]Method is POST - this is cgi request [17:30:25]url: /json_proto [17:30:25]query_string will be loaded in cgi processing [17:30:25]execute_cgi json_proto POST (null) [17:30:25]execute_cgi path=json_proto method=POST [17:30:25]POST find Content-Length [17:30:25]Host: 172.17.53.195:8080 [17:30:25]Content-Length: 682 [17:30:25]Content-Type: application/json [17:30:25] [17:30:25]POST finish read [17:30:25]Found Content-Length = 682 [17:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:25]execute_script... [17:30: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)221422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:25]POST & json_proto [17:30:25]process_json_proto [17:30:25]json parsed OK: [17:30:25]protocol is kg_v1.0 [17:30:25]action value=close_receipt [17:30:25]process_action close_receipt [17:30:25]cmd_close_receipt [17:30:25]MH_GetDate [17:30:25]Write to MH i2c: F0 00 00 E1 38 08 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: F0 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: F0 09 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: F0 09 00 E1 38 00 B3 32 19 67 21 48 4A 65 8E [17:30:25]GetLastDocTimeStamp 1729704560 [17:30:25]current date 1729704627 [17:30:25]FM_GetShiftState [17:30:25]SAM_PROTO_GetShiftState [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 13 01 00 [17:30:25]Write to MH i2c: E2 08 00 E2 38 80 13 01 00 00 00 00 00 97 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 0E 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 0E 00 E2 38 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 62 [17:30:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:30:25]wFMCommunicate OK [17:30:25]SAM_PROTO_GetShiftState done [17:30:25]FM_GetShiftState done [17:30:25]opened in 1729643772 [17:30:25]opened+sec_in_day 1729730172 [17:30:25]quantity*price = 100015 [17:30:25]sum+1 = 100017 [17:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 252 23.10.2024 17:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166837 ФПД: 152753468203134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173027&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166837&fm=152753468203134&tin=02508201610067®Number=0000000000091764&sum=100000 [17:30:26]StoreToDocumentArchive [17:30:26]shift 537 fd 166837 [17:30:26]save to /storage/0537/doc_00166837 [17:30:26]save last doc name /storage/0537/doc_00166837 to /storage/kkm_last_doc_name [17:30:26]save OK [17:30:26]Clear old archive folders... [17:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:26]tlvbuf is 02092590 [17:30:26]SAM_PROTO_ClearQueue [17:30:26]wFMCommunicate request_size=4 [17:30:26]MH_SAM_APDU [17:30:26]CAPDU: 80 09 00 00 [17:30:26]Write to MH i2c: E2 08 00 EF 38 80 09 00 00 00 00 00 00 99 [17:30:26]Write i2c OK [17:30:26]MH_I2C_Read... [17:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:26]Read from MH i2c: E2 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 [17:30:26]MH_I2C_Read... [17:30:26]Read from MH i2c: E2 03 00 EF 38 00 90 00 9B [17:30:26]RAPDU: 90 00 [17:30:26]wFMCommunicate OK [17:30:26]SAM_PROTO_ClearQueue done [17:30:26]KKMCreateOFDPacket [17:30:27]OFDProtocolAddRootSTLVToBuf [17:30:27]FM_MakeSignedData [17:30:27]FM_MakeSignedData [17:30:27]SAM_PROTO_SignData [17:30:27]wFMCommunicate request_size=4 [17:30:27]MH_SAM_APDU [17:30:27]CAPDU: 80 0D 01 02 [17:30:27]Write to MH i2c: E2 08 00 F0 38 80 0D 01 02 00 00 00 00 A1 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:27]Read from MH i2c: E2 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 F0 38 00 90 00 9C [17:30:27]RAPDU: 90 00 [17:30:27]wFMCommunicate OK [17:30:27]wFMCommunicate request_size=255 [17:30:27]MH_SAM_APDU [17:30: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B3 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8B 02 00 35 04 06 00 8A [17:30:27]Write to MH i2c: E2 02 01 F1 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B3 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8B 02 00 35 04 06 00 8A 00 00 79 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:27]Read from MH i2c: E2 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 F1 38 00 90 00 9D [17:30:27]RAPDU: 90 00 [17:30:27]wFMCommunicate OK [17:30:27]wFMCommunicate request_size=10 [17:30:27]MH_SAM_APDU [17:30:27]CAPDU: 80 0D 02 02 05 ED B0 35 E0 7E [17:30:27]Write to MH i2c: E2 0D 00 F2 38 80 0D 02 02 05 00 ED B0 35 E0 7E 00 00 DE [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:27]Read from MH i2c: E2 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 03 00 F2 38 00 90 00 9E [17:30:27]RAPDU: 90 00 [17:30:27]wFMCommunicate OK [17:30:27]wFMCommunicate request_size=4 [17:30:27]MH_SAM_APDU [17:30:27]CAPDU: 80 0D 03 02 [17:30:27]Write to MH i2c: E2 08 00 F3 38 80 0D 03 02 00 00 00 00 A6 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:27]Read from MH i2c: E2 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 0B 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 0B 00 F3 38 00 DB A3 57 3C DA 87 5C 4F 90 00 C4 [17:30:27]RAPDU: DB A3 57 3C DA 87 5C 4F 90 00 [17:30:27]wFMCommunicate OK [17:30:27]SAM_PROTO_SignData done [17:30:27]FM_MakeSignedData done [17:30:27]CreateOFDProtocolMessage [17:30:27]wFMCommunicate request_size=4 [17:30:27]MH_SAM_APDU [17:30:27]CAPDU: 80 11 00 00 [17:30:27]Write to MH i2c: E2 08 00 F4 38 80 11 00 00 00 00 00 00 A6 [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:27]Read from MH i2c: E2 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 17 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: E2 17 00 F4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [17:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:30:27]wFMCommunicate OK [17:30:27]CreateOFDProtocolMessage done [17:30:27]OFDSenderStorePacket 166837 [17:30:27]StoreOFDPacket docnum=166837 [17:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 BD 07 01 E4 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B3 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8B 02 00 35 04 06 00 8A ED B0 35 E0 7E DB A3 57 3C DA 87 5C 4F [17:30:27]CheckFolder [17:30:27]dirname=/storage/ofd_packets [17:30:27]CheckFolder done [17:30:27]ProducePacketName [17:30:27]name=ofd_packets/00166837 [17:30:27]NVStorageSaveData ofd_packets/00166837 [17:30:27]File name is /storage/ofd_packets/00166837 [17:30:27]Write 301 bytes [17:30:27]NVStorageSaveData done [17:30:27]OFDSenderStorePacket done [17:30:27]KKMCreateOFDPacket done [17:30:27]NVStorageSaveData kkm_last_timestamp [17:30:27]File name is /storage/kkm_last_timestamp [17:30:27]Write 4 bytes [17:30:27]NVStorageSaveData done [17:30:27]ExternCall_PrintAddStr [17:30:27]wPrintStart [17:30:27]Write to MH i2c: 01 00 00 F5 38 2D [17:30:27]Write i2c OK [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 07 00 [17:30:27]MH_I2C_Read... [17:30:27]Read from MH i2c: 01 07 00 F5 38 00 00 00 00 00 FF 0F 42 [17:30:27]RasterBufferAndPrint [17:30:27]line Счет N : (1)221422 [17:30:27]line ИНН: 02508201610067 [17:30:27]line Контрольно-Кассовый Чек [17:30:27]line ПРОДАЖА [17:30:27]line ТРК (МРК, ГНК) : 13 [17:30:27]line Товар: 2710124130 [17:30:27]line Аи-92-К-5 [17:30:27]line 14.950 * 66.90 [17:30:27]line = 1000.16 [17:30:27]line НДС 12% НСП 1% [17:30:27]line > о реализуемом товаре [17:30:27]line ОКРУГЛЕНИЕ: -0.16 [17:30:27]line ИТОГО: 1000.00 [17:30:27]line Внесено: 1000.00 [17:30:27]line СДАЧА: 0.00 [17:30:27]line НСП 1% : 8.85 [17:30:27]line НДС 12% : 106.21 [17:30:27]line Наличными: 1000.00 [17:30:27]line Безнал.: 0.00 [17:30:27]line Место: АЗС № 161 "Партнер Нефть" [17:30:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:30:27]line СНО: Общий режим [17:30:27]line Чек 252 23.10.2024 17:30 [17:30:27]line Смена: 537 ФФД: 1.0 [17:30:27]line ЗНМ: 0300000104 [17:30:27]line РНМ: 0000000000091764 [17:30:27]line Версия ККМ: 001 [17:30:27]line ФМ: 0000000000871759 [17:30:27]line ФД: 166837 [17:30:27]line ФПД: 152753468203134 [17:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173027&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166837&fm=152753468203134&tin=02508201610067®Number=0000000000091764&sum=100000 [17:30:27]OFD Sender: Processing packet 166837 [packets to send 48, broken 47] [17:30:27]ProducePacketName [17:30:27]name=ofd_packets/00166837 [17:30:27]OFD Sender: To server: pG, [17:30:27]CommunicateWithHost lk.salyk.kg:30040 [17:30:27]ConnectInit lk.salyk.kg [17:30:27]written 0, free lines is 4095 [17:30:27]Connected sock=10 [17:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 BD 07 01 E4 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B3 32 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8B 02 00 35 04 06 00 8A ED B0 35 E0 7E DB A3 57 3C DA 87 5C 4F [17:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 0C 47 00 4E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8B 02 00 F4 03 04 00 1A D9 18 67 B6 04 01 00 00 9D 46 00 72 4A 1E 97 92 [17:30:28]CommunicateWithHost err = 0 [17:30:28]CheckOFDResponse [17:30:28]1017 (14) - 77093643461234 [17:30:28]1041 (16) - 0000000000871759 [17:30:28]1040 (4) - 166837 [17:30:28]1012 (4) - 23.10.2024 11:08 [17:30:28]1206 (1) - 0 [17:30:28]OFD Sender: Remove packet 166837 [17:30:28]ProducePacketName [17:30:28]name=ofd_packets/00166837 [17:30:28]NVStorageDeleteData [17:30:28]Write to MH i2c: 01 00 00 20 39 59 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: 01 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: 01 07 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: 01 07 00 20 39 00 00 00 00 00 B3 0C 1F [17:30:28]RasterBufferAndPrint [17:30:28]line [17:30:28]line [17:30:28]line [17:30:28]line [17:30:28]line [17:30:28]written 0, free lines is 3256 [17:30:28]MH_Cut [17:30:28]Write to MH i2c: D1 01 00 27 39 01 32 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: D1 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: D1 01 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: D1 01 00 27 39 00 31 [17:30:28]Write to MH i2c: 01 00 00 28 39 61 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]OFD Sender: No OFD packet to send [17:30:29]*** Cut start [17:30:29]*** Partial cut [17:30:29]*** CUTSNS_PIN = 1 [17:30:29]*** CUTSNS_PIN = 0 [17:30:29]*** Brake cut motor [17:30:29]Read from MH i2c: 01 [17:30:29]MH_I2C_Read... [17:30:29]*** Stop cut motor [17:30:29]*** Cut end [17:30:29]Read from MH i2c: 01 07 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: 01 07 00 28 39 00 00 00 00 00 FF 0F 76 [17:30:29]process_action close_receipt done [17:30:29]requested_data is exist [17:30:29]produce_requested_data [17:30:29]requested_item fm.sn is exist - process it [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 11 00 00 [17:30:29]Write to MH i2c: E2 08 00 29 39 80 11 00 00 00 00 00 00 DC [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 17 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 17 00 29 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [17:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:30:29]wFMCommunicate OK [17:30:29]requested_item fd.num is exist - process it [17:30:29]SAM_PROTO_GetFieldsCounters [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 13 00 00 [17:30:29]Write to MH i2c: E2 08 00 2A 39 80 13 00 00 00 00 00 00 DF [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 62 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 62 00 2A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:29]wFMCommunicate OK [17:30:29]SAM_PROTO_GetFieldsCounters done [17:30:29]requested_item shift.num is exist - process it [17:30:29]requested_item shift.opened is exist - process it [17:30:29]req_shift_opened [17:30:29]FM_GetShiftState [17:30:29]SAM_PROTO_GetShiftState [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 13 01 00 [17:30:29]Write to MH i2c: E2 08 00 2B 39 80 13 01 00 00 00 00 00 E1 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0E 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0E 00 2B 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AC [17:30:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:30:29]wFMCommunicate OK [17:30:29]SAM_PROTO_GetShiftState done [17:30:29]FM_GetShiftState done [17:30:29]req_shift_opened done [17:30:29]requested_item shift.open_date is exist - process it [17:30:29]req_shift_open_date [17:30:29]req_shift_open_date done [17:30:29]produce_requested_data done [17:30:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166837,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:30:30]process_action_free close_receipt [17:30:30]json_value_free [17:30:30]json_value_free done [17:30:30]process_json_proto returns [17:30:30]Send response to host [17:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166837,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:30:30]free response buf [17:30:30]execute_script done [17:30:30]execute_script returns [17:30:30]free content buf [17:30:30]Sock 8.Close socket [17:30:30]Sock 8.Thread stoped [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:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:15]accept exits with 9 [17:32:15]New connection [17:32:15]New thread 3067178340 created [17:32:15]Thread 3067034980 joined [17:32:15]Waiting for new connection... [17:32:15] Sock 9.Parse request [17:32:15]Sock 9.Check first char [17:32:15]Sock 9.First char is OK [17:32:15]request: POST /json_proto HTTP/1.0 [17:32:15]Method: POST [17:32:15]URL: /json_proto [17:32:15]Method is POST - this is cgi request [17:32:15]url: /json_proto [17:32:15]query_string will be loaded in cgi processing [17:32:15]execute_cgi json_proto POST (null) [17:32:15]execute_cgi path=json_proto method=POST [17:32:15]POST find Content-Length [17:32:15]Host: 172.17.53.195:8080 [17:32:15]Content-Length: 677 [17:32:15]Content-Type: application/json [17:32:15] [17:32:15]POST finish read [17:32:15]Found Content-Length = 677 [17:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:15]execute_script... [17:32: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)221423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:15]POST & json_proto [17:32:15]process_json_proto [17:32:15]json parsed OK: [17:32:15]protocol is kg_v1.0 [17:32:15]action value=close_receipt [17:32:15]process_action close_receipt [17:32:15]cmd_close_receipt [17:32:15]MH_GetDate [17:32:15]Write to MH i2c: F0 00 00 2C 39 54 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 09 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 09 00 2C 39 00 21 33 19 67 21 48 4A 65 49 [17:32:15]GetLastDocTimeStamp 1729704627 [17:32:15]current date 1729704737 [17:32:15]FM_GetShiftState [17:32:15]SAM_PROTO_GetShiftState [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 13 01 00 [17:32:15]Write to MH i2c: E2 08 00 2D 39 80 13 01 00 00 00 00 00 E3 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 2D 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AE [17:32:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_GetShiftState done [17:32:15]FM_GetShiftState done [17:32:15]opened in 1729643772 [17:32:15]opened+sec_in_day 1729730172 [17:32:15]quantity*price = 50041 [17:32:15]sum+1 = 50042 [17:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 253 23.10.2024 17:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166838 ФПД: 208402677855450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173217&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166838&fm=208402677855450&tin=02508201610067®Number=0000000000091764&sum=50000 [17:32:16]StoreToDocumentArchive [17:32:16]shift 537 fd 166838 [17:32:16]save to /storage/0537/doc_00166838 [17:32:16]save last doc name /storage/0537/doc_00166838 to /storage/kkm_last_doc_name [17:32:16]save OK [17:32:16]Clear old archive folders... [17:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:16]tlvbuf is 01FDA2E0 [17:32:16]SAM_PROTO_ClearQueue [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 09 00 00 [17:32:16]Write to MH i2c: E2 08 00 3A 39 80 09 00 00 00 00 00 00 E5 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 3A 39 00 90 00 E7 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_ClearQueue done [17:32:16]KKMCreateOFDPacket [17:32:16]OFDProtocolAddRootSTLVToBuf [17:32:16]FM_MakeSignedData [17:32:16]FM_MakeSignedData [17:32:16]SAM_PROTO_SignData [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 01 02 [17:32:16]Write to MH i2c: E2 08 00 3B 39 80 0D 01 02 00 00 00 00 ED [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 3B 39 00 90 00 E8 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=255 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 21 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8B 02 00 35 04 06 00 BD [17:32:16]Write to MH i2c: E2 02 01 3C 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 21 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8B 02 00 35 04 06 00 BD 00 00 6F [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=10 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 02 02 05 8A 87 95 74 DA [17:32:16]Write to MH i2c: E2 0D 00 3D 39 80 0D 02 02 05 00 8A 87 95 74 DA 00 00 EE [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 3D 39 00 90 00 EA [17:32:17]RAPDU: 90 00 [17:32:17]wFMCommunicate OK [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 0D 03 02 [17:32:17]Write to MH i2c: E2 08 00 3E 39 80 0D 03 02 00 00 00 00 F2 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0B 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0B 00 3E 39 00 09 00 E7 D8 A2 89 BB E0 90 00 81 [17:32:17]RAPDU: 09 00 E7 D8 A2 89 BB E0 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_SignData done [17:32:17]FM_MakeSignedData done [17:32:17]CreateOFDProtocolMessage [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 11 00 00 [17:32:17]Write to MH i2c: E2 08 00 3F 39 80 11 00 00 00 00 00 00 F2 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 3F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [17:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:32:17]wFMCommunicate OK [17:32:17]CreateOFDProtocolMessage done [17:32:17]OFDSenderStorePacket 166838 [17:32:17]StoreOFDPacket docnum=166838 [17:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 19 07 01 A5 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 21 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8B 02 00 35 04 06 00 BD 8A 87 95 74 DA 09 00 E7 D8 A2 89 BB E0 [17:32:17]CheckFolder [17:32:17]dirname=/storage/ofd_packets [17:32:17]CheckFolder done [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00166838 [17:32:17]NVStorageSaveData ofd_packets/00166838 [17:32:17]File name is /storage/ofd_packets/00166838 [17:32:17]Write 301 bytes [17:32:17]NVStorageSaveData done [17:32:17]OFDSenderStorePacket done [17:32:17]KKMCreateOFDPacket done [17:32:17]NVStorageSaveData kkm_last_timestamp [17:32:17]File name is /storage/kkm_last_timestamp [17:32:17]Write 4 bytes [17:32:17]NVStorageSaveData done [17:32:17]ExternCall_PrintAddStr [17:32:17]wPrintStart [17:32:17]Write to MH i2c: 01 00 00 40 39 79 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 40 39 00 00 00 00 00 FF 0F 8E [17:32:17]RasterBufferAndPrint [17:32:17]line Счет N : (1)221423 [17:32:17]line ИНН: 02508201610067 [17:32:17]line Контрольно-Кассовый Чек [17:32:17]line ПРОДАЖА [17:32:17]line ТРК (МРК, ГНК) : 23 [17:32:17]line Товар: 2710124130 [17:32:17]line Аи-92-К-5 [17:32:17]line 7.480 * 66.90 [17:32:17]line = 500.41 [17:32:17]line НДС 12% НСП 1% [17:32:17]line > о реализуемом товаре [17:32:17]line ОКРУГЛЕНИЕ: -0.41 [17:32:17]line ИТОГО: 500.00 [17:32:17]line Внесено: 500.00 [17:32:17]line СДАЧА: 0.00 [17:32:17]line НСП 1% : 4.43 [17:32:17]line НДС 12% : 53.14 [17:32:17]line Наличными: 500.00 [17:32:17]line Безнал.: 0.00 [17:32:17]line Место: АЗС № 161 "Партнер Нефть" [17:32:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:32:17]line СНО: Общий режим [17:32:17]line Чек 253 23.10.2024 17:32 [17:32:17]line Смена: 537 ФФД: 1.0 [17:32:17]line ЗНМ: 0300000104 [17:32:17]line РНМ: 0000000000091764 [17:32:17]line Версия ККМ: 001 [17:32:17]line ФМ: 0000000000871759 [17:32:17]line ФД: 166838 [17:32:17]line ФПД: 208402677855450 [17:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173217&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166838&fm=208402677855450&tin=02508201610067®Number=0000000000091764&sum=50000 [17:32:17]OFD Sender: Processing packet 166838 [packets to send 48, broken 47] [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00166838 [17:32:17]OFD Sender: To server: pG, [17:32:17]CommunicateWithHost lk.salyk.kg:30040 [17:32:17]ConnectInit lk.salyk.kg [17:32:17]written 0, free lines is 4095 [17:32:17]Connected sock=10 [17:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 19 07 01 A5 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 21 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8B 02 00 35 04 06 00 BD 8A 87 95 74 DA 09 00 E7 D8 A2 89 BB E0 [17:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 09 47 00 FE 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8B 02 00 F4 03 04 00 88 D9 18 67 B6 04 01 00 00 FA 0D 9D 2F D2 19 29 5D [17:32:17]CommunicateWithHost err = 0 [17:32:17]CheckOFDResponse [17:32:17]1017 (14) - 77093643461234 [17:32:17]1041 (16) - 0000000000871759 [17:32:17]1040 (4) - 166838 [17:32:17]1012 (4) - 23.10.2024 11:10 [17:32:17]1206 (1) - 0 [17:32:17]OFD Sender: Remove packet 166838 [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00166838 [17:32:17]NVStorageDeleteData [17:32:17]Write to MH i2c: 01 00 00 6B 39 A4 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 6B 39 00 00 00 00 00 BC 0C 73 [17:32:17]RasterBufferAndPrint [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]written 0, free lines is 3267 [17:32:17]MH_Cut [17:32:17]Write to MH i2c: D1 01 00 72 39 01 7D [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 01 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 01 00 72 39 00 7C [17:32:17]Write to MH i2c: 01 00 00 73 39 AC [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:18]OFD Sender: No OFD packet to send [17:32:18]*** Cut start [17:32:18]*** Partial cut [17:32:18]*** CUTSNS_PIN = 1 [17:32:18]*** CUTSNS_PIN = 0 [17:32:19]*** Brake cut motor [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]*** Stop cut motor [17:32:19]*** Cut end [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 FF 0F C1 [17:32:19]process_action close_receipt done [17:32:19]requested_data is exist [17:32:19]produce_requested_data [17:32:19]requested_item fm.sn is exist - process it [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 11 00 00 [17:32:19]Write to MH i2c: E2 08 00 74 39 80 11 00 00 00 00 00 00 27 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 74 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [17:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:32:19]wFMCommunicate OK [17:32:19]requested_item fd.num is exist - process it [17:32:19]SAM_PROTO_GetFieldsCounters [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 13 00 00 [17:32:19]Write to MH i2c: E2 08 00 75 39 80 13 00 00 00 00 00 00 2A [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 62 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 62 00 75 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [17:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_GetFieldsCounters done [17:32:19]requested_item shift.num is exist - process it [17:32:19]requested_item shift.opened is exist - process it [17:32:19]req_shift_opened [17:32:19]FM_GetShiftState [17:32:19]SAM_PROTO_GetShiftState [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 13 01 00 [17:32:19]Write to MH i2c: E2 08 00 76 39 80 13 01 00 00 00 00 00 2C [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 76 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F7 [17:32:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_GetShiftState done [17:32:19]FM_GetShiftState done [17:32:19]req_shift_opened done [17:32:19]requested_item shift.open_date is exist - process it [17:32:19]req_shift_open_date [17:32:19]req_shift_open_date done [17:32:19]produce_requested_data done [17:32:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166838,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:32:19]process_action_free close_receipt [17:32:19]json_value_free [17:32:19]json_value_free done [17:32:19]process_json_proto returns [17:32:19]Send response to host [17:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166838,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:32:19]free response buf [17:32:19]execute_script done [17:32:19]execute_script returns [17:32:19]free content buf [17:32:19]Sock 9.Close socket [17:32:19]Sock 9.Thread stoped [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:52]accept exits with 8 [17:32:52]New connection [17:32:52]New thread 3067034980 created [17:32:52]Thread 3067178340 joined [17:32:52]Waiting for new connection... [17:32:52] Sock 8.Parse request [17:32:52]Sock 8.Check first char [17:32:52]Sock 8.First char is OK [17:32:52]request: POST /json_proto HTTP/1.0 [17:32:52]Method: POST [17:32:52]URL: /json_proto [17:32:52]Method is POST - this is cgi request [17:32:52]url: /json_proto [17:32:52]query_string will be loaded in cgi processing [17:32:52]execute_cgi json_proto POST (null) [17:32:52]execute_cgi path=json_proto method=POST [17:32:52]POST find Content-Length [17:32:52]Host: 172.17.53.195:8080 [17:32:52]Content-Length: 678 [17:32:52]Content-Type: application/json [17:32:52] [17:32:52]POST finish read [17:32:52]Found Content-Length = 678 [17:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:52]execute_script... [17:32: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)221424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:52]POST & json_proto [17:32:52]process_json_proto [17:32:52]json parsed OK: [17:32:52]protocol is kg_v1.0 [17:32:52]action value=close_receipt [17:32:52]process_action close_receipt [17:32:52]cmd_close_receipt [17:32:52]MH_GetDate [17:32:52]Write to MH i2c: F0 00 00 77 39 9F [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: F0 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: F0 09 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: F0 09 00 77 39 00 46 33 19 67 21 48 4A 65 B9 [17:32:52]GetLastDocTimeStamp 1729704737 [17:32:52]current date 1729704774 [17:32:52]FM_GetShiftState [17:32:52]SAM_PROTO_GetShiftState [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 13 01 00 [17:32:52]Write to MH i2c: E2 08 00 78 39 80 13 01 00 00 00 00 00 2E [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0E 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0E 00 78 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F9 [17:32:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:32:52]wFMCommunicate OK [17:32:52]SAM_PROTO_GetShiftState done [17:32:52]FM_GetShiftState done [17:32:52]opened in 1729643772 [17:32:52]opened+sec_in_day 1729730172 [17:32:52]quantity*price = 70044 [17:32:52]sum+1 = 70045 [17:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 254 23.10.2024 17:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166839 ФПД: 195458409455912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166839&fm=195458409455912&tin=02508201610067®Number=0000000000091764&sum=70000 [17:32:53]StoreToDocumentArchive [17:32:53]shift 537 fd 166839 [17:32:53]save to /storage/0537/doc_00166839 [17:32:53]save last doc name /storage/0537/doc_00166839 to /storage/kkm_last_doc_name [17:32:53]save OK [17:32:53]Clear old archive folders... [17:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:53]tlvbuf is 01FDA280 [17:32:53]SAM_PROTO_ClearQueue [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 09 00 00 [17:32:53]Write to MH i2c: E2 08 00 85 39 80 09 00 00 00 00 00 00 30 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 85 39 00 90 00 32 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_ClearQueue done [17:32:53]KKMCreateOFDPacket [17:32:53]OFDProtocolAddRootSTLVToBuf [17:32:53]FM_MakeSignedData [17:32:53]FM_MakeSignedData [17:32:53]SAM_PROTO_SignData [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 01 02 [17:32:53]Write to MH i2c: E2 08 00 86 39 80 0D 01 02 00 00 00 00 38 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 86 39 00 90 00 33 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=255 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8B 02 00 35 04 06 00 B1 [17:32:53]Write to MH i2c: E2 02 01 87 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8B 02 00 35 04 06 00 B1 00 00 E5 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 87 39 00 90 00 34 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=10 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 02 02 05 C4 B5 10 61 28 [17:32:53]Write to MH i2c: E2 0D 00 88 39 80 0D 02 02 05 00 C4 B5 10 61 28 00 00 57 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 88 39 00 90 00 35 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 03 02 [17:32:53]Write to MH i2c: E2 08 00 89 39 80 0D 03 02 00 00 00 00 3D [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:54]Read from MH i2c: E2 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 0B 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 0B 00 89 39 00 72 E0 75 30 CF 52 19 1E 90 00 8D [17:32:54]RAPDU: 72 E0 75 30 CF 52 19 1E 90 00 [17:32:54]wFMCommunicate OK [17:32:54]SAM_PROTO_SignData done [17:32:54]FM_MakeSignedData done [17:32:54]CreateOFDProtocolMessage [17:32:54]wFMCommunicate request_size=4 [17:32:54]MH_SAM_APDU [17:32:54]CAPDU: 80 11 00 00 [17:32:54]Write to MH i2c: E2 08 00 8A 39 80 11 00 00 00 00 00 00 3D [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:54]Read from MH i2c: E2 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 17 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 17 00 8A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [17:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:32:54]wFMCommunicate OK [17:32:54]CreateOFDProtocolMessage done [17:32:54]OFDSenderStorePacket 166839 [17:32:54]StoreOFDPacket docnum=166839 [17:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2E 7E 07 01 8F 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8B 02 00 35 04 06 00 B1 C4 B5 10 61 28 72 E0 75 30 CF 52 19 1E [17:32:54]CheckFolder [17:32:54]dirname=/storage/ofd_packets [17:32:54]CheckFolder done [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00166839 [17:32:54]NVStorageSaveData ofd_packets/00166839 [17:32:54]File name is /storage/ofd_packets/00166839 [17:32:54]Write 301 bytes [17:32:54]NVStorageSaveData done [17:32:54]OFDSenderStorePacket done [17:32:54]KKMCreateOFDPacket done [17:32:54]NVStorageSaveData kkm_last_timestamp [17:32:54]File name is /storage/kkm_last_timestamp [17:32:54]Write 4 bytes [17:32:54]NVStorageSaveData done [17:32:54]ExternCall_PrintAddStr [17:32:54]wPrintStart [17:32:54]Write to MH i2c: 01 00 00 8B 39 C4 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 8B 39 00 00 00 00 00 FF 0F D9 [17:32:54]RasterBufferAndPrint [17:32:54]line Счет N : (1)221424 [17:32:54]line ИНН: 02508201610067 [17:32:54]line Контрольно-Кассовый Чек [17:32:54]line ПРОДАЖА [17:32:54]line ТРК (МРК, ГНК) : 43 [17:32:54]line Товар: 2710124130 [17:32:54]line Аи-92-К-5 [17:32:54]line 10.470 * 66.90 [17:32:54]line = 700.44 [17:32:54]line НДС 12% НСП 1% [17:32:54]line > о реализуемом товаре [17:32:54]line ОКРУГЛЕНИЕ: -0.44 [17:32:54]line ИТОГО: 700.00 [17:32:54]line Внесено: 700.00 [17:32:54]line СДАЧА: 0.00 [17:32:54]line НСП 1% : 6.20 [17:32:54]line НДС 12% : 74.38 [17:32:54]line Наличными: 700.00 [17:32:54]line Безнал.: 0.00 [17:32:54]line Место: АЗС № 161 "Партнер Нефть" [17:32:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:32:54]line СНО: Общий режим [17:32:54]line Чек 254 23.10.2024 17:32 [17:32:54]line Смена: 537 ФФД: 1.0 [17:32:54]line ЗНМ: 0300000104 [17:32:54]line РНМ: 0000000000091764 [17:32:54]line Версия ККМ: 001 [17:32:54]line ФМ: 0000000000871759 [17:32:54]line ФД: 166839 [17:32:54]line ФПД: 195458409455912 [17:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166839&fm=195458409455912&tin=02508201610067®Number=0000000000091764&sum=70000 [17:32:54]OFD Sender: Processing packet 166839 [packets to send 48, broken 47] [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00166839 [17:32:54]OFD Sender: To server: pG, [17:32:54]CommunicateWithHost lk.salyk.kg:30040 [17:32:54]ConnectInit lk.salyk.kg [17:32:54]written 0, free lines is 4095 [17:32:54]Connected sock=10 [17:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2E 7E 07 01 8F 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8B 02 00 35 04 06 00 B1 C4 B5 10 61 28 72 E0 75 30 CF 52 19 1E [17:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 67 4F 47 00 DB 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8B 02 00 F4 03 04 00 AD D9 18 67 B6 04 01 00 00 AC 58 AD 9C CB 30 47 7B [17:32:54]CommunicateWithHost err = 0 [17:32:54]CheckOFDResponse [17:32:54]1017 (14) - 77093643461234 [17:32:54]1041 (16) - 0000000000871759 [17:32:54]1040 (4) - 166839 [17:32:54]1012 (4) - 23.10.2024 11:10 [17:32:54]1206 (1) - 0 [17:32:54]OFD Sender: Remove packet 166839 [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00166839 [17:32:54]NVStorageDeleteData [17:32:54]Write to MH i2c: 01 00 00 B6 39 EF [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 BB 0C BD [17:32:54]RasterBufferAndPrint [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]written 0, free lines is 3266 [17:32:54]MH_Cut [17:32:54]Write to MH i2c: D1 01 00 BD 39 01 C8 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 BD 39 00 C7 [17:32:54]Write to MH i2c: 01 00 00 BE 39 F7 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:55]OFD Sender: No OFD packet to send [17:32:55]*** Cut start [17:32:55]*** Partial cut [17:32:55]*** CUTSNS_PIN = 1 [17:32:55]*** CUTSNS_PIN = 0 [17:32:56]*** Brake cut motor [17:32:56]Read from MH i2c: 01 [17:32:56]MH_I2C_Read... [17:32:56]*** Stop cut motor [17:32:56]*** Cut end [17:32:56]Read from MH i2c: 01 07 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [17:32:56]process_action close_receipt done [17:32:56]requested_data is exist [17:32:56]produce_requested_data [17:32:56]requested_item fm.sn is exist - process it [17:32:56]wFMCommunicate request_size=4 [17:32:56]MH_SAM_APDU [17:32:56]CAPDU: 80 11 00 00 [17:32:56]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [17:32:56]Write i2c OK [17:32:56]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 17 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [17:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:32:56]wFMCommunicate OK [17:32:56]requested_item fd.num is exist - process it [17:32:56]SAM_PROTO_GetFieldsCounters [17:32:56]wFMCommunicate request_size=4 [17:32:56]MH_SAM_APDU [17:32:56]CAPDU: 80 13 00 00 [17:32:56]Write to MH i2c: E2 08 00 C0 39 80 13 00 00 00 00 00 00 75 [17:32:56]Write i2c OK [17:32:56]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 62 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 62 00 C0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetFieldsCounters done [17:32:56]requested_item shift.num is exist - process it [17:32:56]requested_item shift.opened is exist - process it [17:32:56]req_shift_opened [17:32:56]FM_GetShiftState [17:32:56]SAM_PROTO_GetShiftState [17:32:56]wFMCommunicate request_size=4 [17:32:56]MH_SAM_APDU [17:32:56]CAPDU: 80 13 01 00 [17:32:56]Write to MH i2c: E2 08 00 C1 39 80 13 01 00 00 00 00 00 77 [17:32:56]Write i2c OK [17:32:56]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 C1 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 42 [17:32:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetShiftState done [17:32:56]FM_GetShiftState done [17:32:56]req_shift_opened done [17:32:56]requested_item shift.open_date is exist - process it [17:32:56]req_shift_open_date [17:32:56]req_shift_open_date done [17:32:56]produce_requested_data done [17:32:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166839,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:32:56]process_action_free close_receipt [17:32:56]json_value_free [17:32:56]json_value_free done [17:32:56]process_json_proto returns [17:32:56]Send response to host [17:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166839,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:32:56]free response buf [17:32:56]execute_script done [17:32:56]execute_script returns [17:32:56]free content buf [17:32:56]Sock 8.Close socket [17:32:56]Sock 8.Thread stoped [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:34:55]accept exits with 9 [17:34:55]New connection [17:34:55]New thread 3067178340 created [17:34:55]Thread 3067034980 joined [17:34:55]Waiting for new connection... [17:34:55] Sock 9.Parse request [17:34:55]Sock 9.Check first char [17:34:55]Sock 9.First char is OK [17:34:55]request: POST /json_proto HTTP/1.0 [17:34:55]Method: POST [17:34:55]URL: /json_proto [17:34:55]Method is POST - this is cgi request [17:34:55]url: /json_proto [17:34:55]query_string will be loaded in cgi processing [17:34:55]execute_cgi json_proto POST (null) [17:34:55]execute_cgi path=json_proto method=POST [17:34:55]POST find Content-Length [17:34:55]Host: 172.17.53.195:8080 [17:34:55]Content-Length: 678 [17:34:55]Content-Type: application/json [17:34:55] [17:34:55]POST finish read [17:34:55]Found Content-Length = 678 [17:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:55]execute_script... [17:34: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)221426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:55]POST & json_proto [17:34:55]process_json_proto [17:34:55]json parsed OK: [17:34:55]protocol is kg_v1.0 [17:34:55]action value=close_receipt [17:34:55]process_action close_receipt [17:34:55]cmd_close_receipt [17:34:55]MH_GetDate [17:34:55]Write to MH i2c: F0 00 00 C2 39 EA [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 09 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 09 00 C2 39 00 C1 33 19 67 21 48 4A 65 7F [17:34:55]GetLastDocTimeStamp 1729704774 [17:34:55]current date 1729704897 [17:34:55]FM_GetShiftState [17:34:55]SAM_PROTO_GetShiftState [17:34:55]wFMCommunicate request_size=4 [17:34:55]MH_SAM_APDU [17:34:55]CAPDU: 80 13 01 00 [17:34:55]Write to MH i2c: E2 08 00 C3 39 80 13 01 00 00 00 00 00 79 [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:55]Read from MH i2c: E2 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: E2 0E 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: E2 0E 00 C3 39 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 44 [17:34:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:34:55]wFMCommunicate OK [17:34:55]SAM_PROTO_GetShiftState done [17:34:55]FM_GetShiftState done [17:34:55]opened in 1729643772 [17:34:55]opened+sec_in_day 1729730172 [17:34:55]quantity*price = 70044 [17:34:55]sum+1 = 70045 [17:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 255 23.10.2024 17:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166840 ФПД: 161969948222728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166840&fm=161969948222728&tin=02508201610067®Number=0000000000091764&sum=70000 [17:34:56]StoreToDocumentArchive [17:34:56]shift 537 fd 166840 [17:34:56]save to /storage/0537/doc_00166840 [17:34:56]save last doc name /storage/0537/doc_00166840 to /storage/kkm_last_doc_name [17:34:56]save OK [17:34:56]Clear old archive folders... [17:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:56]tlvbuf is 0206D540 [17:34:56]SAM_PROTO_ClearQueue [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 09 00 00 [17:34:56]Write to MH i2c: E2 08 00 D0 39 80 09 00 00 00 00 00 00 7B [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:56]Read from MH i2c: E2 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [17:34:56]RAPDU: 90 00 [17:34:56]wFMCommunicate OK [17:34:56]SAM_PROTO_ClearQueue done [17:34:56]KKMCreateOFDPacket [17:34:56]OFDProtocolAddRootSTLVToBuf [17:34:56]FM_MakeSignedData [17:34:56]FM_MakeSignedData [17:34:56]SAM_PROTO_SignData [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 0D 01 02 [17:34:56]Write to MH i2c: E2 08 00 D1 39 80 0D 01 02 00 00 00 00 83 [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:56]Read from MH i2c: E2 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [17:34:56]RAPDU: 90 00 [17:34:56]wFMCommunicate OK [17:34:56]wFMCommunicate request_size=255 [17:34:56]MH_SAM_APDU [17:34: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C1 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8B 02 00 35 04 06 00 93 [17:34:56]Write to MH i2c: E2 02 01 D2 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C1 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8B 02 00 35 04 06 00 93 00 00 8F [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:56]Read from MH i2c: E2 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [17:34:56]RAPDU: 90 00 [17:34:56]wFMCommunicate OK [17:34:56]wFMCommunicate request_size=10 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 0D 02 02 05 4F 91 3A 65 08 [17:34:56]Write to MH i2c: E2 0D 00 D3 39 80 0D 02 02 05 00 4F 91 3A 65 08 00 00 17 [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:56]Read from MH i2c: E2 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 [17:34:56]MH_I2C_Read... [17:34:56]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [17:34:56]RAPDU: 90 00 [17:34:56]wFMCommunicate OK [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 0D 03 02 [17:34:56]Write to MH i2c: E2 08 00 D4 39 80 0D 03 02 00 00 00 00 88 [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0B 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0B 00 D4 39 00 B0 86 FC FD 37 84 8D 80 90 00 80 [17:34:57]RAPDU: B0 86 FC FD 37 84 8D 80 90 00 [17:34:57]wFMCommunicate OK [17:34:57]SAM_PROTO_SignData done [17:34:57]FM_MakeSignedData done [17:34:57]CreateOFDProtocolMessage [17:34:57]wFMCommunicate request_size=4 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 11 00 00 [17:34:57]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 17 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [17:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:34:57]wFMCommunicate OK [17:34:57]CreateOFDProtocolMessage done [17:34:57]OFDSenderStorePacket 166840 [17:34:57]StoreOFDPacket docnum=166840 [17:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 A4 07 01 7C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C1 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8B 02 00 35 04 06 00 93 4F 91 3A 65 08 B0 86 FC FD 37 84 8D 80 [17:34:57]CheckFolder [17:34:57]dirname=/storage/ofd_packets [17:34:57]CheckFolder done [17:34:57]ProducePacketName [17:34:57]name=ofd_packets/00166840 [17:34:57]NVStorageSaveData ofd_packets/00166840 [17:34:57]File name is /storage/ofd_packets/00166840 [17:34:57]Write 301 bytes [17:34:57]NVStorageSaveData done [17:34:57]OFDSenderStorePacket done [17:34:57]KKMCreateOFDPacket done [17:34:57]NVStorageSaveData kkm_last_timestamp [17:34:57]File name is /storage/kkm_last_timestamp [17:34:57]Write 4 bytes [17:34:57]NVStorageSaveData done [17:34:57]ExternCall_PrintAddStr [17:34:57]wPrintStart [17:34:57]Write to MH i2c: 01 00 00 D6 39 0F [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [17:34:57]RasterBufferAndPrint [17:34:57]line Счет N : (1)221426 [17:34:57]line ИНН: 02508201610067 [17:34:57]line Контрольно-Кассовый Чек [17:34:57]line ПРОДАЖА [17:34:57]line ТРК (МРК, ГНК) : 23 [17:34:57]line Товар: 2710124130 [17:34:57]line Аи-92-К-5 [17:34:57]line 10.470 * 66.90 [17:34:57]line = 700.44 [17:34:57]line НДС 12% НСП 1% [17:34:57]line > о реализуемом товаре [17:34:57]line ОКРУГЛЕНИЕ: -0.44 [17:34:57]line ИТОГО: 700.00 [17:34:57]line Внесено: 700.00 [17:34:57]line СДАЧА: 0.00 [17:34:57]line НСП 1% : 6.20 [17:34:57]line НДС 12% : 74.38 [17:34:57]line Наличными: 700.00 [17:34:57]line Безнал.: 0.00 [17:34:57]line Место: АЗС № 161 "Партнер Нефть" [17:34:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:34:57]line СНО: Общий режим [17:34:57]line Чек 255 23.10.2024 17:34 [17:34:57]line Смена: 537 ФФД: 1.0 [17:34:57]line ЗНМ: 0300000104 [17:34:57]line РНМ: 0000000000091764 [17:34:57]line Версия ККМ: 001 [17:34:57]line ФМ: 0000000000871759 [17:34:57]line ФД: 166840 [17:34:57]line ФПД: 161969948222728 [17:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166840&fm=161969948222728&tin=02508201610067®Number=0000000000091764&sum=70000 [17:34:57]OFD Sender: Processing packet 166840 [packets to send 48, broken 47] [17:34:57]ProducePacketName [17:34:57]name=ofd_packets/00166840 [17:34:57]OFD Sender: To server: pG, [17:34:57]CommunicateWithHost lk.salyk.kg:30040 [17:34:57]ConnectInit lk.salyk.kg [17:34:57]written 0, free lines is 4095 [17:34:57]Connected sock=10 [17:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 A4 07 01 7C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C1 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8B 02 00 35 04 06 00 93 4F 91 3A 65 08 B0 86 FC FD 37 84 8D 80 [17:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 D7 47 00 96 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8B 02 00 F4 03 04 00 28 DA 18 67 B6 04 01 00 00 C5 FC A8 B5 36 33 BA 24 [17:34:57]CommunicateWithHost err = 0 [17:34:57]CheckOFDResponse [17:34:57]1017 (14) - 77093643461234 [17:34:57]1041 (16) - 0000000000871759 [17:34:57]1040 (4) - 166840 [17:34:57]1012 (4) - 23.10.2024 11:12 [17:34:57]1206 (1) - 0 [17:34:57]OFD Sender: Remove packet 166840 [17:34:57]ProducePacketName [17:34:57]name=ofd_packets/00166840 [17:34:57]NVStorageDeleteData [17:34:57]Write to MH i2c: 01 00 00 01 3A 3B [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 01 3A 00 00 00 00 00 B8 0C 06 [17:34:57]RasterBufferAndPrint [17:34:57]line [17:34:57]line [17:34:57]line [17:34:57]line [17:34:57]line [17:34:57]written 0, free lines is 3263 [17:34:57]MH_Cut [17:34:57]Write to MH i2c: D1 01 00 08 3A 01 14 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: D1 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: D1 01 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: D1 01 00 08 3A 00 13 [17:34:57]Write to MH i2c: 01 00 00 09 3A 43 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:58]OFD Sender: No OFD packet to send [17:34:58]*** Cut start [17:34:58]*** Partial cut [17:34:58]*** CUTSNS_PIN = 1 [17:34:58]*** CUTSNS_PIN = 0 [17:34:59]*** Brake cut motor [17:34:59]Read from MH i2c: 01 [17:34:59]MH_I2C_Read... [17:34:59]*** Stop cut motor [17:34:59]*** Cut end [17:34:59]Read from MH i2c: 01 07 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: 01 07 00 09 3A 00 00 00 00 00 FF 0F 58 [17:34:59]process_action close_receipt done [17:34:59]requested_data is exist [17:34:59]produce_requested_data [17:34:59]requested_item fm.sn is exist - process it [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 11 00 00 [17:34:59]Write to MH i2c: E2 08 00 0A 3A 80 11 00 00 00 00 00 00 BE [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 0A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [17:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:34:59]wFMCommunicate OK [17:34:59]requested_item fd.num is exist - process it [17:34:59]SAM_PROTO_GetFieldsCounters [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 13 00 00 [17:34:59]Write to MH i2c: E2 08 00 0B 3A 80 13 00 00 00 00 00 00 C1 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 62 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 62 00 0B 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_GetFieldsCounters done [17:34:59]requested_item shift.num is exist - process it [17:34:59]requested_item shift.opened is exist - process it [17:34:59]req_shift_opened [17:34:59]FM_GetShiftState [17:34:59]SAM_PROTO_GetShiftState [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 13 01 00 [17:34:59]Write to MH i2c: E2 08 00 0C 3A 80 13 01 00 00 00 00 00 C3 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0E 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0E 00 0C 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8E [17:34:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_GetShiftState done [17:34:59]FM_GetShiftState done [17:34:59]req_shift_opened done [17:34:59]requested_item shift.open_date is exist - process it [17:34:59]req_shift_open_date [17:34:59]req_shift_open_date done [17:34:59]produce_requested_data done [17:34:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166840,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:34:59]process_action_free close_receipt [17:34:59]json_value_free [17:34:59]json_value_free done [17:34:59]process_json_proto returns [17:34:59]Send response to host [17:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166840,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:34:59]free response buf [17:34:59]execute_script done [17:34:59]execute_script returns [17:34:59]free content buf [17:34:59]Sock 9.Close socket [17:34:59]Sock 9.Thread stoped [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:15]accept exits with 8 [17:35:15]New connection [17:35:15]New thread 3067034980 created [17:35:15]Thread 3067178340 joined [17:35:15]Waiting for new connection... [17:35:15] Sock 8.Parse request [17:35:15]Sock 8.Check first char [17:35:15]Sock 8.First char is OK [17:35:15]request: POST /json_proto HTTP/1.0 [17:35:15]Method: POST [17:35:15]URL: /json_proto [17:35:15]Method is POST - this is cgi request [17:35:15]url: /json_proto [17:35:15]query_string will be loaded in cgi processing [17:35:15]execute_cgi json_proto POST (null) [17:35:15]execute_cgi path=json_proto method=POST [17:35:15]POST find Content-Length [17:35:15]Host: 172.17.53.195:8080 [17:35:15]Content-Length: 677 [17:35:15]Content-Type: application/json [17:35:15] [17:35:15]POST finish read [17:35:15]Found Content-Length = 677 [17:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:15]execute_script... [17:35: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)221427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:15]POST & json_proto [17:35:15]process_json_proto [17:35:15]json parsed OK: [17:35:15]protocol is kg_v1.0 [17:35:15]action value=close_receipt [17:35:15]process_action close_receipt [17:35:15]cmd_close_receipt [17:35:15]MH_GetDate [17:35:15]Write to MH i2c: F0 00 00 0D 3A 36 [17:35:15]Write i2c OK [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: F0 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: F0 09 00 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: F0 09 00 0D 3A 00 D5 33 19 67 21 48 4A 65 DF [17:35:15]GetLastDocTimeStamp 1729704897 [17:35:15]current date 1729704917 [17:35:15]FM_GetShiftState [17:35:15]SAM_PROTO_GetShiftState [17:35:15]wFMCommunicate request_size=4 [17:35:15]MH_SAM_APDU [17:35:15]CAPDU: 80 13 01 00 [17:35:15]Write to MH i2c: E2 08 00 0E 3A 80 13 01 00 00 00 00 00 C5 [17:35:15]Write i2c OK [17:35:15]MH_I2C_Read... [17:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:15]Read from MH i2c: E2 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: E2 0E 00 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: E2 0E 00 0E 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 90 [17:35:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:35:15]wFMCommunicate OK [17:35:15]SAM_PROTO_GetShiftState done [17:35:15]FM_GetShiftState done [17:35:15]opened in 1729643772 [17:35:15]opened+sec_in_day 1729730172 [17:35:15]quantity*price = 50041 [17:35:15]sum+1 = 50042 [17:35:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 256 23.10.2024 17:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166841 ФПД: 37849703106043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166841&fm=37849703106043&tin=02508201610067®Number=0000000000091764&sum=50000 [17:35:16]StoreToDocumentArchive [17:35:16]shift 537 fd 166841 [17:35:16]save to /storage/0537/doc_00166841 [17:35:16]save last doc name /storage/0537/doc_00166841 to /storage/kkm_last_doc_name [17:35:16]save OK [17:35:16]Clear old archive folders... [17:35:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:16]tlvbuf is 01FC7700 [17:35:16]SAM_PROTO_ClearQueue [17:35:16]wFMCommunicate request_size=4 [17:35:16]MH_SAM_APDU [17:35:16]CAPDU: 80 09 00 00 [17:35:16]Write to MH i2c: E2 08 00 1B 3A 80 09 00 00 00 00 00 00 C7 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 1B 3A 00 90 00 C9 [17:35:17]RAPDU: 90 00 [17:35:17]wFMCommunicate OK [17:35:17]SAM_PROTO_ClearQueue done [17:35:17]KKMCreateOFDPacket [17:35:17]OFDProtocolAddRootSTLVToBuf [17:35:17]FM_MakeSignedData [17:35:17]FM_MakeSignedData [17:35:17]SAM_PROTO_SignData [17:35:17]wFMCommunicate request_size=4 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 0D 01 02 [17:35:17]Write to MH i2c: E2 08 00 1C 3A 80 0D 01 02 00 00 00 00 CF [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [17:35:17]RAPDU: 90 00 [17:35:17]wFMCommunicate OK [17:35:17]wFMCommunicate request_size=255 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D5 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8B 02 00 35 04 06 00 22 [17:35:17]Write to MH i2c: E2 02 01 1D 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D5 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8B 02 00 35 04 06 00 22 00 00 71 [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [17:35:17]RAPDU: 90 00 [17:35:17]wFMCommunicate OK [17:35:17]wFMCommunicate request_size=10 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 0D 02 02 05 6C 92 1B C5 FB [17:35:17]Write to MH i2c: E2 0D 00 1E 3A 80 0D 02 02 05 00 6C 92 1B C5 FB 00 00 B5 [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 03 00 1E 3A 00 90 00 CC [17:35:17]RAPDU: 90 00 [17:35:17]wFMCommunicate OK [17:35:17]wFMCommunicate request_size=4 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 0D 03 02 [17:35:17]Write to MH i2c: E2 08 00 1F 3A 80 0D 03 02 00 00 00 00 D4 [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 0B 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 0B 00 1F 3A 00 68 A1 C6 56 D2 94 DC 3E 90 00 7A [17:35:17]RAPDU: 68 A1 C6 56 D2 94 DC 3E 90 00 [17:35:17]wFMCommunicate OK [17:35:17]SAM_PROTO_SignData done [17:35:17]FM_MakeSignedData done [17:35:17]CreateOFDProtocolMessage [17:35:17]wFMCommunicate request_size=4 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 11 00 00 [17:35:17]Write to MH i2c: E2 08 00 20 3A 80 11 00 00 00 00 00 00 D4 [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 17 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 17 00 20 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [17:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:35:17]wFMCommunicate OK [17:35:17]CreateOFDProtocolMessage done [17:35:17]OFDSenderStorePacket 166841 [17:35:17]StoreOFDPacket docnum=166841 [17:35:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 C0 07 01 63 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D5 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8B 02 00 35 04 06 00 22 6C 92 1B C5 FB 68 A1 C6 56 D2 94 DC 3E [17:35:17]CheckFolder [17:35:17]dirname=/storage/ofd_packets [17:35:17]CheckFolder done [17:35:17]ProducePacketName [17:35:17]name=ofd_packets/00166841 [17:35:17]NVStorageSaveData ofd_packets/00166841 [17:35:17]File name is /storage/ofd_packets/00166841 [17:35:17]Write 301 bytes [17:35:17]NVStorageSaveData done [17:35:17]OFDSenderStorePacket done [17:35:17]KKMCreateOFDPacket done [17:35:17]NVStorageSaveData kkm_last_timestamp [17:35:17]File name is /storage/kkm_last_timestamp [17:35:17]Write 4 bytes [17:35:17]NVStorageSaveData done [17:35:17]ExternCall_PrintAddStr [17:35:17]wPrintStart [17:35:17]Write to MH i2c: 01 00 00 21 3A 5B [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: 01 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: 01 07 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: 01 07 00 21 3A 00 00 00 00 00 FF 0F 70 [17:35:17]RasterBufferAndPrint [17:35:17]line Счет N : (1)221427 [17:35:17]line ИНН: 02508201610067 [17:35:17]line Контрольно-Кассовый Чек [17:35:17]line ПРОДАЖА [17:35:17]line ТРК (МРК, ГНК) : 33 [17:35:17]line Товар: 2710124130 [17:35:17]line Аи-92-К-5 [17:35:17]line 7.480 * 66.90 [17:35:17]line = 500.41 [17:35:17]line НДС 12% НСП 1% [17:35:17]line > о реализуемом товаре [17:35:17]line ОКРУГЛЕНИЕ: -0.41 [17:35:17]line ИТОГО: 500.00 [17:35:17]line Внесено: 500.00 [17:35:17]line СДАЧА: 0.00 [17:35:17]line НСП 1% : 4.43 [17:35:17]line НДС 12% : 53.14 [17:35:17]line Наличными: 500.00 [17:35:17]line Безнал.: 0.00 [17:35:17]line Место: АЗС № 161 "Партнер Нефть" [17:35:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:35:17]line СНО: Общий режим [17:35:17]line Чек 256 23.10.2024 17:35 [17:35:17]line Смена: 537 ФФД: 1.0 [17:35:17]line ЗНМ: 0300000104 [17:35:17]line РНМ: 0000000000091764 [17:35:17]line Версия ККМ: 001 [17:35:17]line ФМ: 0000000000871759 [17:35:17]line ФД: 166841 [17:35:17]line ФПД: 37849703106043 [17:35:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166841&fm=37849703106043&tin=02508201610067®Number=0000000000091764&sum=50000 [17:35:17]OFD Sender: Processing packet 166841 [packets to send 48, broken 47] [17:35:17]ProducePacketName [17:35:17]name=ofd_packets/00166841 [17:35:17]OFD Sender: To server: pG, [17:35:17]CommunicateWithHost lk.salyk.kg:30040 [17:35:17]ConnectInit lk.salyk.kg [17:35:17]written 0, free lines is 4095 [17:35:17]Connected sock=10 [17:35:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 C0 07 01 63 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D5 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8B 02 00 35 04 06 00 22 6C 92 1B C5 FB 68 A1 C6 56 D2 94 DC 3E [17:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 46 D0 47 00 BC 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8B 02 00 F4 03 04 00 3C DA 18 67 B6 04 01 00 00 0C 9E 55 7E B5 20 4E 7D [17:35:18]CommunicateWithHost err = 0 [17:35:18]CheckOFDResponse [17:35:18]1017 (14) - 77093643461234 [17:35:18]1041 (16) - 0000000000871759 [17:35:18]1040 (4) - 166841 [17:35:18]1012 (4) - 23.10.2024 11:13 [17:35:18]1206 (1) - 0 [17:35:18]OFD Sender: Remove packet 166841 [17:35:18]ProducePacketName [17:35:18]name=ofd_packets/00166841 [17:35:18]NVStorageDeleteData [17:35:18]Write to MH i2c: 01 00 00 4C 3A 86 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: 01 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: 01 07 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: 01 07 00 4C 3A 00 00 00 00 00 C6 0C 5F [17:35:18]RasterBufferAndPrint [17:35:18]line [17:35:18]line [17:35:18]line [17:35:18]line [17:35:18]line [17:35:18]written 0, free lines is 3276 [17:35:18]MH_Cut [17:35:18]Write to MH i2c: D1 01 00 53 3A 01 5F [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: D1 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: D1 01 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: D1 01 00 53 3A 00 5E [17:35:18]Write to MH i2c: 01 00 00 54 3A 8E [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]OFD Sender: No OFD packet to send [17:35:19]*** Cut start [17:35:19]*** Partial cut [17:35:19]*** CUTSNS_PIN = 1 [17:35:19]*** CUTSNS_PIN = 0 [17:35:19]*** Brake cut motor [17:35:19]Read from MH i2c: 01 [17:35:19]MH_I2C_Read... [17:35:19]*** Stop cut motor [17:35:19]*** Cut end [17:35:19]Read from MH i2c: 01 07 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [17:35:19]process_action close_receipt done [17:35:19]requested_data is exist [17:35:19]produce_requested_data [17:35:19]requested_item fm.sn is exist - process it [17:35:19]wFMCommunicate request_size=4 [17:35:19]MH_SAM_APDU [17:35:19]CAPDU: 80 11 00 00 [17:35:19]Write to MH i2c: E2 08 00 55 3A 80 11 00 00 00 00 00 00 09 [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:19]Read from MH i2c: E2 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 55 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [17:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:35:19]wFMCommunicate OK [17:35:19]requested_item fd.num is exist - process it [17:35:19]SAM_PROTO_GetFieldsCounters [17:35:19]wFMCommunicate request_size=4 [17:35:19]MH_SAM_APDU [17:35:19]CAPDU: 80 13 00 00 [17:35:19]Write to MH i2c: E2 08 00 56 3A 80 13 00 00 00 00 00 00 0C [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:19]Read from MH i2c: E2 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 62 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 62 00 56 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:35:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetFieldsCounters done [17:35:20]requested_item shift.num is exist - process it [17:35:20]requested_item shift.opened is exist - process it [17:35:20]req_shift_opened [17:35:20]FM_GetShiftState [17:35:20]SAM_PROTO_GetShiftState [17:35:20]wFMCommunicate request_size=4 [17:35:20]MH_SAM_APDU [17:35:20]CAPDU: 80 13 01 00 [17:35:20]Write to MH i2c: E2 08 00 57 3A 80 13 01 00 00 00 00 00 0E [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:20]Read from MH i2c: E2 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 57 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D9 [17:35:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetShiftState done [17:35:20]FM_GetShiftState done [17:35:20]req_shift_opened done [17:35:20]requested_item shift.open_date is exist - process it [17:35:20]req_shift_open_date [17:35:20]req_shift_open_date done [17:35:20]produce_requested_data done [17:35:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166841,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:35:20]process_action_free close_receipt [17:35:20]json_value_free [17:35:20]json_value_free done [17:35:20]process_json_proto returns [17:35:20]Send response to host [17:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166841,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:35:20]free response buf [17:35:20]execute_script done [17:35:20]execute_script returns [17:35:20]free content buf [17:35:20]Sock 8.Close socket [17:35:20]Sock 8.Thread stoped [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:44]accept exits with 9 [17:35:44]New connection [17:35:44]New thread 3067178340 created [17:35:44]Thread 3067034980 joined [17:35:44]Waiting for new connection... [17:35:44] Sock 9.Parse request [17:35:44]Sock 9.Check first char [17:35:44]Sock 9.First char is OK [17:35:44]request: POST /json_proto HTTP/1.0 [17:35:44]Method: POST [17:35:44]URL: /json_proto [17:35:44]Method is POST - this is cgi request [17:35:44]url: /json_proto [17:35:44]query_string will be loaded in cgi processing [17:35:44]execute_cgi json_proto POST (null) [17:35:44]execute_cgi path=json_proto method=POST [17:35:44]POST find Content-Length [17:35:44]Host: 172.17.53.195:8080 [17:35:44]Content-Length: 769 [17:35:44]Content-Type: application/json [17:35:44] [17:35:44]POST finish read [17:35:44]Found Content-Length = 769 [17:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:44]execute_script... [17:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:44]POST & json_proto [17:35:44]process_json_proto [17:35:44]json parsed OK: [17:35:44]protocol is kg_v1.0 [17:35:44]action value=close_receipt [17:35:44]process_action close_receipt [17:35:44]cmd_close_receipt [17:35:44]MH_GetDate [17:35:44]Write to MH i2c: F0 00 00 58 3A 81 [17:35:44]Write i2c OK [17:35:44]MH_I2C_Read... [17:35:44]Read from MH i2c: F0 [17:35:44]MH_I2C_Read... [17:35:44]Read from MH i2c: F0 09 00 [17:35:44]MH_I2C_Read... [17:35:44]Read from MH i2c: F0 09 00 58 3A 00 F2 33 19 67 21 48 4A 65 47 [17:35:44]GetLastDocTimeStamp 1729704917 [17:35:44]current date 1729704946 [17:35:44]FM_GetShiftState [17:35:44]SAM_PROTO_GetShiftState [17:35:44]wFMCommunicate request_size=4 [17:35:44]MH_SAM_APDU [17:35:44]CAPDU: 80 13 01 00 [17:35:44]Write to MH i2c: E2 08 00 59 3A 80 13 01 00 00 00 00 00 10 [17:35:44]Write i2c OK [17:35:44]MH_I2C_Read... [17:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:44]Read from MH i2c: E2 [17:35:44]MH_I2C_Read... [17:35:44]Read from MH i2c: E2 0E 00 [17:35:44]MH_I2C_Read... [17:35:44]Read from MH i2c: E2 0E 00 59 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DB [17:35:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:35:44]wFMCommunicate OK [17:35:44]SAM_PROTO_GetShiftState done [17:35:44]FM_GetShiftState done [17:35:44]opened in 1729643772 [17:35:44]opened+sec_in_day 1729730172 [17:35:44]quantity*price = 100015 [17:35:44]sum+1 = 100017 [17:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 257 23.10.2024 17:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166842 ФПД: 66526983984603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173546&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166842&fm=66526983984603&tin=02508201610067®Number=0000000000091764&sum=100016 [17:35:45]StoreToDocumentArchive [17:35:45]shift 537 fd 166842 [17:35:45]save to /storage/0537/doc_00166842 [17:35:45]save last doc name /storage/0537/doc_00166842 to /storage/kkm_last_doc_name [17:35:45]save OK [17:35:45]Clear old archive folders... [17:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:45]tlvbuf is 01FAF930 [17:35:45]SAM_PROTO_ClearQueue [17:35:45]wFMCommunicate request_size=4 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 09 00 00 [17:35:45]Write to MH i2c: E2 08 00 66 3A 80 09 00 00 00 00 00 00 12 [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:45]Read from MH i2c: E2 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [17:35:45]RAPDU: 90 00 [17:35:45]wFMCommunicate OK [17:35:45]SAM_PROTO_ClearQueue done [17:35:45]KKMCreateOFDPacket [17:35:45]OFDProtocolAddRootSTLVToBuf [17:35:45]FM_MakeSignedData [17:35:45]FM_MakeSignedData [17:35:45]SAM_PROTO_SignData [17:35:45]wFMCommunicate request_size=4 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 0D 01 02 [17:35:45]Write to MH i2c: E2 08 00 67 3A 80 0D 01 02 00 00 00 00 1A [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:45]Read from MH i2c: E2 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [17:35:45]RAPDU: 90 00 [17:35:45]wFMCommunicate OK [17:35:45]wFMCommunicate request_size=255 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F2 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8B 02 00 35 04 06 00 3C [17:35:45]Write to MH i2c: E2 02 01 68 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F2 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8B 02 00 35 04 06 00 3C 00 00 0F [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:45]Read from MH i2c: E2 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [17:35:45]RAPDU: 90 00 [17:35:45]wFMCommunicate OK [17:35:45]wFMCommunicate request_size=10 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 0D 02 02 05 81 85 3F 95 DB [17:35:45]Write to MH i2c: E2 0D 00 69 3A 80 0D 02 02 05 00 81 85 3F 95 DB 00 00 DC [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:45]Read from MH i2c: E2 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [17:35:45]RAPDU: 90 00 [17:35:45]wFMCommunicate OK [17:35:45]wFMCommunicate request_size=4 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 0D 03 02 [17:35:45]Write to MH i2c: E2 08 00 6A 3A 80 0D 03 02 00 00 00 00 1F [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:46]Read from MH i2c: E2 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 0B 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 0B 00 6A 3A 00 54 2B 52 A0 01 68 E3 41 90 00 1E [17:35:46]RAPDU: 54 2B 52 A0 01 68 E3 41 90 00 [17:35:46]wFMCommunicate OK [17:35:46]SAM_PROTO_SignData done [17:35:46]FM_MakeSignedData done [17:35:46]CreateOFDProtocolMessage [17:35:46]wFMCommunicate request_size=4 [17:35:46]MH_SAM_APDU [17:35:46]CAPDU: 80 11 00 00 [17:35:46]Write to MH i2c: E2 08 00 6B 3A 80 11 00 00 00 00 00 00 1F [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:46]Read from MH i2c: E2 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 17 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 17 00 6B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [17:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:35:46]wFMCommunicate OK [17:35:46]CreateOFDProtocolMessage done [17:35:46]OFDSenderStorePacket 166842 [17:35:46]StoreOFDPacket docnum=166842 [17:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 03 07 01 BD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F2 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8B 02 00 35 04 06 00 3C 81 85 3F 95 DB 54 2B 52 A0 01 68 E3 41 [17:35:46]CheckFolder [17:35:46]dirname=/storage/ofd_packets [17:35:46]CheckFolder done [17:35:46]ProducePacketName [17:35:46]name=ofd_packets/00166842 [17:35:46]NVStorageSaveData ofd_packets/00166842 [17:35:46]File name is /storage/ofd_packets/00166842 [17:35:46]Write 301 bytes [17:35:46]NVStorageSaveData done [17:35:46]OFDSenderStorePacket done [17:35:46]KKMCreateOFDPacket done [17:35:46]NVStorageSaveData kkm_last_timestamp [17:35:46]File name is /storage/kkm_last_timestamp [17:35:46]Write 4 bytes [17:35:46]NVStorageSaveData done [17:35:46]ExternCall_PrintAddStr [17:35:46]wPrintStart [17:35:46]Write to MH i2c: 01 00 00 6C 3A A6 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 07 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [17:35:46]RasterBufferAndPrint [17:35:46]line Счет N : (1)221425 [17:35:46]line ИНН: 02508201610067 [17:35:46]line Контрольно-Кассовый Чек [17:35:46]line ПРОДАЖА [17:35:46]line ТРК (МРК, ГНК) : 13 [17:35:46]line Товар: 2710124130 [17:35:46]line Аи-92-К-5 [17:35:46]line 14.950 * 66.90 [17:35:46]line = 1000.16 [17:35:46]line НДС 12% НСП 1% [17:35:46]line > о реализуемом товаре [17:35:46]line ИТОГО: 1000.16 [17:35:46]line НСП 1% : 8.85 [17:35:46]line НДС 12% : 106.21 [17:35:46]line Наличными: 0.00 [17:35:46]line Безнал.: 1000.16 [17:35:46]line Место: АЗС № 161 "Партнер Нефть" [17:35:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:35:46]line СНО: Общий режим [17:35:46]line Чек 257 23.10.2024 17:35 [17:35:46]line Смена: 537 ФФД: 1.0 [17:35:46]line ЗНМ: 0300000104 [17:35:46]line РНМ: 0000000000091764 [17:35:46]line Версия ККМ: 001 [17:35:46]line Платежная система: Mbank [17:35:46]line ФМ: 0000000000871759 [17:35:46]line ФД: 166842 [17:35:46]line ФПД: 66526983984603 [17:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173546&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166842&fm=66526983984603&tin=02508201610067®Number=0000000000091764&sum=100016 [17:35:46]written 0, free lines is 4095 [17:35:46]OFD Sender: Processing packet 166842 [packets to send 48, broken 47] [17:35:46]ProducePacketName [17:35:46]name=ofd_packets/00166842 [17:35:46]OFD Sender: To server: pG, [17:35:46]CommunicateWithHost lk.salyk.kg:30040 [17:35:46]ConnectInit lk.salyk.kg [17:35:46]Connected sock=10 [17:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 03 07 01 BD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F2 33 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8B 02 00 35 04 06 00 3C 81 85 3F 95 DB 54 2B 52 A0 01 68 E3 41 [17:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 22 47 00 F2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8B 02 00 F4 03 04 00 59 DA 18 67 B6 04 01 00 00 9E 65 45 43 F7 4E D1 D6 [17:35:46]CommunicateWithHost err = 0 [17:35:46]CheckOFDResponse [17:35:46]1017 (14) - 77093643461234 [17:35:46]1041 (16) - 0000000000871759 [17:35:46]1040 (4) - 166842 [17:35:46]1012 (4) - 23.10.2024 11:13 [17:35:46]1206 (1) - 0 [17:35:46]OFD Sender: Remove packet 166842 [17:35:46]ProducePacketName [17:35:46]name=ofd_packets/00166842 [17:35:46]NVStorageDeleteData [17:35:46]Write to MH i2c: 01 00 00 95 3A CF [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 07 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: 01 07 00 95 3A 00 00 00 00 00 DE 0C C0 [17:35:46]RasterBufferAndPrint [17:35:46]line [17:35:46]line [17:35:46]line [17:35:46]line [17:35:46]line [17:35:46]written 0, free lines is 3301 [17:35:46]MH_Cut [17:35:46]Write to MH i2c: D1 01 00 9C 3A 01 A8 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: D1 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: D1 01 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: D1 01 00 9C 3A 00 A7 [17:35:46]Write to MH i2c: 01 00 00 9D 3A D7 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:47]OFD Sender: No OFD packet to send [17:35:47]*** Cut start [17:35:47]*** Partial cut [17:35:47]*** CUTSNS_PIN = 1 [17:35:47]*** CUTSNS_PIN = 0 [17:35:47]*** Brake cut motor [17:35:48]Read from MH i2c: 01 [17:35:48]MH_I2C_Read... [17:35:48]*** Stop cut motor [17:35:48]*** Cut end [17:35:48]Read from MH i2c: 01 07 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 07 00 9D 3A 00 00 00 00 00 FF 0F EC [17:35:48]process_action close_receipt done [17:35:48]requested_data is exist [17:35:48]produce_requested_data [17:35:48]requested_item fm.sn is exist - process it [17:35:48]wFMCommunicate request_size=4 [17:35:48]MH_SAM_APDU [17:35:48]CAPDU: 80 11 00 00 [17:35:48]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:48]Read from MH i2c: E2 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 17 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [17:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:35:48]wFMCommunicate OK [17:35:48]requested_item fd.num is exist - process it [17:35:48]SAM_PROTO_GetFieldsCounters [17:35:48]wFMCommunicate request_size=4 [17:35:48]MH_SAM_APDU [17:35:48]CAPDU: 80 13 00 00 [17:35:48]Write to MH i2c: E2 08 00 9F 3A 80 13 00 00 00 00 00 00 55 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:48]Read from MH i2c: E2 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 62 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 62 00 9F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [17:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:48]wFMCommunicate OK [17:35:48]SAM_PROTO_GetFieldsCounters done [17:35:48]requested_item shift.num is exist - process it [17:35:48]requested_item shift.opened is exist - process it [17:35:48]req_shift_opened [17:35:48]FM_GetShiftState [17:35:48]SAM_PROTO_GetShiftState [17:35:48]wFMCommunicate request_size=4 [17:35:48]MH_SAM_APDU [17:35:48]CAPDU: 80 13 01 00 [17:35:48]Write to MH i2c: E2 08 00 A0 3A 80 13 01 00 00 00 00 00 57 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:48]Read from MH i2c: E2 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 0E 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: E2 0E 00 A0 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 22 [17:35:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:35:48]wFMCommunicate OK [17:35:48]SAM_PROTO_GetShiftState done [17:35:48]FM_GetShiftState done [17:35:48]req_shift_opened done [17:35:48]requested_item shift.open_date is exist - process it [17:35:48]req_shift_open_date [17:35:48]req_shift_open_date done [17:35:48]produce_requested_data done [17:35:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166842,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:35:48]process_action_free close_receipt [17:35:48]json_value_free [17:35:48]json_value_free done [17:35:48]process_json_proto returns [17:35:48]Send response to host [17:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166842,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:35:48]free response buf [17:35:48]execute_script done [17:35:48]execute_script returns [17:35:48]free content buf [17:35:48]Sock 9.Close socket [17:35:48]Sock 9.Thread stoped [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:34]accept exits with 8 [17:36:34]New connection [17:36:34]New thread 3067034980 created [17:36:34]Thread 3067178340 joined [17:36:34]Waiting for new connection... [17:36:34] Sock 8.Parse request [17:36:34]Sock 8.Check first char [17:36:34]Sock 8.First char is OK [17:36:34]request: POST /json_proto HTTP/1.0 [17:36:34]Method: POST [17:36:34]URL: /json_proto [17:36:34]Method is POST - this is cgi request [17:36:34]url: /json_proto [17:36:34]query_string will be loaded in cgi processing [17:36:34]execute_cgi json_proto POST (null) [17:36:34]execute_cgi path=json_proto method=POST [17:36:34]POST find Content-Length [17:36:34]Host: 172.17.53.195:8080 [17:36:34]Content-Length: 677 [17:36:34]Content-Type: application/json [17:36:34] [17:36:34]POST finish read [17:36:34]Found Content-Length = 677 [17:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:34]execute_script... [17:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:34]POST & json_proto [17:36:34]process_json_proto [17:36:34]json parsed OK: [17:36:34]protocol is kg_v1.0 [17:36:34]action value=close_receipt [17:36:34]process_action close_receipt [17:36:34]cmd_close_receipt [17:36:34]MH_GetDate [17:36:34]Write to MH i2c: F0 00 00 A1 3A CA [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 09 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 09 00 A1 3A 00 24 34 19 67 21 48 4A 65 C3 [17:36:34]GetLastDocTimeStamp 1729704946 [17:36:34]current date 1729704996 [17:36:34]FM_GetShiftState [17:36:34]SAM_PROTO_GetShiftState [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 13 01 00 [17:36:34]Write to MH i2c: E2 08 00 A2 3A 80 13 01 00 00 00 00 00 59 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 A2 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 24 [17:36:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_GetShiftState done [17:36:34]FM_GetShiftState done [17:36:34]opened in 1729643772 [17:36:34]opened+sec_in_day 1729730172 [17:36:34]quantity*price = 40006 [17:36:34]sum+1 = 40007 [17:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 258 23.10.2024 17:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166843 ФПД: 272910230104496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166843&fm=272910230104496&tin=02508201610067®Number=0000000000091764&sum=40000 [17:36:35]StoreToDocumentArchive [17:36:35]shift 537 fd 166843 [17:36:35]save to /storage/0537/doc_00166843 [17:36:35]save last doc name /storage/0537/doc_00166843 to /storage/kkm_last_doc_name [17:36:35]save OK [17:36:35]Clear old archive folders... [17:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:35]tlvbuf is 01F7F750 [17:36:35]SAM_PROTO_ClearQueue [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 09 00 00 [17:36:35]Write to MH i2c: E2 08 00 AF 3A 80 09 00 00 00 00 00 00 5B [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 AF 3A 00 90 00 5D [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_ClearQueue done [17:36:35]KKMCreateOFDPacket [17:36:35]OFDProtocolAddRootSTLVToBuf [17:36:35]FM_MakeSignedData [17:36:35]FM_MakeSignedData [17:36:35]SAM_PROTO_SignData [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 01 02 [17:36:35]Write to MH i2c: E2 08 00 B0 3A 80 0D 01 02 00 00 00 00 63 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 B0 3A 00 90 00 5E [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=255 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 24 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8B 02 00 35 04 06 00 F8 [17:36:35]Write to MH i2c: E2 02 01 B1 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 24 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8B 02 00 35 04 06 00 F8 00 00 FE [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 B1 3A 00 90 00 5F [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=10 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 05 35 DD 52 29 B0 [17:36:35]Write to MH i2c: E2 0D 00 B2 3A 80 0D 02 02 05 00 35 DD 52 29 B0 00 00 AD [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 03 02 [17:36:35]Write to MH i2c: E2 08 00 B3 3A 80 0D 03 02 00 00 00 00 68 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 B3 3A 00 B4 2A D3 7D E1 6F 48 2E 90 00 5D [17:36:35]RAPDU: B4 2A D3 7D E1 6F 48 2E 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_SignData done [17:36:35]FM_MakeSignedData done [17:36:35]CreateOFDProtocolMessage [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 11 00 00 [17:36:35]Write to MH i2c: E2 08 00 B4 3A 80 11 00 00 00 00 00 00 68 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 B4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [17:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:36:35]wFMCommunicate OK [17:36:35]CreateOFDProtocolMessage done [17:36:35]OFDSenderStorePacket 166843 [17:36:35]StoreOFDPacket docnum=166843 [17:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 2E 07 01 2B 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 24 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8B 02 00 35 04 06 00 F8 35 DD 52 29 B0 B4 2A D3 7D E1 6F 48 2E [17:36:35]CheckFolder [17:36:35]dirname=/storage/ofd_packets [17:36:35]CheckFolder done [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00166843 [17:36:35]NVStorageSaveData ofd_packets/00166843 [17:36:35]File name is /storage/ofd_packets/00166843 [17:36:35]Write 301 bytes [17:36:35]NVStorageSaveData done [17:36:35]OFDSenderStorePacket done [17:36:35]KKMCreateOFDPacket done [17:36:35]NVStorageSaveData kkm_last_timestamp [17:36:35]File name is /storage/kkm_last_timestamp [17:36:35]Write 4 bytes [17:36:35]NVStorageSaveData done [17:36:35]ExternCall_PrintAddStr [17:36:35]wPrintStart [17:36:35]Write to MH i2c: 01 00 00 B5 3A EF [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 B5 3A 00 00 00 00 00 FF 0F 04 [17:36:35]RasterBufferAndPrint [17:36:35]line Счет N : (1)221428 [17:36:35]line ИНН: 02508201610067 [17:36:35]line Контрольно-Кассовый Чек [17:36:35]line ПРОДАЖА [17:36:35]line ТРК (МРК, ГНК) : 43 [17:36:35]line Товар: 2710124130 [17:36:35]line Аи-92-К-5 [17:36:35]line 5.980 * 66.90 [17:36:35]line = 400.06 [17:36:35]line НДС 12% НСП 1% [17:36:35]line > о реализуемом товаре [17:36:35]line ОКРУГЛЕНИЕ: -0.06 [17:36:35]line ИТОГО: 400.00 [17:36:35]line Внесено: 400.00 [17:36:35]line СДАЧА: 0.00 [17:36:35]line НСП 1% : 3.54 [17:36:35]line НДС 12% : 42.48 [17:36:35]line Наличными: 400.00 [17:36:35]line Безнал.: 0.00 [17:36:35]line Место: АЗС № 161 "Партнер Нефть" [17:36:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:36:35]line СНО: Общий режим [17:36:35]line Чек 258 23.10.2024 17:36 [17:36:35]line Смена: 537 ФФД: 1.0 [17:36:35]line ЗНМ: 0300000104 [17:36:35]line РНМ: 0000000000091764 [17:36:35]line Версия ККМ: 001 [17:36:35]line ФМ: 0000000000871759 [17:36:35]line ФД: 166843 [17:36:35]line ФПД: 272910230104496 [17:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166843&fm=272910230104496&tin=02508201610067®Number=0000000000091764&sum=40000 [17:36:36]OFD Sender: Processing packet 166843 [packets to send 48, broken 47] [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00166843 [17:36:36]OFD Sender: To server: pG, [17:36:36]CommunicateWithHost lk.salyk.kg:30040 [17:36:36]ConnectInit lk.salyk.kg [17:36:36]written 0, free lines is 4095 [17:36:36]Connected sock=10 [17:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 2E 07 01 2B 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 24 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8B 02 00 35 04 06 00 F8 35 DD 52 29 B0 B4 2A D3 7D E1 6F 48 2E [17:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3E 34 47 00 3A 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8B 02 00 F4 03 04 00 8B DA 18 67 B6 04 01 00 00 8A CC BE 60 22 EC 7A 13 [17:36:36]CommunicateWithHost err = 0 [17:36:36]CheckOFDResponse [17:36:36]1017 (14) - 77093643461234 [17:36:36]1041 (16) - 0000000000871759 [17:36:36]1040 (4) - 166843 [17:36:36]1012 (4) - 23.10.2024 11:14 [17:36:36]1206 (1) - 0 [17:36:36]OFD Sender: Remove packet 166843 [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00166843 [17:36:36]NVStorageDeleteData [17:36:36]Write to MH i2c: 01 00 00 E0 3A 1A [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 E0 3A 00 00 00 00 00 BE 0C EB [17:36:36]RasterBufferAndPrint [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]written 0, free lines is 3268 [17:36:36]MH_Cut [17:36:36]Write to MH i2c: D1 01 00 E7 3A 01 F3 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 E7 3A 00 F2 [17:36:36]Write to MH i2c: 01 00 00 E8 3A 22 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:37]OFD Sender: No OFD packet to send [17:36:37]*** Cut start [17:36:37]*** Partial cut [17:36:37]*** CUTSNS_PIN = 1 [17:36:37]*** CUTSNS_PIN = 0 [17:36:37]*** Brake cut motor [17:36:38]Read from MH i2c: 01 [17:36:38]MH_I2C_Read... [17:36:38]*** Stop cut motor [17:36:38]*** Cut end [17:36:38]Read from MH i2c: 01 07 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: 01 07 00 E8 3A 00 00 00 00 00 FF 0F 37 [17:36:38]process_action close_receipt done [17:36:38]requested_data is exist [17:36:38]produce_requested_data [17:36:38]requested_item fm.sn is exist - process it [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 11 00 00 [17:36:38]Write to MH i2c: E2 08 00 E9 3A 80 11 00 00 00 00 00 00 9D [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 17 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 17 00 E9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [17:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:36:38]wFMCommunicate OK [17:36:38]requested_item fd.num is exist - process it [17:36:38]SAM_PROTO_GetFieldsCounters [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 13 00 00 [17:36:38]Write to MH i2c: E2 08 00 EA 3A 80 13 00 00 00 00 00 00 A0 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 62 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 62 00 EA 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:38]wFMCommunicate OK [17:36:38]SAM_PROTO_GetFieldsCounters done [17:36:38]requested_item shift.num is exist - process it [17:36:38]requested_item shift.opened is exist - process it [17:36:38]req_shift_opened [17:36:38]FM_GetShiftState [17:36:38]SAM_PROTO_GetShiftState [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 13 01 00 [17:36:38]Write to MH i2c: E2 08 00 EB 3A 80 13 01 00 00 00 00 00 A2 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 EB 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6D [17:36:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:36:38]wFMCommunicate OK [17:36:38]SAM_PROTO_GetShiftState done [17:36:38]FM_GetShiftState done [17:36:38]req_shift_opened done [17:36:38]requested_item shift.open_date is exist - process it [17:36:38]req_shift_open_date [17:36:38]req_shift_open_date done [17:36:38]produce_requested_data done [17:36:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166843,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:36:38]process_action_free close_receipt [17:36:38]json_value_free [17:36:38]json_value_free done [17:36:38]process_json_proto returns [17:36:38]Send response to host [17:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166843,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:36:38]free response buf [17:36:38]execute_script done [17:36:38]execute_script returns [17:36:38]free content buf [17:36:38]Sock 8.Close socket [17:36:38]Sock 8.Thread stoped [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:24]accept exits with 9 [17:37:24]New connection [17:37:24]New thread 3067178340 created [17:37:24]Thread 3067034980 joined [17:37:24]Waiting for new connection... [17:37:24] Sock 9.Parse request [17:37:24]Sock 9.Check first char [17:37:24]Sock 9.First char is OK [17:37:24]request: POST /json_proto HTTP/1.0 [17:37:24]Method: POST [17:37:24]URL: /json_proto [17:37:24]Method is POST - this is cgi request [17:37:24]url: /json_proto [17:37:24]query_string will be loaded in cgi processing [17:37:24]execute_cgi json_proto POST (null) [17:37:24]execute_cgi path=json_proto method=POST [17:37:24]POST find Content-Length [17:37:24]Host: 172.17.53.195:8080 [17:37:24]Content-Length: 679 [17:37:24]Content-Type: application/json [17:37:24] [17:37:24]POST finish read [17:37:24]Found Content-Length = 679 [17:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:24]execute_script... [17:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:24]POST & json_proto [17:37:24]process_json_proto [17:37:24]json parsed OK: [17:37:24]protocol is kg_v1.0 [17:37:24]action value=close_receipt [17:37:24]process_action close_receipt [17:37:24]cmd_close_receipt [17:37:24]MH_GetDate [17:37:24]Write to MH i2c: F0 00 00 EC 3A 15 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 09 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 09 00 EC 3A 00 57 34 19 67 21 48 4A 65 41 [17:37:24]GetLastDocTimeStamp 1729704996 [17:37:24]current date 1729705047 [17:37:24]FM_GetShiftState [17:37:24]SAM_PROTO_GetShiftState [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 01 00 [17:37:24]Write to MH i2c: E2 08 00 ED 3A 80 13 01 00 00 00 00 00 A4 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 ED 3A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6F [17:37:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetShiftState done [17:37:24]FM_GetShiftState done [17:37:24]opened in 1729643772 [17:37:24]opened+sec_in_day 1729730172 [17:37:24]quantity*price = 99948 [17:37:24]sum+1 = 99950 [17:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 259 23.10.2024 17:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166844 ФПД: 53761237994376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166844&fm=53761237994376&tin=02508201610067®Number=0000000000091764&sum=99900 [17:37:26]StoreToDocumentArchive [17:37:26]shift 537 fd 166844 [17:37:26]save to /storage/0537/doc_00166844 [17:37:26]save last doc name /storage/0537/doc_00166844 to /storage/kkm_last_doc_name [17:37:26]save OK [17:37:26]Clear old archive folders... [17:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:26]tlvbuf is 0206CCB0 [17:37:26]SAM_PROTO_ClearQueue [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 09 00 00 [17:37:26]Write to MH i2c: E2 08 00 FA 3A 80 09 00 00 00 00 00 00 A6 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 FA 3A 00 90 00 A8 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_ClearQueue done [17:37:26]KKMCreateOFDPacket [17:37:26]OFDProtocolAddRootSTLVToBuf [17:37:26]FM_MakeSignedData [17:37:26]FM_MakeSignedData [17:37:26]SAM_PROTO_SignData [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 01 02 [17:37:26]Write to MH i2c: E2 08 00 FB 3A 80 0D 01 02 00 00 00 00 AE [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 FB 3A 00 90 00 A9 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=255 [17:37:26]MH_SAM_APDU [17:37: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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 57 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8B 02 00 35 04 06 00 30 [17:37:26]Write to MH i2c: E2 02 01 FC 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 57 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8B 02 00 35 04 06 00 30 00 00 C4 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 FC 3A 00 90 00 AA [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=10 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 02 02 05 E5 43 7E 4B 88 [17:37:26]Write to MH i2c: E2 0D 00 FD 3A 80 0D 02 02 05 00 E5 43 7E 4B 88 00 00 34 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 FD 3A 00 90 00 AB [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 03 02 [17:37:26]Write to MH i2c: E2 08 00 FE 3A 80 0D 03 02 00 00 00 00 B3 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 FE 3A 00 23 41 37 A9 15 AB E7 ED 90 00 8C [17:37:26]RAPDU: 23 41 37 A9 15 AB E7 ED 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_SignData done [17:37:26]FM_MakeSignedData done [17:37:26]CreateOFDProtocolMessage [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 11 00 00 [17:37:26]Write to MH i2c: E2 08 00 FF 3A 80 11 00 00 00 00 00 00 B3 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 FF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [17:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:37:26]wFMCommunicate OK [17:37:26]CreateOFDProtocolMessage done [17:37:26]OFDSenderStorePacket 166844 [17:37:26]StoreOFDPacket docnum=166844 [17:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3D B6 07 01 02 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 57 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8B 02 00 35 04 06 00 30 E5 43 7E 4B 88 23 41 37 A9 15 AB E7 ED [17:37:26]CheckFolder [17:37:26]dirname=/storage/ofd_packets [17:37:26]CheckFolder done [17:37:26]ProducePacketName [17:37:26]name=ofd_packets/00166844 [17:37:26]NVStorageSaveData ofd_packets/00166844 [17:37:26]File name is /storage/ofd_packets/00166844 [17:37:26]Write 301 bytes [17:37:26]NVStorageSaveData done [17:37:26]OFDSenderStorePacket done [17:37:26]KKMCreateOFDPacket done [17:37:26]NVStorageSaveData kkm_last_timestamp [17:37:26]File name is /storage/kkm_last_timestamp [17:37:26]Write 4 bytes [17:37:26]NVStorageSaveData done [17:37:26]ExternCall_PrintAddStr [17:37:26]wPrintStart [17:37:26]Write to MH i2c: 01 00 00 00 3B 3B [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 00 3B 00 00 00 00 00 FF 0F 50 [17:37:26]RasterBufferAndPrint [17:37:26]line Счет N : (1)221429 [17:37:26]line ИНН: 02508201610067 [17:37:26]line Контрольно-Кассовый Чек [17:37:26]line ПРОДАЖА [17:37:26]line ТРК (МРК, ГНК) : 13 [17:37:26]line Товар: 2710124130 [17:37:26]line Аи-92-К-5 [17:37:26]line 14.940 * 66.90 [17:37:26]line = 999.49 [17:37:26]line НДС 12% НСП 1% [17:37:26]line > о реализуемом товаре [17:37:26]line ОКРУГЛЕНИЕ: -0.49 [17:37:26]line ИТОГО: 999.00 [17:37:26]line Внесено: 1000.00 [17:37:26]line СДАЧА: 1.00 [17:37:26]line НСП 1% : 8.84 [17:37:26]line НДС 12% : 106.14 [17:37:26]line Наличными: 999.00 [17:37:26]line Безнал.: 0.00 [17:37:26]line Место: АЗС № 161 "Партнер Нефть" [17:37:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:37:26]line СНО: Общий режим [17:37:26]line Чек 259 23.10.2024 17:37 [17:37:26]line Смена: 537 ФФД: 1.0 [17:37:26]line ЗНМ: 0300000104 [17:37:26]line РНМ: 0000000000091764 [17:37:26]line Версия ККМ: 001 [17:37:26]line ФМ: 0000000000871759 [17:37:26]line ФД: 166844 [17:37:26]line ФПД: 53761237994376 [17:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166844&fm=53761237994376&tin=02508201610067®Number=0000000000091764&sum=99900 [17:37:26]OFD Sender: Processing packet 166844 [packets to send 48, broken 47] [17:37:26]ProducePacketName [17:37:26]name=ofd_packets/00166844 [17:37:26]OFD Sender: To server: pG, [17:37:26]CommunicateWithHost lk.salyk.kg:30040 [17:37:26]ConnectInit lk.salyk.kg [17:37:26]written 0, free lines is 4095 [17:37:27]Connected sock=10 [17:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3D B6 07 01 02 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 57 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8B 02 00 35 04 06 00 30 E5 43 7E 4B 88 23 41 37 A9 15 AB E7 ED [17:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 E2 47 00 48 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8B 02 00 F4 03 04 00 BE DA 18 67 B6 04 01 00 00 69 4E B6 12 4A 78 A1 44 [17:37:27]CommunicateWithHost err = 0 [17:37:27]CheckOFDResponse [17:37:27]1017 (14) - 77093643461234 [17:37:27]1041 (16) - 0000000000871759 [17:37:27]1040 (4) - 166844 [17:37:27]1012 (4) - 23.10.2024 11:15 [17:37:27]1206 (1) - 0 [17:37:27]OFD Sender: Remove packet 166844 [17:37:27]ProducePacketName [17:37:27]name=ofd_packets/00166844 [17:37:27]NVStorageDeleteData [17:37:27]Write to MH i2c: 01 00 00 2B 3B 66 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 2B 3B 00 00 00 00 00 BF 0C 38 [17:37:27]RasterBufferAndPrint [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]written 0, free lines is 3269 [17:37:27]MH_Cut [17:37:27]Write to MH i2c: D1 01 00 32 3B 01 3F [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 32 3B 00 3E [17:37:27]Write to MH i2c: 01 00 00 33 3B 6E [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]OFD Sender: No OFD packet to send [17:37:28]*** Cut start [17:37:28]*** Partial cut [17:37:28]*** CUTSNS_PIN = 1 [17:37:28]*** CUTSNS_PIN = 0 [17:37:28]*** Brake cut motor [17:37:28]Read from MH i2c: 01 [17:37:28]MH_I2C_Read... [17:37:28]*** Stop cut motor [17:37:28]*** Cut end [17:37:28]Read from MH i2c: 01 07 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: 01 07 00 33 3B 00 00 00 00 00 FF 0F 83 [17:37:28]process_action close_receipt done [17:37:28]requested_data is exist [17:37:28]produce_requested_data [17:37:28]requested_item fm.sn is exist - process it [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 11 00 00 [17:37:28]Write to MH i2c: E2 08 00 34 3B 80 11 00 00 00 00 00 00 E9 [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 17 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 17 00 34 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [17:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:37:28]wFMCommunicate OK [17:37:28]requested_item fd.num is exist - process it [17:37:28]SAM_PROTO_GetFieldsCounters [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 13 00 00 [17:37:28]Write to MH i2c: E2 08 00 35 3B 80 13 00 00 00 00 00 00 EC [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 62 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 62 00 35 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetFieldsCounters done [17:37:29]requested_item shift.num is exist - process it [17:37:29]requested_item shift.opened is exist - process it [17:37:29]req_shift_opened [17:37:29]FM_GetShiftState [17:37:29]SAM_PROTO_GetShiftState [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 01 00 [17:37:29]Write to MH i2c: E2 08 00 36 3B 80 13 01 00 00 00 00 00 EE [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:29]Read from MH i2c: E2 0E 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 36 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B9 [17:37:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetShiftState done [17:37:29]FM_GetShiftState done [17:37:29]req_shift_opened done [17:37:29]requested_item shift.open_date is exist - process it [17:37:29]req_shift_open_date [17:37:29]req_shift_open_date done [17:37:29]produce_requested_data done [17:37:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166844,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:37:29]process_action_free close_receipt [17:37:29]json_value_free [17:37:29]json_value_free done [17:37:29]process_json_proto returns [17:37:29]Send response to host [17:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166844,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:37:29]free response buf [17:37:29]execute_script done [17:37:29]execute_script returns [17:37:29]free content buf [17:37:29]Sock 9.Close socket [17:37:29]Sock 9.Thread stoped [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:15]accept exits with 8 [17:39:15]New connection [17:39:15]New thread 3067034980 created [17:39:15]Thread 3067178340 joined [17:39:15]Waiting for new connection... [17:39:15] Sock 8.Parse request [17:39:15]Sock 8.Check first char [17:39:15]Sock 8.First char is OK [17:39:15]request: POST /json_proto HTTP/1.0 [17:39:15]Method: POST [17:39:15]URL: /json_proto [17:39:15]Method is POST - this is cgi request [17:39:15]url: /json_proto [17:39:15]query_string will be loaded in cgi processing [17:39:15]execute_cgi json_proto POST (null) [17:39:15]execute_cgi path=json_proto method=POST [17:39:15]POST find Content-Length [17:39:15]Host: 172.17.53.195:8080 [17:39:15]Content-Length: 679 [17:39:15]Content-Type: application/json [17:39:15] [17:39:15]POST finish read [17:39:15]Found Content-Length = 679 [17:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:15]execute_script... [17: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)221430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:15]POST & json_proto [17:39:15]process_json_proto [17:39:15]json parsed OK: [17:39:15]protocol is kg_v1.0 [17:39:15]action value=close_receipt [17:39:15]process_action close_receipt [17:39:15]cmd_close_receipt [17:39:15]MH_GetDate [17:39:15]Write to MH i2c: F0 00 00 37 3B 61 [17:39:15]Write i2c OK [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: F0 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: F0 09 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: F0 09 00 37 3B 00 C5 34 19 67 21 48 4A 65 FB [17:39:15]GetLastDocTimeStamp 1729705047 [17:39:15]current date 1729705157 [17:39:15]FM_GetShiftState [17:39:15]SAM_PROTO_GetShiftState [17:39:15]wFMCommunicate request_size=4 [17:39:15]MH_SAM_APDU [17:39:15]CAPDU: 80 13 01 00 [17:39:15]Write to MH i2c: E2 08 00 38 3B 80 13 01 00 00 00 00 00 F0 [17:39:15]Write i2c OK [17:39:15]MH_I2C_Read... [17:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:15]Read from MH i2c: E2 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 0E 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 0E 00 38 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BB [17:39:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:39:15]wFMCommunicate OK [17:39:15]SAM_PROTO_GetShiftState done [17:39:15]FM_GetShiftState done [17:39:15]opened in 1729643772 [17:39:15]opened+sec_in_day 1729730172 [17:39:15]quantity*price = 299999 [17:39:15]sum+1 = 300000 [17:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2999.00 Внесено: 3000.00 СДАЧА: 1.00 НСП 1% : 26.55 НДС 12% : 318.58 Наличными: 2999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 260 23.10.2024 17:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166845 ФПД: 235680833494211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166845&fm=235680833494211&tin=02508201610067®Number=0000000000091764&sum=299900 [17:39:16]StoreToDocumentArchive [17:39:16]shift 537 fd 166845 [17:39:16]save to /storage/0537/doc_00166845 [17:39:16]save last doc name /storage/0537/doc_00166845 to /storage/kkm_last_doc_name [17:39:16]save OK [17:39:16]Clear old archive folders... [17:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:39:16]tlvbuf is 02064560 [17:39:16]SAM_PROTO_ClearQueue [17:39:16]wFMCommunicate request_size=4 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 09 00 00 [17:39:16]Write to MH i2c: E2 08 00 45 3B 80 09 00 00 00 00 00 00 F2 [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:16]Read from MH i2c: E2 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [17:39:16]RAPDU: 90 00 [17:39:16]wFMCommunicate OK [17:39:16]SAM_PROTO_ClearQueue done [17:39:16]KKMCreateOFDPacket [17:39:16]OFDProtocolAddRootSTLVToBuf [17:39:16]FM_MakeSignedData [17:39:16]FM_MakeSignedData [17:39:16]SAM_PROTO_SignData [17:39:16]wFMCommunicate request_size=4 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 0D 01 02 [17:39:16]Write to MH i2c: E2 08 00 46 3B 80 0D 01 02 00 00 00 00 FA [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 46 3B 00 90 00 F5 [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=255 [17:39:17]MH_SAM_APDU [17: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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 04 01 00 00 F4 03 04 00 C6 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8B 02 00 35 04 06 00 D6 59 B8 5C [17:39:17]Write to MH i2c: E2 02 01 47 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 04 01 00 00 F4 03 04 00 C6 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8B 02 00 35 04 06 00 D6 59 B8 5C 00 00 BC [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=7 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 02 02 02 5C C3 [17:39:17]Write to MH i2c: E2 0A 00 48 3B 80 0D 02 02 02 00 5C C3 00 00 20 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 03 02 [17:39:17]Write to MH i2c: E2 08 00 49 3B 80 0D 03 02 00 00 00 00 FF [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 0B 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 0B 00 49 3B 00 16 9C D1 7B A3 71 49 00 90 00 5B [17:39:17]RAPDU: 16 9C D1 7B A3 71 49 00 90 00 [17:39:17]wFMCommunicate OK [17:39:17]SAM_PROTO_SignData done [17:39:17]FM_MakeSignedData done [17:39:17]CreateOFDProtocolMessage [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 11 00 00 [17:39:17]Write to MH i2c: E2 08 00 4A 3B 80 11 00 00 00 00 00 00 FF [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 17 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 17 00 4A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [17:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:39:17]wFMCommunicate OK [17:39:17]CreateOFDProtocolMessage done [17:39:17]OFDSenderStorePacket 166845 [17:39:17]StoreOFDPacket docnum=166845 [17:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A1 7A 04 01 2B 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 04 01 00 00 F4 03 04 00 C6 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8B 02 00 35 04 06 00 D6 59 B8 5C 5C C3 16 9C D1 7B A3 71 49 00 [17:39:17]CheckFolder [17:39:17]dirname=/storage/ofd_packets [17:39:17]CheckFolder done [17:39:17]ProducePacketName [17:39:17]name=ofd_packets/00166845 [17:39:17]NVStorageSaveData ofd_packets/00166845 [17:39:17]File name is /storage/ofd_packets/00166845 [17:39:17]Write 298 bytes [17:39:17]NVStorageSaveData done [17:39:17]OFDSenderStorePacket done [17:39:17]KKMCreateOFDPacket done [17:39:17]NVStorageSaveData kkm_last_timestamp [17:39:17]File name is /storage/kkm_last_timestamp [17:39:17]Write 4 bytes [17:39:17]NVStorageSaveData done [17:39:17]ExternCall_PrintAddStr [17:39:17]wPrintStart [17:39:17]Write to MH i2c: 01 00 00 4B 3B 86 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 07 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 07 00 4B 3B 00 00 00 00 00 FF 0F 9B [17:39:17]RasterBufferAndPrint [17:39:17]line Счет N : (1)221430 [17:39:17]line ИНН: 02508201610067 [17:39:17]line Контрольно-Кассовый Чек [17:39:17]line ПРОДАЖА [17:39:17]line ТРК (МРК, ГНК) : 41 [17:39:17]line Товар: 2710194210 [17:39:17]line ДТ-К-5 [17:39:17]line 39.370 * 76.20 [17:39:17]line = 2999.99 [17:39:17]line НДС 12% НСП 1% [17:39:17]line > о реализуемом товаре [17:39:17]line ОКРУГЛЕНИЕ: -0.99 [17:39:17]line ИТОГО: 2999.00 [17:39:17]line Внесено: 3000.00 [17:39:17]line СДАЧА: 1.00 [17:39:17]line НСП 1% : 26.55 [17:39:17]line НДС 12% : 318.58 [17:39:17]line Наличными: 2999.00 [17:39:17]line Безнал.: 0.00 [17:39:17]line Место: АЗС № 161 "Партнер Нефть" [17:39:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:39:17]line СНО: Общий режим [17:39:17]line Чек 260 23.10.2024 17:39 [17:39:17]line Смена: 537 ФФД: 1.0 [17:39:17]line ЗНМ: 0300000104 [17:39:17]line РНМ: 0000000000091764 [17:39:17]line Версия ККМ: 001 [17:39:17]line ФМ: 0000000000871759 [17:39:17]line ФД: 166845 [17:39:17]line ФПД: 235680833494211 [17:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166845&fm=235680833494211&tin=02508201610067®Number=0000000000091764&sum=299900 [17:39:17]OFD Sender: Processing packet 166845 [packets to send 48, broken 47] [17:39:17]ProducePacketName [17:39:17]name=ofd_packets/00166845 [17:39:17]OFD Sender: To server: pG, [17:39:17]CommunicateWithHost lk.salyk.kg:30040 [17:39:17]ConnectInit lk.salyk.kg [17:39:17]written 0, free lines is 4095 [17:39:17]Connected sock=10 [17: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 31 37 35 39 0C 01 00 00 A1 7A 04 01 2B 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 04 01 00 00 F4 03 04 00 C6 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8B 02 00 35 04 06 00 D6 59 B8 5C 5C C3 16 9C D1 7B A3 71 49 00 [17:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 05 47 00 61 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8B 02 00 F4 03 04 00 2C DB 18 67 B6 04 01 00 00 50 FC 60 C2 6D 71 28 56 [17:39:18]CommunicateWithHost err = 0 [17:39:18]CheckOFDResponse [17:39:18]1017 (14) - 77093643461234 [17:39:18]1041 (16) - 0000000000871759 [17:39:18]1040 (4) - 166845 [17:39:18]1012 (4) - 23.10.2024 11:17 [17:39:18]1206 (1) - 0 [17:39:18]OFD Sender: Remove packet 166845 [17:39:18]ProducePacketName [17:39:18]name=ofd_packets/00166845 [17:39:18]NVStorageDeleteData [17:39:18]Write to MH i2c: 01 00 00 76 3B B1 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 76 3B 00 00 00 00 00 C5 0C 89 [17:39:18]RasterBufferAndPrint [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]written 0, free lines is 3274 [17:39:18]MH_Cut [17:39:18]Write to MH i2c: D1 01 00 7D 3B 01 8A [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 01 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 01 00 7D 3B 00 89 [17:39:18]Write to MH i2c: 01 00 00 7E 3B B9 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]OFD Sender: No OFD packet to send [17:39:19]*** Cut start [17:39:19]*** Partial cut [17:39:19]*** CUTSNS_PIN = 1 [17:39:19]*** CUTSNS_PIN = 0 [17:39:19]*** Brake cut motor [17:39:19]Read from MH i2c: 01 [17:39:19]MH_I2C_Read... [17:39:19]*** Stop cut motor [17:39:19]*** Cut end [17:39:19]Read from MH i2c: 01 07 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: 01 07 00 7E 3B 00 00 00 00 00 FF 0F CE [17:39:19]process_action close_receipt done [17:39:19]requested_data is exist [17:39:19]produce_requested_data [17:39:19]requested_item fm.sn is exist - process it [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 11 00 00 [17:39:19]Write to MH i2c: E2 08 00 7F 3B 80 11 00 00 00 00 00 00 34 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:19]Read from MH i2c: E2 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 17 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 17 00 7F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [17:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:39:19]wFMCommunicate OK [17:39:19]requested_item fd.num is exist - process it [17:39:19]SAM_PROTO_GetFieldsCounters [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 13 00 00 [17:39:19]Write to MH i2c: E2 08 00 80 3B 80 13 00 00 00 00 00 00 37 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:19]Read from MH i2c: E2 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 62 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 62 00 80 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:19]wFMCommunicate OK [17:39:19]SAM_PROTO_GetFieldsCounters done [17:39:19]requested_item shift.num is exist - process it [17:39:19]requested_item shift.opened is exist - process it [17:39:19]req_shift_opened [17:39:19]FM_GetShiftState [17:39:19]SAM_PROTO_GetShiftState [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 13 01 00 [17:39:19]Write to MH i2c: E2 08 00 81 3B 80 13 01 00 00 00 00 00 39 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 81 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 04 [17:39:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_GetShiftState done [17:39:20]FM_GetShiftState done [17:39:20]req_shift_opened done [17:39:20]requested_item shift.open_date is exist - process it [17:39:20]req_shift_open_date [17:39:20]req_shift_open_date done [17:39:20]produce_requested_data done [17:39:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166845,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:39:20]process_action_free close_receipt [17:39:20]json_value_free [17:39:20]json_value_free done [17:39:20]process_json_proto returns [17:39:20]Send response to host [17:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166845,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:39:20]free response buf [17:39:20]execute_script done [17:39:20]execute_script returns [17:39:20]free content buf [17:39:20]Sock 8.Close socket [17:39:20]Sock 8.Thread stoped [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:12]accept exits with 9 [17:40:12]New connection [17:40:12]New thread 3067178340 created [17:40:12]Thread 3067034980 joined [17:40:12]Waiting for new connection... [17:40:12] Sock 9.Parse request [17:40:12]Sock 9.Check first char [17:40:12]Sock 9.First char is OK [17:40:12]request: POST /json_proto HTTP/1.0 [17:40:12]Method: POST [17:40:12]URL: /json_proto [17:40:12]Method is POST - this is cgi request [17:40:12]url: /json_proto [17:40:12]query_string will be loaded in cgi processing [17:40:12]execute_cgi json_proto POST (null) [17:40:12]execute_cgi path=json_proto method=POST [17:40:12]POST find Content-Length [17:40:12]Host: 172.17.53.195:8080 [17:40:12]Content-Length: 677 [17:40:12]Content-Type: application/json [17:40:12] [17:40:12]POST finish read [17:40:12]Found Content-Length = 677 [17:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:12]execute_script... [17: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)221431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:12]POST & json_proto [17:40:12]process_json_proto [17:40:12]json parsed OK: [17:40:12]protocol is kg_v1.0 [17:40:12]action value=close_receipt [17:40:12]process_action close_receipt [17:40:12]cmd_close_receipt [17:40:12]MH_GetDate [17:40:12]Write to MH i2c: F0 00 00 82 3B AC [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 09 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 09 00 82 3B 00 FE 34 19 67 21 48 4A 65 7F [17:40:12]GetLastDocTimeStamp 1729705158 [17:40:12]current date 1729705214 [17:40:12]FM_GetShiftState [17:40:12]SAM_PROTO_GetShiftState [17:40:12]wFMCommunicate request_size=4 [17:40:12]MH_SAM_APDU [17:40:12]CAPDU: 80 13 01 00 [17:40:12]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:12]Read from MH i2c: E2 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 0E 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 06 [17:40:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:40:12]wFMCommunicate OK [17:40:12]SAM_PROTO_GetShiftState done [17:40:12]FM_GetShiftState done [17:40:12]opened in 1729643772 [17:40:12]opened+sec_in_day 1729730172 [17:40:12]quantity*price = 50041 [17:40:12]sum+1 = 50042 [17:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 261 23.10.2024 17:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166846 ФПД: 169238477664026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174014&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166846&fm=169238477664026&tin=02508201610067®Number=0000000000091764&sum=50000 [17:40:13]StoreToDocumentArchive [17:40:13]shift 537 fd 166846 [17:40:13]save to /storage/0537/doc_00166846 [17:40:13]save last doc name /storage/0537/doc_00166846 to /storage/kkm_last_doc_name [17:40:13]save OK [17:40:13]Clear old archive folders... [17:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:13]tlvbuf is 01FDA280 [17:40:13]SAM_PROTO_ClearQueue [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 09 00 00 [17:40:13]Write to MH i2c: E2 08 00 90 3B 80 09 00 00 00 00 00 00 3D [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:13]OFD Sender: No OFD packet to send [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [17:40:13]RAPDU: 90 00 [17:40:13]wFMCommunicate OK [17:40:13]SAM_PROTO_ClearQueue done [17:40:13]KKMCreateOFDPacket [17:40:13]OFDProtocolAddRootSTLVToBuf [17:40:13]FM_MakeSignedData [17:40:13]FM_MakeSignedData [17:40:13]SAM_PROTO_SignData [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 0D 01 02 [17:40:13]Write to MH i2c: E2 08 00 91 3B 80 0D 01 02 00 00 00 00 45 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 91 3B 00 90 00 40 [17:40:13]RAPDU: 90 00 [17:40:13]wFMCommunicate OK [17:40:13]wFMCommunicate request_size=255 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 FE 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8B 02 00 35 04 06 00 99 [17:40:13]Write to MH i2c: E2 02 01 92 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8B 02 00 35 04 06 00 99 00 00 92 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=10 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 02 02 05 EB E7 57 EF 1A [17:40:14]Write to MH i2c: E2 0D 00 93 3B 80 0D 02 02 05 00 EB E7 57 EF 1A 00 00 84 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 03 02 [17:40:14]Write to MH i2c: E2 08 00 94 3B 80 0D 03 02 00 00 00 00 4A [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0B 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0B 00 94 3B 00 8D 19 7E 2E 35 95 75 52 90 00 2E [17:40:14]RAPDU: 8D 19 7E 2E 35 95 75 52 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_SignData done [17:40:14]FM_MakeSignedData done [17:40:14]CreateOFDProtocolMessage [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 11 00 00 [17:40:14]Write to MH i2c: E2 08 00 95 3B 80 11 00 00 00 00 00 00 4A [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 95 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [17:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:40:14]wFMCommunicate OK [17:40:14]CreateOFDProtocolMessage done [17:40:14]OFDSenderStorePacket 166846 [17:40:14]StoreOFDPacket docnum=166846 [17:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 23 07 01 D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8B 02 00 35 04 06 00 99 EB E7 57 EF 1A 8D 19 7E 2E 35 95 75 52 [17:40:14]CheckFolder [17:40:14]dirname=/storage/ofd_packets [17:40:14]CheckFolder done [17:40:14]ProducePacketName [17:40:14]name=ofd_packets/00166846 [17:40:14]NVStorageSaveData ofd_packets/00166846 [17:40:14]File name is /storage/ofd_packets/00166846 [17:40:14]Write 301 bytes [17:40:14]NVStorageSaveData done [17:40:14]OFDSenderStorePacket done [17:40:14]KKMCreateOFDPacket done [17:40:14]NVStorageSaveData kkm_last_timestamp [17:40:14]File name is /storage/kkm_last_timestamp [17:40:14]Write 4 bytes [17:40:14]NVStorageSaveData done [17:40:14]ExternCall_PrintAddStr [17:40:14]wPrintStart [17:40:14]Write to MH i2c: 01 00 00 96 3B D1 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [17:40:14]RasterBufferAndPrint [17:40:14]line Счет N : (1)221431 [17:40:14]line ИНН: 02508201610067 [17:40:14]line Контрольно-Кассовый Чек [17:40:14]line ПРОДАЖА [17:40:14]line ТРК (МРК, ГНК) : 13 [17:40:14]line Товар: 2710124130 [17:40:14]line Аи-92-К-5 [17:40:14]line 7.480 * 66.90 [17:40:14]line = 500.41 [17:40:14]line НДС 12% НСП 1% [17:40:14]line > о реализуемом товаре [17:40:14]line ОКРУГЛЕНИЕ: -0.41 [17:40:14]line ИТОГО: 500.00 [17:40:14]line Внесено: 500.00 [17:40:14]line СДАЧА: 0.00 [17:40:14]line НСП 1% : 4.43 [17:40:14]line НДС 12% : 53.14 [17:40:14]line Наличными: 500.00 [17:40:14]line Безнал.: 0.00 [17:40:14]line Место: АЗС № 161 "Партнер Нефть" [17:40:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:40:14]line СНО: Общий режим [17:40:14]line Чек 261 23.10.2024 17:40 [17:40:14]line Смена: 537 ФФД: 1.0 [17:40:14]line ЗНМ: 0300000104 [17:40:14]line РНМ: 0000000000091764 [17:40:14]line Версия ККМ: 001 [17:40:14]line ФМ: 0000000000871759 [17:40:14]line ФД: 166846 [17:40:14]line ФПД: 169238477664026 [17:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174014&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166846&fm=169238477664026&tin=02508201610067®Number=0000000000091764&sum=50000 [17:40:14]OFD Sender: Processing packet 166846 [packets to send 48, broken 47] [17:40:14]ProducePacketName [17:40:14]name=ofd_packets/00166846 [17:40:14]OFD Sender: To server: pG, [17:40:14]CommunicateWithHost lk.salyk.kg:30040 [17:40:14]ConnectInit lk.salyk.kg [17:40:14]written 0, free lines is 4095 [17:40:14]Write to MH i2c: 01 00 00 C1 3B FC [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 C1 3B 00 00 00 00 00 AB 0C BA [17:40:14]RasterBufferAndPrint [17:40:14]line [17:40:14]line [17:40:14]line [17:40:14]line [17:40:14]line [17:40:14]written 0, free lines is 3248 [17:40:15]MH_Cut [17:40:15]Write to MH i2c: D1 01 00 C8 3B 01 D5 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 01 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 01 00 C8 3B 00 D4 [17:40:15]Write to MH i2c: 01 00 00 C9 3B 04 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]*** Cut start [17:40:15]*** Partial cut [17:40:15]*** CUTSNS_PIN = 1 [17:40:15]*** CUTSNS_PIN = 0 [17:40:16]*** Brake cut motor [17:40:16]Read from MH i2c: 01 [17:40:16]MH_I2C_Read... [17:40:16]*** Stop cut motor [17:40:16]*** Cut end [17:40:16]Read from MH i2c: 01 07 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: 01 07 00 C9 3B 00 00 00 00 00 FF 0F 19 [17:40:16]process_action close_receipt done [17:40:16]requested_data is exist [17:40:16]produce_requested_data [17:40:16]requested_item fm.sn is exist - process it [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 11 00 00 [17:40:16]Write to MH i2c: E2 08 00 CA 3B 80 11 00 00 00 00 00 00 7F [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 CA 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [17:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:40:16]wFMCommunicate OK [17:40:16]requested_item fd.num is exist - process it [17:40:16]SAM_PROTO_GetFieldsCounters [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 00 00 [17:40:16]Write to MH i2c: E2 08 00 CB 3B 80 13 00 00 00 00 00 00 82 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 CB 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [17:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetFieldsCounters done [17:40:16]requested_item shift.num is exist - process it [17:40:16]requested_item shift.opened is exist - process it [17:40:16]req_shift_opened [17:40:16]FM_GetShiftState [17:40:16]SAM_PROTO_GetShiftState [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 01 00 [17:40:16]Write to MH i2c: E2 08 00 CC 3B 80 13 01 00 00 00 00 00 84 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 CC 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4F [17:40:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetShiftState done [17:40:16]FM_GetShiftState done [17:40:16]req_shift_opened done [17:40:16]requested_item shift.open_date is exist - process it [17:40:16]req_shift_open_date [17:40:16]req_shift_open_date done [17:40:16]produce_requested_data done [17:40:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166846,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:40:16]process_action_free close_receipt [17:40:16]json_value_free [17:40:16]json_value_free done [17:40:16]process_json_proto returns [17:40:16]Send response to host [17:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166846,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:40:16]free response buf [17:40:16]execute_script done [17:40:16]execute_script returns [17:40:16]free content buf [17:40:16]Sock 9.Close socket [17:40:16]Sock 9.Thread stoped [17:41:37]accept exits with 8 [17:41:37]New connection [17:41:37]New thread 3067034980 created [17:41:37]Thread 3067178340 joined [17:41:37]Waiting for new connection... [17:41:37] Sock 8.Parse request [17:41:37]Sock 8.Check first char [17:41:37]Sock 8.First char is OK [17:41:37]request: POST /json_proto HTTP/1.0 [17:41:37]Method: POST [17:41:37]URL: /json_proto [17:41:37]Method is POST - this is cgi request [17:41:37]url: /json_proto [17:41:37]query_string will be loaded in cgi processing [17:41:37]execute_cgi json_proto POST (null) [17:41:37]execute_cgi path=json_proto method=POST [17:41:37]POST find Content-Length [17:41:37]Host: 172.17.53.195:8080 [17:41:37]Content-Length: 676 [17:41:37]Content-Type: application/json [17:41:37] [17:41:37]POST finish read [17:41:37]Found Content-Length = 676 [17:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:37]execute_script... [17:41: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)221432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:37]POST & json_proto [17:41:37]process_json_proto [17:41:37]json parsed OK: [17:41:37]protocol is kg_v1.0 [17:41:37]action value=close_receipt [17:41:37]process_action close_receipt [17:41:37]cmd_close_receipt [17:41:37]MH_GetDate [17:41:37]Write to MH i2c: F0 00 00 CD 3B F7 [17:41:37]Write i2c OK [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: F0 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: F0 09 00 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: F0 09 00 CD 3B 00 53 35 19 67 21 48 4A 65 20 [17:41:37]GetLastDocTimeStamp 1729705214 [17:41:37]current date 1729705299 [17:41:37]FM_GetShiftState [17:41:37]SAM_PROTO_GetShiftState [17:41:37]wFMCommunicate request_size=4 [17:41:37]MH_SAM_APDU [17:41:37]CAPDU: 80 13 01 00 [17:41:37]Write to MH i2c: E2 08 00 CE 3B 80 13 01 00 00 00 00 00 86 [17:41:37]Write i2c OK [17:41:37]MH_I2C_Read... [17:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:37]Read from MH i2c: E2 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: E2 0E 00 [17:41:37]MH_I2C_Read... [17:41:37]Read from MH i2c: E2 0E 00 CE 3B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 51 [17:41:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:41:37]wFMCommunicate OK [17:41:37]SAM_PROTO_GetShiftState done [17:41:37]FM_GetShiftState done [17:41:37]opened in 1729643772 [17:41:37]opened+sec_in_day 1729730172 [17:41:37]quantity*price = 99974 [17:41:37]sum+1 = 99975 [17:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 262 23.10.2024 17:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166847 ФПД: 215174847230526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174139&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166847&fm=215174847230526&tin=02508201610067®Number=0000000000091764&sum=99900 [17:41:38]StoreToDocumentArchive [17:41:38]shift 537 fd 166847 [17:41:38]save to /storage/0537/doc_00166847 [17:41:38]save last doc name /storage/0537/doc_00166847 to /storage/kkm_last_doc_name [17:41:38]save OK [17:41:38]Clear old archive folders... [17:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:41:38]tlvbuf is B6F8C8C0 [17:41:38]SAM_PROTO_ClearQueue [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 09 00 00 [17:41:38]Write to MH i2c: E2 08 00 DB 3B 80 09 00 00 00 00 00 00 88 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 03 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 03 00 DB 3B 00 90 00 8A [17:41:38]RAPDU: 90 00 [17:41:38]wFMCommunicate OK [17:41:38]SAM_PROTO_ClearQueue done [17:41:38]KKMCreateOFDPacket [17:41:38]OFDProtocolAddRootSTLVToBuf [17:41:38]FM_MakeSignedData [17:41:38]FM_MakeSignedData [17:41:38]SAM_PROTO_SignData [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 0D 01 02 [17:41:38]Write to MH i2c: E2 08 00 DC 3B 80 0D 01 02 00 00 00 00 90 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 03 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 03 00 DC 3B 00 90 00 8B [17:41:38]RAPDU: 90 00 [17:41:38]wFMCommunicate OK [17:41:38]wFMCommunicate request_size=255 [17:41:38]MH_SAM_APDU [17:41: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 35 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8B 02 00 35 04 06 00 C3 B3 4C 55 [17:41:38]Write to MH i2c: E2 02 01 DD 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 35 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8B 02 00 35 04 06 00 C3 B3 4C 55 00 00 82 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:39]Read from MH i2c: E2 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 03 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 03 00 DD 3B 00 90 00 8C [17:41:39]RAPDU: 90 00 [17:41:39]wFMCommunicate OK [17:41:39]wFMCommunicate request_size=7 [17:41:39]MH_SAM_APDU [17:41:39]CAPDU: 80 0D 02 02 02 72 3E [17:41:39]Write to MH i2c: E2 0A 00 DE 3B 80 0D 02 02 02 00 72 3E 00 00 47 [17:41:39]Write i2c OK [17:41:39]MH_I2C_Read... [17:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:39]Read from MH i2c: E2 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 03 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 03 00 DE 3B 00 90 00 8D [17:41:39]RAPDU: 90 00 [17:41:39]wFMCommunicate OK [17:41:39]wFMCommunicate request_size=4 [17:41:39]MH_SAM_APDU [17:41:39]CAPDU: 80 0D 03 02 [17:41:39]Write to MH i2c: E2 08 00 DF 3B 80 0D 03 02 00 00 00 00 95 [17:41:39]Write i2c OK [17:41:39]MH_I2C_Read... [17:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:39]Read from MH i2c: E2 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 0B 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 0B 00 DF 3B 00 D9 90 08 13 3B F0 57 64 90 00 00 [17:41:39]RAPDU: D9 90 08 13 3B F0 57 64 90 00 [17:41:39]wFMCommunicate OK [17:41:39]SAM_PROTO_SignData done [17:41:39]FM_MakeSignedData done [17:41:39]CreateOFDProtocolMessage [17:41:39]wFMCommunicate request_size=4 [17:41:39]MH_SAM_APDU [17:41:39]CAPDU: 80 11 00 00 [17:41:39]Write to MH i2c: E2 08 00 E0 3B 80 11 00 00 00 00 00 00 95 [17:41:39]Write i2c OK [17:41:39]MH_I2C_Read... [17:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:39]Read from MH i2c: E2 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 17 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: E2 17 00 E0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [17:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:41:39]wFMCommunicate OK [17:41:39]CreateOFDProtocolMessage done [17:41:39]OFDSenderStorePacket 166847 [17:41:39]StoreOFDPacket docnum=166847 [17:41:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 87 DB 04 01 E2 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 35 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8B 02 00 35 04 06 00 C3 B3 4C 55 72 3E D9 90 08 13 3B F0 57 64 [17:41:39]CheckFolder [17:41:39]dirname=/storage/ofd_packets [17:41:39]CheckFolder done [17:41:39]ProducePacketName [17:41:39]name=ofd_packets/00166847 [17:41:39]NVStorageSaveData ofd_packets/00166847 [17:41:39]File name is /storage/ofd_packets/00166847 [17:41:39]Write 298 bytes [17:41:39]NVStorageSaveData done [17:41:39]OFDSenderStorePacket done [17:41:39]KKMCreateOFDPacket done [17:41:39]NVStorageSaveData kkm_last_timestamp [17:41:39]File name is /storage/kkm_last_timestamp [17:41:39]Write 4 bytes [17:41:39]NVStorageSaveData done [17:41:39]ExternCall_PrintAddStr [17:41:39]wPrintStart [17:41:39]Write to MH i2c: 01 00 00 E1 3B 1C [17:41:39]Write i2c OK [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 07 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 07 00 E1 3B 00 00 00 00 00 FF 0F 31 [17:41:39]RasterBufferAndPrint [17:41:39]line Счет N : (1)221432 [17:41:39]line ИНН: 02508201610067 [17:41:39]line Контрольно-Кассовый Чек [17:41:39]line ПРОДАЖА [17:41:39]line ТРК (МРК, ГНК) : 41 [17:41:39]line Товар: 2710194210 [17:41:39]line ДТ-К-5 [17:41:39]line 13.120 * 76.20 [17:41:39]line = 999.74 [17:41:39]line НДС 12% НСП 1% [17:41:39]line > о реализуемом товаре [17:41:39]line ОКРУГЛЕНИЕ: -0.74 [17:41:39]line ИТОГО: 999.00 [17:41:39]line Внесено: 1000.00 [17:41:39]line СДАЧА: 1.00 [17:41:39]line НСП 1% : 8.85 [17:41:39]line НДС 12% : 106.17 [17:41:39]line Наличными: 999.00 [17:41:39]line Безнал.: 0.00 [17:41:39]line Место: АЗС № 161 "Партнер Нефть" [17:41:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:41:39]line СНО: Общий режим [17:41:39]line Чек 262 23.10.2024 17:41 [17:41:39]line Смена: 537 ФФД: 1.0 [17:41:39]line ЗНМ: 0300000104 [17:41:39]line РНМ: 0000000000091764 [17:41:39]line Версия ККМ: 001 [17:41:39]line ФМ: 0000000000871759 [17:41:39]line ФД: 166847 [17:41:39]line ФПД: 215174847230526 [17:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174139&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166847&fm=215174847230526&tin=02508201610067®Number=0000000000091764&sum=99900 [17:41:39]written 0, free lines is 4095 [17:41:39]Write to MH i2c: 01 00 00 0C 3C 48 [17:41:39]Write i2c OK [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 07 00 [17:41:39]MH_I2C_Read... [17:41:39]Read from MH i2c: 01 07 00 0C 3C 00 00 00 00 00 AB 0C 06 [17:41:39]RasterBufferAndPrint [17:41:39]line [17:41:39]line [17:41:39]line [17:41:39]line [17:41:39]line [17:41:39]written 0, free lines is 3249 [17:41:40]MH_Cut [17:41:40]Write to MH i2c: D1 01 00 13 3C 01 21 [17:41:40]Write i2c OK [17:41:40]MH_I2C_Read... [17:41:40]Read from MH i2c: D1 [17:41:40]MH_I2C_Read... [17:41:40]Read from MH i2c: D1 01 00 [17:41:40]MH_I2C_Read... [17:41:40]Read from MH i2c: D1 01 00 13 3C 00 20 [17:41:40]Write to MH i2c: 01 00 00 14 3C 50 [17:41:40]Write i2c OK [17:41:40]MH_I2C_Read... [17:41:40]*** Cut start [17:41:40]*** Partial cut [17:41:40]*** CUTSNS_PIN = 1 [17:41:40]*** CUTSNS_PIN = 0 [17:41:41]*** Brake cut motor [17:41:41]Read from MH i2c: 01 [17:41:41]MH_I2C_Read... [17:41:41]*** Stop cut motor [17:41:41]*** Cut end [17:41:41]Read from MH i2c: 01 07 00 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: 01 07 00 14 3C 00 00 00 00 00 FF 0F 65 [17:41:41]process_action close_receipt done [17:41:41]requested_data is exist [17:41:41]produce_requested_data [17:41:41]requested_item fm.sn is exist - process it [17:41:41]wFMCommunicate request_size=4 [17:41:41]MH_SAM_APDU [17:41:41]CAPDU: 80 11 00 00 [17:41:41]Write to MH i2c: E2 08 00 15 3C 80 11 00 00 00 00 00 00 CB [17:41:41]Write i2c OK [17:41:41]MH_I2C_Read... [17:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:41]Read from MH i2c: E2 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 17 00 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 17 00 15 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [17:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:41:41]wFMCommunicate OK [17:41:41]requested_item fd.num is exist - process it [17:41:41]SAM_PROTO_GetFieldsCounters [17:41:41]wFMCommunicate request_size=4 [17:41:41]MH_SAM_APDU [17:41:41]CAPDU: 80 13 00 00 [17:41:41]Write to MH i2c: E2 08 00 16 3C 80 13 00 00 00 00 00 00 CE [17:41:41]Write i2c OK [17:41:41]MH_I2C_Read... [17:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:41]Read from MH i2c: E2 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 62 00 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 62 00 16 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:41]wFMCommunicate OK [17:41:41]SAM_PROTO_GetFieldsCounters done [17:41:41]requested_item shift.num is exist - process it [17:41:41]requested_item shift.opened is exist - process it [17:41:41]req_shift_opened [17:41:41]FM_GetShiftState [17:41:41]SAM_PROTO_GetShiftState [17:41:41]wFMCommunicate request_size=4 [17:41:41]MH_SAM_APDU [17:41:41]CAPDU: 80 13 01 00 [17:41:41]Write to MH i2c: E2 08 00 17 3C 80 13 01 00 00 00 00 00 D0 [17:41:41]Write i2c OK [17:41:41]MH_I2C_Read... [17:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:41]Read from MH i2c: E2 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 0E 00 [17:41:41]MH_I2C_Read... [17:41:41]Read from MH i2c: E2 0E 00 17 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9B [17:41:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:41:41]wFMCommunicate OK [17:41:41]SAM_PROTO_GetShiftState done [17:41:41]FM_GetShiftState done [17:41:41]req_shift_opened done [17:41:41]requested_item shift.open_date is exist - process it [17:41:41]req_shift_open_date [17:41:41]req_shift_open_date done [17:41:41]produce_requested_data done [17:41:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166847,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:41:41]process_action_free close_receipt [17:41:41]json_value_free [17:41:41]json_value_free done [17:41:41]process_json_proto returns [17:41:41]Send response to host [17:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166847,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:41:41]free response buf [17:41:41]execute_script done [17:41:41]execute_script returns [17:41:41]free content buf [17:41:41]Sock 8.Close socket [17:41:41]Sock 8.Thread stoped [17:42:27]ConnectInit Can't connect to host [17:42:27]CommunicateWithHost connect error [17:42:27]CommunicateWithHost err = -1 [17:42:27]OFD Sender: Server communicate error [17:42:27]OFD Sender: Processing packet 166846 [packets to send 49, broken 47] [17:42:27]ProducePacketName [17:42:27]name=ofd_packets/00166846 [17:42:27]OFD Sender: To server: pG, [17:42:27]CommunicateWithHost lk.salyk.kg:30040 [17:42:27]ConnectInit lk.salyk.kg [17:42:27]Connected sock=8 [17:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 23 07 01 D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 34 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8B 02 00 35 04 06 00 99 EB E7 57 EF 1A 8D 19 7E 2E 35 95 75 52 [17:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4A 68 47 00 35 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8B 02 00 F4 03 04 00 EA DB 18 67 B6 04 01 00 00 96 22 7D FC D3 1D B9 F2 [17:42:28]CommunicateWithHost err = 0 [17:42:28]CheckOFDResponse [17:42:28]1017 (14) - 77093643461234 [17:42:28]1041 (16) - 0000000000871759 [17:42:28]1040 (4) - 166846 [17:42:28]1012 (4) - 23.10.2024 11:20 [17:42:28]1206 (1) - 0 [17:42:28]OFD Sender: Remove packet 166846 [17:42:28]ProducePacketName [17:42:28]name=ofd_packets/00166846 [17:42:28]NVStorageDeleteData [17:42:28]OFD Sender: Processing packet 166847 [packets to send 48, broken 47] [17:42:28]ProducePacketName [17:42:28]name=ofd_packets/00166847 [17:42:28]OFD Sender: To server: pG, [17:42:28]CommunicateWithHost lk.salyk.kg:30040 [17:42:28]ConnectInit lk.salyk.kg [17:42:28]Connected sock=8 [17:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 87 DB 04 01 E2 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 35 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8B 02 00 35 04 06 00 C3 B3 4C 55 72 3E D9 90 08 13 3B F0 57 64 [17:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 66 47 00 E1 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8B 02 00 F4 03 04 00 EB DB 18 67 B6 04 01 00 00 01 C6 7B ED E3 5A AE A7 [17:42:28]CommunicateWithHost err = 0 [17:42:28]CheckOFDResponse [17:42:28]1017 (14) - 77093643461234 [17:42:28]1041 (16) - 0000000000871759 [17:42:28]1040 (4) - 166847 [17:42:28]1012 (4) - 23.10.2024 11:20 [17:42:28]1206 (1) - 0 [17:42:28]OFD Sender: Remove packet 166847 [17:42:28]ProducePacketName [17:42:28]name=ofd_packets/00166847 [17:42:28]NVStorageDeleteData [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43: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:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]accept exits with 9 [17:49:14]New connection [17:49:14]New thread 3067178340 created [17:49:14]Thread 3067034980 joined [17:49:14]Waiting for new connection... [17:49:14] Sock 9.Parse request [17:49:14]Sock 9.Check first char [17:49:14]Sock 9.First char is OK [17:49:14]request: POST /json_proto HTTP/1.0 [17:49:14]Method: POST [17:49:14]URL: /json_proto [17:49:14]Method is POST - this is cgi request [17:49:14]url: /json_proto [17:49:14]query_string will be loaded in cgi processing [17:49:14]execute_cgi json_proto POST (null) [17:49:14]execute_cgi path=json_proto method=POST [17:49:14]POST find Content-Length [17:49:14]Host: 172.17.53.195:8080 [17:49:14]Content-Length: 766 [17:49:14]Content-Type: application/json [17:49:14] [17:49:14]POST finish read [17:49:14]Found Content-Length = 766 [17:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:14]execute_script... [17:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:14]POST & json_proto [17:49:14]process_json_proto [17:49:14]json parsed OK: [17:49:14]protocol is kg_v1.0 [17:49:14]action value=close_receipt [17:49:14]process_action close_receipt [17:49:14]cmd_close_receipt [17:49:14]MH_GetDate [17:49:14]Write to MH i2c: F0 00 00 18 3C 43 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 09 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 09 00 18 3C 00 1C 37 19 67 21 48 4A 65 37 [17:49:14]GetLastDocTimeStamp 1729705299 [17:49:14]current date 1729705756 [17:49:14]FM_GetShiftState [17:49:14]SAM_PROTO_GetShiftState [17:49:14]wFMCommunicate request_size=4 [17:49:14]MH_SAM_APDU [17:49:14]CAPDU: 80 13 01 00 [17:49:14]Write to MH i2c: E2 08 00 19 3C 80 13 01 00 00 00 00 00 D2 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:14]Read from MH i2c: E2 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 19 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9D [17:49:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:49:14]wFMCommunicate OK [17:49:14]SAM_PROTO_GetShiftState done [17:49:14]FM_GetShiftState done [17:49:14]opened in 1729643772 [17:49:14]opened+sec_in_day 1729730172 [17:49:14]quantity*price = 50041 [17:49:14]sum+1 = 50042 [17:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 263 23.10.2024 17:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166848 ФПД: 237251566833398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174916&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166848&fm=237251566833398&tin=02508201610067®Number=0000000000091764&sum=50041 [17:49:15]StoreToDocumentArchive [17:49:15]shift 537 fd 166848 [17:49:15]save to /storage/0537/doc_00166848 [17:49:15]save last doc name /storage/0537/doc_00166848 to /storage/kkm_last_doc_name [17:49:15]save OK [17:49:15]Clear old archive folders... [17:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:15]tlvbuf is 01FE0A00 [17:49:15]SAM_PROTO_ClearQueue [17:49:15]wFMCommunicate request_size=4 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 09 00 00 [17:49:15]Write to MH i2c: E2 08 00 26 3C 80 09 00 00 00 00 00 00 D4 [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:15]Read from MH i2c: E2 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 26 3C 00 90 00 D6 [17:49:15]RAPDU: 90 00 [17:49:15]wFMCommunicate OK [17:49:15]SAM_PROTO_ClearQueue done [17:49:15]KKMCreateOFDPacket [17:49:15]OFDProtocolAddRootSTLVToBuf [17:49:15]FM_MakeSignedData [17:49:15]FM_MakeSignedData [17:49:15]SAM_PROTO_SignData [17:49:15]wFMCommunicate request_size=4 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 0D 01 02 [17:49:15]Write to MH i2c: E2 08 00 27 3C 80 0D 01 02 00 00 00 00 DC [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:15]Read from MH i2c: E2 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 27 3C 00 90 00 D7 [17:49:15]RAPDU: 90 00 [17:49:15]wFMCommunicate OK [17:49:15]wFMCommunicate request_size=255 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 1C 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8B 02 00 35 04 06 00 D7 [17:49:15]Write to MH i2c: E2 02 01 28 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 1C 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8B 02 00 35 04 06 00 D7 00 00 DE [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:15]Read from MH i2c: E2 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 28 3C 00 90 00 D8 [17:49:15]RAPDU: 90 00 [17:49:15]wFMCommunicate OK [17:49:15]wFMCommunicate request_size=10 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 0D 02 02 05 C7 6F 5D 0E F6 [17:49:15]Write to MH i2c: E2 0D 00 29 3C 80 0D 02 02 05 00 C7 6F 5D 0E F6 00 00 80 [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 29 3C 00 90 00 D9 [17:49:16]RAPDU: 90 00 [17:49:16]wFMCommunicate OK [17:49:16]wFMCommunicate request_size=4 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 0D 03 02 [17:49:16]Write to MH i2c: E2 08 00 2A 3C 80 0D 03 02 00 00 00 00 E1 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0B 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0B 00 2A 3C 00 D3 65 D3 9E 81 B3 55 81 90 00 95 [17:49:16]RAPDU: D3 65 D3 9E 81 B3 55 81 90 00 [17:49:16]wFMCommunicate OK [17:49:16]SAM_PROTO_SignData done [17:49:16]FM_MakeSignedData done [17:49:16]CreateOFDProtocolMessage [17:49:16]wFMCommunicate request_size=4 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 11 00 00 [17:49:16]Write to MH i2c: E2 08 00 2B 3C 80 11 00 00 00 00 00 00 E1 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 17 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 17 00 2B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [17:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:49:16]wFMCommunicate OK [17:49:16]CreateOFDProtocolMessage done [17:49:16]OFDSenderStorePacket 166848 [17:49:16]StoreOFDPacket docnum=166848 [17:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C1 52 07 01 D3 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 1C 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8B 02 00 35 04 06 00 D7 C7 6F 5D 0E F6 D3 65 D3 9E 81 B3 55 81 [17:49:16]CheckFolder [17:49:16]dirname=/storage/ofd_packets [17:49:16]CheckFolder done [17:49:16]ProducePacketName [17:49:16]name=ofd_packets/00166848 [17:49:16]NVStorageSaveData ofd_packets/00166848 [17:49:16]File name is /storage/ofd_packets/00166848 [17:49:16]Write 301 bytes [17:49:16]NVStorageSaveData done [17:49:16]OFDSenderStorePacket done [17:49:16]KKMCreateOFDPacket done [17:49:16]NVStorageSaveData kkm_last_timestamp [17:49:16]File name is /storage/kkm_last_timestamp [17:49:16]Write 4 bytes [17:49:16]NVStorageSaveData done [17:49:16]ExternCall_PrintAddStr [17:49:16]wPrintStart [17:49:16]Write to MH i2c: 01 00 00 2C 3C 68 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 2C 3C 00 00 00 00 00 FF 0F 7D [17:49:16]RasterBufferAndPrint [17:49:16]line Счет N : (1)221433 [17:49:16]line ИНН: 02508201610067 [17:49:16]line Контрольно-Кассовый Чек [17:49:16]line ПРОДАЖА [17:49:16]line ТРК (МРК, ГНК) : 33 [17:49:16]line Товар: 2710124130 [17:49:16]line Аи-92-К-5 [17:49:16]line 7.480 * 66.90 [17:49:16]line = 500.41 [17:49:16]line НДС 12% НСП 1% [17:49:16]line > о реализуемом товаре [17:49:16]line ИТОГО: 500.41 [17:49:16]line НСП 1% : 4.43 [17:49:16]line НДС 12% : 53.14 [17:49:16]line Наличными: 0.00 [17:49:16]line Безнал.: 500.41 [17:49:16]line Место: АЗС № 161 "Партнер Нефть" [17:49:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:49:16]line СНО: Общий режим [17:49:16]line Чек 263 23.10.2024 17:49 [17:49:16]line Смена: 537 ФФД: 1.0 [17:49:16]line ЗНМ: 0300000104 [17:49:16]line РНМ: 0000000000091764 [17:49:16]line Версия ККМ: 001 [17:49:16]line Платежная система: Mbank [17:49:16]line ФМ: 0000000000871759 [17:49:16]line ФД: 166848 [17:49:16]line ФПД: 237251566833398 [17:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174916&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166848&fm=237251566833398&tin=02508201610067®Number=0000000000091764&sum=50041 [17:49:16]written 0, free lines is 4095 [17:49:16]OFD Sender: Processing packet 166848 [packets to send 48, broken 47] [17:49:16]ProducePacketName [17:49:16]name=ofd_packets/00166848 [17:49:16]OFD Sender: To server: pG, [17:49:16]CommunicateWithHost lk.salyk.kg:30040 [17:49:16]ConnectInit lk.salyk.kg [17:49:16]Connected sock=10 [17:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C1 52 07 01 D3 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 1C 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8B 02 00 35 04 06 00 D7 C7 6F 5D 0E F6 D3 65 D3 9E 81 B3 55 81 [17:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 40 47 00 EB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8B 02 00 F4 03 04 00 83 DD 18 67 B6 04 01 00 00 E4 E4 36 59 E5 43 EC AF [17:49:16]CommunicateWithHost err = 0 [17:49:16]CheckOFDResponse [17:49:16]1017 (14) - 77093643461234 [17:49:16]1041 (16) - 0000000000871759 [17:49:16]1040 (4) - 166848 [17:49:16]1012 (4) - 23.10.2024 11:26 [17:49:16]1206 (1) - 0 [17:49:16]OFD Sender: Remove packet 166848 [17:49:16]ProducePacketName [17:49:16]name=ofd_packets/00166848 [17:49:16]NVStorageDeleteData [17:49:16]Write to MH i2c: 01 00 00 55 3C 91 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 55 3C 00 00 00 00 00 DD 0C 81 [17:49:16]RasterBufferAndPrint [17:49:16]line [17:49:16]line [17:49:16]line [17:49:16]line [17:49:16]line [17:49:16]written 0, free lines is 3299 [17:49:16]MH_Cut [17:49:16]Write to MH i2c: D1 01 00 5C 3C 01 6A [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: D1 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: D1 01 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: D1 01 00 5C 3C 00 69 [17:49:16]Write to MH i2c: 01 00 00 5D 3C 99 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:17]OFD Sender: No OFD packet to send [17:49:17]*** Cut start [17:49:17]*** Partial cut [17:49:17]*** CUTSNS_PIN = 1 [17:49:17]*** CUTSNS_PIN = 0 [17:49:17]*** Brake cut motor [17:49:18]Read from MH i2c: 01 [17:49:18]MH_I2C_Read... [17:49:18]*** Stop cut motor [17:49:18]*** Cut end [17:49:18]Read from MH i2c: 01 07 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: 01 07 00 5D 3C 00 00 00 00 00 FF 0F AE [17:49:18]process_action close_receipt done [17:49:18]requested_data is exist [17:49:18]produce_requested_data [17:49:18]requested_item fm.sn is exist - process it [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 11 00 00 [17:49:18]Write to MH i2c: E2 08 00 5E 3C 80 11 00 00 00 00 00 00 14 [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 5E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [17:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:49:18]wFMCommunicate OK [17:49:18]requested_item fd.num is exist - process it [17:49:18]SAM_PROTO_GetFieldsCounters [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 13 00 00 [17:49:18]Write to MH i2c: E2 08 00 5F 3C 80 13 00 00 00 00 00 00 17 [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 62 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 62 00 5F 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:18]wFMCommunicate OK [17:49:18]SAM_PROTO_GetFieldsCounters done [17:49:18]requested_item shift.num is exist - process it [17:49:18]requested_item shift.opened is exist - process it [17:49:18]req_shift_opened [17:49:18]FM_GetShiftState [17:49:18]SAM_PROTO_GetShiftState [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 13 01 00 [17:49:18]Write to MH i2c: E2 08 00 60 3C 80 13 01 00 00 00 00 00 19 [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0E 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0E 00 60 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E4 [17:49:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:49:18]wFMCommunicate OK [17:49:18]SAM_PROTO_GetShiftState done [17:49:18]FM_GetShiftState done [17:49:18]req_shift_opened done [17:49:18]requested_item shift.open_date is exist - process it [17:49:18]req_shift_open_date [17:49:18]req_shift_open_date done [17:49:18]produce_requested_data done [17:49:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166848,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:49:18]process_action_free close_receipt [17:49:18]json_value_free [17:49:18]json_value_free done [17:49:18]process_json_proto returns [17:49:18]Send response to host [17:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166848,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:49:18]free response buf [17:49:18]execute_script done [17:49:18]execute_script returns [17:49:18]free content buf [17:49:18]Sock 9.Close socket [17:49:18]Sock 9.Thread stoped [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:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:06]accept exits with 8 [17:52:06]New connection [17:52:06]New thread 3067034980 created [17:52:06]Thread 3067178340 joined [17:52:06]Waiting for new connection... [17:52:06] Sock 8.Parse request [17:52:06]Sock 8.Check first char [17:52:06]Sock 8.First char is OK [17:52:06]request: POST /json_proto HTTP/1.0 [17:52:06]Method: POST [17:52:06]URL: /json_proto [17:52:06]Method is POST - this is cgi request [17:52:06]url: /json_proto [17:52:06]query_string will be loaded in cgi processing [17:52:06]execute_cgi json_proto POST (null) [17:52:06]execute_cgi path=json_proto method=POST [17:52:06]POST find Content-Length [17:52:06]Host: 172.17.53.195:8080 [17:52:06]Content-Length: 677 [17:52:06]Content-Type: application/json [17:52:06] [17:52:06]POST finish read [17:52:06]Found Content-Length = 677 [17:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:06]execute_script... [17: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)221434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:06]POST & json_proto [17:52:06]process_json_proto [17:52:06]json parsed OK: [17:52:06]protocol is kg_v1.0 [17:52:06]action value=close_receipt [17:52:06]process_action close_receipt [17:52:06]cmd_close_receipt [17:52:06]MH_GetDate [17:52:06]Write to MH i2c: F0 00 00 61 3C 8C [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: F0 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: F0 09 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: F0 09 00 61 3C 00 C8 37 19 67 21 48 4A 65 2C [17:52:06]GetLastDocTimeStamp 1729705756 [17:52:06]current date 1729705928 [17:52:06]FM_GetShiftState [17:52:06]SAM_PROTO_GetShiftState [17:52:06]wFMCommunicate request_size=4 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 13 01 00 [17:52:06]Write to MH i2c: E2 08 00 62 3C 80 13 01 00 00 00 00 00 1B [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:06]Read from MH i2c: E2 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 0E 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 0E 00 62 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E6 [17:52:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:52:06]wFMCommunicate OK [17:52:06]SAM_PROTO_GetShiftState done [17:52:06]FM_GetShiftState done [17:52:06]opened in 1729643772 [17:52:06]opened+sec_in_day 1729730172 [17:52:06]quantity*price = 50041 [17:52:06]sum+1 = 50042 [17:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 264 23.10.2024 17:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166849 ФПД: 8288531314730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166849&fm=8288531314730&tin=02508201610067®Number=0000000000091764&sum=50000 [17:52:07]StoreToDocumentArchive [17:52:07]shift 537 fd 166849 [17:52:07]save to /storage/0537/doc_00166849 [17:52:07]save last doc name /storage/0537/doc_00166849 to /storage/kkm_last_doc_name [17:52:07]save OK [17:52:07]Clear old archive folders... [17:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:07]tlvbuf is 0206D4C0 [17:52:07]SAM_PROTO_ClearQueue [17:52:07]wFMCommunicate request_size=4 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 09 00 00 [17:52:07]Write to MH i2c: E2 08 00 6F 3C 80 09 00 00 00 00 00 00 1D [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 6F 3C 00 90 00 1F [17:52:07]RAPDU: 90 00 [17:52:07]wFMCommunicate OK [17:52:07]SAM_PROTO_ClearQueue done [17:52:07]KKMCreateOFDPacket [17:52:07]OFDProtocolAddRootSTLVToBuf [17:52:07]FM_MakeSignedData [17:52:07]FM_MakeSignedData [17:52:07]SAM_PROTO_SignData [17:52:07]wFMCommunicate request_size=4 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 0D 01 02 [17:52:07]Write to MH i2c: E2 08 00 70 3C 80 0D 01 02 00 00 00 00 25 [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 70 3C 00 90 00 20 [17:52:07]RAPDU: 90 00 [17:52:07]wFMCommunicate OK [17:52:07]wFMCommunicate request_size=255 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C8 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8B 02 00 35 04 06 00 07 [17:52:07]Write to MH i2c: E2 02 01 71 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C8 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8B 02 00 35 04 06 00 07 00 00 B3 [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:08]Read from MH i2c: E2 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 03 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 03 00 71 3C 00 90 00 21 [17:52:08]RAPDU: 90 00 [17:52:08]wFMCommunicate OK [17:52:08]wFMCommunicate request_size=10 [17:52:08]MH_SAM_APDU [17:52:08]CAPDU: 80 0D 02 02 05 89 D2 F6 F8 2A [17:52:08]Write to MH i2c: E2 0D 00 72 3C 80 0D 02 02 05 00 89 D2 F6 F8 2A 00 00 A5 [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:08]Read from MH i2c: E2 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 03 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 03 00 72 3C 00 90 00 22 [17:52:08]RAPDU: 90 00 [17:52:08]wFMCommunicate OK [17:52:08]wFMCommunicate request_size=4 [17:52:08]MH_SAM_APDU [17:52:08]CAPDU: 80 0D 03 02 [17:52:08]Write to MH i2c: E2 08 00 73 3C 80 0D 03 02 00 00 00 00 2A [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:08]Read from MH i2c: E2 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 0B 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 0B 00 73 3C 00 0A AB 4E FA 77 1C 2E 1D 90 00 06 [17:52:08]RAPDU: 0A AB 4E FA 77 1C 2E 1D 90 00 [17:52:08]wFMCommunicate OK [17:52:08]SAM_PROTO_SignData done [17:52:08]FM_MakeSignedData done [17:52:08]CreateOFDProtocolMessage [17:52:08]wFMCommunicate request_size=4 [17:52:08]MH_SAM_APDU [17:52:08]CAPDU: 80 11 00 00 [17:52:08]Write to MH i2c: E2 08 00 74 3C 80 11 00 00 00 00 00 00 2A [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:08]Read from MH i2c: E2 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 17 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: E2 17 00 74 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [17:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:08]wFMCommunicate OK [17:52:08]CreateOFDProtocolMessage done [17:52:08]OFDSenderStorePacket 166849 [17:52:08]StoreOFDPacket docnum=166849 [17:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 DA 07 01 17 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C8 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8B 02 00 35 04 06 00 07 89 D2 F6 F8 2A 0A AB 4E FA 77 1C 2E 1D [17:52:08]CheckFolder [17:52:08]dirname=/storage/ofd_packets [17:52:08]CheckFolder done [17:52:08]ProducePacketName [17:52:08]name=ofd_packets/00166849 [17:52:08]NVStorageSaveData ofd_packets/00166849 [17:52:08]File name is /storage/ofd_packets/00166849 [17:52:08]Write 301 bytes [17:52:08]NVStorageSaveData done [17:52:08]OFDSenderStorePacket done [17:52:08]KKMCreateOFDPacket done [17:52:08]NVStorageSaveData kkm_last_timestamp [17:52:08]File name is /storage/kkm_last_timestamp [17:52:08]Write 4 bytes [17:52:08]NVStorageSaveData done [17:52:08]ExternCall_PrintAddStr [17:52:08]wPrintStart [17:52:08]Write to MH i2c: 01 00 00 75 3C B1 [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 07 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 07 00 75 3C 00 00 00 00 00 FF 0F C6 [17:52:08]RasterBufferAndPrint [17:52:08]line Счет N : (1)221434 [17:52:08]line ИНН: 02508201610067 [17:52:08]line Контрольно-Кассовый Чек [17:52:08]line ПРОДАЖА [17:52:08]line ТРК (МРК, ГНК) : 33 [17:52:08]line Товар: 2710124130 [17:52:08]line Аи-92-К-5 [17:52:08]line 7.480 * 66.90 [17:52:08]line = 500.41 [17:52:08]line НДС 12% НСП 1% [17:52:08]line > о реализуемом товаре [17:52:08]line ОКРУГЛЕНИЕ: -0.41 [17:52:08]line ИТОГО: 500.00 [17:52:08]line Внесено: 500.00 [17:52:08]line СДАЧА: 0.00 [17:52:08]line НСП 1% : 4.43 [17:52:08]line НДС 12% : 53.14 [17:52:08]line Наличными: 500.00 [17:52:08]line Безнал.: 0.00 [17:52:08]line Место: АЗС № 161 "Партнер Нефть" [17:52:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:52:08]line СНО: Общий режим [17:52:08]line Чек 264 23.10.2024 17:52 [17:52:08]line Смена: 537 ФФД: 1.0 [17:52:08]line ЗНМ: 0300000104 [17:52:08]line РНМ: 0000000000091764 [17:52:08]line Версия ККМ: 001 [17:52:08]line ФМ: 0000000000871759 [17:52:08]line ФД: 166849 [17:52:08]line ФПД: 8288531314730 [17:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166849&fm=8288531314730&tin=02508201610067®Number=0000000000091764&sum=50000 [17:52:08]OFD Sender: Processing packet 166849 [packets to send 48, broken 47] [17:52:08]ProducePacketName [17:52:08]name=ofd_packets/00166849 [17:52:08]OFD Sender: To server: pG, [17:52:08]CommunicateWithHost lk.salyk.kg:30040 [17:52:08]ConnectInit lk.salyk.kg [17:52:08]written 0, free lines is 4095 [17:52:08]Connected sock=10 [17:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 DA 07 01 17 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C8 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8B 02 00 35 04 06 00 07 89 D2 F6 F8 2A 0A AB 4E FA 77 1C 2E 1D [17:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 27 47 00 63 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8B 02 00 F4 03 04 00 2F DE 18 67 B6 04 01 00 00 85 6F 1C 96 EB 20 4A 81 [17:52:08]CommunicateWithHost err = 0 [17:52:08]CheckOFDResponse [17:52:08]1017 (14) - 77093643461234 [17:52:08]1041 (16) - 0000000000871759 [17:52:08]1040 (4) - 166849 [17:52:08]1012 (4) - 23.10.2024 11:29 [17:52:08]1206 (1) - 0 [17:52:08]OFD Sender: Remove packet 166849 [17:52:08]ProducePacketName [17:52:08]name=ofd_packets/00166849 [17:52:08]NVStorageDeleteData [17:52:09]Write to MH i2c: 01 00 00 A0 3C DC [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: 01 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: 01 07 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: 01 07 00 A0 3C 00 00 00 00 00 B8 0C A7 [17:52:09]RasterBufferAndPrint [17:52:09]line [17:52:09]line [17:52:09]line [17:52:09]line [17:52:09]line [17:52:09]written 0, free lines is 3263 [17:52:09]MH_Cut [17:52:09]Write to MH i2c: D1 01 00 A7 3C 01 B5 [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: D1 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: D1 01 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: D1 01 00 A7 3C 00 B4 [17:52:09]Write to MH i2c: 01 00 00 A8 3C E4 [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]OFD Sender: No OFD packet to send [17:52:09]*** Cut start [17:52:09]*** Partial cut [17:52:09]*** CUTSNS_PIN = 1 [17:52:10]*** CUTSNS_PIN = 0 [17:52:10]*** Brake cut motor [17:52:10]Read from MH i2c: 01 [17:52:10]MH_I2C_Read... [17:52:10]*** Stop cut motor [17:52:10]*** Cut end [17:52:10]Read from MH i2c: 01 07 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: 01 07 00 A8 3C 00 00 00 00 00 FF 0F F9 [17:52:10]process_action close_receipt done [17:52:10]requested_data is exist [17:52:10]produce_requested_data [17:52:10]requested_item fm.sn is exist - process it [17:52:10]wFMCommunicate request_size=4 [17:52:10]MH_SAM_APDU [17:52:10]CAPDU: 80 11 00 00 [17:52:10]Write to MH i2c: E2 08 00 A9 3C 80 11 00 00 00 00 00 00 5F [17:52:10]Write i2c OK [17:52:10]MH_I2C_Read... [17:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:10]Read from MH i2c: E2 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 17 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 17 00 A9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [17:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:10]wFMCommunicate OK [17:52:10]requested_item fd.num is exist - process it [17:52:10]SAM_PROTO_GetFieldsCounters [17:52:10]wFMCommunicate request_size=4 [17:52:10]MH_SAM_APDU [17:52:10]CAPDU: 80 13 00 00 [17:52:10]Write to MH i2c: E2 08 00 AA 3C 80 13 00 00 00 00 00 00 62 [17:52:10]Write i2c OK [17:52:10]MH_I2C_Read... [17:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:10]Read from MH i2c: E2 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 62 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 62 00 AA 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [17: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:10]wFMCommunicate OK [17:52:10]SAM_PROTO_GetFieldsCounters done [17:52:10]requested_item shift.num is exist - process it [17:52:10]requested_item shift.opened is exist - process it [17:52:10]req_shift_opened [17:52:10]FM_GetShiftState [17:52:10]SAM_PROTO_GetShiftState [17:52:10]wFMCommunicate request_size=4 [17:52:10]MH_SAM_APDU [17:52:10]CAPDU: 80 13 01 00 [17:52:10]Write to MH i2c: E2 08 00 AB 3C 80 13 01 00 00 00 00 00 64 [17:52:10]Write i2c OK [17:52:10]MH_I2C_Read... [17:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:10]Read from MH i2c: E2 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 0E 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 0E 00 AB 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2F [17:52:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:52:10]wFMCommunicate OK [17:52:10]SAM_PROTO_GetShiftState done [17:52:10]FM_GetShiftState done [17:52:10]req_shift_opened done [17:52:10]requested_item shift.open_date is exist - process it [17:52:10]req_shift_open_date [17:52:10]req_shift_open_date done [17:52:10]produce_requested_data done [17:52:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166849,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:52:10]process_action_free close_receipt [17:52:10]json_value_free [17:52:10]json_value_free done [17:52:10]process_json_proto returns [17:52:10]Send response to host [17:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166849,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:52:10]free response buf [17:52:10]execute_script done [17:52:10]execute_script returns [17:52:10]free content buf [17:52:10]Sock 8.Close socket [17:52:10]Sock 8.Thread stoped [17:52:14]OFD Sender: No OFD packet to send [17:52:16]accept exits with 9 [17:52:16]New connection [17:52:16]New thread 3067178340 created [17:52:16]Thread 3067034980 joined [17:52:16]Waiting for new connection... [17:52:16] Sock 9.Parse request [17:52:16]Sock 9.Check first char [17:52:16]Sock 9.First char is OK [17:52:16]request: POST /json_proto HTTP/1.0 [17:52:16]Method: POST [17:52:16]URL: /json_proto [17:52:16]Method is POST - this is cgi request [17:52:16]url: /json_proto [17:52:16]query_string will be loaded in cgi processing [17:52:16]execute_cgi json_proto POST (null) [17:52:16]execute_cgi path=json_proto method=POST [17:52:16]POST find Content-Length [17:52:16]Host: 172.17.53.195:8080 [17:52:16]Content-Length: 677 [17:52:16]Content-Type: application/json [17:52:16] [17:52:16]POST finish read [17:52:16]Found Content-Length = 677 [17:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:16]execute_script... [17:52:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:16]POST & json_proto [17:52:16]process_json_proto [17:52:16]json parsed OK: [17:52:16]protocol is kg_v1.0 [17:52:16]action value=close_receipt [17:52:16]process_action close_receipt [17:52:16]cmd_close_receipt [17:52:16]MH_GetDate [17:52:16]Write to MH i2c: F0 00 00 AC 3C D7 [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: F0 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: F0 09 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: F0 09 00 AC 3C 00 D2 37 19 67 21 48 4A 65 81 [17:52:16]GetLastDocTimeStamp 1729705928 [17:52:16]current date 1729705938 [17:52:16]FM_GetShiftState [17:52:16]SAM_PROTO_GetShiftState [17:52:16]wFMCommunicate request_size=4 [17:52:16]MH_SAM_APDU [17:52:16]CAPDU: 80 13 01 00 [17:52:16]Write to MH i2c: E2 08 00 AD 3C 80 13 01 00 00 00 00 00 66 [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:16]Read from MH i2c: E2 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: E2 0E 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: E2 0E 00 AD 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 31 [17:52:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:52:16]wFMCommunicate OK [17:52:16]SAM_PROTO_GetShiftState done [17:52:16]FM_GetShiftState done [17:52:16]opened in 1729643772 [17:52:16]opened+sec_in_day 1729730172 [17:52:16]quantity*price = 49974 [17:52:16]sum+1 = 49975 [17:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 265 23.10.2024 17:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166850 ФПД: 252940515466883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166850&fm=252940515466883&tin=02508201610067®Number=0000000000091764&sum=49900 [17:52:17]StoreToDocumentArchive [17:52:17]shift 537 fd 166850 [17:52:17]save to /storage/0537/doc_00166850 [17:52:17]save last doc name /storage/0537/doc_00166850 to /storage/kkm_last_doc_name [17:52:17]save OK [17:52:17]Clear old archive folders... [17:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:17]tlvbuf is 01F87320 [17:52:17]SAM_PROTO_ClearQueue [17:52:17]wFMCommunicate request_size=4 [17:52:17]MH_SAM_APDU [17:52:17]CAPDU: 80 09 00 00 [17:52:17]Write to MH i2c: E2 08 00 BA 3C 80 09 00 00 00 00 00 00 68 [17:52:17]Write i2c OK [17:52:17]MH_I2C_Read... [17:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:17]Read from MH i2c: E2 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 03 00 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 03 00 BA 3C 00 90 00 6A [17:52:17]RAPDU: 90 00 [17:52:17]wFMCommunicate OK [17:52:17]SAM_PROTO_ClearQueue done [17:52:17]KKMCreateOFDPacket [17:52:17]OFDProtocolAddRootSTLVToBuf [17:52:17]FM_MakeSignedData [17:52:17]FM_MakeSignedData [17:52:17]SAM_PROTO_SignData [17:52:17]wFMCommunicate request_size=4 [17:52:17]MH_SAM_APDU [17:52:17]CAPDU: 80 0D 01 02 [17:52:17]Write to MH i2c: E2 08 00 BB 3C 80 0D 01 02 00 00 00 00 70 [17:52:17]Write i2c OK [17:52:17]MH_I2C_Read... [17:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:17]Read from MH i2c: E2 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 03 00 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 03 00 BB 3C 00 90 00 6B [17:52:17]RAPDU: 90 00 [17:52:17]wFMCommunicate OK [17:52:17]wFMCommunicate request_size=255 [17:52:17]MH_SAM_APDU [17:52:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D2 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8B 02 00 35 04 06 00 E6 [17:52:17]Write to MH i2c: E2 02 01 BC 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D2 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8B 02 00 35 04 06 00 E6 00 00 CA [17:52:17]Write i2c OK [17:52:17]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 03 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 03 00 BC 3C 00 90 00 6C [17:52:18]RAPDU: 90 00 [17:52:18]wFMCommunicate OK [17:52:18]wFMCommunicate request_size=10 [17:52:18]MH_SAM_APDU [17:52:18]CAPDU: 80 0D 02 02 05 0C 4D 92 DE 83 [17:52:18]Write to MH i2c: E2 0D 00 BD 3C 80 0D 02 02 05 00 0C 4D 92 DE 83 00 00 C9 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 03 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 03 00 BD 3C 00 90 00 6D [17:52:18]RAPDU: 90 00 [17:52:18]wFMCommunicate OK [17:52:18]wFMCommunicate request_size=4 [17:52:18]MH_SAM_APDU [17:52:18]CAPDU: 80 0D 03 02 [17:52:18]Write to MH i2c: E2 08 00 BE 3C 80 0D 03 02 00 00 00 00 75 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 0B 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 0B 00 BE 3C 00 8E AF 4B 51 84 73 37 FA 90 00 77 [17:52:18]RAPDU: 8E AF 4B 51 84 73 37 FA 90 00 [17:52:18]wFMCommunicate OK [17:52:18]SAM_PROTO_SignData done [17:52:18]FM_MakeSignedData done [17:52:18]CreateOFDProtocolMessage [17:52:18]wFMCommunicate request_size=4 [17:52:18]MH_SAM_APDU [17:52:18]CAPDU: 80 11 00 00 [17:52:18]Write to MH i2c: E2 08 00 BF 3C 80 11 00 00 00 00 00 00 75 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 17 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 17 00 BF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [17:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:18]wFMCommunicate OK [17:52:18]CreateOFDProtocolMessage done [17:52:18]OFDSenderStorePacket 166850 [17:52:18]StoreOFDPacket docnum=166850 [17:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A F2 07 01 DB 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D2 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8B 02 00 35 04 06 00 E6 0C 4D 92 DE 83 8E AF 4B 51 84 73 37 FA [17:52:18]CheckFolder [17:52:18]dirname=/storage/ofd_packets [17:52:18]CheckFolder done [17:52:18]ProducePacketName [17:52:18]name=ofd_packets/00166850 [17:52:18]NVStorageSaveData ofd_packets/00166850 [17:52:18]File name is /storage/ofd_packets/00166850 [17:52:18]Write 301 bytes [17:52:18]NVStorageSaveData done [17:52:18]OFDSenderStorePacket done [17:52:18]KKMCreateOFDPacket done [17:52:18]NVStorageSaveData kkm_last_timestamp [17:52:18]File name is /storage/kkm_last_timestamp [17:52:18]Write 4 bytes [17:52:18]NVStorageSaveData done [17:52:18]ExternCall_PrintAddStr [17:52:18]wPrintStart [17:52:18]Write to MH i2c: 01 00 00 C0 3C FC [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 07 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 07 00 C0 3C 00 00 00 00 00 FF 0F 11 [17:52:18]RasterBufferAndPrint [17:52:18]line Счет N : (1)221435 [17:52:18]line ИНН: 02508201610067 [17:52:18]line Контрольно-Кассовый Чек [17:52:18]line ПРОДАЖА [17:52:18]line ТРК (МРК, ГНК) : 13 [17:52:18]line Товар: 2710124130 [17:52:18]line Аи-92-К-5 [17:52:18]line 7.470 * 66.90 [17:52:18]line = 499.74 [17:52:18]line НДС 12% НСП 1% [17:52:18]line > о реализуемом товаре [17:52:18]line ОКРУГЛЕНИЕ: -0.74 [17:52:18]line ИТОГО: 499.00 [17:52:18]line Внесено: 500.00 [17:52:18]line СДАЧА: 1.00 [17:52:18]line НСП 1% : 4.42 [17:52:18]line НДС 12% : 53.07 [17:52:18]line Наличными: 499.00 [17:52:18]line Безнал.: 0.00 [17:52:18]line Место: АЗС № 161 "Партнер Нефть" [17:52:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:52:18]line СНО: Общий режим [17:52:18]line Чек 265 23.10.2024 17:52 [17:52:18]line Смена: 537 ФФД: 1.0 [17:52:18]line ЗНМ: 0300000104 [17:52:18]line РНМ: 0000000000091764 [17:52:18]line Версия ККМ: 001 [17:52:18]line ФМ: 0000000000871759 [17:52:18]line ФД: 166850 [17:52:18]line ФПД: 252940515466883 [17:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166850&fm=252940515466883&tin=02508201610067®Number=0000000000091764&sum=49900 [17:52:18]written 0, free lines is 4095 [17:52:18]OFD Sender: Processing packet 166850 [packets to send 48, broken 47] [17:52:18]ProducePacketName [17:52:18]name=ofd_packets/00166850 [17:52:18]OFD Sender: To server: pG, [17:52:18]CommunicateWithHost lk.salyk.kg:30040 [17:52:18]ConnectInit lk.salyk.kg [17:52:18]Connected sock=10 [17:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A F2 07 01 DB 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D2 37 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8B 02 00 35 04 06 00 E6 0C 4D 92 DE 83 8E AF 4B 51 84 73 37 FA [17:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 01 2C 47 00 67 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8B 02 00 F4 03 04 00 39 DE 18 67 B6 04 01 00 00 6D FF D2 0C 8B 92 BD DC [17:52:18]CommunicateWithHost err = 0 [17:52:18]CheckOFDResponse [17:52:18]1017 (14) - 77093643461234 [17:52:18]1041 (16) - 0000000000871759 [17:52:18]1040 (4) - 166850 [17:52:18]1012 (4) - 23.10.2024 11:30 [17:52:18]1206 (1) - 0 [17:52:18]OFD Sender: Remove packet 166850 [17:52:18]ProducePacketName [17:52:18]name=ofd_packets/00166850 [17:52:18]NVStorageDeleteData [17:52:18]Write to MH i2c: 01 00 00 EB 3C 27 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 07 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: 01 07 00 EB 3C 00 00 00 00 00 B3 0C ED [17:52:18]RasterBufferAndPrint [17:52:18]line [17:52:18]line [17:52:18]line [17:52:18]line [17:52:18]line [17:52:18]written 0, free lines is 3263 [17:52:18]MH_Cut [17:52:18]Write to MH i2c: D1 01 00 F2 3C 01 00 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: D1 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: D1 01 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: D1 01 00 F2 3C 00 FF [17:52:18]Write to MH i2c: 01 00 00 F3 3C 2F [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:19]OFD Sender: No OFD packet to send [17:52:19]*** Cut start [17:52:19]*** Partial cut [17:52:19]*** CUTSNS_PIN = 1 [17:52:19]*** CUTSNS_PIN = 0 [17:52:20]*** Brake cut motor [17:52:20]Read from MH i2c: 01 [17:52:20]MH_I2C_Read... [17:52:20]*** Stop cut motor [17:52:20]*** Cut end [17:52:20]Read from MH i2c: 01 07 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 07 00 F3 3C 00 00 00 00 00 FF 0F 44 [17:52:20]process_action close_receipt done [17:52:20]requested_data is exist [17:52:20]produce_requested_data [17:52:20]requested_item fm.sn is exist - process it [17:52:20]wFMCommunicate request_size=4 [17:52:20]MH_SAM_APDU [17:52:20]CAPDU: 80 11 00 00 [17:52:20]Write to MH i2c: E2 08 00 F4 3C 80 11 00 00 00 00 00 00 AA [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:20]Read from MH i2c: E2 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 17 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 17 00 F4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [17:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:20]wFMCommunicate OK [17:52:20]requested_item fd.num is exist - process it [17:52:20]SAM_PROTO_GetFieldsCounters [17:52:20]wFMCommunicate request_size=4 [17:52:20]MH_SAM_APDU [17:52:20]CAPDU: 80 13 00 00 [17:52:20]Write to MH i2c: E2 08 00 F5 3C 80 13 00 00 00 00 00 00 AD [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:20]Read from MH i2c: E2 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 62 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 62 00 F5 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [17:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:20]wFMCommunicate OK [17:52:20]SAM_PROTO_GetFieldsCounters done [17:52:20]requested_item shift.num is exist - process it [17:52:20]requested_item shift.opened is exist - process it [17:52:20]req_shift_opened [17:52:20]FM_GetShiftState [17:52:20]SAM_PROTO_GetShiftState [17:52:20]wFMCommunicate request_size=4 [17:52:20]MH_SAM_APDU [17:52:20]CAPDU: 80 13 01 00 [17:52:20]Write to MH i2c: E2 08 00 F6 3C 80 13 01 00 00 00 00 00 AF [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:20]Read from MH i2c: E2 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 0E 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: E2 0E 00 F6 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7A [17:52:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:52:20]wFMCommunicate OK [17:52:20]SAM_PROTO_GetShiftState done [17:52:20]FM_GetShiftState done [17:52:20]req_shift_opened done [17:52:20]requested_item shift.open_date is exist - process it [17:52:20]req_shift_open_date [17:52:20]req_shift_open_date done [17:52:20]produce_requested_data done [17:52:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166850,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:52:20]process_action_free close_receipt [17:52:20]json_value_free [17:52:20]json_value_free done [17:52:20]process_json_proto returns [17:52:20]Send response to host [17:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166850,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:52:20]free response buf [17:52:20]execute_script done [17:52:20]execute_script returns [17:52:20]free content buf [17:52:20]Sock 9.Close socket [17:52:20]Sock 9.Thread stoped [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:32]accept exits with 8 [17:54:32]New connection [17:54:32]New thread 3067034980 created [17:54:32]Thread 3067178340 joined [17:54:32]Waiting for new connection... [17:54:32] Sock 8.Parse request [17:54:32]Sock 8.Check first char [17:54:32]Sock 8.First char is OK [17:54:32]request: POST /json_proto HTTP/1.0 [17:54:32]Method: POST [17:54:32]URL: /json_proto [17:54:32]Method is POST - this is cgi request [17:54:32]url: /json_proto [17:54:32]query_string will be loaded in cgi processing [17:54:32]execute_cgi json_proto POST (null) [17:54:32]execute_cgi path=json_proto method=POST [17:54:32]POST find Content-Length [17:54:32]Host: 172.17.53.195:8080 [17:54:32]Content-Length: 677 [17:54:32]Content-Type: application/json [17:54:32] [17:54:32]POST finish read [17:54:32]Found Content-Length = 677 [17:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:32]execute_script... [17:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:32]POST & json_proto [17:54:32]process_json_proto [17:54:32]json parsed OK: [17:54:32]protocol is kg_v1.0 [17:54:32]action value=close_receipt [17:54:32]process_action close_receipt [17:54:32]cmd_close_receipt [17:54:32]MH_GetDate [17:54:32]Write to MH i2c: F0 00 00 F7 3C 22 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: F0 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: F0 09 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: F0 09 00 F7 3C 00 5B 38 19 67 21 48 4A 65 56 [17:54:32]GetLastDocTimeStamp 1729705938 [17:54:32]current date 1729706075 [17:54:32]FM_GetShiftState [17:54:32]SAM_PROTO_GetShiftState [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 13 01 00 [17:54:32]Write to MH i2c: E2 08 00 F8 3C 80 13 01 00 00 00 00 00 B1 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:33]Read from MH i2c: E2 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: E2 0E 00 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: E2 0E 00 F8 3C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7C [17:54:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:54:33]wFMCommunicate OK [17:54:33]SAM_PROTO_GetShiftState done [17:54:33]FM_GetShiftState done [17:54:33]opened in 1729643772 [17:54:33]opened+sec_in_day 1729730172 [17:54:33]quantity*price = 24017 [17:54:33]sum+1 = 24018 [17:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 266 23.10.2024 17:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166851 ФПД: 143729651246550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166851&fm=143729651246550&tin=02508201610067®Number=0000000000091764&sum=24000 [17:54:34]StoreToDocumentArchive [17:54:34]shift 537 fd 166851 [17:54:34]save to /storage/0537/doc_00166851 [17:54:34]save last doc name /storage/0537/doc_00166851 to /storage/kkm_last_doc_name [17:54:34]save OK [17:54:34]Clear old archive folders... [17:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:34]tlvbuf is 01FC6F40 [17:54:34]SAM_PROTO_ClearQueue [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 09 00 00 [17:54:34]Write to MH i2c: E2 08 00 05 3D 80 09 00 00 00 00 00 00 B4 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 05 3D 00 90 00 B6 [17:54:34]RAPDU: 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_ClearQueue done [17:54:34]KKMCreateOFDPacket [17:54:34]OFDProtocolAddRootSTLVToBuf [17:54:34]FM_MakeSignedData [17:54:34]FM_MakeSignedData [17:54:34]SAM_PROTO_SignData [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 0D 01 02 [17:54:34]Write to MH i2c: E2 08 00 06 3D 80 0D 01 02 00 00 00 00 BC [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 06 3D 00 90 00 B7 [17:54:34]RAPDU: 90 00 [17:54:34]wFMCommunicate OK [17:54:34]wFMCommunicate request_size=255 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 38 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8B 02 00 35 04 06 00 82 [17:54:34]Write to MH i2c: E2 02 01 07 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 38 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8B 02 00 35 04 06 00 82 00 00 63 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]OFD Sender: No OFD packet to send [17:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 07 3D 00 90 00 B8 [17:54:34]RAPDU: 90 00 [17:54:34]wFMCommunicate OK [17:54:34]wFMCommunicate request_size=10 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 0D 02 02 05 B8 AA CE 65 D6 [17:54:34]Write to MH i2c: E2 0D 00 08 3D 80 0D 02 02 05 00 B8 AA CE 65 D6 00 00 34 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 03 00 08 3D 00 90 00 B9 [17:54:34]RAPDU: 90 00 [17:54:34]wFMCommunicate OK [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 0D 03 02 [17:54:34]Write to MH i2c: E2 08 00 09 3D 80 0D 03 02 00 00 00 00 C1 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0B 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0B 00 09 3D 00 C0 78 B1 69 5C F5 4B C4 90 00 74 [17:54:34]RAPDU: C0 78 B1 69 5C F5 4B C4 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_SignData done [17:54:34]FM_MakeSignedData done [17:54:34]CreateOFDProtocolMessage [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 0A 3D 80 11 00 00 00 00 00 00 C1 [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 0A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [17:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:54:34]wFMCommunicate OK [17:54:34]CreateOFDProtocolMessage done [17:54:34]OFDSenderStorePacket 166851 [17:54:34]StoreOFDPacket docnum=166851 [17:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C AA 07 01 5D 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 38 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8B 02 00 35 04 06 00 82 B8 AA CE 65 D6 C0 78 B1 69 5C F5 4B C4 [17:54:34]CheckFolder [17:54:34]dirname=/storage/ofd_packets [17:54:34]CheckFolder done [17:54:34]ProducePacketName [17:54:34]name=ofd_packets/00166851 [17:54:34]NVStorageSaveData ofd_packets/00166851 [17:54:34]File name is /storage/ofd_packets/00166851 [17:54:34]Write 301 bytes [17:54:34]NVStorageSaveData done [17:54:34]OFDSenderStorePacket done [17:54:34]KKMCreateOFDPacket done [17:54:34]NVStorageSaveData kkm_last_timestamp [17:54:34]File name is /storage/kkm_last_timestamp [17:54:34]Write 4 bytes [17:54:34]NVStorageSaveData done [17:54:34]ExternCall_PrintAddStr [17:54:34]wPrintStart [17:54:34]Write to MH i2c: 01 00 00 0B 3D 48 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: 01 [17:54:34]MH_I2C_Read... [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 0B 3D 00 00 00 00 00 FF 0F 5D [17:54:34]RasterBufferAndPrint [17:54:34]line Счет N : (1)221436 [17:54:34]line ИНН: 02508201610067 [17:54:34]line Контрольно-Кассовый Чек [17:54:34]line ПРОДАЖА [17:54:34]line ТРК (МРК, ГНК) : 23 [17:54:34]line Товар: 2710124130 [17:54:34]line Аи-92-К-5 [17:54:34]line 3.590 * 66.90 [17:54:34]line = 240.17 [17:54:34]line НДС 12% НСП 1% [17:54:34]line > о реализуемом товаре [17:54:34]line ОКРУГЛЕНИЕ: -0.17 [17:54:34]line ИТОГО: 240.00 [17:54:34]line Внесено: 240.00 [17:54:34]line СДАЧА: 0.00 [17:54:34]line НСП 1% : 2.12 [17:54:34]line НДС 12% : 25.50 [17:54:34]line Наличными: 240.00 [17:54:34]line Безнал.: 0.00 [17:54:34]line Место: АЗС № 161 "Партнер Нефть" [17:54:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:54:34]line СНО: Общий режим [17:54:34]line Чек 266 23.10.2024 17:54 [17:54:34]line Смена: 537 ФФД: 1.0 [17:54:34]line ЗНМ: 0300000104 [17:54:34]line РНМ: 0000000000091764 [17:54:34]line Версия ККМ: 001 [17:54:34]line ФМ: 0000000000871759 [17:54:34]line ФД: 166851 [17:54:34]line ФПД: 143729651246550 [17:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166851&fm=143729651246550&tin=02508201610067®Number=0000000000091764&sum=24000 [17:54:35]OFD Sender: Processing packet 166851 [packets to send 48, broken 47] [17:54:35]ProducePacketName [17:54:35]name=ofd_packets/00166851 [17:54:35]OFD Sender: To server: pG, [17:54:35]CommunicateWithHost lk.salyk.kg:30040 [17:54:35]ConnectInit lk.salyk.kg [17:54:35]written 0, free lines is 4095 [17:54:35]Connected sock=10 [17:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C AA 07 01 5D 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 38 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8B 02 00 35 04 06 00 82 B8 AA CE 65 D6 C0 78 B1 69 5C F5 4B C4 [17:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC B4 47 00 66 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8B 02 00 F4 03 04 00 C2 DE 18 67 B6 04 01 00 00 72 C1 6E 32 66 B6 E1 5A [17:54:35]CommunicateWithHost err = 0 [17:54:35]CheckOFDResponse [17:54:35]1017 (14) - 77093643461234 [17:54:35]1041 (16) - 0000000000871759 [17:54:35]1040 (4) - 166851 [17:54:35]1012 (4) - 23.10.2024 11:32 [17:54:35]1206 (1) - 0 [17:54:35]OFD Sender: Remove packet 166851 [17:54:35]ProducePacketName [17:54:35]name=ofd_packets/00166851 [17:54:35]NVStorageDeleteData [17:54:35]Write to MH i2c: 01 00 00 36 3D 73 [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: 01 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: 01 07 00 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: 01 07 00 36 3D 00 00 00 00 00 B5 0C 3B [17:54:35]RasterBufferAndPrint [17:54:35]line [17:54:35]line [17:54:35]line [17:54:35]line [17:54:35]line [17:54:35]written 0, free lines is 3262 [17:54:35]MH_Cut [17:54:35]Write to MH i2c: D1 01 00 3D 3D 01 4C [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: D1 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: D1 01 00 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: D1 01 00 3D 3D 00 4B [17:54:35]Write to MH i2c: 01 00 00 3E 3D 7B [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:35]OFD Sender: No OFD packet to send [17:54:36]*** Cut start [17:54:36]*** Partial cut [17:54:36]*** CUTSNS_PIN = 1 [17:54:36]*** CUTSNS_PIN = 0 [17:54:36]*** Brake cut motor [17:54:36]Read from MH i2c: 01 [17:54:36]MH_I2C_Read... [17:54:36]*** Stop cut motor [17:54:36]*** Cut end [17:54:36]Read from MH i2c: 01 07 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: 01 07 00 3E 3D 00 00 00 00 00 FF 0F 90 [17:54:36]process_action close_receipt done [17:54:36]requested_data is exist [17:54:36]produce_requested_data [17:54:36]requested_item fm.sn is exist - process it [17:54:36]wFMCommunicate request_size=4 [17:54:36]MH_SAM_APDU [17:54:36]CAPDU: 80 11 00 00 [17:54:36]Write to MH i2c: E2 08 00 3F 3D 80 11 00 00 00 00 00 00 F6 [17:54:36]Write i2c OK [17:54:36]MH_I2C_Read... [17:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:37]Read from MH i2c: E2 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 17 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 17 00 3F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [17:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:54:37]wFMCommunicate OK [17:54:37]requested_item fd.num is exist - process it [17:54:37]SAM_PROTO_GetFieldsCounters [17:54:37]wFMCommunicate request_size=4 [17:54:37]MH_SAM_APDU [17:54:37]CAPDU: 80 13 00 00 [17:54:37]Write to MH i2c: E2 08 00 40 3D 80 13 00 00 00 00 00 00 F9 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:37]Read from MH i2c: E2 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 62 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 62 00 40 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:37]wFMCommunicate OK [17:54:37]SAM_PROTO_GetFieldsCounters done [17:54:37]requested_item shift.num is exist - process it [17:54:37]requested_item shift.opened is exist - process it [17:54:37]req_shift_opened [17:54:37]FM_GetShiftState [17:54:37]SAM_PROTO_GetShiftState [17:54:37]wFMCommunicate request_size=4 [17:54:37]MH_SAM_APDU [17:54:37]CAPDU: 80 13 01 00 [17:54:37]Write to MH i2c: E2 08 00 41 3D 80 13 01 00 00 00 00 00 FB [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:37]Read from MH i2c: E2 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 0E 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 0E 00 41 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C6 [17:54:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:54:37]wFMCommunicate OK [17:54:37]SAM_PROTO_GetShiftState done [17:54:37]FM_GetShiftState done [17:54:37]req_shift_opened done [17:54:37]requested_item shift.open_date is exist - process it [17:54:37]req_shift_open_date [17:54:37]req_shift_open_date done [17:54:37]produce_requested_data done [17:54:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166851,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:54:37]process_action_free close_receipt [17:54:37]json_value_free [17:54:37]json_value_free done [17:54:37]process_json_proto returns [17:54:37]Send response to host [17:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166851,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:54:37]free response buf [17:54:37]execute_script done [17:54:37]execute_script returns [17:54:37]free content buf [17:54:37]Sock 8.Close socket [17:54:37]Sock 8.Thread stoped [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:06]accept exits with 9 [17:58:06]New connection [17:58:06]New thread 3067178340 created [17:58:06]Thread 3067034980 joined [17:58:06]Waiting for new connection... [17:58:06] Sock 9.Parse request [17:58:06]Sock 9.Check first char [17:58:06]Sock 9.First char is OK [17:58:06]request: POST /json_proto HTTP/1.0 [17:58:06]Method: POST [17:58:06]URL: /json_proto [17:58:06]Method is POST - this is cgi request [17:58:06]url: /json_proto [17:58:06]query_string will be loaded in cgi processing [17:58:06]execute_cgi json_proto POST (null) [17:58:06]execute_cgi path=json_proto method=POST [17:58:06]POST find Content-Length [17:58:06]Host: 172.17.53.195:8080 [17:58:06]Content-Length: 682 [17:58:06]Content-Type: application/json [17:58:06] [17:58:06]POST finish read [17:58:06]Found Content-Length = 682 [17:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.210, "sum" : 1499.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:06]execute_script... [17:58: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)221437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.210, "sum" : 1499.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:06]POST & json_proto [17:58:06]process_json_proto [17:58:06]json parsed OK: [17:58:06]protocol is kg_v1.0 [17:58:06]action value=close_receipt [17:58:06]process_action close_receipt [17:58:06]cmd_close_receipt [17:58:06]MH_GetDate [17:58:06]Write to MH i2c: F0 00 00 42 3D 6E [17:58:06]Write i2c OK [17:58:06]MH_I2C_Read... [17:58:06]Read from MH i2c: F0 [17:58:06]MH_I2C_Read... [17:58:06]Read from MH i2c: F0 09 00 [17:58:06]MH_I2C_Read... [17:58:06]Read from MH i2c: F0 09 00 42 3D 00 30 39 19 67 21 48 4A 65 78 [17:58:06]GetLastDocTimeStamp 1729706075 [17:58:06]current date 1729706288 [17:58:06]FM_GetShiftState [17:58:06]SAM_PROTO_GetShiftState [17:58:06]wFMCommunicate request_size=4 [17:58:06]MH_SAM_APDU [17:58:06]CAPDU: 80 13 01 00 [17:58:06]Write to MH i2c: E2 08 00 43 3D 80 13 01 00 00 00 00 00 FD [17:58:06]Write i2c OK [17:58:06]MH_I2C_Read... [17:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:06]Read from MH i2c: E2 [17:58:06]MH_I2C_Read... [17:58:06]Read from MH i2c: E2 0E 00 [17:58:06]MH_I2C_Read... [17:58:06]Read from MH i2c: E2 0E 00 43 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C8 [17:58:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:58:06]wFMCommunicate OK [17:58:06]SAM_PROTO_GetShiftState done [17:58:06]FM_GetShiftState done [17:58:06]opened in 1729643772 [17:58:06]opened+sec_in_day 1729730172 [17:58:06]quantity*price = 149958 [17:58:06]sum+1 = 149959 [17:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 267 23.10.2024 17:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166852 ФПД: 42035230496785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166852&fm=42035230496785&tin=02508201610067®Number=0000000000091764&sum=149900 [17:58:07]StoreToDocumentArchive [17:58:07]shift 537 fd 166852 [17:58:07]save to /storage/0537/doc_00166852 [17:58:07]save last doc name /storage/0537/doc_00166852 to /storage/kkm_last_doc_name [17:58:07]save OK [17:58:07]Clear old archive folders... [17:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:07]tlvbuf is 01FC72B0 [17:58:07]SAM_PROTO_ClearQueue [17:58:07]wFMCommunicate request_size=4 [17:58:07]MH_SAM_APDU [17:58:07]CAPDU: 80 09 00 00 [17:58:07]Write to MH i2c: E2 08 00 50 3D 80 09 00 00 00 00 00 00 FF [17:58:07]Write i2c OK [17:58:07]MH_I2C_Read... [17:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:07]Read from MH i2c: E2 [17:58:07]MH_I2C_Read... [17:58:07]Read from MH i2c: E2 03 00 [17:58:07]MH_I2C_Read... [17:58:07]Read from MH i2c: E2 03 00 50 3D 00 90 00 01 [17:58:07]RAPDU: 90 00 [17:58:07]wFMCommunicate OK [17:58:07]SAM_PROTO_ClearQueue done [17:58:07]KKMCreateOFDPacket [17:58:07]OFDProtocolAddRootSTLVToBuf [17:58:07]FM_MakeSignedData [17:58:07]FM_MakeSignedData [17:58:07]SAM_PROTO_SignData [17:58:07]wFMCommunicate request_size=4 [17:58:07]MH_SAM_APDU [17:58:07]CAPDU: 80 0D 01 02 [17:58:07]Write to MH i2c: E2 08 00 51 3D 80 0D 01 02 00 00 00 00 07 [17:58:07]Write i2c OK [17:58:07]MH_I2C_Read... [17:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:07]Read from MH i2c: E2 [17:58:07]MH_I2C_Read... [17:58:07]Read from MH i2c: E2 03 00 [17:58:07]MH_I2C_Read... [17:58:07]Read from MH i2c: E2 03 00 51 3D 00 90 00 02 [17:58:07]RAPDU: 90 00 [17:58:07]wFMCommunicate OK [17:58:07]wFMCommunicate request_size=255 [17:58:07]MH_SAM_APDU [17:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 31 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8B 02 00 35 04 06 00 26 [17:58:08]Write to MH i2c: E2 02 01 52 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 31 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8B 02 00 35 04 06 00 26 00 00 62 [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:08]Read from MH i2c: E2 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 03 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 03 00 52 3D 00 90 00 03 [17:58:08]RAPDU: 90 00 [17:58:08]wFMCommunicate OK [17:58:08]wFMCommunicate request_size=10 [17:58:08]MH_SAM_APDU [17:58:08]CAPDU: 80 0D 02 02 05 3B 16 FB 58 11 [17:58:08]Write to MH i2c: E2 0D 00 53 3D 80 0D 02 02 05 00 3B 16 FB 58 11 00 00 C9 [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:08]Read from MH i2c: E2 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 03 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 03 00 53 3D 00 90 00 04 [17:58:08]RAPDU: 90 00 [17:58:08]wFMCommunicate OK [17:58:08]wFMCommunicate request_size=4 [17:58:08]MH_SAM_APDU [17:58:08]CAPDU: 80 0D 03 02 [17:58:08]Write to MH i2c: E2 08 00 54 3D 80 0D 03 02 00 00 00 00 0C [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:08]Read from MH i2c: E2 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 0B 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 0B 00 54 3D 00 C9 C2 B9 33 B6 6C DE 99 90 00 1D [17:58:08]RAPDU: C9 C2 B9 33 B6 6C DE 99 90 00 [17:58:08]wFMCommunicate OK [17:58:08]SAM_PROTO_SignData done [17:58:08]FM_MakeSignedData done [17:58:08]CreateOFDProtocolMessage [17:58:08]wFMCommunicate request_size=4 [17:58:08]MH_SAM_APDU [17:58:08]CAPDU: 80 11 00 00 [17:58:08]Write to MH i2c: E2 08 00 55 3D 80 11 00 00 00 00 00 00 0C [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:08]Read from MH i2c: E2 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 17 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 17 00 55 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [17:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:08]wFMCommunicate OK [17:58:08]CreateOFDProtocolMessage done [17:58:08]OFDSenderStorePacket 166852 [17:58:08]StoreOFDPacket docnum=166852 [17:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A D5 07 01 0A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 31 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8B 02 00 35 04 06 00 26 3B 16 FB 58 11 C9 C2 B9 33 B6 6C DE 99 [17:58:08]CheckFolder [17:58:08]dirname=/storage/ofd_packets [17:58:08]CheckFolder done [17:58:08]ProducePacketName [17:58:08]name=ofd_packets/00166852 [17:58:08]NVStorageSaveData ofd_packets/00166852 [17:58:08]File name is /storage/ofd_packets/00166852 [17:58:08]Write 301 bytes [17:58:08]NVStorageSaveData done [17:58:08]OFDSenderStorePacket done [17:58:08]KKMCreateOFDPacket done [17:58:08]NVStorageSaveData kkm_last_timestamp [17:58:08]File name is /storage/kkm_last_timestamp [17:58:08]Write 4 bytes [17:58:08]NVStorageSaveData done [17:58:08]ExternCall_PrintAddStr [17:58:08]wPrintStart [17:58:08]Write to MH i2c: 01 00 00 56 3D 93 [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: 01 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: 01 07 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: 01 07 00 56 3D 00 00 00 00 00 FF 0F A8 [17:58:08]RasterBufferAndPrint [17:58:08]line Счет N : (1)221437 [17:58:08]line ИНН: 02508201610067 [17:58:08]line Контрольно-Кассовый Чек [17:58:08]line ПРОДАЖА [17:58:08]line ТРК (МРК, ГНК) : 44 [17:58:08]line Товар: 2710124500 [17:58:08]line Аи-95-К-5 [17:58:08]line 20.210 * 74.20 [17:58:08]line = 1499.58 [17:58:08]line НДС 12% НСП 1% [17:58:08]line > о реализуемом товаре [17:58:08]line ОКРУГЛЕНИЕ: -0.58 [17:58:08]line ИТОГО: 1499.00 [17:58:08]line Внесено: 1500.00 [17:58:08]line СДАЧА: 1.00 [17:58:08]line НСП 1% : 13.27 [17:58:08]line НДС 12% : 159.25 [17:58:08]line Наличными: 1499.00 [17:58:08]line Безнал.: 0.00 [17:58:08]line Место: АЗС № 161 "Партнер Нефть" [17:58:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:58:08]line СНО: Общий режим [17:58:08]line Чек 267 23.10.2024 17:58 [17:58:08]line Смена: 537 ФФД: 1.0 [17:58:08]line ЗНМ: 0300000104 [17:58:08]line РНМ: 0000000000091764 [17:58:08]line Версия ККМ: 001 [17:58:08]line ФМ: 0000000000871759 [17:58:08]line ФД: 166852 [17:58:08]line ФПД: 42035230496785 [17:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166852&fm=42035230496785&tin=02508201610067®Number=0000000000091764&sum=149900 [17:58:08]OFD Sender: Processing packet 166852 [packets to send 48, broken 47] [17:58:08]ProducePacketName [17:58:08]name=ofd_packets/00166852 [17:58:08]OFD Sender: To server: pG, [17:58:08]CommunicateWithHost lk.salyk.kg:30040 [17:58:08]ConnectInit lk.salyk.kg [17:58:08]written 0, free lines is 4095 [17:58:08]Connected sock=10 [17:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A D5 07 01 0A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 31 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8B 02 00 35 04 06 00 26 3B 16 FB 58 11 C9 C2 B9 33 B6 6C DE 99 [17:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DE D2 47 00 F8 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8B 02 00 F4 03 04 00 97 DF 18 67 B6 04 01 00 00 4E CB 9B 15 97 BA CB 4E [17:58:09]CommunicateWithHost err = 0 [17:58:09]CheckOFDResponse [17:58:09]1017 (14) - 77093643461234 [17:58:09]1041 (16) - 0000000000871759 [17:58:09]1040 (4) - 166852 [17:58:09]1012 (4) - 23.10.2024 11:35 [17:58:09]1206 (1) - 0 [17:58:09]OFD Sender: Remove packet 166852 [17:58:09]ProducePacketName [17:58:09]name=ofd_packets/00166852 [17:58:09]NVStorageDeleteData [17:58:09]Write to MH i2c: 01 00 00 81 3D BE [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 07 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 07 00 81 3D 00 00 00 00 00 C2 0C 93 [17:58:09]RasterBufferAndPrint [17:58:09]line [17:58:09]line [17:58:09]line [17:58:09]line [17:58:09]line [17:58:09]written 0, free lines is 3271 [17:58:09]MH_Cut [17:58:09]Write to MH i2c: D1 01 00 88 3D 01 97 [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: D1 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: D1 01 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: D1 01 00 88 3D 00 96 [17:58:09]Write to MH i2c: 01 00 00 89 3D C6 [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]OFD Sender: No OFD packet to send [17:58:10]*** Cut start [17:58:10]*** Partial cut [17:58:10]*** CUTSNS_PIN = 1 [17:58:10]*** CUTSNS_PIN = 0 [17:58:10]*** Brake cut motor [17:58:10]Read from MH i2c: 01 [17:58:10]MH_I2C_Read... [17:58:10]*** Stop cut motor [17:58:10]*** Cut end [17:58:10]Read from MH i2c: 01 07 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: 01 07 00 89 3D 00 00 00 00 00 FF 0F DB [17:58:10]process_action close_receipt done [17:58:10]requested_data is exist [17:58:10]produce_requested_data [17:58:10]requested_item fm.sn is exist - process it [17:58:10]wFMCommunicate request_size=4 [17:58:10]MH_SAM_APDU [17:58:10]CAPDU: 80 11 00 00 [17:58:10]Write to MH i2c: E2 08 00 8A 3D 80 11 00 00 00 00 00 00 41 [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:10]Read from MH i2c: E2 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 17 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 17 00 8A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [17:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:10]wFMCommunicate OK [17:58:10]requested_item fd.num is exist - process it [17:58:10]SAM_PROTO_GetFieldsCounters [17:58:10]wFMCommunicate request_size=4 [17:58:10]MH_SAM_APDU [17:58:10]CAPDU: 80 13 00 00 [17:58:10]Write to MH i2c: E2 08 00 8B 3D 80 13 00 00 00 00 00 00 44 [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:10]Read from MH i2c: E2 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 62 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 62 00 8B 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:10]wFMCommunicate OK [17:58:10]SAM_PROTO_GetFieldsCounters done [17:58:10]requested_item shift.num is exist - process it [17:58:10]requested_item shift.opened is exist - process it [17:58:10]req_shift_opened [17:58:10]FM_GetShiftState [17:58:10]SAM_PROTO_GetShiftState [17:58:10]wFMCommunicate request_size=4 [17:58:10]MH_SAM_APDU [17:58:10]CAPDU: 80 13 01 00 [17:58:10]Write to MH i2c: E2 08 00 8C 3D 80 13 01 00 00 00 00 00 46 [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:10]Read from MH i2c: E2 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 0E 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: E2 0E 00 8C 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 11 [17:58:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:58:10]wFMCommunicate OK [17:58:10]SAM_PROTO_GetShiftState done [17:58:10]FM_GetShiftState done [17:58:10]req_shift_opened done [17:58:10]requested_item shift.open_date is exist - process it [17:58:10]req_shift_open_date [17:58:10]req_shift_open_date done [17:58:10]produce_requested_data done [17:58:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166852,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:58:10]process_action_free close_receipt [17:58:10]json_value_free [17:58:10]json_value_free done [17:58:10]process_json_proto returns [17:58:10]Send response to host [17:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166852,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:58:10]free response buf [17:58:10]execute_script done [17:58:10]execute_script returns [17:58:10]free content buf [17:58:10]Sock 9.Close socket [17:58:10]Sock 9.Thread stoped [17:58:11]accept exits with 8 [17:58:11]New connection [17:58:11]New thread 3067034980 created [17:58:11]Thread 3067178340 joined [17:58:11]Waiting for new connection... [17:58:11] Sock 8.Parse request [17:58:11]Sock 8.Check first char [17:58:11]Sock 8.First char is OK [17:58:11]request: POST /json_proto HTTP/1.0 [17:58:11]Method: POST [17:58:11]URL: /json_proto [17:58:11]Method is POST - this is cgi request [17:58:11]url: /json_proto [17:58:11]query_string will be loaded in cgi processing [17:58:11]execute_cgi json_proto POST (null) [17:58:11]execute_cgi path=json_proto method=POST [17:58:11]POST find Content-Length [17:58:11]Host: 172.17.53.195:8080 [17:58:11]Content-Length: 677 [17:58:11]Content-Type: application/json [17:58:11] [17:58:11]POST finish read [17:58:11]Found Content-Length = 677 [17:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:11]execute_script... [17: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)221438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:11]POST & json_proto [17:58:11]process_json_proto [17:58:11]json parsed OK: [17:58:11]protocol is kg_v1.0 [17:58:11]action value=close_receipt [17:58:11]process_action close_receipt [17:58:11]cmd_close_receipt [17:58:11]MH_GetDate [17:58:11]Write to MH i2c: F0 00 00 8D 3D B9 [17:58:11]Write i2c OK [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: F0 [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: F0 09 00 [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: F0 09 00 8D 3D 00 35 39 19 67 21 48 4A 65 C8 [17:58:11]GetLastDocTimeStamp 1729706289 [17:58:11]current date 1729706293 [17:58:11]FM_GetShiftState [17:58:11]SAM_PROTO_GetShiftState [17:58:11]wFMCommunicate request_size=4 [17:58:11]MH_SAM_APDU [17:58:11]CAPDU: 80 13 01 00 [17:58:11]Write to MH i2c: E2 08 00 8E 3D 80 13 01 00 00 00 00 00 48 [17:58:11]Write i2c OK [17:58:11]MH_I2C_Read... [17:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:11]Read from MH i2c: E2 [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: E2 0E 00 [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: E2 0E 00 8E 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [17:58:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:58:11]wFMCommunicate OK [17:58:11]SAM_PROTO_GetShiftState done [17:58:11]FM_GetShiftState done [17:58:11]opened in 1729643772 [17:58:11]opened+sec_in_day 1729730172 [17:58:11]quantity*price = 50041 [17:58:11]sum+1 = 50042 [17:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 268 23.10.2024 17:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166853 ФПД: 26349159835465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166853&fm=26349159835465&tin=02508201610067®Number=0000000000091764&sum=50000 [17:58:12]StoreToDocumentArchive [17:58:12]shift 537 fd 166853 [17:58:12]save to /storage/0537/doc_00166853 [17:58:12]save last doc name /storage/0537/doc_00166853 to /storage/kkm_last_doc_name [17:58:12]save OK [17:58:12]Clear old archive folders... [17:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:12]tlvbuf is 020D6620 [17:58:12]SAM_PROTO_ClearQueue [17:58:12]wFMCommunicate request_size=4 [17:58:12]MH_SAM_APDU [17:58:12]CAPDU: 80 09 00 00 [17:58:12]Write to MH i2c: E2 08 00 9B 3D 80 09 00 00 00 00 00 00 4A [17:58:12]Write i2c OK [17:58:12]MH_I2C_Read... [17:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:12]Read from MH i2c: E2 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 03 00 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 03 00 9B 3D 00 90 00 4C [17:58:12]RAPDU: 90 00 [17:58:12]wFMCommunicate OK [17:58:12]SAM_PROTO_ClearQueue done [17:58:12]KKMCreateOFDPacket [17:58:12]OFDProtocolAddRootSTLVToBuf [17:58:12]FM_MakeSignedData [17:58:12]FM_MakeSignedData [17:58:12]SAM_PROTO_SignData [17:58:12]wFMCommunicate request_size=4 [17:58:12]MH_SAM_APDU [17:58:12]CAPDU: 80 0D 01 02 [17:58:12]Write to MH i2c: E2 08 00 9C 3D 80 0D 01 02 00 00 00 00 52 [17:58:12]Write i2c OK [17:58:12]MH_I2C_Read... [17:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:12]Read from MH i2c: E2 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 03 00 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 03 00 9C 3D 00 90 00 4D [17:58:12]RAPDU: 90 00 [17:58:12]wFMCommunicate OK [17:58:12]wFMCommunicate request_size=255 [17:58:12]MH_SAM_APDU [17:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 35 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8B 02 00 35 04 06 00 17 [17:58:12]Write to MH i2c: E2 02 01 9D 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 35 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8B 02 00 35 04 06 00 17 00 00 67 [17:58:12]Write i2c OK [17:58:12]MH_I2C_Read... [17:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:13]Read from MH i2c: E2 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 03 00 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 03 00 9D 3D 00 90 00 4E [17:58:13]RAPDU: 90 00 [17:58:13]wFMCommunicate OK [17:58:13]wFMCommunicate request_size=10 [17:58:13]MH_SAM_APDU [17:58:13]CAPDU: 80 0D 02 02 05 F6 E4 4F E7 49 [17:58:13]Write to MH i2c: E2 0D 00 9E 3D 80 0D 02 02 05 00 F6 E4 4F E7 49 00 00 B8 [17:58:13]Write i2c OK [17:58:13]MH_I2C_Read... [17:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:13]Read from MH i2c: E2 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 03 00 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 03 00 9E 3D 00 90 00 4F [17:58:13]RAPDU: 90 00 [17:58:13]wFMCommunicate OK [17:58:13]wFMCommunicate request_size=4 [17:58:13]MH_SAM_APDU [17:58:13]CAPDU: 80 0D 03 02 [17:58:13]Write to MH i2c: E2 08 00 9F 3D 80 0D 03 02 00 00 00 00 57 [17:58:13]Write i2c OK [17:58:13]MH_I2C_Read... [17:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:13]Read from MH i2c: E2 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 0B 00 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 0B 00 9F 3D 00 6B 26 95 B6 F7 91 F6 87 90 00 39 [17:58:13]RAPDU: 6B 26 95 B6 F7 91 F6 87 90 00 [17:58:13]wFMCommunicate OK [17:58:13]SAM_PROTO_SignData done [17:58:13]FM_MakeSignedData done [17:58:13]CreateOFDProtocolMessage [17:58:13]wFMCommunicate request_size=4 [17:58:13]MH_SAM_APDU [17:58:13]CAPDU: 80 11 00 00 [17:58:13]Write to MH i2c: E2 08 00 A0 3D 80 11 00 00 00 00 00 00 57 [17:58:13]Write i2c OK [17:58:13]MH_I2C_Read... [17:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:13]Read from MH i2c: E2 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 17 00 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: E2 17 00 A0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [17:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:13]wFMCommunicate OK [17:58:13]CreateOFDProtocolMessage done [17:58:13]OFDSenderStorePacket 166853 [17:58:13]StoreOFDPacket docnum=166853 [17:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 CC 07 01 8C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8B 02 00 35 04 06 00 17 F6 E4 4F E7 49 6B 26 95 B6 F7 91 F6 87 [17:58:13]CheckFolder [17:58:13]dirname=/storage/ofd_packets [17:58:13]CheckFolder done [17:58:13]ProducePacketName [17:58:13]name=ofd_packets/00166853 [17:58:13]NVStorageSaveData ofd_packets/00166853 [17:58:13]File name is /storage/ofd_packets/00166853 [17:58:13]Write 301 bytes [17:58:13]NVStorageSaveData done [17:58:13]OFDSenderStorePacket done [17:58:13]KKMCreateOFDPacket done [17:58:13]NVStorageSaveData kkm_last_timestamp [17:58:13]File name is /storage/kkm_last_timestamp [17:58:13]Write 4 bytes [17:58:13]NVStorageSaveData done [17:58:13]ExternCall_PrintAddStr [17:58:13]wPrintStart [17:58:13]Write to MH i2c: 01 00 00 A1 3D DE [17:58:13]Write i2c OK [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: 01 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: 01 07 00 [17:58:13]MH_I2C_Read... [17:58:13]Read from MH i2c: 01 07 00 A1 3D 00 00 00 00 00 FF 0F F3 [17:58:13]RasterBufferAndPrint [17:58:13]line Счет N : (1)221438 [17:58:13]line ИНН: 02508201610067 [17:58:13]line Контрольно-Кассовый Чек [17:58:13]line ПРОДАЖА [17:58:13]line ТРК (МРК, ГНК) : 23 [17:58:13]line Товар: 2710124130 [17:58:13]line Аи-92-К-5 [17:58:13]line 7.480 * 66.90 [17:58:13]line = 500.41 [17:58:13]line НДС 12% НСП 1% [17:58:13]line > о реализуемом товаре [17:58:13]line ОКРУГЛЕНИЕ: -0.41 [17:58:13]line ИТОГО: 500.00 [17:58:13]line Внесено: 500.00 [17:58:13]line СДАЧА: 0.00 [17:58:13]line НСП 1% : 4.43 [17:58:13]line НДС 12% : 53.14 [17:58:13]line Наличными: 500.00 [17:58:13]line Безнал.: 0.00 [17:58:13]line Место: АЗС № 161 "Партнер Нефть" [17:58:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:58:13]line СНО: Общий режим [17:58:13]line Чек 268 23.10.2024 17:58 [17:58:13]line Смена: 537 ФФД: 1.0 [17:58:13]line ЗНМ: 0300000104 [17:58:13]line РНМ: 0000000000091764 [17:58:13]line Версия ККМ: 001 [17:58:13]line ФМ: 0000000000871759 [17:58:13]line ФД: 166853 [17:58:13]line ФПД: 26349159835465 [17:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166853&fm=26349159835465&tin=02508201610067®Number=0000000000091764&sum=50000 [17:58:13]OFD Sender: Processing packet 166853 [packets to send 48, broken 47] [17:58:13]ProducePacketName [17:58:13]name=ofd_packets/00166853 [17:58:13]OFD Sender: To server: pG, [17:58:13]CommunicateWithHost lk.salyk.kg:30040 [17:58:13]ConnectInit lk.salyk.kg [17:58:13]written 0, free lines is 4095 [17:58:13]Connected sock=10 [17:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 CC 07 01 8C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 35 39 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8B 02 00 35 04 06 00 17 F6 E4 4F E7 49 6B 26 95 B6 F7 91 F6 87 [17:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 FA 47 00 68 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8B 02 00 F4 03 04 00 9C DF 18 67 B6 04 01 00 00 D7 0A 98 BA 8F 17 8B 4C [17:58:14]CommunicateWithHost err = 0 [17:58:14]CheckOFDResponse [17:58:14]1017 (14) - 77093643461234 [17:58:14]1041 (16) - 0000000000871759 [17:58:14]1040 (4) - 166853 [17:58:14]1012 (4) - 23.10.2024 11:35 [17:58:14]1206 (1) - 0 [17:58:14]OFD Sender: Remove packet 166853 [17:58:14]ProducePacketName [17:58:14]name=ofd_packets/00166853 [17:58:14]NVStorageDeleteData [17:58:14]Write to MH i2c: 01 00 00 CC 3D 09 [17:58:14]Write i2c OK [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: 01 [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: 01 07 00 [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: 01 07 00 CC 3D 00 00 00 00 00 C0 0C DC [17:58:14]RasterBufferAndPrint [17:58:14]line [17:58:14]line [17:58:14]line [17:58:14]line [17:58:14]line [17:58:14]written 0, free lines is 3279 [17:58:14]MH_Cut [17:58:14]Write to MH i2c: D1 01 00 D3 3D 01 E2 [17:58:14]Write i2c OK [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: D1 [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: D1 01 00 [17:58:14]MH_I2C_Read... [17:58:14]Read from MH i2c: D1 01 00 D3 3D 00 E1 [17:58:14]Write to MH i2c: 01 00 00 D4 3D 11 [17:58:14]Write i2c OK [17:58:14]MH_I2C_Read... [17:58:14]OFD Sender: No OFD packet to send [17:58:15]*** Cut start [17:58:15]*** Partial cut [17:58:15]*** CUTSNS_PIN = 1 [17:58:15]*** CUTSNS_PIN = 0 [17:58:15]*** Brake cut motor [17:58:15]Read from MH i2c: 01 [17:58:15]MH_I2C_Read... [17:58:15]*** Stop cut motor [17:58:15]*** Cut end [17:58:15]Read from MH i2c: 01 07 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: 01 07 00 D4 3D 00 00 00 00 00 FF 0F 26 [17:58:15]process_action close_receipt done [17:58:15]requested_data is exist [17:58:15]produce_requested_data [17:58:15]requested_item fm.sn is exist - process it [17:58:15]wFMCommunicate request_size=4 [17:58:15]MH_SAM_APDU [17:58:15]CAPDU: 80 11 00 00 [17:58:15]Write to MH i2c: E2 08 00 D5 3D 80 11 00 00 00 00 00 00 8C [17:58:15]Write i2c OK [17:58:15]MH_I2C_Read... [17:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:15]Read from MH i2c: E2 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 17 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 17 00 D5 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [17:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:15]wFMCommunicate OK [17:58:15]requested_item fd.num is exist - process it [17:58:15]SAM_PROTO_GetFieldsCounters [17:58:15]wFMCommunicate request_size=4 [17:58:15]MH_SAM_APDU [17:58:15]CAPDU: 80 13 00 00 [17:58:15]Write to MH i2c: E2 08 00 D6 3D 80 13 00 00 00 00 00 00 8F [17:58:15]Write i2c OK [17:58:15]MH_I2C_Read... [17:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:15]Read from MH i2c: E2 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 62 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 62 00 D6 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:15]wFMCommunicate OK [17:58:15]SAM_PROTO_GetFieldsCounters done [17:58:15]requested_item shift.num is exist - process it [17:58:15]requested_item shift.opened is exist - process it [17:58:15]req_shift_opened [17:58:15]FM_GetShiftState [17:58:15]SAM_PROTO_GetShiftState [17:58:15]wFMCommunicate request_size=4 [17:58:15]MH_SAM_APDU [17:58:15]CAPDU: 80 13 01 00 [17:58:15]Write to MH i2c: E2 08 00 D7 3D 80 13 01 00 00 00 00 00 91 [17:58:15]Write i2c OK [17:58:15]MH_I2C_Read... [17:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:15]Read from MH i2c: E2 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 0E 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 0E 00 D7 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [17:58:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [17:58:15]wFMCommunicate OK [17:58:15]SAM_PROTO_GetShiftState done [17:58:15]FM_GetShiftState done [17:58:15]req_shift_opened done [17:58:15]requested_item shift.open_date is exist - process it [17:58:15]req_shift_open_date [17:58:15]req_shift_open_date done [17:58:15]produce_requested_data done [17:58:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166853,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [17:58:15]process_action_free close_receipt [17:58:15]json_value_free [17:58:15]json_value_free done [17:58:15]process_json_proto returns [17:58:15]Send response to host [17:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166853,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [17:58:15]free response buf [17:58:15]execute_script done [17:58:15]execute_script returns [17:58:15]free content buf [17:58:15]Sock 8.Close socket [17:58:15]Sock 8.Thread stoped [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [18:03:05]New connection [18:03:05]New thread 3067178340 created [18:03:05]Thread 3067034980 joined [18:03:05]Waiting for new connection... [18:03:05] Sock 9.Parse request [18:03:05]Sock 9.Check first char [18:03:05]Sock 9.First char is OK [18:03:05]request: POST /json_proto HTTP/1.0 [18:03:05]Method: POST [18:03:05]URL: /json_proto [18:03:05]Method is POST - this is cgi request [18:03:05]url: /json_proto [18:03:05]query_string will be loaded in cgi processing [18:03:05]execute_cgi json_proto POST (null) [18:03:05]execute_cgi path=json_proto method=POST [18:03:05]POST find Content-Length [18:03:05]Host: 172.17.53.195:8080 [18:03:05]Content-Length: 677 [18:03:05]Content-Type: application/json [18:03:05] [18:03:05]POST finish read [18:03:05]Found Content-Length = 677 [18:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:05]execute_script... [18:03: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)221439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:05]POST & json_proto [18:03:05]process_json_proto [18:03:05]json parsed OK: [18:03:05]protocol is kg_v1.0 [18:03:05]action value=close_receipt [18:03:05]process_action close_receipt [18:03:05]cmd_close_receipt [18:03:05]MH_GetDate [18:03:05]Write to MH i2c: F0 00 00 D8 3D 04 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: F0 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: F0 09 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: F0 09 00 D8 3D 00 5C 3A 19 67 21 48 4A 65 3B [18:03:05]GetLastDocTimeStamp 1729706293 [18:03:05]current date 1729706588 [18:03:05]FM_GetShiftState [18:03:05]SAM_PROTO_GetShiftState [18:03:05]wFMCommunicate request_size=4 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 13 01 00 [18:03:05]Write to MH i2c: E2 08 00 D9 3D 80 13 01 00 00 00 00 00 93 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 0E 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 0E 00 D9 3D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5E [18:03:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:03:05]wFMCommunicate OK [18:03:05]SAM_PROTO_GetShiftState done [18:03:05]FM_GetShiftState done [18:03:05]opened in 1729643772 [18:03:05]opened+sec_in_day 1729730172 [18:03:05]quantity*price = 25020 [18:03:05]sum+1 = 25022 [18:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 269 23.10.2024 18:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166854 ФПД: 230933849892424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166854&fm=230933849892424&tin=02508201610067®Number=0000000000091764&sum=25000 [18:03:06]StoreToDocumentArchive [18:03:06]shift 537 fd 166854 [18:03:06]save to /storage/0537/doc_00166854 [18:03:06]save last doc name /storage/0537/doc_00166854 to /storage/kkm_last_doc_name [18:03:06]save OK [18:03:06]Clear old archive folders... [18:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:06]tlvbuf is 01FDAC00 [18:03:06]SAM_PROTO_ClearQueue [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 09 00 00 [18:03:06]Write to MH i2c: E2 08 00 E6 3D 80 09 00 00 00 00 00 00 95 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 03 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 03 00 E6 3D 00 90 00 97 [18:03:06]RAPDU: 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_ClearQueue done [18:03:06]KKMCreateOFDPacket [18:03:06]OFDProtocolAddRootSTLVToBuf [18:03:06]FM_MakeSignedData [18:03:06]FM_MakeSignedData [18:03:06]SAM_PROTO_SignData [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 0D 01 02 [18:03:06]Write to MH i2c: E2 08 00 E7 3D 80 0D 01 02 00 00 00 00 9D [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 E7 3D 00 90 00 98 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=255 [18:03:07]MH_SAM_APDU [18:03: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5C 3A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8B 02 00 35 04 06 00 D2 [18:03:07]Write to MH i2c: E2 02 01 E8 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5C 3A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8B 02 00 35 04 06 00 D2 00 00 70 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 E8 3D 00 90 00 99 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=10 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 0D 02 02 05 08 7A 16 E6 48 [18:03:07]Write to MH i2c: E2 0D 00 E9 3D 80 0D 02 02 05 00 08 7A 16 E6 48 00 00 70 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 E9 3D 00 90 00 9A [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 0D 03 02 [18:03:07]Write to MH i2c: E2 08 00 EA 3D 80 0D 03 02 00 00 00 00 A2 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0B 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0B 00 EA 3D 00 A8 85 5B 4D 7C 1F 0E B5 90 00 D6 [18:03:07]RAPDU: A8 85 5B 4D 7C 1F 0E B5 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_SignData done [18:03:07]FM_MakeSignedData done [18:03:07]CreateOFDProtocolMessage [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 11 00 00 [18:03:07]Write to MH i2c: E2 08 00 EB 3D 80 11 00 00 00 00 00 00 A2 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 17 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 17 00 EB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [18:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:03:07]wFMCommunicate OK [18:03:07]CreateOFDProtocolMessage done [18:03:07]OFDSenderStorePacket 166854 [18:03:07]StoreOFDPacket docnum=166854 [18:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA A6 07 01 4C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5C 3A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8B 02 00 35 04 06 00 D2 08 7A 16 E6 48 A8 85 5B 4D 7C 1F 0E B5 [18:03:07]CheckFolder [18:03:07]dirname=/storage/ofd_packets [18:03:07]CheckFolder done [18:03:07]ProducePacketName [18:03:07]name=ofd_packets/00166854 [18:03:07]NVStorageSaveData ofd_packets/00166854 [18:03:07]File name is /storage/ofd_packets/00166854 [18:03:07]Write 301 bytes [18:03:07]NVStorageSaveData done [18:03:07]OFDSenderStorePacket done [18:03:07]KKMCreateOFDPacket done [18:03:07]NVStorageSaveData kkm_last_timestamp [18:03:07]File name is /storage/kkm_last_timestamp [18:03:07]Write 4 bytes [18:03:07]NVStorageSaveData done [18:03:07]ExternCall_PrintAddStr [18:03:07]wPrintStart [18:03:07]Write to MH i2c: 01 00 00 EC 3D 29 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: 01 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: 01 07 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: 01 07 00 EC 3D 00 00 00 00 00 FF 0F 3E [18:03:07]RasterBufferAndPrint [18:03:07]line Счет N : (1)221439 [18:03:07]line ИНН: 02508201610067 [18:03:07]line Контрольно-Кассовый Чек [18:03:07]line ПРОДАЖА [18:03:07]line ТРК (МРК, ГНК) : 13 [18:03:07]line Товар: 2710124130 [18:03:07]line Аи-92-К-5 [18:03:07]line 3.740 * 66.90 [18:03:07]line = 250.21 [18:03:07]line НДС 12% НСП 1% [18:03:07]line > о реализуемом товаре [18:03:07]line ОКРУГЛЕНИЕ: -0.21 [18:03:07]line ИТОГО: 250.00 [18:03:07]line Внесено: 250.00 [18:03:07]line СДАЧА: 0.00 [18:03:07]line НСП 1% : 2.21 [18:03:07]line НДС 12% : 26.57 [18:03:07]line Наличными: 250.00 [18:03:07]line Безнал.: 0.00 [18:03:07]line Место: АЗС № 161 "Партнер Нефть" [18:03:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:03:07]line СНО: Общий режим [18:03:07]line Чек 269 23.10.2024 18:03 [18:03:07]line Смена: 537 ФФД: 1.0 [18:03:07]line ЗНМ: 0300000104 [18:03:07]line РНМ: 0000000000091764 [18:03:07]line Версия ККМ: 001 [18:03:07]line ФМ: 0000000000871759 [18:03:07]line ФД: 166854 [18:03:07]line ФПД: 230933849892424 [18:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166854&fm=230933849892424&tin=02508201610067®Number=0000000000091764&sum=25000 [18:03:07]OFD Sender: Processing packet 166854 [packets to send 48, broken 47] [18:03:07]ProducePacketName [18:03:07]name=ofd_packets/00166854 [18:03:07]OFD Sender: To server: pG, [18:03:07]CommunicateWithHost lk.salyk.kg:30040 [18:03:07]ConnectInit lk.salyk.kg [18:03:07]written 0, free lines is 4095 [18:03:07]Connected sock=8 [18:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA A6 07 01 4C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5C 3A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8B 02 00 35 04 06 00 D2 08 7A 16 E6 48 A8 85 5B 4D 7C 1F 0E B5 [18:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1A 57 47 00 30 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8B 02 00 F4 03 04 00 C2 E0 18 67 B6 04 01 00 00 DF 89 C7 92 70 C1 AB A5 [18:03:08]CommunicateWithHost err = 0 [18:03:08]CheckOFDResponse [18:03:08]1017 (14) - 77093643461234 [18:03:08]1041 (16) - 0000000000871759 [18:03:08]1040 (4) - 166854 [18:03:08]1012 (4) - 23.10.2024 11:40 [18:03:08]1206 (1) - 0 [18:03:08]OFD Sender: Remove packet 166854 [18:03:08]ProducePacketName [18:03:08]name=ofd_packets/00166854 [18:03:08]NVStorageDeleteData [18:03:08]Write to MH i2c: 01 00 00 17 3E 55 [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 17 3E 00 00 00 00 00 CA 0C 32 [18:03:08]RasterBufferAndPrint [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]written 0, free lines is 3280 [18:03:08]MH_Cut [18:03:08]Write to MH i2c: D1 01 00 1E 3E 01 2E [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 01 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 01 00 1E 3E 00 2D [18:03:08]Write to MH i2c: 01 00 00 1F 3E 5D [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]OFD Sender: No OFD packet to send [18:03:09]*** Cut start [18:03:09]*** Partial cut [18:03:09]*** CUTSNS_PIN = 1 [18:03:09]*** CUTSNS_PIN = 0 [18:03:09]*** Brake cut motor [18:03:09]Read from MH i2c: 01 [18:03:09]MH_I2C_Read... [18:03:09]*** Stop cut motor [18:03:09]*** Cut end [18:03:09]Read from MH i2c: 01 07 00 [18:03:09]MH_I2C_Read... [18:03:09]Read from MH i2c: 01 07 00 1F 3E 00 00 00 00 00 FF 0F 72 [18:03:09]process_action close_receipt done [18:03:09]requested_data is exist [18:03:09]produce_requested_data [18:03:09]requested_item fm.sn is exist - process it [18:03:09]wFMCommunicate request_size=4 [18:03:09]MH_SAM_APDU [18:03:09]CAPDU: 80 11 00 00 [18:03:09]Write to MH i2c: E2 08 00 20 3E 80 11 00 00 00 00 00 00 D8 [18:03:09]Write i2c OK [18:03:09]MH_I2C_Read... [18:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:09]Read from MH i2c: E2 [18:03:09]MH_I2C_Read... [18:03:09]Read from MH i2c: E2 17 00 [18:03:09]MH_I2C_Read... [18:03:09]Read from MH i2c: E2 17 00 20 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [18:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:03:09]wFMCommunicate OK [18:03:09]requested_item fd.num is exist - process it [18:03:09]SAM_PROTO_GetFieldsCounters [18:03:09]wFMCommunicate request_size=4 [18:03:09]MH_SAM_APDU [18:03:09]CAPDU: 80 13 00 00 [18:03:09]Write to MH i2c: E2 08 00 21 3E 80 13 00 00 00 00 00 00 DB [18:03:09]Write i2c OK [18:03:09]MH_I2C_Read... [18:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:09]Read from MH i2c: E2 [18:03:09]MH_I2C_Read... [18:03:09]Read from MH i2c: E2 62 00 [18:03:09]MH_I2C_Read... [18:03:09]Read from MH i2c: E2 62 00 21 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [18:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:09]wFMCommunicate OK [18:03:09]SAM_PROTO_GetFieldsCounters done [18:03:09]requested_item shift.num is exist - process it [18:03:09]requested_item shift.opened is exist - process it [18:03:09]req_shift_opened [18:03:09]FM_GetShiftState [18:03:09]SAM_PROTO_GetShiftState [18:03:09]wFMCommunicate request_size=4 [18:03:09]MH_SAM_APDU [18:03:09]CAPDU: 80 13 01 00 [18:03:09]Write to MH i2c: E2 08 00 22 3E 80 13 01 00 00 00 00 00 DD [18:03:09]Write i2c OK [18:03:09]MH_I2C_Read... [18:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:10]Read from MH i2c: E2 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 0E 00 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 0E 00 22 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [18:03:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:03:10]wFMCommunicate OK [18:03:10]SAM_PROTO_GetShiftState done [18:03:10]FM_GetShiftState done [18:03:10]req_shift_opened done [18:03:10]requested_item shift.open_date is exist - process it [18:03:10]req_shift_open_date [18:03:10]req_shift_open_date done [18:03:10]produce_requested_data done [18:03:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166854,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:03:10]process_action_free close_receipt [18:03:10]json_value_free [18:03:10]json_value_free done [18:03:10]process_json_proto returns [18:03:10]Send response to host [18:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166854,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:03:10]free response buf [18:03:10]execute_script done [18:03:10]execute_script returns [18:03:10]free content buf [18:03:10]Sock 9.Close socket [18:03:10]Sock 9.Thread stoped [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:17]accept exits with 10 [18:11:17]New connection [18:11:17]New thread 3067034980 created [18:11:17]Thread 3067178340 joined [18:11:17]Waiting for new connection... [18:11:17] Sock 10.Parse request [18:11:17]Sock 10.Check first char [18:11:17]Sock 10.First char is OK [18:11:17]request: POST /json_proto HTTP/1.0 [18:11:17]Method: POST [18:11:17]URL: /json_proto [18:11:17]Method is POST - this is cgi request [18:11:17]url: /json_proto [18:11:17]query_string will be loaded in cgi processing [18:11:17]execute_cgi json_proto POST (null) [18:11:17]execute_cgi path=json_proto method=POST [18:11:17]POST find Content-Length [18:11:17]Host: 172.17.53.195:8080 [18:11:17]Content-Length: 677 [18:11:17]Content-Type: application/json [18:11:17] [18:11:17]POST finish read [18:11:17]Found Content-Length = 677 [18:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:17]execute_script... [18:11: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)221440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:17]POST & json_proto [18:11:17]process_json_proto [18:11:17]json parsed OK: [18:11:17]protocol is kg_v1.0 [18:11:17]action value=close_receipt [18:11:17]process_action close_receipt [18:11:17]cmd_close_receipt [18:11:17]MH_GetDate [18:11:17]Write to MH i2c: F0 00 00 23 3E 50 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 09 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: F0 09 00 23 3E 00 48 3C 19 67 21 48 4A 65 75 [18:11:17]GetLastDocTimeStamp 1729706588 [18:11:17]current date 1729707080 [18:11:17]FM_GetShiftState [18:11:17]SAM_PROTO_GetShiftState [18:11:17]wFMCommunicate request_size=4 [18:11:17]MH_SAM_APDU [18:11:17]CAPDU: 80 13 01 00 [18:11:17]Write to MH i2c: E2 08 00 24 3E 80 13 01 00 00 00 00 00 DF [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:17]Read from MH i2c: E2 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0E 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0E 00 24 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AA [18:11:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:11:17]wFMCommunicate OK [18:11:17]SAM_PROTO_GetShiftState done [18:11:17]FM_GetShiftState done [18:11:17]opened in 1729643772 [18:11:17]opened+sec_in_day 1729730172 [18:11:17]quantity*price = 40006 [18:11:17]sum+1 = 40007 [18:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 270 23.10.2024 18:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166855 ФПД: 73868961378722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166855&fm=73868961378722&tin=02508201610067®Number=0000000000091764&sum=40000 [18:11:19]StoreToDocumentArchive [18:11:19]shift 537 fd 166855 [18:11:19]save to /storage/0537/doc_00166855 [18:11:19]save last doc name /storage/0537/doc_00166855 to /storage/kkm_last_doc_name [18:11:19]save OK [18:11:19]Clear old archive folders... [18:11:19]OFD Sender: No OFD packet to send [18:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:19]tlvbuf is 01FE7DD0 [18:11:19]SAM_PROTO_ClearQueue [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 09 00 00 [18:11:19]Write to MH i2c: E2 08 00 31 3E 80 09 00 00 00 00 00 00 E1 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_ClearQueue done [18:11:19]KKMCreateOFDPacket [18:11:19]OFDProtocolAddRootSTLVToBuf [18:11:19]FM_MakeSignedData [18:11:19]FM_MakeSignedData [18:11:19]SAM_PROTO_SignData [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 01 02 [18:11:19]Write to MH i2c: E2 08 00 32 3E 80 0D 01 02 00 00 00 00 E9 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]wFMCommunicate request_size=255 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 48 3C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8B 02 00 35 04 06 00 43 [18:11:19]Write to MH i2c: E2 02 01 33 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 48 3C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8B 02 00 35 04 06 00 43 00 00 13 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]wFMCommunicate request_size=10 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 02 02 05 2E F5 33 F1 A2 [18:11:19]Write to MH i2c: E2 0D 00 34 3E 80 0D 02 02 05 00 2E F5 33 F1 A2 00 00 DF [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 03 02 [18:11:19]Write to MH i2c: E2 08 00 35 3E 80 0D 03 02 00 00 00 00 EE [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0B 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0B 00 35 3E 00 FD 20 35 76 DF B3 01 15 90 00 5F [18:11:19]RAPDU: FD 20 35 76 DF B3 01 15 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_SignData done [18:11:19]FM_MakeSignedData done [18:11:19]CreateOFDProtocolMessage [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 11 00 00 [18:11:19]Write to MH i2c: E2 08 00 36 3E 80 11 00 00 00 00 00 00 EE [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 36 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [18:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:19]wFMCommunicate OK [18:11:19]CreateOFDProtocolMessage done [18:11:19]OFDSenderStorePacket 166855 [18:11:19]StoreOFDPacket docnum=166855 [18:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 B5 07 01 8D A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 48 3C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8B 02 00 35 04 06 00 43 2E F5 33 F1 A2 FD 20 35 76 DF B3 01 15 [18:11:19]CheckFolder [18:11:19]dirname=/storage/ofd_packets [18:11:19]CheckFolder done [18:11:19]ProducePacketName [18:11:19]name=ofd_packets/00166855 [18:11:19]NVStorageSaveData ofd_packets/00166855 [18:11:19]File name is /storage/ofd_packets/00166855 [18:11:19]Write 301 bytes [18:11:19]NVStorageSaveData done [18:11:19]OFDSenderStorePacket done [18:11:19]KKMCreateOFDPacket done [18:11:19]NVStorageSaveData kkm_last_timestamp [18:11:19]File name is /storage/kkm_last_timestamp [18:11:19]Write 4 bytes [18:11:19]NVStorageSaveData done [18:11:19]ExternCall_PrintAddStr [18:11:19]wPrintStart [18:11:19]Write to MH i2c: 01 00 00 37 3E 75 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 37 3E 00 00 00 00 00 FF 0F 8A [18:11:19]RasterBufferAndPrint [18:11:19]line Счет N : (1)221440 [18:11:19]line ИНН: 02508201610067 [18:11:19]line Контрольно-Кассовый Чек [18:11:19]line ПРОДАЖА [18:11:19]line ТРК (МРК, ГНК) : 23 [18:11:19]line Товар: 2710124130 [18:11:19]line Аи-92-К-5 [18:11:19]line 5.980 * 66.90 [18:11:19]line = 400.06 [18:11:19]line НДС 12% НСП 1% [18:11:19]line > о реализуемом товаре [18:11:19]line ОКРУГЛЕНИЕ: -0.06 [18:11:19]line ИТОГО: 400.00 [18:11:19]line Внесено: 400.00 [18:11:19]line СДАЧА: 0.00 [18:11:19]line НСП 1% : 3.54 [18:11:19]line НДС 12% : 42.48 [18:11:19]line Наличными: 400.00 [18:11:19]line Безнал.: 0.00 [18:11:19]line Место: АЗС № 161 "Партнер Нефть" [18:11:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:11:19]line СНО: Общий режим [18:11:19]line Чек 270 23.10.2024 18:11 [18:11:19]line Смена: 537 ФФД: 1.0 [18:11:19]line ЗНМ: 0300000104 [18:11:19]line РНМ: 0000000000091764 [18:11:19]line Версия ККМ: 001 [18:11:19]line ФМ: 0000000000871759 [18:11:19]line ФД: 166855 [18:11:19]line ФПД: 73868961378722 [18:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166855&fm=73868961378722&tin=02508201610067®Number=0000000000091764&sum=40000 [18:11:19]OFD Sender: Processing packet 166855 [packets to send 48, broken 47] [18:11:19]ProducePacketName [18:11:19]name=ofd_packets/00166855 [18:11:19]OFD Sender: To server: pG, [18:11:19]CommunicateWithHost lk.salyk.kg:30040 [18:11:19]ConnectInit lk.salyk.kg [18:11:19]written 0, free lines is 4095 [18:11:20]Connected sock=9 [18:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 B5 07 01 8D A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 48 3C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8B 02 00 35 04 06 00 43 2E F5 33 F1 A2 FD 20 35 76 DF B3 01 15 [18:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 8D 47 00 0D B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8B 02 00 F4 03 04 00 AF E2 18 67 B6 04 01 00 00 0A 81 13 E7 59 15 8D 48 [18:11:20]CommunicateWithHost err = 0 [18:11:20]CheckOFDResponse [18:11:20]1017 (14) - 77093643461234 [18:11:20]1041 (16) - 0000000000871759 [18:11:20]1040 (4) - 166855 [18:11:20]1012 (4) - 23.10.2024 11:49 [18:11:20]1206 (1) - 0 [18:11:20]OFD Sender: Remove packet 166855 [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00166855 [18:11:20]NVStorageDeleteData [18:11:20]Write to MH i2c: 01 00 00 62 3E A0 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 62 3E 00 00 00 00 00 AA 0C 5D [18:11:20]RasterBufferAndPrint [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]written 0, free lines is 3248 [18:11:20]MH_Cut [18:11:20]Write to MH i2c: D1 01 00 69 3E 01 79 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 01 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 01 00 69 3E 00 78 [18:11:20]Write to MH i2c: 01 00 00 6A 3E A8 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]OFD Sender: No OFD packet to send [18:11:21]*** Cut start [18:11:21]*** Partial cut [18:11:21]*** CUTSNS_PIN = 1 [18:11:21]*** CUTSNS_PIN = 0 [18:11:21]*** Brake cut motor [18:11:21]Read from MH i2c: 01 [18:11:21]MH_I2C_Read... [18:11:21]*** Stop cut motor [18:11:21]*** Cut end [18:11:21]Read from MH i2c: 01 07 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 FF 0F BD [18:11:21]process_action close_receipt done [18:11:21]requested_data is exist [18:11:21]produce_requested_data [18:11:21]requested_item fm.sn is exist - process it [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 11 00 00 [18:11:21]Write to MH i2c: E2 08 00 6B 3E 80 11 00 00 00 00 00 00 23 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:21]Read from MH i2c: E2 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 17 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 17 00 6B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [18:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:21]wFMCommunicate OK [18:11:21]requested_item fd.num is exist - process it [18:11:21]SAM_PROTO_GetFieldsCounters [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 13 00 00 [18:11:21]Write to MH i2c: E2 08 00 6C 3E 80 13 00 00 00 00 00 00 26 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 6C 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetFieldsCounters done [18:11:22]requested_item shift.num is exist - process it [18:11:22]requested_item shift.opened is exist - process it [18:11:22]req_shift_opened [18:11:22]FM_GetShiftState [18:11:22]SAM_PROTO_GetShiftState [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 01 00 [18:11:22]Write to MH i2c: E2 08 00 6D 3E 80 13 01 00 00 00 00 00 28 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 6D 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F3 [18:11:22]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetShiftState done [18:11:22]FM_GetShiftState done [18:11:22]req_shift_opened done [18:11:22]requested_item shift.open_date is exist - process it [18:11:22]req_shift_open_date [18:11:22]req_shift_open_date done [18:11:22]produce_requested_data done [18:11:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166855,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:11:22]process_action_free close_receipt [18:11:22]json_value_free [18:11:22]json_value_free done [18:11:22]process_json_proto returns [18:11:22]Send response to host [18:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166855,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:11:22]free response buf [18:11:22]execute_script done [18:11:22]execute_script returns [18:11:22]free content buf [18:11:22]Sock 10.Close socket [18:11:22]Sock 10.Thread stoped [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16: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]accept exits with 8 [18:21:01]New connection [18:21:01]New thread 3067178340 created [18:21:01]Thread 3067034980 joined [18:21:01]Waiting for new connection... [18:21:01] Sock 8.Parse request [18:21:01]Sock 8.Check first char [18:21:01]Sock 8.First char is OK [18:21:01]request: POST /json_proto HTTP/1.0 [18:21:01]Method: POST [18:21:01]URL: /json_proto [18:21:01]Method is POST - this is cgi request [18:21:01]url: /json_proto [18:21:01]query_string will be loaded in cgi processing [18:21:01]execute_cgi json_proto POST (null) [18:21:01]execute_cgi path=json_proto method=POST [18:21:01]POST find Content-Length [18:21:01]Host: 172.17.53.195:8080 [18:21:01]Content-Length: 675 [18:21:01]Content-Type: application/json [18:21:01] [18:21:01]POST finish read [18:21:01]Found Content-Length = 675 [18:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:01]execute_script... [18:21: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)221442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:01]POST & json_proto [18:21:01]process_json_proto [18:21:01]json parsed OK: [18:21:01]protocol is kg_v1.0 [18:21:01]action value=close_receipt [18:21:01]process_action close_receipt [18:21:01]cmd_close_receipt [18:21:01]MH_GetDate [18:21:01]Write to MH i2c: F0 00 00 6E 3E 9B [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: F0 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: F0 09 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: F0 09 00 6E 3E 00 8F 3E 19 67 21 48 4A 65 09 [18:21:01]GetLastDocTimeStamp 1729707080 [18:21:01]current date 1729707663 [18:21:01]FM_GetShiftState [18:21:01]SAM_PROTO_GetShiftState [18:21:01]wFMCommunicate request_size=4 [18:21:01]MH_SAM_APDU [18:21:01]CAPDU: 80 13 01 00 [18:21:01]Write to MH i2c: E2 08 00 6F 3E 80 13 01 00 00 00 00 00 2A [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:01]Read from MH i2c: E2 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 0E 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 0E 00 6F 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F5 [18:21:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:21:01]wFMCommunicate OK [18:21:01]SAM_PROTO_GetShiftState done [18:21:01]FM_GetShiftState done [18:21:01]opened in 1729643772 [18:21:01]opened+sec_in_day 1729730172 [18:21:01]quantity*price = 80010 [18:21:01]sum+1 = 80011 [18:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 271 23.10.2024 18:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166856 ФПД: 235689824872405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166856&fm=235689824872405&tin=02508201610067®Number=0000000000091764&sum=80000 [18:21:02]StoreToDocumentArchive [18:21:02]shift 537 fd 166856 [18:21:02]save to /storage/0537/doc_00166856 [18:21:02]save last doc name /storage/0537/doc_00166856 to /storage/kkm_last_doc_name [18:21:02]save OK [18:21:02]Clear old archive folders... [18:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:21:02]tlvbuf is 01FAFF60 [18:21:02]SAM_PROTO_ClearQueue [18:21:02]wFMCommunicate request_size=4 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 09 00 00 [18:21:02]Write to MH i2c: E2 08 00 7C 3E 80 09 00 00 00 00 00 00 2C [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 7C 3E 00 90 00 2E [18:21:02]RAPDU: 90 00 [18:21:02]wFMCommunicate OK [18:21:02]SAM_PROTO_ClearQueue done [18:21:02]KKMCreateOFDPacket [18:21:02]OFDProtocolAddRootSTLVToBuf [18:21:02]FM_MakeSignedData [18:21:02]FM_MakeSignedData [18:21:02]SAM_PROTO_SignData [18:21:02]wFMCommunicate request_size=4 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 0D 01 02 [18:21:02]Write to MH i2c: E2 08 00 7D 3E 80 0D 01 02 00 00 00 00 34 [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 7D 3E 00 90 00 2F [18:21:02]RAPDU: 90 00 [18:21:02]wFMCommunicate OK [18:21:02]wFMCommunicate request_size=255 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8F 3E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8B 02 00 35 04 06 00 D6 5B D0 49 [18:21:02]Write to MH i2c: E2 02 01 7E 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8F 3E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8B 02 00 35 04 06 00 D6 5B D0 49 00 00 0A [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 7E 3E 00 90 00 30 [18:21:02]RAPDU: 90 00 [18:21:02]wFMCommunicate OK [18:21:02]wFMCommunicate request_size=7 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 0D 02 02 02 E7 D5 [18:21:02]Write to MH i2c: E2 0A 00 7F 3E 80 0D 02 02 02 00 E7 D5 00 00 F7 [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 03 00 7F 3E 00 90 00 31 [18:21:02]RAPDU: 90 00 [18:21:02]wFMCommunicate OK [18:21:02]wFMCommunicate request_size=4 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 0D 03 02 [18:21:02]Write to MH i2c: E2 08 00 80 3E 80 0D 03 02 00 00 00 00 39 [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 0B 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 0B 00 80 3E 00 5F C0 6A 8E EC 4F CB 4F 90 00 A6 [18:21:02]RAPDU: 5F C0 6A 8E EC 4F CB 4F 90 00 [18:21:02]wFMCommunicate OK [18:21:02]SAM_PROTO_SignData done [18:21:02]FM_MakeSignedData done [18:21:02]CreateOFDProtocolMessage [18:21:02]wFMCommunicate request_size=4 [18:21:02]MH_SAM_APDU [18:21:02]CAPDU: 80 11 00 00 [18:21:02]Write to MH i2c: E2 08 00 81 3E 80 11 00 00 00 00 00 00 39 [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:02]Read from MH i2c: E2 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 17 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: E2 17 00 81 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [18:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:02]wFMCommunicate OK [18:21:02]CreateOFDProtocolMessage done [18:21:02]OFDSenderStorePacket 166856 [18:21:02]StoreOFDPacket docnum=166856 [18:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 F5 04 01 AB 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8F 3E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8B 02 00 35 04 06 00 D6 5B D0 49 E7 D5 5F C0 6A 8E EC 4F CB 4F [18:21:02]CheckFolder [18:21:02]dirname=/storage/ofd_packets [18:21:02]CheckFolder done [18:21:02]ProducePacketName [18:21:02]name=ofd_packets/00166856 [18:21:02]NVStorageSaveData ofd_packets/00166856 [18:21:02]File name is /storage/ofd_packets/00166856 [18:21:02]Write 298 bytes [18:21:02]NVStorageSaveData done [18:21:02]OFDSenderStorePacket done [18:21:02]KKMCreateOFDPacket done [18:21:02]NVStorageSaveData kkm_last_timestamp [18:21:02]File name is /storage/kkm_last_timestamp [18:21:02]Write 4 bytes [18:21:02]NVStorageSaveData done [18:21:02]ExternCall_PrintAddStr [18:21:02]wPrintStart [18:21:02]Write to MH i2c: 01 00 00 82 3E C0 [18:21:02]Write i2c OK [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: 01 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: 01 07 00 [18:21:02]MH_I2C_Read... [18:21:02]Read from MH i2c: 01 07 00 82 3E 00 00 00 00 00 FF 0F D5 [18:21:02]RasterBufferAndPrint [18:21:02]line Счет N : (1)221442 [18:21:02]line ИНН: 02508201610067 [18:21:02]line Контрольно-Кассовый Чек [18:21:02]line ПРОДАЖА [18:21:02]line ТРК (МРК, ГНК) : 11 [18:21:02]line Товар: 2710194210 [18:21:02]line ДТ-К-5 [18:21:02]line 10.500 * 76.20 [18:21:02]line = 800.10 [18:21:02]line НДС 12% НСП 1% [18:21:02]line > о реализуемом товаре [18:21:02]line ОКРУГЛЕНИЕ: -0.10 [18:21:02]line ИТОГО: 800.00 [18:21:02]line Внесено: 800.00 [18:21:02]line СДАЧА: 0.00 [18:21:02]line НСП 1% : 7.08 [18:21:02]line НДС 12% : 84.97 [18:21:02]line Наличными: 800.00 [18:21:02]line Безнал.: 0.00 [18:21:02]line Место: АЗС № 161 "Партнер Нефть" [18:21:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:21:02]line СНО: Общий режим [18:21:02]line Чек 271 23.10.2024 18:21 [18:21:02]line Смена: 537 ФФД: 1.0 [18:21:02]line ЗНМ: 0300000104 [18:21:02]line РНМ: 0000000000091764 [18:21:02]line Версия ККМ: 001 [18:21:02]line ФМ: 0000000000871759 [18:21:02]line ФД: 166856 [18:21:02]line ФПД: 235689824872405 [18:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182103&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166856&fm=235689824872405&tin=02508201610067®Number=0000000000091764&sum=80000 [18:21:03]OFD Sender: Processing packet 166856 [packets to send 48, broken 47] [18:21:03]ProducePacketName [18:21:03]name=ofd_packets/00166856 [18:21:03]OFD Sender: To server: pG, [18:21:03]CommunicateWithHost lk.salyk.kg:30040 [18:21:03]ConnectInit lk.salyk.kg [18:21:03]written 0, free lines is 4095 [18:21:03]Connected sock=10 [18:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 F5 04 01 AB 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8F 3E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8B 02 00 35 04 06 00 D6 5B D0 49 E7 D5 5F C0 6A 8E EC 4F CB 4F [18:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE B7 47 00 24 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8B 02 00 F4 03 04 00 F6 E4 18 67 B6 04 01 00 00 B3 E6 B9 5D B4 9B 6F 10 [18:21:03]CommunicateWithHost err = 0 [18:21:03]CheckOFDResponse [18:21:03]1017 (14) - 77093643461234 [18:21:03]1041 (16) - 0000000000871759 [18:21:03]1040 (4) - 166856 [18:21:03]1012 (4) - 23.10.2024 11:58 [18:21:03]1206 (1) - 0 [18:21:03]OFD Sender: Remove packet 166856 [18:21:03]ProducePacketName [18:21:03]name=ofd_packets/00166856 [18:21:03]NVStorageDeleteData [18:21:03]Write to MH i2c: 01 00 00 AD 3E EB [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: 01 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: 01 07 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: 01 07 00 AD 3E 00 00 00 00 00 B2 0C B0 [18:21:03]RasterBufferAndPrint [18:21:03]line [18:21:03]line [18:21:03]line [18:21:03]line [18:21:03]line [18:21:03]written 0, free lines is 3256 [18:21:03]MH_Cut [18:21:03]Write to MH i2c: D1 01 00 B4 3E 01 C4 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: D1 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: D1 01 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: D1 01 00 B4 3E 00 C3 [18:21:03]Write to MH i2c: 01 00 00 B5 3E F3 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:04]OFD Sender: No OFD packet to send [18:21:04]*** Cut start [18:21:04]*** Partial cut [18:21:04]*** CUTSNS_PIN = 1 [18:21:04]*** CUTSNS_PIN = 0 [18:21:04]*** Brake cut motor [18:21:05]Read from MH i2c: 01 [18:21:05]MH_I2C_Read... [18:21:05]*** Stop cut motor [18:21:05]*** Cut end [18:21:05]Read from MH i2c: 01 07 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 FF 0F 08 [18:21:05]process_action close_receipt done [18:21:05]requested_data is exist [18:21:05]produce_requested_data [18:21:05]requested_item fm.sn is exist - process it [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 11 00 00 [18:21:05]Write to MH i2c: E2 08 00 B6 3E 80 11 00 00 00 00 00 00 6E [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 B6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [18:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:05]wFMCommunicate OK [18:21:05]requested_item fd.num is exist - process it [18:21:05]SAM_PROTO_GetFieldsCounters [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 13 00 00 [18:21:05]Write to MH i2c: E2 08 00 B7 3E 80 13 00 00 00 00 00 00 71 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 62 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 62 00 B7 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:21:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_GetFieldsCounters done [18:21:05]requested_item shift.num is exist - process it [18:21:05]requested_item shift.opened is exist - process it [18:21:05]req_shift_opened [18:21:05]FM_GetShiftState [18:21:05]SAM_PROTO_GetShiftState [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 13 01 00 [18:21:05]Write to MH i2c: E2 08 00 B8 3E 80 13 01 00 00 00 00 00 73 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0E 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0E 00 B8 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3E [18:21:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_GetShiftState done [18:21:05]FM_GetShiftState done [18:21:05]req_shift_opened done [18:21:05]requested_item shift.open_date is exist - process it [18:21:05]req_shift_open_date [18:21:05]req_shift_open_date done [18:21:05]produce_requested_data done [18:21:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166856,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:21:05]process_action_free close_receipt [18:21:05]json_value_free [18:21:05]json_value_free done [18:21:05]process_json_proto returns [18:21:05]Send response to host [18:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166856,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:21:05]free response buf [18:21:05]execute_script done [18:21:05]execute_script returns [18:21:05]free content buf [18:21:05]Sock 8.Close socket [18:21:05]Sock 8.Thread stoped [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [18:26:07]New connection [18:26:07]New thread 3067034980 created [18:26:07]Thread 3067178340 joined [18:26:07]Waiting for new connection... [18:26:07] Sock 9.Parse request [18:26:07]Sock 9.Check first char [18:26:07]Sock 9.First char is OK [18:26:07]request: POST /json_proto HTTP/1.0 [18:26:07]Method: POST [18:26:07]URL: /json_proto [18:26:07]Method is POST - this is cgi request [18:26:07]url: /json_proto [18:26:07]query_string will be loaded in cgi processing [18:26:07]execute_cgi json_proto POST (null) [18:26:07]execute_cgi path=json_proto method=POST [18:26:07]POST find Content-Length [18:26:07]Host: 172.17.53.195:8080 [18:26:07]Content-Length: 763 [18:26:07]Content-Type: application/json [18:26:07] [18:26:07]POST finish read [18:26:07]Found Content-Length = 763 [18:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:07]execute_script... [18:26: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)221443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:07]POST & json_proto [18:26:07]process_json_proto [18:26:07]json parsed OK: [18:26:07]protocol is kg_v1.0 [18:26:07]action value=close_receipt [18:26:07]process_action close_receipt [18:26:07]cmd_close_receipt [18:26:07]MH_GetDate [18:26:07]Write to MH i2c: F0 00 00 B9 3E E6 [18:26:07]Write i2c OK [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 09 00 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: F0 09 00 B9 3E 00 C1 3F 19 67 21 48 4A 65 87 [18:26:07]GetLastDocTimeStamp 1729707663 [18:26:07]current date 1729707969 [18:26:07]FM_GetShiftState [18:26:07]SAM_PROTO_GetShiftState [18:26:07]wFMCommunicate request_size=4 [18:26:07]MH_SAM_APDU [18:26:07]CAPDU: 80 13 01 00 [18:26:07]Write to MH i2c: E2 08 00 BA 3E 80 13 01 00 00 00 00 00 75 [18:26:07]Write i2c OK [18:26:07]MH_I2C_Read... [18:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:07]Read from MH i2c: E2 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: E2 0E 00 [18:26:07]MH_I2C_Read... [18:26:07]Read from MH i2c: E2 0E 00 BA 3E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 40 [18:26:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:26:07]wFMCommunicate OK [18:26:07]SAM_PROTO_GetShiftState done [18:26:07]FM_GetShiftState done [18:26:07]opened in 1729643772 [18:26:07]opened+sec_in_day 1729730172 [18:26:07]quantity*price = 70027 [18:26:07]sum+1 = 70029 [18:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 272 23.10.2024 18:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166857 ФПД: 80873164030224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182609&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166857&fm=80873164030224&tin=02508201610067®Number=0000000000091764&sum=70028 [18:26:08]StoreToDocumentArchive [18:26:08]shift 537 fd 166857 [18:26:08]save to /storage/0537/doc_00166857 [18:26:08]save last doc name /storage/0537/doc_00166857 to /storage/kkm_last_doc_name [18:26:08]save OK [18:26:08]Clear old archive folders... [18:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:26:08]tlvbuf is B6F8C010 [18:26:08]SAM_PROTO_ClearQueue [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 09 00 00 [18:26:08]Write to MH i2c: E2 08 00 C7 3E 80 09 00 00 00 00 00 00 77 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]SAM_PROTO_ClearQueue done [18:26:08]KKMCreateOFDPacket [18:26:08]OFDProtocolAddRootSTLVToBuf [18:26:08]FM_MakeSignedData [18:26:08]FM_MakeSignedData [18:26:08]SAM_PROTO_SignData [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 01 02 [18:26:08]Write to MH i2c: E2 08 00 C8 3E 80 0D 01 02 00 00 00 00 7F [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 C8 3E 00 90 00 7A [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=255 [18:26:08]MH_SAM_APDU [18:26: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C1 3F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8B 02 00 35 04 06 00 49 8D C0 36 [18:26:08]Write to MH i2c: E2 02 01 C9 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C1 3F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8B 02 00 35 04 06 00 49 8D C0 36 00 00 0D [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 C9 3E 00 90 00 7B [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=7 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 02 02 02 C1 10 [18:26:08]Write to MH i2c: E2 0A 00 CA 3E 80 0D 02 02 02 00 C1 10 00 00 57 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:08]Read from MH i2c: E2 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 [18:26:08]MH_I2C_Read... [18:26:08]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [18:26:08]RAPDU: 90 00 [18:26:08]wFMCommunicate OK [18:26:08]wFMCommunicate request_size=4 [18:26:08]MH_SAM_APDU [18:26:08]CAPDU: 80 0D 03 02 [18:26:08]Write to MH i2c: E2 08 00 CB 3E 80 0D 03 02 00 00 00 00 84 [18:26:08]Write i2c OK [18:26:08]MH_I2C_Read... [18:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:09]Read from MH i2c: E2 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: E2 0B 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: E2 0B 00 CB 3E 00 6D 29 B4 1A 53 34 89 AD 90 00 A6 [18:26:09]RAPDU: 6D 29 B4 1A 53 34 89 AD 90 00 [18:26:09]wFMCommunicate OK [18:26:09]SAM_PROTO_SignData done [18:26:09]FM_MakeSignedData done [18:26:09]CreateOFDProtocolMessage [18:26:09]wFMCommunicate request_size=4 [18:26:09]MH_SAM_APDU [18:26:09]CAPDU: 80 11 00 00 [18:26:09]Write to MH i2c: E2 08 00 CC 3E 80 11 00 00 00 00 00 00 84 [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:09]Read from MH i2c: E2 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: E2 17 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: E2 17 00 CC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [18:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:26:09]wFMCommunicate OK [18:26:09]CreateOFDProtocolMessage done [18:26:09]OFDSenderStorePacket 166857 [18:26:09]StoreOFDPacket docnum=166857 [18:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F8 49 04 01 8C 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C1 3F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8B 02 00 35 04 06 00 49 8D C0 36 C1 10 6D 29 B4 1A 53 34 89 AD [18:26:09]CheckFolder [18:26:09]dirname=/storage/ofd_packets [18:26:09]CheckFolder done [18:26:09]ProducePacketName [18:26:09]name=ofd_packets/00166857 [18:26:09]NVStorageSaveData ofd_packets/00166857 [18:26:09]File name is /storage/ofd_packets/00166857 [18:26:09]Write 298 bytes [18:26:09]NVStorageSaveData done [18:26:09]OFDSenderStorePacket done [18:26:09]KKMCreateOFDPacket done [18:26:09]NVStorageSaveData kkm_last_timestamp [18:26:09]File name is /storage/kkm_last_timestamp [18:26:09]Write 4 bytes [18:26:09]NVStorageSaveData done [18:26:09]ExternCall_PrintAddStr [18:26:09]wPrintStart [18:26:09]Write to MH i2c: 01 00 00 CD 3E 0B [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 CD 3E 00 00 00 00 00 FF 0F 20 [18:26:09]RasterBufferAndPrint [18:26:09]line Счет N : (1)221443 [18:26:09]line ИНН: 02508201610067 [18:26:09]line Контрольно-Кассовый Чек [18:26:09]line ПРОДАЖА [18:26:09]line ТРК (МРК, ГНК) : 21 [18:26:09]line Товар: 2710194210 [18:26:09]line ДТ-К-5 [18:26:09]line 9.190 * 76.20 [18:26:09]line = 700.28 [18:26:09]line НДС 12% НСП 1% [18:26:09]line > о реализуемом товаре [18:26:09]line ИТОГО: 700.28 [18:26:09]line НСП 1% : 6.20 [18:26:09]line НДС 12% : 74.37 [18:26:09]line Наличными: 0.00 [18:26:09]line Безнал.: 700.28 [18:26:09]line Место: АЗС № 161 "Партнер Нефть" [18:26:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:26:09]line СНО: Общий режим [18:26:09]line Чек 272 23.10.2024 18:26 [18:26:09]line Смена: 537 ФФД: 1.0 [18:26:09]line ЗНМ: 0300000104 [18:26:09]line РНМ: 0000000000091764 [18:26:09]line Версия ККМ: 001 [18:26:09]line Платежная система: Mbank [18:26:09]line ФМ: 0000000000871759 [18:26:09]line ФД: 166857 [18:26:09]line ФПД: 80873164030224 [18:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182609&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166857&fm=80873164030224&tin=02508201610067®Number=0000000000091764&sum=70028 [18:26:09]OFD Sender: Processing packet 166857 [packets to send 48, broken 47] [18:26:09]ProducePacketName [18:26:09]name=ofd_packets/00166857 [18:26:09]OFD Sender: To server: pG, [18:26:09]CommunicateWithHost lk.salyk.kg:30040 [18:26:09]ConnectInit lk.salyk.kg [18:26:09]written 0, free lines is 4095 [18:26:09]Connected sock=10 [18:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F8 49 04 01 8C 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C1 3F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8B 02 00 35 04 06 00 49 8D C0 36 C1 10 6D 29 B4 1A 53 34 89 AD [18:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C 53 47 00 86 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8B 02 00 F4 03 04 00 28 E6 18 67 B6 04 01 00 00 0B 85 43 CF B2 24 29 C6 [18:26:09]CommunicateWithHost err = 0 [18:26:09]CheckOFDResponse [18:26:09]1017 (14) - 77093643461234 [18:26:09]1041 (16) - 0000000000871759 [18:26:09]1040 (4) - 166857 [18:26:09]1012 (4) - 23.10.2024 12:03 [18:26:09]1206 (1) - 0 [18:26:09]OFD Sender: Remove packet 166857 [18:26:09]ProducePacketName [18:26:09]name=ofd_packets/00166857 [18:26:09]NVStorageDeleteData [18:26:09]Write to MH i2c: 01 00 00 F6 3E 34 [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: 01 07 00 F6 3E 00 00 00 00 00 DE 0C 25 [18:26:09]RasterBufferAndPrint [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]line [18:26:09]written 0, free lines is 3303 [18:26:09]MH_Cut [18:26:09]Write to MH i2c: D1 01 00 FD 3E 01 0D [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 01 00 [18:26:09]MH_I2C_Read... [18:26:09]Read from MH i2c: D1 01 00 FD 3E 00 0C [18:26:09]Write to MH i2c: 01 00 00 FE 3E 3C [18:26:09]Write i2c OK [18:26:09]MH_I2C_Read... [18:26:10]OFD Sender: No OFD packet to send [18:26:10]*** Cut start [18:26:10]*** Partial cut [18:26:10]*** CUTSNS_PIN = 1 [18:26:10]*** CUTSNS_PIN = 0 [18:26:10]*** Brake cut motor [18:26:11]Read from MH i2c: 01 [18:26:11]MH_I2C_Read... [18:26:11]*** Stop cut motor [18:26:11]*** Cut end [18:26:11]Read from MH i2c: 01 07 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: 01 07 00 FE 3E 00 00 00 00 00 FF 0F 51 [18:26:11]process_action close_receipt done [18:26:11]requested_data is exist [18:26:11]produce_requested_data [18:26:11]requested_item fm.sn is exist - process it [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 11 00 00 [18:26:11]Write to MH i2c: E2 08 00 FF 3E 80 11 00 00 00 00 00 00 B7 [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 17 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 17 00 FF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [18:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:26:11]wFMCommunicate OK [18:26:11]requested_item fd.num is exist - process it [18:26:11]SAM_PROTO_GetFieldsCounters [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 13 00 00 [18:26:11]Write to MH i2c: E2 08 00 00 3F 80 13 00 00 00 00 00 00 BB [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 62 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 62 00 00 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:11]wFMCommunicate OK [18:26:11]SAM_PROTO_GetFieldsCounters done [18:26:11]requested_item shift.num is exist - process it [18:26:11]requested_item shift.opened is exist - process it [18:26:11]req_shift_opened [18:26:11]FM_GetShiftState [18:26:11]SAM_PROTO_GetShiftState [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 13 01 00 [18:26:11]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 0E 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 88 [18:26:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:26:11]wFMCommunicate OK [18:26:11]SAM_PROTO_GetShiftState done [18:26:11]FM_GetShiftState done [18:26:11]req_shift_opened done [18:26:11]requested_item shift.open_date is exist - process it [18:26:11]req_shift_open_date [18:26:11]req_shift_open_date done [18:26:11]produce_requested_data done [18:26:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166857,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:26:11]process_action_free close_receipt [18:26:11]json_value_free [18:26:11]json_value_free done [18:26:11]process_json_proto returns [18:26:11]Send response to host [18:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166857,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:26:11]free response buf [18:26:11]execute_script done [18:26:11]execute_script returns [18:26:11]free content buf [18:26:11]Sock 9.Close socket [18:26:11]Sock 9.Thread stoped [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:14]accept exits with 8 [18:28:14]New connection [18:28:14]New thread 3067178340 created [18:28:14]Thread 3067034980 joined [18:28:14]Waiting for new connection... [18:28:14] Sock 8.Parse request [18:28:14]Sock 8.Check first char [18:28:14]Sock 8.First char is OK [18:28:14]request: POST /json_proto HTTP/1.0 [18:28:14]Method: POST [18:28:14]URL: /json_proto [18:28:14]Method is POST - this is cgi request [18:28:14]url: /json_proto [18:28:14]query_string will be loaded in cgi processing [18:28:14]execute_cgi json_proto POST (null) [18:28:14]execute_cgi path=json_proto method=POST [18:28:14]POST find Content-Length [18:28:14]Host: 172.17.53.195:8080 [18:28:14]Content-Length: 677 [18:28:14]Content-Type: application/json [18:28:14] [18:28:14]POST finish read [18:28:14]Found Content-Length = 677 [18:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:14]execute_script... [18:28: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)221444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:14]POST & json_proto [18:28:14]process_json_proto [18:28:14]json parsed OK: [18:28:14]protocol is kg_v1.0 [18:28:14]action value=close_receipt [18:28:14]process_action close_receipt [18:28:14]cmd_close_receipt [18:28:14]MH_GetDate [18:28:14]Write to MH i2c: F0 00 00 02 3F 30 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: F0 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: F0 09 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: F0 09 00 02 3F 00 40 40 19 67 21 48 4A 65 51 [18:28:14]GetLastDocTimeStamp 1729707969 [18:28:14]current date 1729708096 [18:28:14]FM_GetShiftState [18:28:14]SAM_PROTO_GetShiftState [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 13 01 00 [18:28:14]Write to MH i2c: E2 08 00 03 3F 80 13 01 00 00 00 00 00 BF [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0E 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0E 00 03 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 8A [18:28:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:28:14]wFMCommunicate OK [18:28:14]SAM_PROTO_GetShiftState done [18:28:14]FM_GetShiftState done [18:28:14]opened in 1729643772 [18:28:14]opened+sec_in_day 1729730172 [18:28:14]quantity*price = 20003 [18:28:14]sum+1 = 20004 [18:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 273 23.10.2024 18:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166858 ФПД: 158751643081852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166858&fm=158751643081852&tin=02508201610067®Number=0000000000091764&sum=20000 [18:28:15]StoreToDocumentArchive [18:28:15]shift 537 fd 166858 [18:28:15]save to /storage/0537/doc_00166858 [18:28:15]save last doc name /storage/0537/doc_00166858 to /storage/kkm_last_doc_name [18:28:15]save OK [18:28:15]Clear old archive folders... [18:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:15]tlvbuf is 01FE1540 [18:28:15]SAM_PROTO_ClearQueue [18:28:15]wFMCommunicate request_size=4 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 09 00 00 [18:28:15]Write to MH i2c: E2 08 00 10 3F 80 09 00 00 00 00 00 00 C1 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [18:28:15]RAPDU: 90 00 [18:28:15]wFMCommunicate OK [18:28:15]SAM_PROTO_ClearQueue done [18:28:15]KKMCreateOFDPacket [18:28:15]OFDProtocolAddRootSTLVToBuf [18:28:15]FM_MakeSignedData [18:28:15]FM_MakeSignedData [18:28:15]SAM_PROTO_SignData [18:28:15]wFMCommunicate request_size=4 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 0D 01 02 [18:28:15]Write to MH i2c: E2 08 00 11 3F 80 0D 01 02 00 00 00 00 C9 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [18:28:15]RAPDU: 90 00 [18:28:15]wFMCommunicate OK [18:28:15]wFMCommunicate request_size=255 [18:28:15]MH_SAM_APDU [18:28: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 40 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8B 02 00 35 04 06 00 90 [18:28:15]Write to MH i2c: E2 02 01 12 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 40 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8B 02 00 35 04 06 00 90 00 00 35 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 03 00 12 3F 00 90 00 C5 [18:28:15]RAPDU: 90 00 [18:28:15]wFMCommunicate OK [18:28:15]wFMCommunicate request_size=10 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 0D 02 02 05 62 3F 4B 1C 7C [18:28:15]Write to MH i2c: E2 0D 00 13 3F 80 0D 02 02 05 00 62 3F 4B 1C 7C 00 00 5A [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 03 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [18:28:16]RAPDU: 90 00 [18:28:16]wFMCommunicate OK [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 0D 03 02 [18:28:16]Write to MH i2c: E2 08 00 14 3F 80 0D 03 02 00 00 00 00 CE [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0B 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0B 00 14 3F 00 5D B5 4B 58 0F 50 E7 45 90 00 0F [18:28:16]RAPDU: 5D B5 4B 58 0F 50 E7 45 90 00 [18:28:16]wFMCommunicate OK [18:28:16]SAM_PROTO_SignData done [18:28:16]FM_MakeSignedData done [18:28:16]CreateOFDProtocolMessage [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 11 00 00 [18:28:16]Write to MH i2c: E2 08 00 15 3F 80 11 00 00 00 00 00 00 CE [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 17 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 17 00 15 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [18:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:28:16]wFMCommunicate OK [18:28:16]CreateOFDProtocolMessage done [18:28:16]OFDSenderStorePacket 166858 [18:28:16]StoreOFDPacket docnum=166858 [18:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 F1 07 01 71 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 40 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8B 02 00 35 04 06 00 90 62 3F 4B 1C 7C 5D B5 4B 58 0F 50 E7 45 [18:28:16]CheckFolder [18:28:16]dirname=/storage/ofd_packets [18:28:16]CheckFolder done [18:28:16]ProducePacketName [18:28:16]name=ofd_packets/00166858 [18:28:16]NVStorageSaveData ofd_packets/00166858 [18:28:16]File name is /storage/ofd_packets/00166858 [18:28:16]Write 301 bytes [18:28:16]NVStorageSaveData done [18:28:16]OFDSenderStorePacket done [18:28:16]KKMCreateOFDPacket done [18:28:16]NVStorageSaveData kkm_last_timestamp [18:28:16]File name is /storage/kkm_last_timestamp [18:28:16]Write 4 bytes [18:28:16]NVStorageSaveData done [18:28:16]ExternCall_PrintAddStr [18:28:16]wPrintStart [18:28:16]Write to MH i2c: 01 00 00 16 3F 55 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 07 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 07 00 16 3F 00 00 00 00 00 FF 0F 6A [18:28:16]RasterBufferAndPrint [18:28:16]line Счет N : (1)221444 [18:28:16]line ИНН: 02508201610067 [18:28:16]line Контрольно-Кассовый Чек [18:28:16]line ПРОДАЖА [18:28:16]line ТРК (МРК, ГНК) : 13 [18:28:16]line Товар: 2710124130 [18:28:16]line Аи-92-К-5 [18:28:16]line 2.990 * 66.90 [18:28:16]line = 200.03 [18:28:16]line НДС 12% НСП 1% [18:28:16]line > о реализуемом товаре [18:28:16]line ОКРУГЛЕНИЕ: -0.03 [18:28:16]line ИТОГО: 200.00 [18:28:16]line Внесено: 200.00 [18:28:16]line СДАЧА: 0.00 [18:28:16]line НСП 1% : 1.77 [18:28:16]line НДС 12% : 21.24 [18:28:16]line Наличными: 200.00 [18:28:16]line Безнал.: 0.00 [18:28:16]line Место: АЗС № 161 "Партнер Нефть" [18:28:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:28:16]line СНО: Общий режим [18:28:16]line Чек 273 23.10.2024 18:28 [18:28:16]line Смена: 537 ФФД: 1.0 [18:28:16]line ЗНМ: 0300000104 [18:28:16]line РНМ: 0000000000091764 [18:28:16]line Версия ККМ: 001 [18:28:16]line ФМ: 0000000000871759 [18:28:16]line ФД: 166858 [18:28:16]line ФПД: 158751643081852 [18:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166858&fm=158751643081852&tin=02508201610067®Number=0000000000091764&sum=20000 [18:28:16]OFD Sender: Processing packet 166858 [packets to send 48, broken 47] [18:28:16]ProducePacketName [18:28:16]name=ofd_packets/00166858 [18:28:16]OFD Sender: To server: pG, [18:28:16]CommunicateWithHost lk.salyk.kg:30040 [18:28:16]ConnectInit lk.salyk.kg [18:28:16]written 0, free lines is 4095 [18:28:16]Connected sock=10 [18:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 F1 07 01 71 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 40 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8B 02 00 35 04 06 00 90 62 3F 4B 1C 7C 5D B5 4B 58 0F 50 E7 45 [18:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 C0 47 00 6C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8B 02 00 F4 03 04 00 A7 E6 18 67 B6 04 01 00 00 40 85 EE 38 B0 CE 21 0D [18:28:16]CommunicateWithHost err = 0 [18:28:16]CheckOFDResponse [18:28:16]1017 (14) - 77093643461234 [18:28:16]1041 (16) - 0000000000871759 [18:28:16]1040 (4) - 166858 [18:28:16]1012 (4) - 23.10.2024 12:05 [18:28:16]1206 (1) - 0 [18:28:16]OFD Sender: Remove packet 166858 [18:28:16]ProducePacketName [18:28:16]name=ofd_packets/00166858 [18:28:16]NVStorageDeleteData [18:28:16]Write to MH i2c: 01 00 00 41 3F 80 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 07 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 07 00 41 3F 00 00 00 00 00 AA 0C 3D [18:28:16]RasterBufferAndPrint [18:28:16]line [18:28:16]line [18:28:16]line [18:28:16]line [18:28:16]line [18:28:16]written 0, free lines is 3248 [18:28:16]MH_Cut [18:28:16]Write to MH i2c: D1 01 00 48 3F 01 59 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: D1 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: D1 01 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: D1 01 00 48 3F 00 58 [18:28:16]Write to MH i2c: 01 00 00 49 3F 88 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:17]OFD Sender: No OFD packet to send [18:28:17]*** Cut start [18:28:17]*** Partial cut [18:28:17]*** CUTSNS_PIN = 1 [18:28:17]*** CUTSNS_PIN = 0 [18:28:18]*** Brake cut motor [18:28:18]Read from MH i2c: 01 [18:28:18]MH_I2C_Read... [18:28:18]*** Stop cut motor [18:28:18]*** Cut end [18:28:18]Read from MH i2c: 01 07 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: 01 07 00 49 3F 00 00 00 00 00 FF 0F 9D [18:28:18]process_action close_receipt done [18:28:18]requested_data is exist [18:28:18]produce_requested_data [18:28:18]requested_item fm.sn is exist - process it [18:28:18]wFMCommunicate request_size=4 [18:28:18]MH_SAM_APDU [18:28:18]CAPDU: 80 11 00 00 [18:28:18]Write to MH i2c: E2 08 00 4A 3F 80 11 00 00 00 00 00 00 03 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:18]Read from MH i2c: E2 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 17 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 17 00 4A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [18:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:28:18]wFMCommunicate OK [18:28:18]requested_item fd.num is exist - process it [18:28:18]SAM_PROTO_GetFieldsCounters [18:28:18]wFMCommunicate request_size=4 [18:28:18]MH_SAM_APDU [18:28:18]CAPDU: 80 13 00 00 [18:28:18]Write to MH i2c: E2 08 00 4B 3F 80 13 00 00 00 00 00 00 06 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:18]Read from MH i2c: E2 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 62 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 62 00 4B 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:18]wFMCommunicate OK [18:28:18]SAM_PROTO_GetFieldsCounters done [18:28:18]requested_item shift.num is exist - process it [18:28:18]requested_item shift.opened is exist - process it [18:28:18]req_shift_opened [18:28:18]FM_GetShiftState [18:28:18]SAM_PROTO_GetShiftState [18:28:18]wFMCommunicate request_size=4 [18:28:18]MH_SAM_APDU [18:28:18]CAPDU: 80 13 01 00 [18:28:18]Write to MH i2c: E2 08 00 4C 3F 80 13 01 00 00 00 00 00 08 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 [18:28:18]MH_I2C_Read... [18:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:18]Read from MH i2c: E2 0E 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 0E 00 4C 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D3 [18:28:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:28:18]wFMCommunicate OK [18:28:18]SAM_PROTO_GetShiftState done [18:28:18]FM_GetShiftState done [18:28:18]req_shift_opened done [18:28:18]requested_item shift.open_date is exist - process it [18:28:18]req_shift_open_date [18:28:18]req_shift_open_date done [18:28:18]produce_requested_data done [18:28:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166858,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:28:18]process_action_free close_receipt [18:28:18]json_value_free [18:28:18]json_value_free done [18:28:18]process_json_proto returns [18:28:18]Send response to host [18:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166858,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:28:18]free response buf [18:28:18]execute_script done [18:28:18]execute_script returns [18:28:18]free content buf [18:28:18]Sock 8.Close socket [18:28:18]Sock 8.Thread stoped [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:33]accept exits with 9 [18:30:33]New connection [18:30:33]New thread 3067034980 created [18:30:33]Thread 3067178340 joined [18:30:33]Waiting for new connection... [18:30:33] Sock 9.Parse request [18:30:33]Sock 9.Check first char [18:30:33]Sock 9.First char is OK [18:30:33]request: POST /json_proto HTTP/1.0 [18:30:33]Method: POST [18:30:33]URL: /json_proto [18:30:33]Method is POST - this is cgi request [18:30:33]url: /json_proto [18:30:33]query_string will be loaded in cgi processing [18:30:33]execute_cgi json_proto POST (null) [18:30:33]execute_cgi path=json_proto method=POST [18:30:33]POST find Content-Length [18:30:33]Host: 172.17.53.195:8080 [18:30:33]Content-Length: 677 [18:30:33]Content-Type: application/json [18:30:33] [18:30:33]POST finish read [18:30:33]Found Content-Length = 677 [18:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:33]execute_script... [18:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:33]POST & json_proto [18:30:33]process_json_proto [18:30:33]json parsed OK: [18:30:33]protocol is kg_v1.0 [18:30:33]action value=close_receipt [18:30:33]process_action close_receipt [18:30:33]cmd_close_receipt [18:30:33]MH_GetDate [18:30:33]Write to MH i2c: F0 00 00 4D 3F 7B [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: F0 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: F0 09 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: F0 09 00 4D 3F 00 CC 40 19 67 21 48 4A 65 28 [18:30:33]GetLastDocTimeStamp 1729708096 [18:30:33]current date 1729708236 [18:30:33]FM_GetShiftState [18:30:33]SAM_PROTO_GetShiftState [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 13 01 00 [18:30:33]Write to MH i2c: E2 08 00 4E 3F 80 13 01 00 00 00 00 00 0A [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0E 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0E 00 4E 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D5 [18:30:33]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:30:33]wFMCommunicate OK [18:30:33]SAM_PROTO_GetShiftState done [18:30:33]FM_GetShiftState done [18:30:33]opened in 1729643772 [18:30:33]opened+sec_in_day 1729730172 [18:30:33]quantity*price = 25020 [18:30:33]sum+1 = 25022 [18:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 274 23.10.2024 18:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166859 ФПД: 173329435295142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183036&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166859&fm=173329435295142&tin=02508201610067®Number=0000000000091764&sum=25000 [18:30:34]StoreToDocumentArchive [18:30:34]shift 537 fd 166859 [18:30:34]save to /storage/0537/doc_00166859 [18:30:34]save last doc name /storage/0537/doc_00166859 to /storage/kkm_last_doc_name [18:30:34]save OK [18:30:34]Clear old archive folders... [18:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:34]tlvbuf is 01F7F7B0 [18:30:34]SAM_PROTO_ClearQueue [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 09 00 00 [18:30:34]Write to MH i2c: E2 08 00 5B 3F 80 09 00 00 00 00 00 00 0C [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_ClearQueue done [18:30:34]KKMCreateOFDPacket [18:30:34]OFDProtocolAddRootSTLVToBuf [18:30:34]FM_MakeSignedData [18:30:34]FM_MakeSignedData [18:30:34]SAM_PROTO_SignData [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 0D 01 02 [18:30:34]Write to MH i2c: E2 08 00 5C 3F 80 0D 01 02 00 00 00 00 14 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]wFMCommunicate request_size=255 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CC 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8B 02 00 35 04 06 00 9D [18:30:34]Write to MH i2c: E2 02 01 5D 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CC 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8B 02 00 35 04 06 00 9D 00 00 32 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 03 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 03 00 5D 3F 00 90 00 10 [18:30:35]RAPDU: 90 00 [18:30:35]wFMCommunicate OK [18:30:35]wFMCommunicate request_size=10 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 0D 02 02 05 A4 67 6B 7D A6 [18:30:35]Write to MH i2c: E2 0D 00 5E 3F 80 0D 02 02 05 00 A4 67 6B 7D A6 00 00 BA [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 03 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 03 00 5E 3F 00 90 00 11 [18:30:35]RAPDU: 90 00 [18:30:35]wFMCommunicate OK [18:30:35]wFMCommunicate request_size=4 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 0D 03 02 [18:30:35]Write to MH i2c: E2 08 00 5F 3F 80 0D 03 02 00 00 00 00 19 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 0B 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 0B 00 5F 3F 00 61 CC 31 9F B1 CF F3 12 90 00 9C [18:30:35]RAPDU: 61 CC 31 9F B1 CF F3 12 90 00 [18:30:35]wFMCommunicate OK [18:30:35]SAM_PROTO_SignData done [18:30:35]FM_MakeSignedData done [18:30:35]CreateOFDProtocolMessage [18:30:35]wFMCommunicate request_size=4 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 11 00 00 [18:30:35]Write to MH i2c: E2 08 00 60 3F 80 11 00 00 00 00 00 00 19 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 17 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 17 00 60 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [18:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:30:35]wFMCommunicate OK [18:30:35]CreateOFDProtocolMessage done [18:30:35]OFDSenderStorePacket 166859 [18:30:35]StoreOFDPacket docnum=166859 [18:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 69 95 07 01 E1 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CC 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8B 02 00 35 04 06 00 9D A4 67 6B 7D A6 61 CC 31 9F B1 CF F3 12 [18:30:35]CheckFolder [18:30:35]dirname=/storage/ofd_packets [18:30:35]CheckFolder done [18:30:35]ProducePacketName [18:30:35]name=ofd_packets/00166859 [18:30:35]NVStorageSaveData ofd_packets/00166859 [18:30:35]File name is /storage/ofd_packets/00166859 [18:30:35]Write 301 bytes [18:30:35]NVStorageSaveData done [18:30:35]OFDSenderStorePacket done [18:30:35]KKMCreateOFDPacket done [18:30:35]NVStorageSaveData kkm_last_timestamp [18:30:35]File name is /storage/kkm_last_timestamp [18:30:35]Write 4 bytes [18:30:35]NVStorageSaveData done [18:30:35]ExternCall_PrintAddStr [18:30:35]wPrintStart [18:30:35]Write to MH i2c: 01 00 00 61 3F A0 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 07 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 07 00 61 3F 00 00 00 00 00 FF 0F B5 [18:30:35]RasterBufferAndPrint [18:30:35]line Счет N : (1)221445 [18:30:35]line ИНН: 02508201610067 [18:30:35]line Контрольно-Кассовый Чек [18:30:35]line ПРОДАЖА [18:30:35]line ТРК (МРК, ГНК) : 13 [18:30:35]line Товар: 2710124130 [18:30:35]line Аи-92-К-5 [18:30:35]line 3.740 * 66.90 [18:30:35]line = 250.21 [18:30:35]line НДС 12% НСП 1% [18:30:35]line > о реализуемом товаре [18:30:35]line ОКРУГЛЕНИЕ: -0.21 [18:30:35]line ИТОГО: 250.00 [18:30:35]line Внесено: 250.00 [18:30:35]line СДАЧА: 0.00 [18:30:35]line НСП 1% : 2.21 [18:30:35]line НДС 12% : 26.57 [18:30:35]line Наличными: 250.00 [18:30:35]line Безнал.: 0.00 [18:30:35]line Место: АЗС № 161 "Партнер Нефть" [18:30:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:30:35]line СНО: Общий режим [18:30:35]line Чек 274 23.10.2024 18:30 [18:30:35]line Смена: 537 ФФД: 1.0 [18:30:35]line ЗНМ: 0300000104 [18:30:35]line РНМ: 0000000000091764 [18:30:35]line Версия ККМ: 001 [18:30:35]line ФМ: 0000000000871759 [18:30:35]line ФД: 166859 [18:30:35]line ФПД: 173329435295142 [18:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183036&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166859&fm=173329435295142&tin=02508201610067®Number=0000000000091764&sum=25000 [18:30:35]OFD Sender: Processing packet 166859 [packets to send 48, broken 47] [18:30:35]ProducePacketName [18:30:35]name=ofd_packets/00166859 [18:30:35]OFD Sender: To server: pG, [18:30:35]CommunicateWithHost lk.salyk.kg:30040 [18:30:35]ConnectInit lk.salyk.kg [18:30:35]written 0, free lines is 4095 [18:30:35]Connected sock=10 [18:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 69 95 07 01 E1 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CC 40 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8B 02 00 35 04 06 00 9D A4 67 6B 7D A6 61 CC 31 9F B1 CF F3 12 [18:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 96 47 00 88 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 8B 02 00 F4 03 04 00 32 E7 18 67 B6 04 01 00 00 82 88 C0 1A 78 B4 9E 8E [18:30:35]CommunicateWithHost err = 0 [18:30:35]CheckOFDResponse [18:30:35]1017 (14) - 77093643461234 [18:30:35]1041 (16) - 0000000000871759 [18:30:35]1040 (4) - 166859 [18:30:35]1012 (4) - 23.10.2024 12:08 [18:30:35]1206 (1) - 0 [18:30:35]OFD Sender: Remove packet 166859 [18:30:35]ProducePacketName [18:30:36]name=ofd_packets/00166859 [18:30:36]NVStorageDeleteData [18:30:36]Write to MH i2c: 01 00 00 8C 3F CB [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 07 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: 01 07 00 8C 3F 00 00 00 00 00 C7 0C A5 [18:30:36]RasterBufferAndPrint [18:30:36]line [18:30:36]line [18:30:36]line [18:30:36]line [18:30:36]line [18:30:36]written 0, free lines is 3277 [18:30:36]MH_Cut [18:30:36]Write to MH i2c: D1 01 00 93 3F 01 A4 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: D1 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: D1 01 00 [18:30:36]MH_I2C_Read... [18:30:36]Read from MH i2c: D1 01 00 93 3F 00 A3 [18:30:36]Write to MH i2c: 01 00 00 94 3F D3 [18:30:36]Write i2c OK [18:30:36]MH_I2C_Read... [18:30:36]OFD Sender: No OFD packet to send [18:30:36]*** Cut start [18:30:36]*** Partial cut [18:30:36]*** CUTSNS_PIN = 1 [18:30:37]*** CUTSNS_PIN = 0 [18:30:37]*** Brake cut motor [18:30:37]Read from MH i2c: 01 [18:30:37]MH_I2C_Read... [18:30:37]*** Stop cut motor [18:30:37]*** Cut end [18:30:37]Read from MH i2c: 01 07 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: 01 07 00 94 3F 00 00 00 00 00 FF 0F E8 [18:30:37]process_action close_receipt done [18:30:37]requested_data is exist [18:30:37]produce_requested_data [18:30:37]requested_item fm.sn is exist - process it [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 11 00 00 [18:30:37]Write to MH i2c: E2 08 00 95 3F 80 11 00 00 00 00 00 00 4E [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 95 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [18:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:30:37]wFMCommunicate OK [18:30:37]requested_item fd.num is exist - process it [18:30:37]SAM_PROTO_GetFieldsCounters [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 00 00 [18:30:37]Write to MH i2c: E2 08 00 96 3F 80 13 00 00 00 00 00 00 51 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 96 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetFieldsCounters done [18:30:37]requested_item shift.num is exist - process it [18:30:37]requested_item shift.opened is exist - process it [18:30:37]req_shift_opened [18:30:37]FM_GetShiftState [18:30:37]SAM_PROTO_GetShiftState [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 01 00 [18:30:37]Write to MH i2c: E2 08 00 97 3F 80 13 01 00 00 00 00 00 53 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 97 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1E [18:30:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetShiftState done [18:30:37]FM_GetShiftState done [18:30:37]req_shift_opened done [18:30:37]requested_item shift.open_date is exist - process it [18:30:37]req_shift_open_date [18:30:37]req_shift_open_date done [18:30:37]produce_requested_data done [18:30:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166859,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:30:37]process_action_free close_receipt [18:30:37]json_value_free [18:30:37]json_value_free done [18:30:37]process_json_proto returns [18:30:37]Send response to host [18:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166859,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:30:37]free response buf [18:30:37]execute_script done [18:30:37]execute_script returns [18:30:37]free content buf [18:30:37]Sock 9.Close socket [18:30:37]Sock 9.Thread stoped [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:53]accept exits with 8 [18:35:53]New connection [18:35:53]New thread 3067178340 created [18:35:53]Thread 3067034980 joined [18:35:53]Waiting for new connection... [18:35:53] Sock 8.Parse request [18:35:53]Sock 8.Check first char [18:35:53]Sock 8.First char is OK [18:35:53]request: POST /json_proto HTTP/1.0 [18:35:53]Method: POST [18:35:53]URL: /json_proto [18:35:53]Method is POST - this is cgi request [18:35:53]url: /json_proto [18:35:53]query_string will be loaded in cgi processing [18:35:53]execute_cgi json_proto POST (null) [18:35:53]execute_cgi path=json_proto method=POST [18:35:53]POST find Content-Length [18:35:53]Host: 172.17.53.195:8080 [18:35:53]Content-Length: 677 [18:35:53]Content-Type: application/json [18:35:53] [18:35:53]POST finish read [18:35:53]Found Content-Length = 677 [18:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:53]execute_script... [18:35: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)221446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:53]POST & json_proto [18:35:53]process_json_proto [18:35:53]json parsed OK: [18:35:53]protocol is kg_v1.0 [18:35:53]action value=close_receipt [18:35:53]process_action close_receipt [18:35:53]cmd_close_receipt [18:35:53]MH_GetDate [18:35:53]Write to MH i2c: F0 00 00 98 3F C6 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: F0 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: F0 09 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: F0 09 00 98 3F 00 0C 42 19 67 21 48 4A 65 B5 [18:35:53]GetLastDocTimeStamp 1729708236 [18:35:53]current date 1729708556 [18:35:53]FM_GetShiftState [18:35:53]SAM_PROTO_GetShiftState [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 13 01 00 [18:35:53]Write to MH i2c: E2 08 00 99 3F 80 13 01 00 00 00 00 00 55 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0E 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0E 00 99 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [18:35:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_GetShiftState done [18:35:53]FM_GetShiftState done [18:35:53]opened in 1729643772 [18:35:53]opened+sec_in_day 1729730172 [18:35:53]quantity*price = 50041 [18:35:53]sum+1 = 50042 [18:35:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 275 23.10.2024 18:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166860 ФПД: 245414119350522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166860&fm=245414119350522&tin=02508201610067®Number=0000000000091764&sum=50000 [18:35:54]StoreToDocumentArchive [18:35:54]shift 537 fd 166860 [18:35:54]save to /storage/0537/doc_00166860 [18:35:54]save last doc name /storage/0537/doc_00166860 to /storage/kkm_last_doc_name [18:35:54]save OK [18:35:54]Clear old archive folders... [18:35:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:54]tlvbuf is 01FC6E20 [18:35:54]SAM_PROTO_ClearQueue [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 09 00 00 [18:35:54]Write to MH i2c: E2 08 00 A6 3F 80 09 00 00 00 00 00 00 57 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [18:35:54]RAPDU: 90 00 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_ClearQueue done [18:35:54]KKMCreateOFDPacket [18:35:54]OFDProtocolAddRootSTLVToBuf [18:35:54]FM_MakeSignedData [18:35:54]FM_MakeSignedData [18:35:54]SAM_PROTO_SignData [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 0D 01 02 [18:35:54]Write to MH i2c: E2 08 00 A7 3F 80 0D 01 02 00 00 00 00 5F [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [18:35:54]RAPDU: 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=255 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 0C 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8B 02 00 35 04 06 00 DF [18:35:54]Write to MH i2c: E2 02 01 A8 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8B 02 00 35 04 06 00 DF 00 00 2A [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 03 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 03 00 A8 3F 00 90 00 5B [18:35:55]RAPDU: 90 00 [18:35:55]wFMCommunicate OK [18:35:55]wFMCommunicate request_size=10 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 0D 02 02 05 33 ED 68 20 FA [18:35:55]Write to MH i2c: E2 0D 00 A9 3F 80 0D 02 02 05 00 33 ED 68 20 FA 00 00 0E [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 03 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 03 00 A9 3F 00 90 00 5C [18:35:55]RAPDU: 90 00 [18:35:55]wFMCommunicate OK [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 0D 03 02 [18:35:55]Write to MH i2c: E2 08 00 AA 3F 80 0D 03 02 00 00 00 00 64 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0B 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0B 00 AA 3F 00 5C DA 2D 9B 4E F9 B8 3E 90 00 A0 [18:35:55]RAPDU: 5C DA 2D 9B 4E F9 B8 3E 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_SignData done [18:35:55]FM_MakeSignedData done [18:35:55]CreateOFDProtocolMessage [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 11 00 00 [18:35:55]Write to MH i2c: E2 08 00 AB 3F 80 11 00 00 00 00 00 00 64 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 17 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 17 00 AB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [18:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:35:55]wFMCommunicate OK [18:35:55]CreateOFDProtocolMessage done [18:35:55]OFDSenderStorePacket 166860 [18:35:55]StoreOFDPacket docnum=166860 [18:35:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BD A5 07 01 4A 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8B 02 00 35 04 06 00 DF 33 ED 68 20 FA 5C DA 2D 9B 4E F9 B8 3E [18:35:55]CheckFolder [18:35:55]dirname=/storage/ofd_packets [18:35:55]CheckFolder done [18:35:55]ProducePacketName [18:35:55]name=ofd_packets/00166860 [18:35:55]NVStorageSaveData ofd_packets/00166860 [18:35:55]File name is /storage/ofd_packets/00166860 [18:35:55]Write 301 bytes [18:35:55]NVStorageSaveData done [18:35:55]OFDSenderStorePacket done [18:35:55]KKMCreateOFDPacket done [18:35:55]NVStorageSaveData kkm_last_timestamp [18:35:55]File name is /storage/kkm_last_timestamp [18:35:55]Write 4 bytes [18:35:55]NVStorageSaveData done [18:35:55]ExternCall_PrintAddStr [18:35:55]wPrintStart [18:35:55]Write to MH i2c: 01 00 00 AC 3F EB [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 07 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 07 00 AC 3F 00 00 00 00 00 FF 0F 00 [18:35:55]RasterBufferAndPrint [18:35:55]line Счет N : (1)221446 [18:35:55]line ИНН: 02508201610067 [18:35:55]line Контрольно-Кассовый Чек [18:35:55]line ПРОДАЖА [18:35:55]line ТРК (МРК, ГНК) : 23 [18:35:55]line Товар: 2710124130 [18:35:55]line Аи-92-К-5 [18:35:55]line 7.480 * 66.90 [18:35:55]line = 500.41 [18:35:55]line НДС 12% НСП 1% [18:35:55]line > о реализуемом товаре [18:35:55]line ОКРУГЛЕНИЕ: -0.41 [18:35:55]line ИТОГО: 500.00 [18:35:55]line Внесено: 500.00 [18:35:55]line СДАЧА: 0.00 [18:35:55]line НСП 1% : 4.43 [18:35:55]line НДС 12% : 53.14 [18:35:55]line Наличными: 500.00 [18:35:55]line Безнал.: 0.00 [18:35:55]line Место: АЗС № 161 "Партнер Нефть" [18:35:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:35:55]line СНО: Общий режим [18:35:55]line Чек 275 23.10.2024 18:35 [18:35:55]line Смена: 537 ФФД: 1.0 [18:35:55]line ЗНМ: 0300000104 [18:35:55]line РНМ: 0000000000091764 [18:35:55]line Версия ККМ: 001 [18:35:55]line ФМ: 0000000000871759 [18:35:55]line ФД: 166860 [18:35:55]line ФПД: 245414119350522 [18:35:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166860&fm=245414119350522&tin=02508201610067®Number=0000000000091764&sum=50000 [18:35:55]OFD Sender: Processing packet 166860 [packets to send 48, broken 47] [18:35:55]ProducePacketName [18:35:55]name=ofd_packets/00166860 [18:35:55]OFD Sender: To server: pG, [18:35:55]CommunicateWithHost lk.salyk.kg:30040 [18:35:55]ConnectInit lk.salyk.kg [18:35:55]written 0, free lines is 4095 [18:35:55]Connected sock=9 [18:35:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BD A5 07 01 4A 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8B 02 00 35 04 06 00 DF 33 ED 68 20 FA 5C DA 2D 9B 4E F9 B8 3E [18:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 18 21 47 00 C0 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 8B 02 00 F4 03 04 00 72 E8 18 67 B6 04 01 00 00 3F 1F B9 E0 72 0E 33 9A [18:35:55]CommunicateWithHost err = 0 [18:35:55]CheckOFDResponse [18:35:55]1017 (14) - 77093643461234 [18:35:55]1041 (16) - 0000000000871759 [18:35:56]1040 (4) - 166860 [18:35:56]1012 (4) - 23.10.2024 12:13 [18:35:56]1206 (1) - 0 [18:35:56]OFD Sender: Remove packet 166860 [18:35:56]ProducePacketName [18:35:56]name=ofd_packets/00166860 [18:35:56]NVStorageDeleteData [18:35:56]Write to MH i2c: 01 00 00 D7 3F 16 [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: 01 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: 01 07 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: 01 07 00 D7 3F 00 00 00 00 00 B5 0C DE [18:35:56]RasterBufferAndPrint [18:35:56]line [18:35:56]line [18:35:56]line [18:35:56]line [18:35:56]line [18:35:56]written 0, free lines is 3260 [18:35:56]MH_Cut [18:35:56]Write to MH i2c: D1 01 00 DE 3F 01 EF [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: D1 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: D1 01 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: D1 01 00 DE 3F 00 EE [18:35:56]Write to MH i2c: 01 00 00 DF 3F 1E [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]OFD Sender: No OFD packet to send [18:35:56]*** Cut start [18:35:56]*** Partial cut [18:35:56]*** CUTSNS_PIN = 1 [18:35:57]*** CUTSNS_PIN = 0 [18:35:57]*** Brake cut motor [18:35:57]Read from MH i2c: 01 [18:35:57]MH_I2C_Read... [18:35:57]*** Stop cut motor [18:35:57]*** Cut end [18:35:57]Read from MH i2c: 01 07 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: 01 07 00 DF 3F 00 00 00 00 00 FF 0F 33 [18:35:57]process_action close_receipt done [18:35:57]requested_data is exist [18:35:57]produce_requested_data [18:35:57]requested_item fm.sn is exist - process it [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 11 00 00 [18:35:57]Write to MH i2c: E2 08 00 E0 3F 80 11 00 00 00 00 00 00 99 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 17 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 17 00 E0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [18:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:35:57]wFMCommunicate OK [18:35:57]requested_item fd.num is exist - process it [18:35:57]SAM_PROTO_GetFieldsCounters [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 13 00 00 [18:35:57]Write to MH i2c: E2 08 00 E1 3F 80 13 00 00 00 00 00 00 9C [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 62 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 62 00 E1 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:35:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_GetFieldsCounters done [18:35:57]requested_item shift.num is exist - process it [18:35:57]requested_item shift.opened is exist - process it [18:35:57]req_shift_opened [18:35:57]FM_GetShiftState [18:35:57]SAM_PROTO_GetShiftState [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 13 01 00 [18:35:57]Write to MH i2c: E2 08 00 E2 3F 80 13 01 00 00 00 00 00 9E [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 E2 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 69 [18:35:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_GetShiftState done [18:35:57]FM_GetShiftState done [18:35:57]req_shift_opened done [18:35:57]requested_item shift.open_date is exist - process it [18:35:57]req_shift_open_date [18:35:57]req_shift_open_date done [18:35:57]produce_requested_data done [18:35:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166860,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:35:57]process_action_free close_receipt [18:35:57]json_value_free [18:35:57]json_value_free done [18:35:57]process_json_proto returns [18:35:57]Send response to host [18:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166860,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:35:57]free response buf [18:35:57]execute_script done [18:35:57]execute_script returns [18:35:57]free content buf [18:35:57]Sock 8.Close socket [18:35:57]Sock 8.Thread stoped [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:52]accept exits with 10 [18:36:52]New connection [18:36:52]New thread 3067034980 created [18:36:52]Thread 3067178340 joined [18:36:52]Waiting for new connection... [18:36:52] Sock 10.Parse request [18:36:52]Sock 10.Check first char [18:36:52]Sock 10.First char is OK [18:36:52]request: POST /json_proto HTTP/1.0 [18:36:52]Method: POST [18:36:52]URL: /json_proto [18:36:52]Method is POST - this is cgi request [18:36:52]url: /json_proto [18:36:52]query_string will be loaded in cgi processing [18:36:52]execute_cgi json_proto POST (null) [18:36:52]execute_cgi path=json_proto method=POST [18:36:52]POST find Content-Length [18:36:52]Host: 172.17.53.195:8080 [18:36:52]Content-Length: 674 [18:36:52]Content-Type: application/json [18:36:52] [18:36:52]POST finish read [18:36:52]Found Content-Length = 674 [18:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:52]execute_script... [18:36: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)221447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:52]POST & json_proto [18:36:52]process_json_proto [18:36:52]json parsed OK: [18:36:52]protocol is kg_v1.0 [18:36:52]action value=close_receipt [18:36:52]process_action close_receipt [18:36:52]cmd_close_receipt [18:36:52]MH_GetDate [18:36:52]Write to MH i2c: F0 00 00 E3 3F 11 [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 09 00 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 09 00 E3 3F 00 47 42 19 67 21 48 4A 65 3B [18:36:52]GetLastDocTimeStamp 1729708556 [18:36:52]current date 1729708615 [18:36:52]FM_GetShiftState [18:36:52]SAM_PROTO_GetShiftState [18:36:52]wFMCommunicate request_size=4 [18:36:52]MH_SAM_APDU [18:36:52]CAPDU: 80 13 01 00 [18:36:52]Write to MH i2c: E2 08 00 E4 3F 80 13 01 00 00 00 00 00 A0 [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:52]Read from MH i2c: E2 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 0E 00 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 0E 00 E4 3F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6B [18:36:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:36:52]wFMCommunicate OK [18:36:52]SAM_PROTO_GetShiftState done [18:36:52]FM_GetShiftState done [18:36:52]opened in 1729643772 [18:36:52]opened+sec_in_day 1729730172 [18:36:52]quantity*price = 49987 [18:36:52]sum+1 = 49988 [18:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 276 23.10.2024 18:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166861 ФПД: 114855411037924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166861&fm=114855411037924&tin=02508201610067®Number=0000000000091764&sum=49900 [18:36:53]StoreToDocumentArchive [18:36:53]shift 537 fd 166861 [18:36:53]save to /storage/0537/doc_00166861 [18:36:53]save last doc name /storage/0537/doc_00166861 to /storage/kkm_last_doc_name [18:36:53]save OK [18:36:53]Clear old archive folders... [18:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:53]tlvbuf is 01FC6E20 [18:36:53]SAM_PROTO_ClearQueue [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 09 00 00 [18:36:53]Write to MH i2c: E2 08 00 F1 3F 80 09 00 00 00 00 00 00 A2 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]SAM_PROTO_ClearQueue done [18:36:53]KKMCreateOFDPacket [18:36:53]OFDProtocolAddRootSTLVToBuf [18:36:53]FM_MakeSignedData [18:36:53]FM_MakeSignedData [18:36:53]SAM_PROTO_SignData [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 01 02 [18:36:53]Write to MH i2c: E2 08 00 F2 3F 80 0D 01 02 00 00 00 00 AA [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 F2 3F 00 90 00 A5 [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]wFMCommunicate request_size=255 [18:36:53]MH_SAM_APDU [18:36: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8B 02 00 35 04 06 00 68 75 DB F9 [18:36:53]Write to MH i2c: E2 02 01 F3 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8B 02 00 35 04 06 00 68 75 DB F9 00 00 D9 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 F3 3F 00 90 00 A6 [18:36:54]RAPDU: 90 00 [18:36:54]wFMCommunicate OK [18:36:54]wFMCommunicate request_size=7 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 0D 02 02 02 B6 E4 [18:36:54]Write to MH i2c: E2 0A 00 F4 3F 80 0D 02 02 02 00 B6 E4 00 00 4B [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 F4 3F 00 90 00 A7 [18:36:54]RAPDU: 90 00 [18:36:54]wFMCommunicate OK [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 0D 03 02 [18:36:54]Write to MH i2c: E2 08 00 F5 3F 80 0D 03 02 00 00 00 00 AF [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0B 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0B 00 F5 3F 00 D1 95 A9 0B CD 99 85 DB 90 00 90 [18:36:54]RAPDU: D1 95 A9 0B CD 99 85 DB 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_SignData done [18:36:54]FM_MakeSignedData done [18:36:54]CreateOFDProtocolMessage [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 11 00 00 [18:36:54]Write to MH i2c: E2 08 00 F6 3F 80 11 00 00 00 00 00 00 AF [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 F6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [18:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:36:54]wFMCommunicate OK [18:36:54]CreateOFDProtocolMessage done [18:36:54]OFDSenderStorePacket 166861 [18:36:54]StoreOFDPacket docnum=166861 [18:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 BA 04 01 72 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8B 02 00 35 04 06 00 68 75 DB F9 B6 E4 D1 95 A9 0B CD 99 85 DB [18:36:54]CheckFolder [18:36:54]dirname=/storage/ofd_packets [18:36:54]CheckFolder done [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00166861 [18:36:54]NVStorageSaveData ofd_packets/00166861 [18:36:54]File name is /storage/ofd_packets/00166861 [18:36:54]Write 298 bytes [18:36:54]NVStorageSaveData done [18:36:54]OFDSenderStorePacket done [18:36:54]KKMCreateOFDPacket done [18:36:54]NVStorageSaveData kkm_last_timestamp [18:36:54]File name is /storage/kkm_last_timestamp [18:36:54]Write 4 bytes [18:36:54]NVStorageSaveData done [18:36:54]ExternCall_PrintAddStr [18:36:54]wPrintStart [18:36:54]Write to MH i2c: 01 00 00 F7 3F 36 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 F7 3F 00 00 00 00 00 FF 0F 4B [18:36:54]RasterBufferAndPrint [18:36:54]line Счет N : (1)221447 [18:36:54]line ИНН: 02508201610067 [18:36:54]line Контрольно-Кассовый Чек [18:36:54]line ПРОДАЖА [18:36:54]line ТРК (МРК, ГНК) : 41 [18:36:54]line Товар: 2710194210 [18:36:54]line ДТ-К-5 [18:36:54]line 6.560 * 76.20 [18:36:54]line = 499.87 [18:36:54]line НДС 12% НСП 1% [18:36:54]line > о реализуемом товаре [18:36:54]line ОКРУГЛЕНИЕ: -0.87 [18:36:54]line ИТОГО: 499.00 [18:36:54]line Внесено: 500.00 [18:36:54]line СДАЧА: 1.00 [18:36:54]line НСП 1% : 4.42 [18:36:54]line НДС 12% : 53.08 [18:36:54]line Наличными: 499.00 [18:36:54]line Безнал.: 0.00 [18:36:54]line Место: АЗС № 161 "Партнер Нефть" [18:36:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:36:54]line СНО: Общий режим [18:36:54]line Чек 276 23.10.2024 18:36 [18:36:54]line Смена: 537 ФФД: 1.0 [18:36:54]line ЗНМ: 0300000104 [18:36:54]line РНМ: 0000000000091764 [18:36:54]line Версия ККМ: 001 [18:36:54]line ФМ: 0000000000871759 [18:36:54]line ФД: 166861 [18:36:54]line ФПД: 114855411037924 [18:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166861&fm=114855411037924&tin=02508201610067®Number=0000000000091764&sum=49900 [18:36:54]OFD Sender: Processing packet 166861 [packets to send 48, broken 47] [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00166861 [18:36:54]OFD Sender: To server: pG, [18:36:54]CommunicateWithHost lk.salyk.kg:30040 [18:36:54]ConnectInit lk.salyk.kg [18:36:54]written 0, free lines is 4095 [18:36:54]Connected sock=9 [18:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 BA 04 01 72 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 47 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8B 02 00 35 04 06 00 68 75 DB F9 B6 E4 D1 95 A9 0B CD 99 85 DB [18:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B C9 47 00 33 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 8B 02 00 F4 03 04 00 AD E8 18 67 B6 04 01 00 00 AC FD 04 23 C7 F4 EA 39 [18:36:55]CommunicateWithHost err = 0 [18:36:55]CheckOFDResponse [18:36:55]1017 (14) - 77093643461234 [18:36:55]1041 (16) - 0000000000871759 [18:36:55]1040 (4) - 166861 [18:36:55]1012 (4) - 23.10.2024 12:14 [18:36:55]1206 (1) - 0 [18:36:55]OFD Sender: Remove packet 166861 [18:36:55]ProducePacketName [18:36:55]name=ofd_packets/00166861 [18:36:55]NVStorageDeleteData [18:36:55]Write to MH i2c: 01 00 00 22 40 62 [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 07 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 07 00 22 40 00 00 00 00 00 B6 0C 2B [18:36:55]RasterBufferAndPrint [18:36:55]line [18:36:55]line [18:36:55]line [18:36:55]line [18:36:55]line [18:36:55]written 0, free lines is 3262 [18:36:55]MH_Cut [18:36:55]Write to MH i2c: D1 01 00 29 40 01 3B [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: D1 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: D1 01 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: D1 01 00 29 40 00 3A [18:36:55]Write to MH i2c: 01 00 00 2A 40 6A [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]OFD Sender: No OFD packet to send [18:36:55]*** Cut start [18:36:55]*** Partial cut [18:36:55]*** CUTSNS_PIN = 1 [18:36:56]*** CUTSNS_PIN = 0 [18:36:56]*** Brake cut motor [18:36:56]Read from MH i2c: 01 [18:36:56]MH_I2C_Read... [18:36:56]*** Stop cut motor [18:36:56]*** Cut end [18:36:56]Read from MH i2c: 01 07 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: 01 07 00 2A 40 00 00 00 00 00 FF 0F 7F [18:36:56]process_action close_receipt done [18:36:56]requested_data is exist [18:36:56]produce_requested_data [18:36:56]requested_item fm.sn is exist - process it [18:36:56]wFMCommunicate request_size=4 [18:36:56]MH_SAM_APDU [18:36:56]CAPDU: 80 11 00 00 [18:36:56]Write to MH i2c: E2 08 00 2B 40 80 11 00 00 00 00 00 00 E5 [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:56]Read from MH i2c: E2 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 17 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 17 00 2B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [18:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:36:56]wFMCommunicate OK [18:36:56]requested_item fd.num is exist - process it [18:36:56]SAM_PROTO_GetFieldsCounters [18:36:56]wFMCommunicate request_size=4 [18:36:56]MH_SAM_APDU [18:36:56]CAPDU: 80 13 00 00 [18:36:56]Write to MH i2c: E2 08 00 2C 40 80 13 00 00 00 00 00 00 E8 [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:56]Read from MH i2c: E2 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 62 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 62 00 2C 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:36:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:56]wFMCommunicate OK [18:36:56]SAM_PROTO_GetFieldsCounters done [18:36:56]requested_item shift.num is exist - process it [18:36:56]requested_item shift.opened is exist - process it [18:36:56]req_shift_opened [18:36:56]FM_GetShiftState [18:36:56]SAM_PROTO_GetShiftState [18:36:56]wFMCommunicate request_size=4 [18:36:56]MH_SAM_APDU [18:36:56]CAPDU: 80 13 01 00 [18:36:56]Write to MH i2c: E2 08 00 2D 40 80 13 01 00 00 00 00 00 EA [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:56]Read from MH i2c: E2 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 0E 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: E2 0E 00 2D 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B5 [18:36:56]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:36:56]wFMCommunicate OK [18:36:56]SAM_PROTO_GetShiftState done [18:36:56]FM_GetShiftState done [18:36:56]req_shift_opened done [18:36:56]requested_item shift.open_date is exist - process it [18:36:56]req_shift_open_date [18:36:56]req_shift_open_date done [18:36:56]produce_requested_data done [18:36:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166861,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:36:56]process_action_free close_receipt [18:36:56]json_value_free [18:36:56]json_value_free done [18:36:56]process_json_proto returns [18:36:56]Send response to host [18:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166861,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:36:56]free response buf [18:36:56]execute_script done [18:36:56]execute_script returns [18:36:56]free content buf [18:36:56]Sock 10.Close socket [18:36:56]Sock 10.Thread stoped [18:37:00]OFD Sender: No OFD packet to send [18:37:00]accept exits with 8 [18:37:00]New connection [18:37:00]New thread 3067178340 created [18:37:00]Thread 3067034980 joined [18:37:00]Waiting for new connection... [18:37:00] Sock 8.Parse request [18:37:00]Sock 8.Check first char [18:37:00]Sock 8.First char is OK [18:37:00]request: POST /json_proto HTTP/1.0 [18:37:00]Method: POST [18:37:00]URL: /json_proto [18:37:00]Method is POST - this is cgi request [18:37:00]url: /json_proto [18:37:00]query_string will be loaded in cgi processing [18:37:00]execute_cgi json_proto POST (null) [18:37:00]execute_cgi path=json_proto method=POST [18:37:00]POST find Content-Length [18:37:00]Host: 172.17.53.195:8080 [18:37:00]Content-Length: 674 [18:37:00]Content-Type: application/json [18:37:00] [18:37:00]POST finish read [18:37:00]Found Content-Length = 674 [18:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:00]execute_script... [18:37:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:00]POST & json_proto [18:37:00]process_json_proto [18:37:00]json parsed OK: [18:37:00]protocol is kg_v1.0 [18:37:00]action value=close_receipt [18:37:00]process_action close_receipt [18:37:00]cmd_close_receipt [18:37:00]MH_GetDate [18:37:00]Write to MH i2c: F0 00 00 2E 40 5D [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: F0 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: F0 09 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: F0 09 00 2E 40 00 4F 42 19 67 21 48 4A 65 8F [18:37:00]GetLastDocTimeStamp 1729708615 [18:37:00]current date 1729708623 [18:37:00]FM_GetShiftState [18:37:00]SAM_PROTO_GetShiftState [18:37:00]wFMCommunicate request_size=4 [18:37:00]MH_SAM_APDU [18:37:00]CAPDU: 80 13 01 00 [18:37:00]Write to MH i2c: E2 08 00 2F 40 80 13 01 00 00 00 00 00 EC [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:00]Read from MH i2c: E2 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 0E 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 0E 00 2F 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B7 [18:37:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:37:00]wFMCommunicate OK [18:37:00]SAM_PROTO_GetShiftState done [18:37:00]FM_GetShiftState done [18:37:00]opened in 1729643772 [18:37:00]opened+sec_in_day 1729730172 [18:37:00]quantity*price = 50063 [18:37:00]sum+1 = 50064 [18:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 277 23.10.2024 18:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166862 ФПД: 205555061002196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166862&fm=205555061002196&tin=02508201610067®Number=0000000000091764&sum=50000 [18:37:02]StoreToDocumentArchive [18:37:02]shift 537 fd 166862 [18:37:02]save to /storage/0537/doc_00166862 [18:37:02]save last doc name /storage/0537/doc_00166862 to /storage/kkm_last_doc_name [18:37:02]save OK [18:37:02]Clear old archive folders... [18:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:37:02]tlvbuf is 020FB610 [18:37:02]SAM_PROTO_ClearQueue [18:37:02]wFMCommunicate request_size=4 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 09 00 00 [18:37:02]Write to MH i2c: E2 08 00 3C 40 80 09 00 00 00 00 00 00 EE [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 3C 40 00 90 00 F0 [18:37:02]RAPDU: 90 00 [18:37:02]wFMCommunicate OK [18:37:02]SAM_PROTO_ClearQueue done [18:37:02]KKMCreateOFDPacket [18:37:02]OFDProtocolAddRootSTLVToBuf [18:37:02]FM_MakeSignedData [18:37:02]FM_MakeSignedData [18:37:02]SAM_PROTO_SignData [18:37:02]wFMCommunicate request_size=4 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 0D 01 02 [18:37:02]Write to MH i2c: E2 08 00 3D 40 80 0D 01 02 00 00 00 00 F6 [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 3D 40 00 90 00 F1 [18:37:02]RAPDU: 90 00 [18:37:02]wFMCommunicate OK [18:37:02]wFMCommunicate request_size=255 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 4F 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8B 02 00 35 04 06 00 BA F3 84 64 [18:37:02]Write to MH i2c: E2 02 01 3E 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 4F 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8B 02 00 35 04 06 00 BA F3 84 64 00 00 3C [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 3E 40 00 90 00 F2 [18:37:02]RAPDU: 90 00 [18:37:02]wFMCommunicate OK [18:37:02]wFMCommunicate request_size=7 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 0D 02 02 02 8F D4 [18:37:02]Write to MH i2c: E2 0A 00 3F 40 80 0D 02 02 02 00 8F D4 00 00 60 [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 03 00 3F 40 00 90 00 F3 [18:37:02]RAPDU: 90 00 [18:37:02]wFMCommunicate OK [18:37:02]wFMCommunicate request_size=4 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 0D 03 02 [18:37:02]Write to MH i2c: E2 08 00 40 40 80 0D 03 02 00 00 00 00 FB [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 0B 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 0B 00 40 40 00 F4 24 F0 49 95 99 9B 95 90 00 AB [18:37:02]RAPDU: F4 24 F0 49 95 99 9B 95 90 00 [18:37:02]wFMCommunicate OK [18:37:02]SAM_PROTO_SignData done [18:37:02]FM_MakeSignedData done [18:37:02]CreateOFDProtocolMessage [18:37:02]wFMCommunicate request_size=4 [18:37:02]MH_SAM_APDU [18:37:02]CAPDU: 80 11 00 00 [18:37:02]Write to MH i2c: E2 08 00 41 40 80 11 00 00 00 00 00 00 FB [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:02]Read from MH i2c: E2 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 17 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: E2 17 00 41 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [18:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:02]wFMCommunicate OK [18:37:02]CreateOFDProtocolMessage done [18:37:02]OFDSenderStorePacket 166862 [18:37:02]StoreOFDPacket docnum=166862 [18:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 33 F0 04 01 47 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 4F 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8B 02 00 35 04 06 00 BA F3 84 64 8F D4 F4 24 F0 49 95 99 9B 95 [18:37:02]CheckFolder [18:37:02]dirname=/storage/ofd_packets [18:37:02]CheckFolder done [18:37:02]ProducePacketName [18:37:02]name=ofd_packets/00166862 [18:37:02]NVStorageSaveData ofd_packets/00166862 [18:37:02]File name is /storage/ofd_packets/00166862 [18:37:02]Write 298 bytes [18:37:02]NVStorageSaveData done [18:37:02]OFDSenderStorePacket done [18:37:02]KKMCreateOFDPacket done [18:37:02]NVStorageSaveData kkm_last_timestamp [18:37:02]File name is /storage/kkm_last_timestamp [18:37:02]Write 4 bytes [18:37:02]NVStorageSaveData done [18:37:02]ExternCall_PrintAddStr [18:37:02]wPrintStart [18:37:02]Write to MH i2c: 01 00 00 42 40 82 [18:37:02]Write i2c OK [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: 01 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: 01 07 00 [18:37:02]MH_I2C_Read... [18:37:02]Read from MH i2c: 01 07 00 42 40 00 00 00 00 00 FF 0F 97 [18:37:02]RasterBufferAndPrint [18:37:02]line Счет N : (1)221448 [18:37:02]line ИНН: 02508201610067 [18:37:02]line Контрольно-Кассовый Чек [18:37:02]line ПРОДАЖА [18:37:02]line ТРК (МРК, ГНК) : 21 [18:37:02]line Товар: 2710194210 [18:37:02]line ДТ-К-5 [18:37:02]line 6.570 * 76.20 [18:37:02]line = 500.63 [18:37:02]line НДС 12% НСП 1% [18:37:02]line > о реализуемом товаре [18:37:02]line ОКРУГЛЕНИЕ: -0.63 [18:37:02]line ИТОГО: 500.00 [18:37:02]line Внесено: 500.00 [18:37:02]line СДАЧА: 0.00 [18:37:02]line НСП 1% : 4.43 [18:37:02]line НДС 12% : 53.16 [18:37:02]line Наличными: 500.00 [18:37:02]line Безнал.: 0.00 [18:37:02]line Место: АЗС № 161 "Партнер Нефть" [18:37:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:37:02]line СНО: Общий режим [18:37:02]line Чек 277 23.10.2024 18:37 [18:37:02]line Смена: 537 ФФД: 1.0 [18:37:02]line ЗНМ: 0300000104 [18:37:02]line РНМ: 0000000000091764 [18:37:02]line Версия ККМ: 001 [18:37:02]line ФМ: 0000000000871759 [18:37:02]line ФД: 166862 [18:37:02]line ФПД: 205555061002196 [18:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166862&fm=205555061002196&tin=02508201610067®Number=0000000000091764&sum=50000 [18:37:02]OFD Sender: Processing packet 166862 [packets to send 48, broken 47] [18:37:02]ProducePacketName [18:37:02]name=ofd_packets/00166862 [18:37:02]OFD Sender: To server: pG, [18:37:02]CommunicateWithHost lk.salyk.kg:30040 [18:37:02]ConnectInit lk.salyk.kg [18:37:02]written 0, free lines is 4095 [18:37:02]Connected sock=10 [18:37:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 33 F0 04 01 47 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 4F 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8B 02 00 35 04 06 00 BA F3 84 64 8F D4 F4 24 F0 49 95 99 9B 95 [18:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 41 47 00 19 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 8B 02 00 F4 03 04 00 B5 E8 18 67 B6 04 01 00 00 11 E6 41 47 77 BC F4 D7 [18:37:03]CommunicateWithHost err = 0 [18:37:03]CheckOFDResponse [18:37:03]1017 (14) - 77093643461234 [18:37:03]1041 (16) - 0000000000871759 [18:37:03]1040 (4) - 166862 [18:37:03]1012 (4) - 23.10.2024 12:14 [18:37:03]1206 (1) - 0 [18:37:03]OFD Sender: Remove packet 166862 [18:37:03]ProducePacketName [18:37:03]name=ofd_packets/00166862 [18:37:03]NVStorageDeleteData [18:37:03]Write to MH i2c: 01 00 00 6D 40 AD [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 07 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 07 00 6D 40 00 00 00 00 00 BC 0C 7C [18:37:03]RasterBufferAndPrint [18:37:03]line [18:37:03]line [18:37:03]line [18:37:03]line [18:37:03]line [18:37:03]written 0, free lines is 3273 [18:37:03]MH_Cut [18:37:03]Write to MH i2c: D1 01 00 74 40 01 86 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: D1 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: D1 01 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: D1 01 00 74 40 00 85 [18:37:03]Write to MH i2c: 01 00 00 75 40 B5 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]OFD Sender: No OFD packet to send [18:37:03]*** Cut start [18:37:03]*** Partial cut [18:37:03]*** CUTSNS_PIN = 1 [18:37:04]*** CUTSNS_PIN = 0 [18:37:04]*** Brake cut motor [18:37:04]Read from MH i2c: 01 [18:37:04]MH_I2C_Read... [18:37:04]*** Stop cut motor [18:37:04]*** Cut end [18:37:04]Read from MH i2c: 01 07 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: 01 07 00 75 40 00 00 00 00 00 FF 0F CA [18:37:04]process_action close_receipt done [18:37:04]requested_data is exist [18:37:04]produce_requested_data [18:37:04]requested_item fm.sn is exist - process it [18:37:04]wFMCommunicate request_size=4 [18:37:04]MH_SAM_APDU [18:37:04]CAPDU: 80 11 00 00 [18:37:04]Write to MH i2c: E2 08 00 76 40 80 11 00 00 00 00 00 00 30 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:04]Read from MH i2c: E2 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 17 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 17 00 76 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [18:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:04]wFMCommunicate OK [18:37:04]requested_item fd.num is exist - process it [18:37:04]SAM_PROTO_GetFieldsCounters [18:37:04]wFMCommunicate request_size=4 [18:37:04]MH_SAM_APDU [18:37:04]CAPDU: 80 13 00 00 [18:37:04]Write to MH i2c: E2 08 00 77 40 80 13 00 00 00 00 00 00 33 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:04]Read from MH i2c: E2 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 62 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 62 00 77 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [18:37:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:04]wFMCommunicate OK [18:37:04]SAM_PROTO_GetFieldsCounters done [18:37:04]requested_item shift.num is exist - process it [18:37:04]requested_item shift.opened is exist - process it [18:37:04]req_shift_opened [18:37:04]FM_GetShiftState [18:37:04]SAM_PROTO_GetShiftState [18:37:04]wFMCommunicate request_size=4 [18:37:04]MH_SAM_APDU [18:37:04]CAPDU: 80 13 01 00 [18:37:04]Write to MH i2c: E2 08 00 78 40 80 13 01 00 00 00 00 00 35 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:04]Read from MH i2c: E2 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 78 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 00 [18:37:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:37:04]wFMCommunicate OK [18:37:04]SAM_PROTO_GetShiftState done [18:37:04]FM_GetShiftState done [18:37:04]req_shift_opened done [18:37:04]requested_item shift.open_date is exist - process it [18:37:04]req_shift_open_date [18:37:04]req_shift_open_date done [18:37:04]produce_requested_data done [18:37:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166862,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:37:04]process_action_free close_receipt [18:37:04]json_value_free [18:37:04]json_value_free done [18:37:04]process_json_proto returns [18:37:04]Send response to host [18:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166862,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:37:04]free response buf [18:37:04]execute_script done [18:37:04]execute_script returns [18:37:04]free content buf [18:37:04]Sock 8.Close socket [18:37:04]Sock 8.Thread stoped [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:40]accept exits with 9 [18:37:40]New connection [18:37:40]New thread 3067034980 created [18:37:40]Thread 3067178340 joined [18:37:40]Waiting for new connection... [18:37:40] Sock 9.Parse request [18:37:40]Sock 9.Check first char [18:37:40]Sock 9.First char is OK [18:37:40]request: POST /json_proto HTTP/1.0 [18:37:40]Method: POST [18:37:40]URL: /json_proto [18:37:40]Method is POST - this is cgi request [18:37:40]url: /json_proto [18:37:40]query_string will be loaded in cgi processing [18:37:40]execute_cgi json_proto POST (null) [18:37:40]execute_cgi path=json_proto method=POST [18:37:40]POST find Content-Length [18:37:40]Host: 172.17.53.195:8080 [18:37:40]Content-Length: 677 [18:37:40]Content-Type: application/json [18:37:40] [18:37:40]POST finish read [18:37:40]Found Content-Length = 677 [18:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:40]execute_script... [18:37: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)221449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:40]POST & json_proto [18:37:40]process_json_proto [18:37:40]json parsed OK: [18:37:40]protocol is kg_v1.0 [18:37:40]action value=close_receipt [18:37:40]process_action close_receipt [18:37:40]cmd_close_receipt [18:37:40]MH_GetDate [18:37:40]Write to MH i2c: F0 00 00 79 40 A8 [18:37:40]Write i2c OK [18:37:40]MH_I2C_Read... [18:37:40]Read from MH i2c: F0 [18:37:40]MH_I2C_Read... [18:37:40]Read from MH i2c: F0 09 00 [18:37:40]MH_I2C_Read... [18:37:40]Read from MH i2c: F0 09 00 79 40 00 77 42 19 67 21 48 4A 65 02 [18:37:40]GetLastDocTimeStamp 1729708623 [18:37:40]current date 1729708663 [18:37:40]FM_GetShiftState [18:37:40]SAM_PROTO_GetShiftState [18:37:40]wFMCommunicate request_size=4 [18:37:40]MH_SAM_APDU [18:37:40]CAPDU: 80 13 01 00 [18:37:40]Write to MH i2c: E2 08 00 7A 40 80 13 01 00 00 00 00 00 37 [18:37:40]Write i2c OK [18:37:40]MH_I2C_Read... [18:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:40]Read from MH i2c: E2 [18:37:40]MH_I2C_Read... [18:37:40]Read from MH i2c: E2 0E 00 [18:37:40]MH_I2C_Read... [18:37:40]Read from MH i2c: E2 0E 00 7A 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 02 [18:37:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:37:40]wFMCommunicate OK [18:37:40]SAM_PROTO_GetShiftState done [18:37:40]FM_GetShiftState done [18:37:40]opened in 1729643772 [18:37:40]opened+sec_in_day 1729730172 [18:37:40]quantity*price = 40006 [18:37:40]sum+1 = 40007 [18:37: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 278 23.10.2024 18:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166863 ФПД: 193677559610303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166863&fm=193677559610303&tin=02508201610067®Number=0000000000091764&sum=40000 [18:37:41]StoreToDocumentArchive [18:37:41]shift 537 fd 166863 [18:37:41]save to /storage/0537/doc_00166863 [18:37:41]save last doc name /storage/0537/doc_00166863 to /storage/kkm_last_doc_name [18:37:41]save OK [18:37:41]Clear old archive folders... [18:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:41]tlvbuf is 01FCB7D0 [18:37:41]SAM_PROTO_ClearQueue [18:37:41]wFMCommunicate request_size=4 [18:37:41]MH_SAM_APDU [18:37:41]CAPDU: 80 09 00 00 [18:37:41]Write to MH i2c: E2 08 00 87 40 80 09 00 00 00 00 00 00 39 [18:37:41]Write i2c OK [18:37:41]MH_I2C_Read... [18:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:41]Read from MH i2c: E2 [18:37:41]MH_I2C_Read... [18:37:41]Read from MH i2c: E2 03 00 [18:37:41]MH_I2C_Read... [18:37:41]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [18:37:41]RAPDU: 90 00 [18:37:41]wFMCommunicate OK [18:37:41]SAM_PROTO_ClearQueue done [18:37:41]KKMCreateOFDPacket [18:37:41]OFDProtocolAddRootSTLVToBuf [18:37:41]FM_MakeSignedData [18:37:41]FM_MakeSignedData [18:37:41]SAM_PROTO_SignData [18:37:41]wFMCommunicate request_size=4 [18:37:41]MH_SAM_APDU [18:37:41]CAPDU: 80 0D 01 02 [18:37:41]Write to MH i2c: E2 08 00 88 40 80 0D 01 02 00 00 00 00 41 [18:37:41]Write i2c OK [18:37:41]MH_I2C_Read... [18:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:41]Read from MH i2c: E2 [18:37:41]MH_I2C_Read... [18:37:41]Read from MH i2c: E2 03 00 [18:37:41]MH_I2C_Read... [18:37:41]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [18:37:41]RAPDU: 90 00 [18:37:41]wFMCommunicate OK [18:37:41]wFMCommunicate request_size=255 [18:37:41]MH_SAM_APDU [18:37:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8B 02 00 35 04 06 00 B0 [18:37:42]Write to MH i2c: E2 02 01 89 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8B 02 00 35 04 06 00 B0 00 00 1D [18:37:42]Write i2c OK [18:37:42]MH_I2C_Read... [18:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:42]Read from MH i2c: E2 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 03 00 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 03 00 89 40 00 90 00 3D [18:37:42]RAPDU: 90 00 [18:37:42]wFMCommunicate OK [18:37:42]wFMCommunicate request_size=10 [18:37:42]MH_SAM_APDU [18:37:42]CAPDU: 80 0D 02 02 05 26 12 24 3B BF [18:37:42]Write to MH i2c: E2 0D 00 8A 40 80 0D 02 02 05 00 26 12 24 3B BF 00 00 A4 [18:37:42]Write i2c OK [18:37:42]MH_I2C_Read... [18:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:42]Read from MH i2c: E2 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 03 00 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 03 00 8A 40 00 90 00 3E [18:37:42]RAPDU: 90 00 [18:37:42]wFMCommunicate OK [18:37:42]wFMCommunicate request_size=4 [18:37:42]MH_SAM_APDU [18:37:42]CAPDU: 80 0D 03 02 [18:37:42]Write to MH i2c: E2 08 00 8B 40 80 0D 03 02 00 00 00 00 46 [18:37:42]Write i2c OK [18:37:42]MH_I2C_Read... [18:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:42]Read from MH i2c: E2 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 0B 00 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 0B 00 8B 40 00 B2 D7 23 97 B9 A8 96 B2 90 00 33 [18:37:42]RAPDU: B2 D7 23 97 B9 A8 96 B2 90 00 [18:37:42]wFMCommunicate OK [18:37:42]SAM_PROTO_SignData done [18:37:42]FM_MakeSignedData done [18:37:42]CreateOFDProtocolMessage [18:37:42]wFMCommunicate request_size=4 [18:37:42]MH_SAM_APDU [18:37:42]CAPDU: 80 11 00 00 [18:37:42]Write to MH i2c: E2 08 00 8C 40 80 11 00 00 00 00 00 00 46 [18:37:42]Write i2c OK [18:37:42]MH_I2C_Read... [18:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:42]Read from MH i2c: E2 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 17 00 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: E2 17 00 8C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [18:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:42]wFMCommunicate OK [18:37:42]CreateOFDProtocolMessage done [18:37:42]OFDSenderStorePacket 166863 [18:37:42]StoreOFDPacket docnum=166863 [18:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 80 E5 07 01 AB 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8B 02 00 35 04 06 00 B0 26 12 24 3B BF B2 D7 23 97 B9 A8 96 B2 [18:37:42]CheckFolder [18:37:42]dirname=/storage/ofd_packets [18:37:42]CheckFolder done [18:37:42]ProducePacketName [18:37:42]name=ofd_packets/00166863 [18:37:42]NVStorageSaveData ofd_packets/00166863 [18:37:42]File name is /storage/ofd_packets/00166863 [18:37:42]Write 301 bytes [18:37:42]NVStorageSaveData done [18:37:42]OFDSenderStorePacket done [18:37:42]KKMCreateOFDPacket done [18:37:42]NVStorageSaveData kkm_last_timestamp [18:37:42]File name is /storage/kkm_last_timestamp [18:37:42]Write 4 bytes [18:37:42]NVStorageSaveData done [18:37:42]ExternCall_PrintAddStr [18:37:42]wPrintStart [18:37:42]Write to MH i2c: 01 00 00 8D 40 CD [18:37:42]Write i2c OK [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: 01 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: 01 07 00 [18:37:42]MH_I2C_Read... [18:37:42]Read from MH i2c: 01 07 00 8D 40 00 00 00 00 00 FF 0F E2 [18:37:42]RasterBufferAndPrint [18:37:42]line Счет N : (1)221449 [18:37:42]line ИНН: 02508201610067 [18:37:42]line Контрольно-Кассовый Чек [18:37:42]line ПРОДАЖА [18:37:42]line ТРК (МРК, ГНК) : 33 [18:37:42]line Товар: 2710124130 [18:37:42]line Аи-92-К-5 [18:37:42]line 5.980 * 66.90 [18:37:42]line = 400.06 [18:37:42]line НДС 12% НСП 1% [18:37:42]line > о реализуемом товаре [18:37:42]line ОКРУГЛЕНИЕ: -0.06 [18:37:42]line ИТОГО: 400.00 [18:37:42]line Внесено: 400.00 [18:37:42]line СДАЧА: 0.00 [18:37:42]line НСП 1% : 3.54 [18:37:42]line НДС 12% : 42.48 [18:37:42]line Наличными: 400.00 [18:37:42]line Безнал.: 0.00 [18:37:42]line Место: АЗС № 161 "Партнер Нефть" [18:37:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:37:42]line СНО: Общий режим [18:37:42]line Чек 278 23.10.2024 18:37 [18:37:42]line Смена: 537 ФФД: 1.0 [18:37:42]line ЗНМ: 0300000104 [18:37:42]line РНМ: 0000000000091764 [18:37:42]line Версия ККМ: 001 [18:37:42]line ФМ: 0000000000871759 [18:37:42]line ФД: 166863 [18:37:42]line ФПД: 193677559610303 [18:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166863&fm=193677559610303&tin=02508201610067®Number=0000000000091764&sum=40000 [18:37:42]OFD Sender: Processing packet 166863 [packets to send 48, broken 47] [18:37:42]ProducePacketName [18:37:42]name=ofd_packets/00166863 [18:37:42]OFD Sender: To server: pG, [18:37:42]CommunicateWithHost lk.salyk.kg:30040 [18:37:42]ConnectInit lk.salyk.kg [18:37:42]written 0, free lines is 4095 [18:37:42]Connected sock=10 [18:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 80 E5 07 01 AB 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 42 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8B 02 00 35 04 06 00 B0 26 12 24 3B BF B2 D7 23 97 B9 A8 96 B2 [18:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E4 CF 47 00 76 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 8B 02 00 F4 03 04 00 DD E8 18 67 B6 04 01 00 00 98 20 16 72 89 6E 78 36 [18:37:43]CommunicateWithHost err = 0 [18:37:43]CheckOFDResponse [18:37:43]1017 (14) - 77093643461234 [18:37:43]1041 (16) - 0000000000871759 [18:37:43]1040 (4) - 166863 [18:37:43]1012 (4) - 23.10.2024 12:15 [18:37:43]1206 (1) - 0 [18:37:43]OFD Sender: Remove packet 166863 [18:37:43]ProducePacketName [18:37:43]name=ofd_packets/00166863 [18:37:43]NVStorageDeleteData [18:37:43]Write to MH i2c: 01 00 00 B8 40 F8 [18:37:43]Write i2c OK [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: 01 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: 01 07 00 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: 01 07 00 B8 40 00 00 00 00 00 B7 0C C2 [18:37:43]RasterBufferAndPrint [18:37:43]line [18:37:43]line [18:37:43]line [18:37:43]line [18:37:43]line [18:37:43]written 0, free lines is 3262 [18:37:43]MH_Cut [18:37:43]Write to MH i2c: D1 01 00 BF 40 01 D1 [18:37:43]Write i2c OK [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: D1 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: D1 01 00 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: D1 01 00 BF 40 00 D0 [18:37:43]Write to MH i2c: 01 00 00 C0 40 00 [18:37:43]Write i2c OK [18:37:43]MH_I2C_Read... [18:37:43]OFD Sender: No OFD packet to send [18:37:44]*** Cut start [18:37:44]*** Partial cut [18:37:44]*** CUTSNS_PIN = 1 [18:37:44]*** CUTSNS_PIN = 0 [18:37:44]*** Brake cut motor [18:37:44]Read from MH i2c: 01 [18:37:44]MH_I2C_Read... [18:37:44]*** Stop cut motor [18:37:44]*** Cut end [18:37:44]Read from MH i2c: 01 07 00 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: 01 07 00 C0 40 00 00 00 00 00 FF 0F 15 [18:37:44]process_action close_receipt done [18:37:44]requested_data is exist [18:37:44]produce_requested_data [18:37:44]requested_item fm.sn is exist - process it [18:37:44]wFMCommunicate request_size=4 [18:37:44]MH_SAM_APDU [18:37:44]CAPDU: 80 11 00 00 [18:37:44]Write to MH i2c: E2 08 00 C1 40 80 11 00 00 00 00 00 00 7B [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:44]Read from MH i2c: E2 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 17 00 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 17 00 C1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [18:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:44]wFMCommunicate OK [18:37:44]requested_item fd.num is exist - process it [18:37:44]SAM_PROTO_GetFieldsCounters [18:37:44]wFMCommunicate request_size=4 [18:37:44]MH_SAM_APDU [18:37:44]CAPDU: 80 13 00 00 [18:37:44]Write to MH i2c: E2 08 00 C2 40 80 13 00 00 00 00 00 00 7E [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:44]Read from MH i2c: E2 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 62 00 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 62 00 C2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [18:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:44]wFMCommunicate OK [18:37:44]SAM_PROTO_GetFieldsCounters done [18:37:44]requested_item shift.num is exist - process it [18:37:44]requested_item shift.opened is exist - process it [18:37:44]req_shift_opened [18:37:44]FM_GetShiftState [18:37:44]SAM_PROTO_GetShiftState [18:37:44]wFMCommunicate request_size=4 [18:37:44]MH_SAM_APDU [18:37:44]CAPDU: 80 13 01 00 [18:37:44]Write to MH i2c: E2 08 00 C3 40 80 13 01 00 00 00 00 00 80 [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:45]Read from MH i2c: E2 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 0E 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 0E 00 C3 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4B [18:37:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:37:45]wFMCommunicate OK [18:37:45]SAM_PROTO_GetShiftState done [18:37:45]FM_GetShiftState done [18:37:45]req_shift_opened done [18:37:45]requested_item shift.open_date is exist - process it [18:37:45]req_shift_open_date [18:37:45]req_shift_open_date done [18:37:45]produce_requested_data done [18:37:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166863,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:37:45]process_action_free close_receipt [18:37:45]json_value_free [18:37:45]json_value_free done [18:37:45]process_json_proto returns [18:37:45]Send response to host [18:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166863,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:37:45]free response buf [18:37:45]execute_script done [18:37:45]execute_script returns [18:37:45]free content buf [18:37:45]Sock 9.Close socket [18:37:45]Sock 9.Thread stoped [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:54]accept exits with 8 [18:46:54]New connection [18:46:54]New thread 3067178340 created [18:46:54]Thread 3067034980 joined [18:46:54]Waiting for new connection... [18:46:54] Sock 8.Parse request [18:46:54]Sock 8.Check first char [18:46:54]Sock 8.First char is OK [18:46:54]request: POST /json_proto HTTP/1.0 [18:46:54]Method: POST [18:46:54]URL: /json_proto [18:46:54]Method is POST - this is cgi request [18:46:54]url: /json_proto [18:46:54]query_string will be loaded in cgi processing [18:46:54]execute_cgi json_proto POST (null) [18:46:54]execute_cgi path=json_proto method=POST [18:46:54]POST find Content-Length [18:46:54]Host: 172.17.53.195:8080 [18:46:54]Content-Length: 677 [18:46:54]Content-Type: application/json [18:46:54] [18:46:54]POST finish read [18:46:54]Found Content-Length = 677 [18:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:54]execute_script... [18:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:54]POST & json_proto [18:46:54]process_json_proto [18:46:54]json parsed OK: [18:46:54]protocol is kg_v1.0 [18:46:54]action value=close_receipt [18:46:54]process_action close_receipt [18:46:54]cmd_close_receipt [18:46:54]MH_GetDate [18:46:54]Write to MH i2c: F0 00 00 C4 40 F3 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 C4 40 00 A1 44 19 67 21 48 4A 65 79 [18:46:54]GetLastDocTimeStamp 1729708663 [18:46:54]current date 1729709217 [18:46:54]FM_GetShiftState [18:46:54]SAM_PROTO_GetShiftState [18:46:54]wFMCommunicate request_size=4 [18:46:54]MH_SAM_APDU [18:46:54]CAPDU: 80 13 01 00 [18:46:54]Write to MH i2c: E2 08 00 C5 40 80 13 01 00 00 00 00 00 82 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:54]Read from MH i2c: E2 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 C5 40 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4D [18:46:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:46:54]wFMCommunicate OK [18:46:54]SAM_PROTO_GetShiftState done [18:46:54]FM_GetShiftState done [18:46:54]opened in 1729643772 [18:46:54]opened+sec_in_day 1729730172 [18:46:54]quantity*price = 40006 [18:46:54]sum+1 = 40007 [18:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 279 23.10.2024 18:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166864 ФПД: 24976882201690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184657&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166864&fm=24976882201690&tin=02508201610067®Number=0000000000091764&sum=40000 [18:46:55]StoreToDocumentArchive [18:46:55]shift 537 fd 166864 [18:46:55]save to /storage/0537/doc_00166864 [18:46:55]save last doc name /storage/0537/doc_00166864 to /storage/kkm_last_doc_name [18:46:55]save OK [18:46:55]Clear old archive folders... [18:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:55]tlvbuf is B6DDFBD0 [18:46:55]SAM_PROTO_ClearQueue [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 09 00 00 [18:46:55]Write to MH i2c: E2 08 00 D2 40 80 09 00 00 00 00 00 00 84 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 D2 40 00 90 00 86 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]SAM_PROTO_ClearQueue done [18:46:55]KKMCreateOFDPacket [18:46:55]OFDProtocolAddRootSTLVToBuf [18:46:55]FM_MakeSignedData [18:46:55]FM_MakeSignedData [18:46:55]SAM_PROTO_SignData [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 01 02 [18:46:55]Write to MH i2c: E2 08 00 D3 40 80 0D 01 02 00 00 00 00 8C [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 D3 40 00 90 00 87 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=255 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 44 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8B 02 00 35 04 06 00 16 [18:46:55]Write to MH i2c: E2 02 01 D4 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 44 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8B 02 00 35 04 06 00 16 00 00 FC [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 D4 40 00 90 00 88 [18:46:56]RAPDU: 90 00 [18:46:56]wFMCommunicate OK [18:46:56]wFMCommunicate request_size=10 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 0D 02 02 05 B7 62 30 F4 5A [18:46:56]Write to MH i2c: E2 0D 00 D5 40 80 0D 02 02 05 00 B7 62 30 F4 5A 00 00 30 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 D5 40 00 90 00 89 [18:46:56]RAPDU: 90 00 [18:46:56]wFMCommunicate OK [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 0D 03 02 [18:46:56]Write to MH i2c: E2 08 00 D6 40 80 0D 03 02 00 00 00 00 91 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 0B 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 0B 00 D6 40 00 6F 31 D8 73 5D 99 1C 60 90 00 EF [18:46:56]RAPDU: 6F 31 D8 73 5D 99 1C 60 90 00 [18:46:56]wFMCommunicate OK [18:46:56]SAM_PROTO_SignData done [18:46:56]FM_MakeSignedData done [18:46:56]CreateOFDProtocolMessage [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 11 00 00 [18:46:56]Write to MH i2c: E2 08 00 D7 40 80 11 00 00 00 00 00 00 91 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 17 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 17 00 D7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [18:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:46:56]wFMCommunicate OK [18:46:56]CreateOFDProtocolMessage done [18:46:56]OFDSenderStorePacket 166864 [18:46:56]StoreOFDPacket docnum=166864 [18:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 B4 07 01 86 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 44 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8B 02 00 35 04 06 00 16 B7 62 30 F4 5A 6F 31 D8 73 5D 99 1C 60 [18:46:56]CheckFolder [18:46:56]dirname=/storage/ofd_packets [18:46:56]CheckFolder done [18:46:56]ProducePacketName [18:46:56]name=ofd_packets/00166864 [18:46:56]NVStorageSaveData ofd_packets/00166864 [18:46:56]File name is /storage/ofd_packets/00166864 [18:46:56]Write 301 bytes [18:46:56]NVStorageSaveData done [18:46:56]OFDSenderStorePacket done [18:46:56]KKMCreateOFDPacket done [18:46:56]NVStorageSaveData kkm_last_timestamp [18:46:56]File name is /storage/kkm_last_timestamp [18:46:56]Write 4 bytes [18:46:56]NVStorageSaveData done [18:46:56]ExternCall_PrintAddStr [18:46:56]wPrintStart [18:46:56]Write to MH i2c: 01 00 00 D8 40 18 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 D8 40 00 00 00 00 00 FF 0F 2D [18:46:56]RasterBufferAndPrint [18:46:56]line Счет N : (1)221450 [18:46:56]line ИНН: 02508201610067 [18:46:56]line Контрольно-Кассовый Чек [18:46:56]line ПРОДАЖА [18:46:56]line ТРК (МРК, ГНК) : 33 [18:46:56]line Товар: 2710124130 [18:46:56]line Аи-92-К-5 [18:46:56]line 5.980 * 66.90 [18:46:56]line = 400.06 [18:46:56]line НДС 12% НСП 1% [18:46:56]line > о реализуемом товаре [18:46:56]line ОКРУГЛЕНИЕ: -0.06 [18:46:56]line ИТОГО: 400.00 [18:46:56]line Внесено: 400.00 [18:46:56]line СДАЧА: 0.00 [18:46:56]line НСП 1% : 3.54 [18:46:56]line НДС 12% : 42.48 [18:46:56]line Наличными: 400.00 [18:46:56]line Безнал.: 0.00 [18:46:56]line Место: АЗС № 161 "Партнер Нефть" [18:46:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:46:56]line СНО: Общий режим [18:46:56]line Чек 279 23.10.2024 18:46 [18:46:56]line Смена: 537 ФФД: 1.0 [18:46:56]line ЗНМ: 0300000104 [18:46:56]line РНМ: 0000000000091764 [18:46:56]line Версия ККМ: 001 [18:46:56]line ФМ: 0000000000871759 [18:46:56]line ФД: 166864 [18:46:56]line ФПД: 24976882201690 [18:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184657&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166864&fm=24976882201690&tin=02508201610067®Number=0000000000091764&sum=40000 [18:46:56]written 0, free lines is 4095 [18:46:56]OFD Sender: Processing packet 166864 [packets to send 48, broken 47] [18:46:56]ProducePacketName [18:46:56]name=ofd_packets/00166864 [18:46:56]OFD Sender: To server: pG, [18:46:56]CommunicateWithHost lk.salyk.kg:30040 [18:46:56]ConnectInit lk.salyk.kg [18:46:56]Connected sock=10 [18:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 B4 07 01 86 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 44 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8B 02 00 35 04 06 00 16 B7 62 30 F4 5A 6F 31 D8 73 5D 99 1C 60 [18:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 9E 47 00 84 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 8B 02 00 F4 03 04 00 07 EB 18 67 B6 04 01 00 00 22 DA 85 B5 53 3B 7E F8 [18:46:56]CommunicateWithHost err = 0 [18:46:56]CheckOFDResponse [18:46:56]1017 (14) - 77093643461234 [18:46:56]1041 (16) - 0000000000871759 [18:46:56]1040 (4) - 166864 [18:46:56]1012 (4) - 23.10.2024 12:24 [18:46:56]1206 (1) - 0 [18:46:56]OFD Sender: Remove packet 166864 [18:46:56]ProducePacketName [18:46:56]name=ofd_packets/00166864 [18:46:56]NVStorageDeleteData [18:46:56]Write to MH i2c: 01 00 00 03 41 44 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 03 41 00 00 00 00 00 B0 0C 07 [18:46:56]RasterBufferAndPrint [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]written 0, free lines is 3254 [18:46:56]MH_Cut [18:46:56]Write to MH i2c: D1 01 00 0A 41 01 1D [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 0A 41 00 1C [18:46:56]Write to MH i2c: 01 00 00 0B 41 4C [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:57]OFD Sender: No OFD packet to send [18:46:57]*** Cut start [18:46:57]*** Partial cut [18:46:57]*** CUTSNS_PIN = 1 [18:46:57]*** CUTSNS_PIN = 0 [18:46:57]*** Brake cut motor [18:46:58]Read from MH i2c: 01 [18:46:58]MH_I2C_Read... [18:46:58]*** Stop cut motor [18:46:58]*** Cut end [18:46:58]Read from MH i2c: 01 07 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: 01 07 00 0B 41 00 00 00 00 00 FF 0F 61 [18:46:58]process_action close_receipt done [18:46:58]requested_data is exist [18:46:58]produce_requested_data [18:46:58]requested_item fm.sn is exist - process it [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 11 00 00 [18:46:58]Write to MH i2c: E2 08 00 0C 41 80 11 00 00 00 00 00 00 C7 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 0C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [18:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:46:58]wFMCommunicate OK [18:46:58]requested_item fd.num is exist - process it [18:46:58]SAM_PROTO_GetFieldsCounters [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 13 00 00 [18:46:58]Write to MH i2c: E2 08 00 0D 41 80 13 00 00 00 00 00 00 CA [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 62 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 62 00 0D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_GetFieldsCounters done [18:46:58]requested_item shift.num is exist - process it [18:46:58]requested_item shift.opened is exist - process it [18:46:58]req_shift_opened [18:46:58]FM_GetShiftState [18:46:58]SAM_PROTO_GetShiftState [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 13 01 00 [18:46:58]Write to MH i2c: E2 08 00 0E 41 80 13 01 00 00 00 00 00 CC [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0E 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0E 00 0E 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 97 [18:46:58]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_GetShiftState done [18:46:58]FM_GetShiftState done [18:46:58]req_shift_opened done [18:46:58]requested_item shift.open_date is exist - process it [18:46:58]req_shift_open_date [18:46:58]req_shift_open_date done [18:46:58]produce_requested_data done [18:46:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166864,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:46:58]process_action_free close_receipt [18:46:58]json_value_free [18:46:58]json_value_free done [18:46:58]process_json_proto returns [18:46:58]Send response to host [18:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166864,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:46:58]free response buf [18:46:58]execute_script done [18:46:58]execute_script returns [18:46:58]free content buf [18:46:58]Sock 8.Close socket [18:46:58]Sock 8.Thread stoped [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:41]accept exits with 9 [18:48:41]New connection [18:48:41]New thread 3067034980 created [18:48:41]Thread 3067178340 joined [18:48:41]Waiting for new connection... [18:48:41] Sock 9.Parse request [18:48:41]Sock 9.Check first char [18:48:41]Sock 9.First char is OK [18:48:41]request: POST /json_proto HTTP/1.0 [18:48:41]Method: POST [18:48:41]URL: /json_proto [18:48:41]Method is POST - this is cgi request [18:48:41]url: /json_proto [18:48:41]query_string will be loaded in cgi processing [18:48:41]execute_cgi json_proto POST (null) [18:48:41]execute_cgi path=json_proto method=POST [18:48:41]POST find Content-Length [18:48:41]Host: 172.17.53.195:8080 [18:48:41]Content-Length: 679 [18:48:41]Content-Type: application/json [18:48:41] [18:48:41]POST finish read [18:48:41]Found Content-Length = 679 [18:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.930, "sum" : 3499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3499.00, "payments": [ { "type": 0, "sum" : 3499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:41]execute_script... [18:48: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)221451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.930, "sum" : 3499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3499.00, "payments": [ { "type": 0, "sum" : 3499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:41]POST & json_proto [18:48:41]process_json_proto [18:48:41]json parsed OK: [18:48:41]protocol is kg_v1.0 [18:48:41]action value=close_receipt [18:48:41]process_action close_receipt [18:48:41]cmd_close_receipt [18:48:41]MH_GetDate [18:48:41]Write to MH i2c: F0 00 00 0F 41 3F [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 09 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 09 00 0F 41 00 0B 45 19 67 21 48 4A 65 30 [18:48:41]GetLastDocTimeStamp 1729709217 [18:48:41]current date 1729709323 [18:48:41]FM_GetShiftState [18:48:41]SAM_PROTO_GetShiftState [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 01 00 [18:48:41]Write to MH i2c: E2 08 00 10 41 80 13 01 00 00 00 00 00 CE [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 10 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 99 [18:48:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetShiftState done [18:48:41]FM_GetShiftState done [18:48:41]opened in 1729643772 [18:48:41]opened+sec_in_day 1729730172 [18:48:41]quantity*price = 349986 [18:48:41]sum+1 = 349988 [18:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 3499.00 Внесено: 3500.00 СДАЧА: 1.00 НСП 1% : 30.97 НДС 12% : 371.67 Наличными: 3499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 280 23.10.2024 18:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166865 ФПД: 118166359209949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184843&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166865&fm=118166359209949&tin=02508201610067®Number=0000000000091764&sum=349900 [18:48:42]StoreToDocumentArchive [18:48:42]shift 537 fd 166865 [18:48:42]save to /storage/0537/doc_00166865 [18:48:42]save last doc name /storage/0537/doc_00166865 to /storage/kkm_last_doc_name [18:48:42]save OK [18:48:42]Clear old archive folders... [18:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:48:42]tlvbuf is 02015EF0 [18:48:42]SAM_PROTO_ClearQueue [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 09 00 00 [18:48:42]Write to MH i2c: E2 08 00 1D 41 80 09 00 00 00 00 00 00 D0 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 1D 41 00 90 00 D2 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]SAM_PROTO_ClearQueue done [18:48:42]KKMCreateOFDPacket [18:48:42]OFDProtocolAddRootSTLVToBuf [18:48:42]FM_MakeSignedData [18:48:42]FM_MakeSignedData [18:48:42]SAM_PROTO_SignData [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 01 02 [18:48:42]Write to MH i2c: E2 08 00 1E 41 80 0D 01 02 00 00 00 00 D8 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 1E 41 00 90 00 D3 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=255 [18:48:42]MH_SAM_APDU [18:48: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 6A B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 23 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 0B 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8B 02 00 35 04 06 00 6B 78 BF DD [18:48:42]Write to MH i2c: E2 02 01 1F 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 23 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 0B 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8B 02 00 35 04 06 00 6B 78 BF DD 00 00 CD [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 1F 41 00 90 00 D4 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=7 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 02 02 02 77 DD [18:48:42]Write to MH i2c: E2 0A 00 20 41 80 0D 02 02 02 00 77 DD 00 00 33 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 20 41 00 90 00 D5 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 03 02 [18:48:42]Write to MH i2c: E2 08 00 21 41 80 0D 03 02 00 00 00 00 DD [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 21 41 00 12 25 0C 87 D2 67 83 86 90 00 EA [18:48:42]RAPDU: 12 25 0C 87 D2 67 83 86 90 00 [18:48:42]wFMCommunicate OK [18:48:42]SAM_PROTO_SignData done [18:48:42]FM_MakeSignedData done [18:48:42]CreateOFDProtocolMessage [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 11 00 00 [18:48:42]Write to MH i2c: E2 08 00 22 41 80 11 00 00 00 00 00 00 DD [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 17 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 17 00 22 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [18:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:42]wFMCommunicate OK [18:48:42]CreateOFDProtocolMessage done [18:48:42]OFDSenderStorePacket 166865 [18:48:42]StoreOFDPacket docnum=166865 [18:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 88 90 04 01 9C 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 23 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 0B 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8B 02 00 35 04 06 00 6B 78 BF DD 77 DD 12 25 0C 87 D2 67 83 86 [18:48:42]CheckFolder [18:48:42]dirname=/storage/ofd_packets [18:48:42]CheckFolder done [18:48:42]ProducePacketName [18:48:42]name=ofd_packets/00166865 [18:48:42]NVStorageSaveData ofd_packets/00166865 [18:48:42]File name is /storage/ofd_packets/00166865 [18:48:42]Write 298 bytes [18:48:42]NVStorageSaveData done [18:48:42]OFDSenderStorePacket done [18:48:42]KKMCreateOFDPacket done [18:48:42]NVStorageSaveData kkm_last_timestamp [18:48:42]File name is /storage/kkm_last_timestamp [18:48:42]Write 4 bytes [18:48:42]NVStorageSaveData done [18:48:42]ExternCall_PrintAddStr [18:48:42]wPrintStart [18:48:42]Write to MH i2c: 01 00 00 23 41 64 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 23 41 00 00 00 00 00 FF 0F 79 [18:48:42]RasterBufferAndPrint [18:48:42]line Счет N : (1)221451 [18:48:42]line ИНН: 02508201610067 [18:48:42]line Контрольно-Кассовый Чек [18:48:42]line ПРОДАЖА [18:48:42]line ТРК (МРК, ГНК) : 11 [18:48:42]line Товар: 2710194210 [18:48:42]line ДТ-К-5 [18:48:42]line 45.930 * 76.20 [18:48:42]line = 3499.87 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line ОКРУГЛЕНИЕ: -0.87 [18:48:42]line ИТОГО: 3499.00 [18:48:42]line Внесено: 3500.00 [18:48:42]line СДАЧА: 1.00 [18:48:42]line НСП 1% : 30.97 [18:48:42]line НДС 12% : 371.67 [18:48:42]line Наличными: 3499.00 [18:48:42]line Безнал.: 0.00 [18:48:42]line Место: АЗС № 161 "Партнер Нефть" [18:48:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:48:42]line СНО: Общий режим [18:48:42]line Чек 280 23.10.2024 18:48 [18:48:42]line Смена: 537 ФФД: 1.0 [18:48:42]line ЗНМ: 0300000104 [18:48:42]line РНМ: 0000000000091764 [18:48:42]line Версия ККМ: 001 [18:48:42]line ФМ: 0000000000871759 [18:48:42]line ФД: 166865 [18:48:42]line ФПД: 118166359209949 [18:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184843&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166865&fm=118166359209949&tin=02508201610067®Number=0000000000091764&sum=349900 [18:48:43]OFD Sender: Processing packet 166865 [packets to send 48, broken 47] [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00166865 [18:48:43]OFD Sender: To server: pG, [18:48:43]CommunicateWithHost lk.salyk.kg:30040 [18:48:43]ConnectInit lk.salyk.kg [18:48:43]written 0, free lines is 4095 [18:48:43]Connected sock=10 [18:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 88 90 04 01 9C 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 23 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 0B 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8B 02 00 35 04 06 00 6B 78 BF DD 77 DD 12 25 0C 87 D2 67 83 86 [18:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 6E 47 00 4D AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 8B 02 00 F4 03 04 00 72 EB 18 67 B6 04 01 00 00 F1 39 82 71 B1 91 B3 1F [18:48:43]CommunicateWithHost err = 0 [18:48:43]CheckOFDResponse [18:48:43]1017 (14) - 77093643461234 [18:48:43]1041 (16) - 0000000000871759 [18:48:43]1040 (4) - 166865 [18:48:43]1012 (4) - 23.10.2024 12:26 [18:48:43]1206 (1) - 0 [18:48:43]OFD Sender: Remove packet 166865 [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00166865 [18:48:43]NVStorageDeleteData [18:48:43]Write to MH i2c: 01 00 00 4E 41 8F [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 4E 41 00 00 00 00 00 AB 0C 4D [18:48:43]RasterBufferAndPrint [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]written 0, free lines is 3249 [18:48:43]MH_Cut [18:48:43]Write to MH i2c: D1 01 00 55 41 01 68 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 55 41 00 67 [18:48:43]Write to MH i2c: 01 00 00 56 41 97 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:44]OFD Sender: No OFD packet to send [18:48:44]*** Cut start [18:48:44]*** Partial cut [18:48:44]*** CUTSNS_PIN = 1 [18:48:44]*** CUTSNS_PIN = 0 [18:48:44]*** Brake cut motor [18:48:45]Read from MH i2c: 01 [18:48:45]MH_I2C_Read... [18:48:45]*** Stop cut motor [18:48:45]*** Cut end [18:48:45]Read from MH i2c: 01 07 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: 01 07 00 56 41 00 00 00 00 00 FF 0F AC [18:48:45]process_action close_receipt done [18:48:45]requested_data is exist [18:48:45]produce_requested_data [18:48:45]requested_item fm.sn is exist - process it [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 11 00 00 [18:48:45]Write to MH i2c: E2 08 00 57 41 80 11 00 00 00 00 00 00 12 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 57 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [18:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:45]wFMCommunicate OK [18:48:45]requested_item fd.num is exist - process it [18:48:45]SAM_PROTO_GetFieldsCounters [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 00 00 [18:48:45]Write to MH i2c: E2 08 00 58 41 80 13 00 00 00 00 00 00 15 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 58 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetFieldsCounters done [18:48:45]requested_item shift.num is exist - process it [18:48:45]requested_item shift.opened is exist - process it [18:48:45]req_shift_opened [18:48:45]FM_GetShiftState [18:48:45]SAM_PROTO_GetShiftState [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 01 00 [18:48:45]Write to MH i2c: E2 08 00 59 41 80 13 01 00 00 00 00 00 17 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:45]Read from MH i2c: E2 0E 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 59 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E2 [18:48:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetShiftState done [18:48:45]FM_GetShiftState done [18:48:45]req_shift_opened done [18:48:45]requested_item shift.open_date is exist - process it [18:48:45]req_shift_open_date [18:48:45]req_shift_open_date done [18:48:45]produce_requested_data done [18:48:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166865,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:48:45]process_action_free close_receipt [18:48:45]json_value_free [18:48:45]json_value_free done [18:48:45]process_json_proto returns [18:48:45]Send response to host [18:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166865,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:48:45]free response buf [18:48:45]execute_script done [18:48:45]execute_script returns [18:48:45]free content buf [18:48:45]Sock 9.Close socket [18:48:45]Sock 9.Thread stoped [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:24]accept exits with 8 [18:50:24]New connection [18:50:24]New thread 3067178340 created [18:50:24]Thread 3067034980 joined [18:50:24]Waiting for new connection... [18:50:24] Sock 8.Parse request [18:50:24]Sock 8.Check first char [18:50:24]Sock 8.First char is OK [18:50:24]request: POST /json_proto HTTP/1.0 [18:50:24]Method: POST [18:50:24]URL: /json_proto [18:50:24]Method is POST - this is cgi request [18:50:24]url: /json_proto [18:50:24]query_string will be loaded in cgi processing [18:50:24]execute_cgi json_proto POST (null) [18:50:24]execute_cgi path=json_proto method=POST [18:50:24]POST find Content-Length [18:50:24]Host: 172.17.53.195:8080 [18:50:24]Content-Length: 677 [18:50:24]Content-Type: application/json [18:50:24] [18:50:24]POST finish read [18:50:24]Found Content-Length = 677 [18:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:24]execute_script... [18:50: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)221452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:24]POST & json_proto [18:50:24]process_json_proto [18:50:24]json parsed OK: [18:50:24]protocol is kg_v1.0 [18:50:24]action value=close_receipt [18:50:24]process_action close_receipt [18:50:24]cmd_close_receipt [18:50:24]MH_GetDate [18:50:24]Write to MH i2c: F0 00 00 5A 41 8A [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 5A 41 00 72 45 19 67 21 48 4A 65 E2 [18:50:24]GetLastDocTimeStamp 1729709323 [18:50:24]current date 1729709426 [18:50:24]FM_GetShiftState [18:50:24]SAM_PROTO_GetShiftState [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 13 01 00 [18:50:24]Write to MH i2c: E2 08 00 5B 41 80 13 01 00 00 00 00 00 19 [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 5B 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E4 [18:50:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_GetShiftState done [18:50:24]FM_GetShiftState done [18:50:24]opened in 1729643772 [18:50:24]opened+sec_in_day 1729730172 [18:50:24]quantity*price = 50041 [18:50:24]sum+1 = 50042 [18:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 281 23.10.2024 18:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166866 ФПД: 172896040454349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166866&fm=172896040454349&tin=02508201610067®Number=0000000000091764&sum=50000 [18:50:25]StoreToDocumentArchive [18:50:25]shift 537 fd 166866 [18:50:25]save to /storage/0537/doc_00166866 [18:50:25]save last doc name /storage/0537/doc_00166866 to /storage/kkm_last_doc_name [18:50:25]save OK [18:50:25]Clear old archive folders... [18:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:25]tlvbuf is 01F8D6F0 [18:50:25]SAM_PROTO_ClearQueue [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 09 00 00 [18:50:25]Write to MH i2c: E2 08 00 68 41 80 09 00 00 00 00 00 00 1B [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 68 41 00 90 00 1D [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]SAM_PROTO_ClearQueue done [18:50:25]KKMCreateOFDPacket [18:50:25]OFDProtocolAddRootSTLVToBuf [18:50:25]FM_MakeSignedData [18:50:25]FM_MakeSignedData [18:50:25]SAM_PROTO_SignData [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 01 02 [18:50:25]Write to MH i2c: E2 08 00 69 41 80 0D 01 02 00 00 00 00 23 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 69 41 00 90 00 1E [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=255 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 72 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8B 02 00 35 04 06 00 9D [18:50:25]Write to MH i2c: E2 02 01 6A 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8B 02 00 35 04 06 00 9D 00 00 21 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 6A 41 00 90 00 1F [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=10 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 02 02 05 3F 7F 13 08 CD [18:50:25]Write to MH i2c: E2 0D 00 6B 41 80 0D 02 02 05 00 3F 7F 13 08 CD 00 00 D6 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 6B 41 00 90 00 20 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 03 02 [18:50:25]Write to MH i2c: E2 08 00 6C 41 80 0D 03 02 00 00 00 00 28 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 0B 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 0B 00 6C 41 00 6B 8C 8D FC 0D 5F F7 36 90 00 42 [18:50:26]RAPDU: 6B 8C 8D FC 0D 5F F7 36 90 00 [18:50:26]wFMCommunicate OK [18:50:26]SAM_PROTO_SignData done [18:50:26]FM_MakeSignedData done [18:50:26]CreateOFDProtocolMessage [18:50:26]wFMCommunicate request_size=4 [18:50:26]MH_SAM_APDU [18:50:26]CAPDU: 80 11 00 00 [18:50:26]Write to MH i2c: E2 08 00 6D 41 80 11 00 00 00 00 00 00 28 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 6D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [18:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:50:26]wFMCommunicate OK [18:50:26]CreateOFDProtocolMessage done [18:50:26]OFDSenderStorePacket 166866 [18:50:26]StoreOFDPacket docnum=166866 [18:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 40 07 01 20 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8B 02 00 35 04 06 00 9D 3F 7F 13 08 CD 6B 8C 8D FC 0D 5F F7 36 [18:50:26]CheckFolder [18:50:26]dirname=/storage/ofd_packets [18:50:26]CheckFolder done [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00166866 [18:50:26]NVStorageSaveData ofd_packets/00166866 [18:50:26]File name is /storage/ofd_packets/00166866 [18:50:26]Write 301 bytes [18:50:26]NVStorageSaveData done [18:50:26]OFDSenderStorePacket done [18:50:26]KKMCreateOFDPacket done [18:50:26]NVStorageSaveData kkm_last_timestamp [18:50:26]File name is /storage/kkm_last_timestamp [18:50:26]Write 4 bytes [18:50:26]NVStorageSaveData done [18:50:26]ExternCall_PrintAddStr [18:50:26]wPrintStart [18:50:26]Write to MH i2c: 01 00 00 6E 41 AF [18:50:26]OFD Sender: Processing packet 166866 [packets to send 48, broken 47] [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00166866 [18:50:26]OFD Sender: To server: pG, [18:50:26]CommunicateWithHost lk.salyk.kg:30040 [18:50:26]ConnectInit lk.salyk.kg [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 6E 41 00 00 00 00 00 FF 0F C4 [18:50:26]RasterBufferAndPrint [18:50:26]line Счет N : (1)221452 [18:50:26]line ИНН: 02508201610067 [18:50:26]line Контрольно-Кассовый Чек [18:50:26]line ПРОДАЖА [18:50:26]line ТРК (МРК, ГНК) : 23 [18:50:26]line Товар: 2710124130 [18:50:26]line Аи-92-К-5 [18:50:26]line 7.480 * 66.90 [18:50:26]line = 500.41 [18:50:26]line НДС 12% НСП 1% [18:50:26]line > о реализуемом товаре [18:50:26]line ОКРУГЛЕНИЕ: -0.41 [18:50:26]line ИТОГО: 500.00 [18:50:26]line Внесено: 500.00 [18:50:26]line СДАЧА: 0.00 [18:50:26]line НСП 1% : 4.43 [18:50:26]line НДС 12% : 53.14 [18:50:26]line Наличными: 500.00 [18:50:26]line Безнал.: 0.00 [18:50:26]line Место: АЗС № 161 "Партнер Нефть" [18:50:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:50:26]line СНО: Общий режим [18:50:26]line Чек 281 23.10.2024 18:50 [18:50:26]line Смена: 537 ФФД: 1.0 [18:50:26]line ЗНМ: 0300000104 [18:50:26]line РНМ: 0000000000091764 [18:50:26]line Версия ККМ: 001 [18:50:26]line ФМ: 0000000000871759 [18:50:26]line ФД: 166866 [18:50:26]line ФПД: 172896040454349 [18:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166866&fm=172896040454349&tin=02508201610067®Number=0000000000091764&sum=50000 [18:50:26]Connected sock=10 [18:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 40 07 01 20 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 45 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8B 02 00 35 04 06 00 9D 3F 7F 13 08 CD 6B 8C 8D FC 0D 5F F7 36 [18:50:26]written 0, free lines is 4095 [18:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2D 7D 47 00 DD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 8B 02 00 F4 03 04 00 D9 EB 18 67 B6 04 01 00 00 D8 71 BA EB DB AF 2F D2 [18:50:26]CommunicateWithHost err = 0 [18:50:26]CheckOFDResponse [18:50:26]1017 (14) - 77093643461234 [18:50:26]1041 (16) - 0000000000871759 [18:50:26]1040 (4) - 166866 [18:50:26]1012 (4) - 23.10.2024 12:28 [18:50:26]1206 (1) - 0 [18:50:26]OFD Sender: Remove packet 166866 [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00166866 [18:50:26]NVStorageDeleteData [18:50:26]Write to MH i2c: 01 00 00 99 41 DA [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 99 41 00 00 00 00 00 B5 0C A2 [18:50:26]RasterBufferAndPrint [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]written 0, free lines is 3260 [18:50:26]MH_Cut [18:50:26]Write to MH i2c: D1 01 00 A0 41 01 B3 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 01 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 01 00 A0 41 00 B2 [18:50:26]Write to MH i2c: 01 00 00 A1 41 E2 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:27]OFD Sender: No OFD packet to send [18:50:27]*** Cut start [18:50:27]*** Partial cut [18:50:27]*** CUTSNS_PIN = 1 [18:50:27]*** CUTSNS_PIN = 0 [18:50:28]*** Brake cut motor [18:50:28]Read from MH i2c: 01 [18:50:28]MH_I2C_Read... [18:50:28]*** Stop cut motor [18:50:28]*** Cut end [18:50:28]Read from MH i2c: 01 07 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: 01 07 00 A1 41 00 00 00 00 00 FF 0F F7 [18:50:28]process_action close_receipt done [18:50:28]requested_data is exist [18:50:28]produce_requested_data [18:50:28]requested_item fm.sn is exist - process it [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 11 00 00 [18:50:28]Write to MH i2c: E2 08 00 A2 41 80 11 00 00 00 00 00 00 5D [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 A2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [18:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:50:28]wFMCommunicate OK [18:50:28]requested_item fd.num is exist - process it [18:50:28]SAM_PROTO_GetFieldsCounters [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 00 00 [18:50:28]Write to MH i2c: E2 08 00 A3 41 80 13 00 00 00 00 00 00 60 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 A3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetFieldsCounters done [18:50:28]requested_item shift.num is exist - process it [18:50:28]requested_item shift.opened is exist - process it [18:50:28]req_shift_opened [18:50:28]FM_GetShiftState [18:50:28]SAM_PROTO_GetShiftState [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 01 00 [18:50:28]Write to MH i2c: E2 08 00 A4 41 80 13 01 00 00 00 00 00 62 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 A4 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2D [18:50:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetShiftState done [18:50:28]FM_GetShiftState done [18:50:28]req_shift_opened done [18:50:28]requested_item shift.open_date is exist - process it [18:50:28]req_shift_open_date [18:50:28]req_shift_open_date done [18:50:28]produce_requested_data done [18:50:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166866,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:50:28]process_action_free close_receipt [18:50:28]json_value_free [18:50:28]json_value_free done [18:50:28]process_json_proto returns [18:50:28]Send response to host [18:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166866,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:50:28]free response buf [18:50:28]execute_script done [18:50:28]execute_script returns [18:50:28]free content buf [18:50:28]Sock 8.Close socket [18:50:28]Sock 8.Thread stoped [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:41]accept exits with 9 [18:54:41]New connection [18:54:41]New thread 3067034980 created [18:54:41]Thread 3067178340 joined [18:54:41]Waiting for new connection... [18:54:41] Sock 9.Parse request [18:54:41]Sock 9.Check first char [18:54:41]Sock 9.First char is OK [18:54:41]request: POST /json_proto HTTP/1.0 [18:54:41]Method: POST [18:54:41]URL: /json_proto [18:54:41]Method is POST - this is cgi request [18:54:41]url: /json_proto [18:54:41]query_string will be loaded in cgi processing [18:54:41]execute_cgi json_proto POST (null) [18:54:41]execute_cgi path=json_proto method=POST [18:54:41]POST find Content-Length [18:54:41]Host: 172.17.53.195:8080 [18:54:41]Content-Length: 769 [18:54:41]Content-Type: application/json [18:54:41] [18:54:41]POST finish read [18:54:41]Found Content-Length = 769 [18:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:41]execute_script... [18:54: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)221453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:41]POST & json_proto [18:54:41]process_json_proto [18:54:41]json parsed OK: [18:54:41]protocol is kg_v1.0 [18:54:41]action value=close_receipt [18:54:41]process_action close_receipt [18:54:41]cmd_close_receipt [18:54:41]MH_GetDate [18:54:41]Write to MH i2c: F0 00 00 A5 41 D5 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 09 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 09 00 A5 41 00 74 46 19 67 21 48 4A 65 30 [18:54:41]GetLastDocTimeStamp 1729709426 [18:54:41]current date 1729709684 [18:54:41]FM_GetShiftState [18:54:41]SAM_PROTO_GetShiftState [18:54:41]wFMCommunicate request_size=4 [18:54:41]MH_SAM_APDU [18:54:41]CAPDU: 80 13 01 00 [18:54:41]Write to MH i2c: E2 08 00 A6 41 80 13 01 00 00 00 00 00 64 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:41]Read from MH i2c: E2 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 A6 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2F [18:54:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:54:41]wFMCommunicate OK [18:54:41]SAM_PROTO_GetShiftState done [18:54:41]FM_GetShiftState done [18:54:41]opened in 1729643772 [18:54:41]opened+sec_in_day 1729730172 [18:54:41]quantity*price = 200043 [18:54:41]sum+1 = 200044 [18:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 282 23.10.2024 18:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166867 ФПД: 86923136537016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185444&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166867&fm=86923136537016&tin=02508201610067®Number=0000000000091764&sum=200043 [18:54:42]StoreToDocumentArchive [18:54:42]shift 537 fd 166867 [18:54:42]save to /storage/0537/doc_00166867 [18:54:42]save last doc name /storage/0537/doc_00166867 to /storage/kkm_last_doc_name [18:54:42]save OK [18:54:42]Clear old archive folders... [18:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:42]tlvbuf is 0206CC10 [18:54:42]SAM_PROTO_ClearQueue [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 09 00 00 [18:54:42]Write to MH i2c: E2 08 00 B3 41 80 09 00 00 00 00 00 00 66 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 B3 41 00 90 00 68 [18:54:42]RAPDU: 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_ClearQueue done [18:54:42]KKMCreateOFDPacket [18:54:42]OFDProtocolAddRootSTLVToBuf [18:54:42]FM_MakeSignedData [18:54:42]FM_MakeSignedData [18:54:42]SAM_PROTO_SignData [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 0D 01 02 [18:54:42]Write to MH i2c: E2 08 00 B4 41 80 0D 01 02 00 00 00 00 6E [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 B4 41 00 90 00 69 [18:54:42]RAPDU: 90 00 [18:54:42]wFMCommunicate OK [18:54:42]wFMCommunicate request_size=255 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8B 02 00 35 04 06 00 4F [18:54:42]Write to MH i2c: E2 02 01 B5 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8B 02 00 35 04 06 00 4F 00 00 21 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 B5 41 00 90 00 6A [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=10 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 02 02 05 0E 5E AD 11 B8 [18:54:43]Write to MH i2c: E2 0D 00 B6 41 80 0D 02 02 05 00 0E 5E AD 11 B8 00 00 5D [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 B6 41 00 90 00 6B [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 03 02 [18:54:43]Write to MH i2c: E2 08 00 B7 41 80 0D 03 02 00 00 00 00 73 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 B7 41 00 62 55 15 38 47 B8 A0 74 90 00 8B [18:54:43]RAPDU: 62 55 15 38 47 B8 A0 74 90 00 [18:54:43]wFMCommunicate OK [18:54:43]SAM_PROTO_SignData done [18:54:43]FM_MakeSignedData done [18:54:43]CreateOFDProtocolMessage [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 11 00 00 [18:54:43]Write to MH i2c: E2 08 00 B8 41 80 11 00 00 00 00 00 00 73 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 B8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [18:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:43]wFMCommunicate OK [18:54:43]CreateOFDProtocolMessage done [18:54:43]OFDSenderStorePacket 166867 [18:54:43]StoreOFDPacket docnum=166867 [18:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 D7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8B 02 00 35 04 06 00 4F 0E 5E AD 11 B8 62 55 15 38 47 B8 A0 74 [18:54:43]CheckFolder [18:54:43]dirname=/storage/ofd_packets [18:54:43]CheckFolder done [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00166867 [18:54:43]NVStorageSaveData ofd_packets/00166867 [18:54:43]File name is /storage/ofd_packets/00166867 [18:54:43]Write 301 bytes [18:54:43]NVStorageSaveData done [18:54:43]OFDSenderStorePacket done [18:54:43]KKMCreateOFDPacket done [18:54:43]NVStorageSaveData kkm_last_timestamp [18:54:43]File name is /storage/kkm_last_timestamp [18:54:43]Write 4 bytes [18:54:43]NVStorageSaveData done [18:54:43]ExternCall_PrintAddStr [18:54:43]wPrintStart [18:54:43]Write to MH i2c: 01 00 00 B9 41 FA [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 B9 41 00 00 00 00 00 FF 0F 0F [18:54:43]RasterBufferAndPrint [18:54:43]line Счет N : (1)221453 [18:54:43]line ИНН: 02508201610067 [18:54:43]line Контрольно-Кассовый Чек [18:54:43]line ПРОДАЖА [18:54:43]line ТРК (МРК, ГНК) : 24 [18:54:43]line Товар: 2710124500 [18:54:43]line Аи-95-К-5 [18:54:43]line 26.960 * 74.20 [18:54:43]line = 2000.43 [18:54:43]line НДС 12% НСП 1% [18:54:43]line > о реализуемом товаре [18:54:43]line ИТОГО: 2000.43 [18:54:43]line НСП 1% : 17.70 [18:54:43]line НДС 12% : 212.43 [18:54:43]line Наличными: 0.00 [18:54:43]line Безнал.: 2000.43 [18:54:43]line Место: АЗС № 161 "Партнер Нефть" [18:54:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:54:43]line СНО: Общий режим [18:54:43]line Чек 282 23.10.2024 18:54 [18:54:43]line Смена: 537 ФФД: 1.0 [18:54:43]line ЗНМ: 0300000104 [18:54:43]line РНМ: 0000000000091764 [18:54:43]line Версия ККМ: 001 [18:54:43]line Платежная система: Mbank [18:54:43]line ФМ: 0000000000871759 [18:54:43]line ФД: 166867 [18:54:43]line ФПД: 86923136537016 [18:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185444&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166867&fm=86923136537016&tin=02508201610067®Number=0000000000091764&sum=200043 [18:54:43]written 0, free lines is 4095 [18:54:43]OFD Sender: Processing packet 166867 [packets to send 48, broken 47] [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00166867 [18:54:43]OFD Sender: To server: pG, [18:54:43]CommunicateWithHost lk.salyk.kg:30040 [18:54:43]ConnectInit lk.salyk.kg [18:54:43]Connected sock=10 [18: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 31 37 35 39 0F 01 00 00 42 D7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8B 02 00 35 04 06 00 4F 0E 5E AD 11 B8 62 55 15 38 47 B8 A0 74 [18:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F6 E8 47 00 96 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 8B 02 00 F4 03 04 00 DA EC 18 67 B6 04 01 00 00 CB A5 9B 0E 94 B0 A6 A9 [18:54:43]CommunicateWithHost err = 0 [18:54:43]CheckOFDResponse [18:54:43]1017 (14) - 77093643461234 [18:54:43]1041 (16) - 0000000000871759 [18:54:43]1040 (4) - 166867 [18:54:43]1012 (4) - 23.10.2024 12:32 [18:54:43]1206 (1) - 0 [18:54:43]OFD Sender: Remove packet 166867 [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00166867 [18:54:43]NVStorageDeleteData [18:54:44]Write to MH i2c: 01 00 00 E2 41 23 [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 E2 41 00 00 00 00 00 E4 0C 1A [18:54:44]RasterBufferAndPrint [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]written 0, free lines is 3306 [18:54:44]MH_Cut [18:54:44]Write to MH i2c: D1 01 00 E9 41 01 FC [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 E9 41 00 FB [18:54:44]Write to MH i2c: 01 00 00 EA 41 2B [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]OFD Sender: No OFD packet to send [18:54:44]*** Cut start [18:54:44]*** Partial cut [18:54:44]*** CUTSNS_PIN = 1 [18:54:45]*** CUTSNS_PIN = 0 [18:54:45]*** Brake cut motor [18:54:45]Read from MH i2c: 01 [18:54:45]MH_I2C_Read... [18:54:45]*** Stop cut motor [18:54:45]*** Cut end [18:54:45]Read from MH i2c: 01 07 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: 01 07 00 EA 41 00 00 00 00 00 FF 0F 40 [18:54:45]process_action close_receipt done [18:54:45]requested_data is exist [18:54:45]produce_requested_data [18:54:45]requested_item fm.sn is exist - process it [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 11 00 00 [18:54:45]Write to MH i2c: E2 08 00 EB 41 80 11 00 00 00 00 00 00 A6 [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 17 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 17 00 EB 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [18:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:45]wFMCommunicate OK [18:54:45]requested_item fd.num is exist - process it [18:54:45]SAM_PROTO_GetFieldsCounters [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 13 00 00 [18:54:45]Write to MH i2c: E2 08 00 EC 41 80 13 00 00 00 00 00 00 A9 [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 62 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 62 00 EC 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:45]wFMCommunicate OK [18:54:45]SAM_PROTO_GetFieldsCounters done [18:54:45]requested_item shift.num is exist - process it [18:54:45]requested_item shift.opened is exist - process it [18:54:45]req_shift_opened [18:54:45]FM_GetShiftState [18:54:45]SAM_PROTO_GetShiftState [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 13 01 00 [18:54:45]Write to MH i2c: E2 08 00 ED 41 80 13 01 00 00 00 00 00 AB [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 0E 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 0E 00 ED 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 76 [18:54:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:54:45]wFMCommunicate OK [18:54:45]SAM_PROTO_GetShiftState done [18:54:45]FM_GetShiftState done [18:54:45]req_shift_opened done [18:54:45]requested_item shift.open_date is exist - process it [18:54:45]req_shift_open_date [18:54:45]req_shift_open_date done [18:54:45]produce_requested_data done [18:54:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166867,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:54:45]process_action_free close_receipt [18:54:45]json_value_free [18:54:45]json_value_free done [18:54:45]process_json_proto returns [18:54:45]Send response to host [18:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166867,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:54:45]free response buf [18:54:45]execute_script done [18:54:45]execute_script returns [18:54:45]free content buf [18:54:45]Sock 9.Close socket [18:54:45]Sock 9.Thread stoped [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:03]accept exits with 8 [18:55:03]New connection [18:55:03]New thread 3067178340 created [18:55:03]Thread 3067034980 joined [18:55:03]Waiting for new connection... [18:55:03] Sock 8.Parse request [18:55:03]Sock 8.Check first char [18:55:03]Sock 8.First char is OK [18:55:03]request: POST /json_proto HTTP/1.0 [18:55:03]Method: POST [18:55:03]URL: /json_proto [18:55:03]Method is POST - this is cgi request [18:55:03]url: /json_proto [18:55:03]query_string will be loaded in cgi processing [18:55:03]execute_cgi json_proto POST (null) [18:55:03]execute_cgi path=json_proto method=POST [18:55:03]POST find Content-Length [18:55:03]Host: 172.17.53.195:8080 [18:55:03]Content-Length: 682 [18:55:03]Content-Type: application/json [18:55:03] [18:55:03]POST finish read [18:55:03]Found Content-Length = 682 [18:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:03]execute_script... [18:55: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)221454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:03]POST & json_proto [18:55:03]process_json_proto [18:55:03]json parsed OK: [18:55:03]protocol is kg_v1.0 [18:55:03]action value=close_receipt [18:55:03]process_action close_receipt [18:55:03]cmd_close_receipt [18:55:03]MH_GetDate [18:55:03]Write to MH i2c: F0 00 00 EE 41 1E [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 09 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 09 00 EE 41 00 8A 46 19 67 21 48 4A 65 8F [18:55:03]GetLastDocTimeStamp 1729709684 [18:55:03]current date 1729709706 [18:55:03]FM_GetShiftState [18:55:03]SAM_PROTO_GetShiftState [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 01 00 [18:55:03]Write to MH i2c: E2 08 00 EF 41 80 13 01 00 00 00 00 00 AD [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 EF 41 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 78 [18:55:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetShiftState done [18:55:03]FM_GetShiftState done [18:55:03]opened in 1729643772 [18:55:03]opened+sec_in_day 1729730172 [18:55:03]quantity*price = 100015 [18:55:03]sum+1 = 100017 [18:55: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 283 23.10.2024 18:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166868 ФПД: 12144192782513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166868&fm=12144192782513&tin=02508201610067®Number=0000000000091764&sum=100000 [18:55:05]StoreToDocumentArchive [18:55:05]shift 537 fd 166868 [18:55:05]save to /storage/0537/doc_00166868 [18:55:05]save last doc name /storage/0537/doc_00166868 to /storage/kkm_last_doc_name [18:55:05]save OK [18:55:05]Clear old archive folders... [18:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:05]tlvbuf is B6DDF730 [18:55:05]SAM_PROTO_ClearQueue [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 09 00 00 [18:55:05]Write to MH i2c: E2 08 00 FC 41 80 09 00 00 00 00 00 00 AF [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 FC 41 00 90 00 B1 [18:55:05]RAPDU: 90 00 [18:55:05]wFMCommunicate OK [18:55:05]SAM_PROTO_ClearQueue done [18:55:05]KKMCreateOFDPacket [18:55:05]OFDProtocolAddRootSTLVToBuf [18:55:05]FM_MakeSignedData [18:55:05]FM_MakeSignedData [18:55:05]SAM_PROTO_SignData [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 0D 01 02 [18:55:05]Write to MH i2c: E2 08 00 FD 41 80 0D 01 02 00 00 00 00 B7 [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 FD 41 00 90 00 B2 [18:55:05]RAPDU: 90 00 [18:55:05]wFMCommunicate OK [18:55:05]wFMCommunicate request_size=255 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8A 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8B 02 00 35 04 06 00 0B [18:55:05]Write to MH i2c: E2 02 01 FE 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8A 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8B 02 00 35 04 06 00 0B 00 00 3A [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 FE 41 00 90 00 B3 [18:55:05]RAPDU: 90 00 [18:55:05]wFMCommunicate OK [18:55:05]wFMCommunicate request_size=10 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 0D 02 02 05 0B 8A 4C 00 B1 [18:55:05]Write to MH i2c: E2 0D 00 FF 41 80 0D 02 02 05 00 0B 8A 4C 00 B1 00 00 56 [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 03 00 FF 41 00 90 00 B4 [18:55:05]RAPDU: 90 00 [18:55:05]wFMCommunicate OK [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 0D 03 02 [18:55:05]Write to MH i2c: E2 08 00 00 42 80 0D 03 02 00 00 00 00 BD [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0B 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0B 00 00 42 00 28 C4 B2 A5 E2 DF 5D 3B 90 00 5A [18:55:05]RAPDU: 28 C4 B2 A5 E2 DF 5D 3B 90 00 [18:55:05]wFMCommunicate OK [18:55:05]SAM_PROTO_SignData done [18:55:05]FM_MakeSignedData done [18:55:05]CreateOFDProtocolMessage [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 11 00 00 [18:55:05]Write to MH i2c: E2 08 00 01 42 80 11 00 00 00 00 00 00 BD [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 17 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 17 00 01 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [18:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:55:05]wFMCommunicate OK [18:55:05]CreateOFDProtocolMessage done [18:55:05]OFDSenderStorePacket 166868 [18:55:05]StoreOFDPacket docnum=166868 [18:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 68 07 01 F7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8A 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8B 02 00 35 04 06 00 0B 0B 8A 4C 00 B1 28 C4 B2 A5 E2 DF 5D 3B [18:55:05]CheckFolder [18:55:05]dirname=/storage/ofd_packets [18:55:05]CheckFolder done [18:55:05]ProducePacketName [18:55:05]name=ofd_packets/00166868 [18:55:05]NVStorageSaveData ofd_packets/00166868 [18:55:05]File name is /storage/ofd_packets/00166868 [18:55:05]Write 301 bytes [18:55:05]NVStorageSaveData done [18:55:05]OFDSenderStorePacket done [18:55:05]KKMCreateOFDPacket done [18:55:05]NVStorageSaveData kkm_last_timestamp [18:55:05]File name is /storage/kkm_last_timestamp [18:55:05]Write 4 bytes [18:55:05]NVStorageSaveData done [18:55:05]ExternCall_PrintAddStr [18:55:05]wPrintStart [18:55:05]Write to MH i2c: 01 00 00 02 42 44 [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 07 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 07 00 02 42 00 00 00 00 00 FF 0F 59 [18:55:05]RasterBufferAndPrint [18:55:05]line Счет N : (1)221454 [18:55:05]line ИНН: 02508201610067 [18:55:05]line Контрольно-Кассовый Чек [18:55:05]line ПРОДАЖА [18:55:05]line ТРК (МРК, ГНК) : 43 [18:55:05]line Товар: 2710124130 [18:55:05]line Аи-92-К-5 [18:55:05]line 14.950 * 66.90 [18:55:05]line = 1000.16 [18:55:05]line НДС 12% НСП 1% [18:55:05]line > о реализуемом товаре [18:55:05]line ОКРУГЛЕНИЕ: -0.16 [18:55:05]line ИТОГО: 1000.00 [18:55:05]line Внесено: 1000.00 [18:55:05]line СДАЧА: 0.00 [18:55:05]line НСП 1% : 8.85 [18:55:05]line НДС 12% : 106.21 [18:55:05]line Наличными: 1000.00 [18:55:05]line Безнал.: 0.00 [18:55:05]line Место: АЗС № 161 "Партнер Нефть" [18:55:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:55:05]line СНО: Общий режим [18:55:05]line Чек 283 23.10.2024 18:55 [18:55:05]line Смена: 537 ФФД: 1.0 [18:55:05]line ЗНМ: 0300000104 [18:55:05]line РНМ: 0000000000091764 [18:55:05]line Версия ККМ: 001 [18:55:05]line ФМ: 0000000000871759 [18:55:05]line ФД: 166868 [18:55:05]line ФПД: 12144192782513 [18:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166868&fm=12144192782513&tin=02508201610067®Number=0000000000091764&sum=100000 [18:55:05]OFD Sender: Processing packet 166868 [packets to send 48, broken 47] [18:55:05]ProducePacketName [18:55:05]name=ofd_packets/00166868 [18:55:05]OFD Sender: To server: pG, [18:55:05]CommunicateWithHost lk.salyk.kg:30040 [18:55:05]ConnectInit lk.salyk.kg [18:55:05]written 0, free lines is 4095 [18:55:06]Connected sock=10 [18:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 68 07 01 F7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8A 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8B 02 00 35 04 06 00 0B 0B 8A 4C 00 B1 28 C4 B2 A5 E2 DF 5D 3B [18:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD 73 47 00 48 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 8B 02 00 F4 03 04 00 F1 EC 18 67 B6 04 01 00 00 4C AE 9F F1 9A AA 21 29 [18:55:06]CommunicateWithHost err = 0 [18:55:06]CheckOFDResponse [18:55:06]1017 (14) - 77093643461234 [18:55:06]1041 (16) - 0000000000871759 [18:55:06]1040 (4) - 166868 [18:55:06]1012 (4) - 23.10.2024 12:32 [18:55:06]1206 (1) - 0 [18:55:06]OFD Sender: Remove packet 166868 [18:55:06]ProducePacketName [18:55:06]name=ofd_packets/00166868 [18:55:06]NVStorageDeleteData [18:55:06]Write to MH i2c: 01 00 00 2D 42 6F [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 07 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 07 00 2D 42 00 00 00 00 00 C3 0C 45 [18:55:06]RasterBufferAndPrint [18:55:06]line [18:55:06]line [18:55:06]line [18:55:06]line [18:55:06]line [18:55:06]written 0, free lines is 3273 [18:55:06]MH_Cut [18:55:06]Write to MH i2c: D1 01 00 34 42 01 48 [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: D1 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: D1 01 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: D1 01 00 34 42 00 47 [18:55:06]Write to MH i2c: 01 00 00 35 42 77 [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]OFD Sender: No OFD packet to send [18:55:07]*** Cut start [18:55:07]*** Partial cut [18:55:07]*** CUTSNS_PIN = 1 [18:55:07]*** CUTSNS_PIN = 0 [18:55:07]*** Brake cut motor [18:55:07]Read from MH i2c: 01 [18:55:07]MH_I2C_Read... [18:55:07]*** Stop cut motor [18:55:07]*** Cut end [18:55:07]Read from MH i2c: 01 07 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 35 42 00 00 00 00 00 FF 0F 8C [18:55:07]process_action close_receipt done [18:55:07]requested_data is exist [18:55:07]produce_requested_data [18:55:07]requested_item fm.sn is exist - process it [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 11 00 00 [18:55:07]Write to MH i2c: E2 08 00 36 42 80 11 00 00 00 00 00 00 F2 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 36 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [18:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:55:07]wFMCommunicate OK [18:55:07]requested_item fd.num is exist - process it [18:55:07]SAM_PROTO_GetFieldsCounters [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 13 00 00 [18:55:07]Write to MH i2c: E2 08 00 37 42 80 13 00 00 00 00 00 00 F5 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:08]Read from MH i2c: E2 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 62 00 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 62 00 37 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:08]wFMCommunicate OK [18:55:08]SAM_PROTO_GetFieldsCounters done [18:55:08]requested_item shift.num is exist - process it [18:55:08]requested_item shift.opened is exist - process it [18:55:08]req_shift_opened [18:55:08]FM_GetShiftState [18:55:08]SAM_PROTO_GetShiftState [18:55:08]wFMCommunicate request_size=4 [18:55:08]MH_SAM_APDU [18:55:08]CAPDU: 80 13 01 00 [18:55:08]Write to MH i2c: E2 08 00 38 42 80 13 01 00 00 00 00 00 F7 [18:55:08]Write i2c OK [18:55:08]MH_I2C_Read... [18:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:08]Read from MH i2c: E2 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 0E 00 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 0E 00 38 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C2 [18:55:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:55:08]wFMCommunicate OK [18:55:08]SAM_PROTO_GetShiftState done [18:55:08]FM_GetShiftState done [18:55:08]req_shift_opened done [18:55:08]requested_item shift.open_date is exist - process it [18:55:08]req_shift_open_date [18:55:08]req_shift_open_date done [18:55:08]produce_requested_data done [18:55:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166868,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:55:08]process_action_free close_receipt [18:55:08]json_value_free [18:55:08]json_value_free done [18:55:08]process_json_proto returns [18:55:08]Send response to host [18:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166868,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:55:08]free response buf [18:55:08]execute_script done [18:55:08]execute_script returns [18:55:08]free content buf [18:55:08]Sock 8.Close socket [18:55:08]Sock 8.Thread stoped [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:17]accept exits with 9 [18:56:17]New connection [18:56:17]New thread 3067034980 created [18:56:17]Thread 3067178340 joined [18:56:17]Waiting for new connection... [18:56:17] Sock 9.Parse request [18:56:17]Sock 9.Check first char [18:56:17]Sock 9.First char is OK [18:56:17]request: POST /json_proto HTTP/1.0 [18:56:17]Method: POST [18:56:17]URL: /json_proto [18:56:17]Method is POST - this is cgi request [18:56:17]url: /json_proto [18:56:17]query_string will be loaded in cgi processing [18:56:17]execute_cgi json_proto POST (null) [18:56:17]execute_cgi path=json_proto method=POST [18:56:17]POST find Content-Length [18:56:17]Host: 172.17.53.195:8080 [18:56:17]Content-Length: 677 [18:56:17]Content-Type: application/json [18:56:17] [18:56:17]POST finish read [18:56:17]Found Content-Length = 677 [18:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:17]execute_script... [18:56:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:17]POST & json_proto [18:56:17]process_json_proto [18:56:17]json parsed OK: [18:56:17]protocol is kg_v1.0 [18:56:17]action value=close_receipt [18:56:17]process_action close_receipt [18:56:17]cmd_close_receipt [18:56:17]MH_GetDate [18:56:17]Write to MH i2c: F0 00 00 39 42 6A [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 09 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 09 00 39 42 00 D3 46 19 67 21 48 4A 65 24 [18:56:17]GetLastDocTimeStamp 1729709706 [18:56:17]current date 1729709779 [18:56:17]FM_GetShiftState [18:56:17]SAM_PROTO_GetShiftState [18:56:17]wFMCommunicate request_size=4 [18:56:17]MH_SAM_APDU [18:56:17]CAPDU: 80 13 01 00 [18:56:17]Write to MH i2c: E2 08 00 3A 42 80 13 01 00 00 00 00 00 F9 [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:17]Read from MH i2c: E2 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0E 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0E 00 3A 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C4 [18:56:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:56:17]wFMCommunicate OK [18:56:17]SAM_PROTO_GetShiftState done [18:56:17]FM_GetShiftState done [18:56:17]opened in 1729643772 [18:56:17]opened+sec_in_day 1729730172 [18:56:17]quantity*price = 20003 [18:56:17]sum+1 = 20004 [18:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 284 23.10.2024 18:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166869 ФПД: 54309466675212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185619&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166869&fm=54309466675212&tin=02508201610067®Number=0000000000091764&sum=20000 [18:56:18]StoreToDocumentArchive [18:56:18]shift 537 fd 166869 [18:56:18]save to /storage/0537/doc_00166869 [18:56:18]save last doc name /storage/0537/doc_00166869 to /storage/kkm_last_doc_name [18:56:18]save OK [18:56:18]Clear old archive folders... [18:56:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:18]tlvbuf is 01FB3F50 [18:56:18]SAM_PROTO_ClearQueue [18:56:18]wFMCommunicate request_size=4 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 09 00 00 [18:56:18]Write to MH i2c: E2 08 00 47 42 80 09 00 00 00 00 00 00 FB [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 47 42 00 90 00 FD [18:56:18]RAPDU: 90 00 [18:56:18]wFMCommunicate OK [18:56:18]SAM_PROTO_ClearQueue done [18:56:18]KKMCreateOFDPacket [18:56:18]OFDProtocolAddRootSTLVToBuf [18:56:18]FM_MakeSignedData [18:56:18]FM_MakeSignedData [18:56:18]SAM_PROTO_SignData [18:56:18]wFMCommunicate request_size=4 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 0D 01 02 [18:56:18]Write to MH i2c: E2 08 00 48 42 80 0D 01 02 00 00 00 00 03 [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 48 42 00 90 00 FE [18:56:18]RAPDU: 90 00 [18:56:18]wFMCommunicate OK [18:56:18]wFMCommunicate request_size=255 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 D3 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8B 02 00 35 04 06 00 31 [18:56:18]Write to MH i2c: E2 02 01 49 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 D3 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8B 02 00 35 04 06 00 31 00 00 BF [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 49 42 00 90 00 FF [18:56:18]RAPDU: 90 00 [18:56:18]wFMCommunicate OK [18:56:18]wFMCommunicate request_size=10 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 0D 02 02 05 64 E8 78 18 0C [18:56:18]Write to MH i2c: E2 0D 00 4A 42 80 0D 02 02 05 00 64 E8 78 18 0C 00 00 F8 [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 03 00 4A 42 00 90 00 00 [18:56:18]RAPDU: 90 00 [18:56:18]wFMCommunicate OK [18:56:18]wFMCommunicate request_size=4 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 0D 03 02 [18:56:18]Write to MH i2c: E2 08 00 4B 42 80 0D 03 02 00 00 00 00 08 [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 0B 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 0B 00 4B 42 00 B9 41 41 5C F9 E4 B9 08 90 00 3E [18:56:18]RAPDU: B9 41 41 5C F9 E4 B9 08 90 00 [18:56:18]wFMCommunicate OK [18:56:18]SAM_PROTO_SignData done [18:56:18]FM_MakeSignedData done [18:56:18]CreateOFDProtocolMessage [18:56:18]wFMCommunicate request_size=4 [18:56:18]MH_SAM_APDU [18:56:18]CAPDU: 80 11 00 00 [18:56:18]Write to MH i2c: E2 08 00 4C 42 80 11 00 00 00 00 00 00 08 [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:18]Read from MH i2c: E2 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 17 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: E2 17 00 4C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [18:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:56:18]wFMCommunicate OK [18:56:18]CreateOFDProtocolMessage done [18:56:18]OFDSenderStorePacket 166869 [18:56:18]StoreOFDPacket docnum=166869 [18:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 A8 07 01 67 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 D3 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8B 02 00 35 04 06 00 31 64 E8 78 18 0C B9 41 41 5C F9 E4 B9 08 [18:56:18]CheckFolder [18:56:18]dirname=/storage/ofd_packets [18:56:18]CheckFolder done [18:56:18]ProducePacketName [18:56:18]name=ofd_packets/00166869 [18:56:18]NVStorageSaveData ofd_packets/00166869 [18:56:18]File name is /storage/ofd_packets/00166869 [18:56:18]Write 301 bytes [18:56:18]NVStorageSaveData done [18:56:18]OFDSenderStorePacket done [18:56:18]KKMCreateOFDPacket done [18:56:18]NVStorageSaveData kkm_last_timestamp [18:56:18]File name is /storage/kkm_last_timestamp [18:56:18]Write 4 bytes [18:56:18]NVStorageSaveData done [18:56:18]ExternCall_PrintAddStr [18:56:18]wPrintStart [18:56:18]Write to MH i2c: 01 00 00 4D 42 8F [18:56:18]Write i2c OK [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: 01 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: 01 07 00 [18:56:18]MH_I2C_Read... [18:56:18]Read from MH i2c: 01 07 00 4D 42 00 00 00 00 00 FF 0F A4 [18:56:18]RasterBufferAndPrint [18:56:18]line Счет N : (1)221455 [18:56:18]line ИНН: 02508201610067 [18:56:18]line Контрольно-Кассовый Чек [18:56:18]line ПРОДАЖА [18:56:18]line ТРК (МРК, ГНК) : 13 [18:56:18]line Товар: 2710124130 [18:56:18]line Аи-92-К-5 [18:56:18]line 2.990 * 66.90 [18:56:18]line = 200.03 [18:56:18]line НДС 12% НСП 1% [18:56:18]line > о реализуемом товаре [18:56:18]line ОКРУГЛЕНИЕ: -0.03 [18:56:18]line ИТОГО: 200.00 [18:56:18]line Внесено: 200.00 [18:56:18]line СДАЧА: 0.00 [18:56:18]line НСП 1% : 1.77 [18:56:18]line НДС 12% : 21.24 [18:56:18]line Наличными: 200.00 [18:56:18]line Безнал.: 0.00 [18:56:18]line Место: АЗС № 161 "Партнер Нефть" [18:56:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:56:18]line СНО: Общий режим [18:56:18]line Чек 284 23.10.2024 18:56 [18:56:18]line Смена: 537 ФФД: 1.0 [18:56:18]line ЗНМ: 0300000104 [18:56:18]line РНМ: 0000000000091764 [18:56:18]line Версия ККМ: 001 [18:56:18]line ФМ: 0000000000871759 [18:56:18]line ФД: 166869 [18:56:18]line ФПД: 54309466675212 [18:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185619&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166869&fm=54309466675212&tin=02508201610067®Number=0000000000091764&sum=20000 [18:56:19]OFD Sender: Processing packet 166869 [packets to send 48, broken 47] [18:56:19]ProducePacketName [18:56:19]name=ofd_packets/00166869 [18:56:19]OFD Sender: To server: pG, [18:56:19]CommunicateWithHost lk.salyk.kg:30040 [18:56:19]ConnectInit lk.salyk.kg [18:56:19]written 0, free lines is 4095 [18:56:19]Connected sock=10 [18:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 A8 07 01 67 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 D3 46 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8B 02 00 35 04 06 00 31 64 E8 78 18 0C B9 41 41 5C F9 E4 B9 08 [18:56:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CA AF 47 00 17 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 8B 02 00 F4 03 04 00 3A ED 18 67 B6 04 01 00 00 BA C5 0E D2 0D 8F CB 13 [18:56:19]CommunicateWithHost err = 0 [18:56:19]CheckOFDResponse [18:56:19]1017 (14) - 77093643461234 [18:56:19]1041 (16) - 0000000000871759 [18:56:19]1040 (4) - 166869 [18:56:19]1012 (4) - 23.10.2024 12:34 [18:56:19]1206 (1) - 0 [18:56:19]OFD Sender: Remove packet 166869 [18:56:19]ProducePacketName [18:56:19]name=ofd_packets/00166869 [18:56:19]NVStorageDeleteData [18:56:19]Write to MH i2c: 01 00 00 78 42 BA [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 07 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 07 00 78 42 00 00 00 00 00 B8 0C 85 [18:56:19]RasterBufferAndPrint [18:56:19]line [18:56:19]line [18:56:19]line [18:56:19]line [18:56:19]line [18:56:19]written 0, free lines is 3263 [18:56:19]MH_Cut [18:56:19]Write to MH i2c: D1 01 00 7F 42 01 93 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: D1 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: D1 01 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: D1 01 00 7F 42 00 92 [18:56:19]Write to MH i2c: 01 00 00 80 42 C2 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:20]OFD Sender: No OFD packet to send [18:56:20]*** Cut start [18:56:20]*** Partial cut [18:56:20]*** CUTSNS_PIN = 1 [18:56:20]*** CUTSNS_PIN = 0 [18:56:20]*** Brake cut motor [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]*** Stop cut motor [18:56:21]*** Cut end [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 80 42 00 00 00 00 00 FF 0F D7 [18:56:21]process_action close_receipt done [18:56:21]requested_data is exist [18:56:21]produce_requested_data [18:56:21]requested_item fm.sn is exist - process it [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 11 00 00 [18:56:21]Write to MH i2c: E2 08 00 81 42 80 11 00 00 00 00 00 00 3D [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 81 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [18:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:56:21]wFMCommunicate OK [18:56:21]requested_item fd.num is exist - process it [18:56:21]SAM_PROTO_GetFieldsCounters [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 13 00 00 [18:56:21]Write to MH i2c: E2 08 00 82 42 80 13 00 00 00 00 00 00 40 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 62 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 62 00 82 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [18:56:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:21]wFMCommunicate OK [18:56:21]SAM_PROTO_GetFieldsCounters done [18:56:21]requested_item shift.num is exist - process it [18:56:21]requested_item shift.opened is exist - process it [18:56:21]req_shift_opened [18:56:21]FM_GetShiftState [18:56:21]SAM_PROTO_GetShiftState [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 13 01 00 [18:56:21]Write to MH i2c: E2 08 00 83 42 80 13 01 00 00 00 00 00 42 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 0E 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 0E 00 83 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0D [18:56:21]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [18:56:21]wFMCommunicate OK [18:56:21]SAM_PROTO_GetShiftState done [18:56:21]FM_GetShiftState done [18:56:21]req_shift_opened done [18:56:21]requested_item shift.open_date is exist - process it [18:56:21]req_shift_open_date [18:56:21]req_shift_open_date done [18:56:21]produce_requested_data done [18:56:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166869,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [18:56:21]process_action_free close_receipt [18:56:21]json_value_free [18:56:21]json_value_free done [18:56:21]process_json_proto returns [18:56:21]Send response to host [18:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166869,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [18:56:21]free response buf [18:56:21]execute_script done [18:56:21]execute_script returns [18:56:21]free content buf [18:56:21]Sock 9.Close socket [18:56:21]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:24]accept exits with 8 [19:08:24]New connection [19:08:24]New thread 3067178340 created [19:08:24]Thread 3067034980 joined [19:08:24]Waiting for new connection... [19:08:24] Sock 8.Parse request [19:08:24]Sock 8.Check first char [19:08:24]Sock 8.First char is OK [19:08:24]request: POST /json_proto HTTP/1.0 [19:08:24]Method: POST [19:08:24]URL: /json_proto [19:08:24]Method is POST - this is cgi request [19:08:24]url: /json_proto [19:08:24]query_string will be loaded in cgi processing [19:08:24]execute_cgi json_proto POST (null) [19:08:24]execute_cgi path=json_proto method=POST [19:08:24]POST find Content-Length [19:08:24]Host: 172.17.53.195:8080 [19:08:24]Content-Length: 677 [19:08:24]Content-Type: application/json [19:08:24] [19:08:24]POST finish read [19:08:24]Found Content-Length = 677 [19:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.580, "sum" : 239.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 239.00, "payments": [ { "type": 0, "sum" : 239.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:24]execute_script... [19:08: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)221456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.580, "sum" : 239.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 239.00, "payments": [ { "type": 0, "sum" : 239.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:24]POST & json_proto [19:08:24]process_json_proto [19:08:24]json parsed OK: [19:08:24]protocol is kg_v1.0 [19:08:24]action value=close_receipt [19:08:24]process_action close_receipt [19:08:24]cmd_close_receipt [19:08:24]MH_GetDate [19:08:24]Write to MH i2c: F0 00 00 84 42 B5 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 09 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 09 00 84 42 00 AB 49 19 67 21 48 4A 65 4A [19:08:24]GetLastDocTimeStamp 1729709779 [19:08:24]current date 1729710507 [19:08:24]FM_GetShiftState [19:08:24]SAM_PROTO_GetShiftState [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 13 01 00 [19:08:24]Write to MH i2c: E2 08 00 85 42 80 13 01 00 00 00 00 00 44 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 0E 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 0E 00 85 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0F [19:08:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:08:24]wFMCommunicate OK [19:08:24]SAM_PROTO_GetShiftState done [19:08:24]FM_GetShiftState done [19:08:24]opened in 1729643772 [19:08:24]opened+sec_in_day 1729730172 [19:08:24]quantity*price = 23950 [19:08:24]sum+1 = 23951 [19:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 239.00 Внесено: 240.00 СДАЧА: 1.00 НСП 1% : 2.12 НДС 12% : 25.43 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 285 23.10.2024 19:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166870 ФПД: 238352966424769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166870&fm=238352966424769&tin=02508201610067®Number=0000000000091764&sum=23900 [19:08:25]StoreToDocumentArchive [19:08:25]shift 537 fd 166870 [19:08:25]save to /storage/0537/doc_00166870 [19:08:25]save last doc name /storage/0537/doc_00166870 to /storage/kkm_last_doc_name [19:08:25]save OK [19:08:25]Clear old archive folders... [19:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:25]tlvbuf is 0201BB80 [19:08:25]SAM_PROTO_ClearQueue [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 09 00 00 [19:08:25]Write to MH i2c: E2 08 00 92 42 80 09 00 00 00 00 00 00 46 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 92 42 00 90 00 48 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_ClearQueue done [19:08:25]KKMCreateOFDPacket [19:08:25]OFDProtocolAddRootSTLVToBuf [19:08:25]FM_MakeSignedData [19:08:25]FM_MakeSignedData [19:08:25]SAM_PROTO_SignData [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 01 02 [19:08:25]Write to MH i2c: E2 08 00 93 42 80 0D 01 02 00 00 00 00 4E [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 93 42 00 90 00 49 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=255 [19:08:25]MH_SAM_APDU [19:08: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 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 49 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8B 02 00 35 04 06 00 D8 [19:08:25]Write to MH i2c: E2 02 01 94 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 49 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8B 02 00 35 04 06 00 D8 00 00 B5 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 94 42 00 90 00 4A [19:08:26]RAPDU: 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=10 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 0D 02 02 05 C7 DF E5 18 C1 [19:08:26]Write to MH i2c: E2 0D 00 95 42 80 0D 02 02 05 00 C7 DF E5 18 C1 00 00 BF [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 95 42 00 90 00 4B [19:08:26]RAPDU: 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 0D 03 02 [19:08:26]Write to MH i2c: E2 08 00 96 42 80 0D 03 02 00 00 00 00 53 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0B 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0B 00 96 42 00 F9 98 E1 F4 58 12 67 4E 90 00 D9 [19:08:26]RAPDU: F9 98 E1 F4 58 12 67 4E 90 00 [19:08:26]wFMCommunicate OK [19:08:26]SAM_PROTO_SignData done [19:08:26]FM_MakeSignedData done [19:08:26]CreateOFDProtocolMessage [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 11 00 00 [19:08:26]Write to MH i2c: E2 08 00 97 42 80 11 00 00 00 00 00 00 53 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 97 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [19:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:08:26]wFMCommunicate OK [19:08:26]CreateOFDProtocolMessage done [19:08:26]OFDSenderStorePacket 166870 [19:08:26]StoreOFDPacket docnum=166870 [19:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 82 07 01 30 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 49 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8B 02 00 35 04 06 00 D8 C7 DF E5 18 C1 F9 98 E1 F4 58 12 67 4E [19:08:26]CheckFolder [19:08:26]dirname=/storage/ofd_packets [19:08:26]CheckFolder done [19:08:26]ProducePacketName [19:08:26]name=ofd_packets/00166870 [19:08:26]NVStorageSaveData ofd_packets/00166870 [19:08:26]File name is /storage/ofd_packets/00166870 [19:08:26]Write 301 bytes [19:08:26]NVStorageSaveData done [19:08:26]OFDSenderStorePacket done [19:08:26]KKMCreateOFDPacket done [19:08:26]NVStorageSaveData kkm_last_timestamp [19:08:26]File name is /storage/kkm_last_timestamp [19:08:26]Write 4 bytes [19:08:26]NVStorageSaveData done [19:08:26]ExternCall_PrintAddStr [19:08:26]wPrintStart [19:08:26]Write to MH i2c: 01 00 00 98 42 DA [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 98 42 00 00 00 00 00 FF 0F EF [19:08:26]RasterBufferAndPrint [19:08:26]line Счет N : (1)221456 [19:08:26]line ИНН: 02508201610067 [19:08:26]line Контрольно-Кассовый Чек [19:08:26]line ПРОДАЖА [19:08:26]line ТРК (МРК, ГНК) : 13 [19:08:26]line Товар: 2710124130 [19:08:26]line Аи-92-К-5 [19:08:26]line 3.580 * 66.90 [19:08:26]line = 239.50 [19:08:26]line НДС 12% НСП 1% [19:08:26]line > о реализуемом товаре [19:08:26]line ОКРУГЛЕНИЕ: -0.50 [19:08:26]line ИТОГО: 239.00 [19:08:26]line Внесено: 240.00 [19:08:26]line СДАЧА: 1.00 [19:08:26]line НСП 1% : 2.12 [19:08:26]line НДС 12% : 25.43 [19:08:26]line Наличными: 239.00 [19:08:26]line Безнал.: 0.00 [19:08:26]line Место: АЗС № 161 "Партнер Нефть" [19:08:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:08:26]line СНО: Общий режим [19:08:26]line Чек 285 23.10.2024 19:08 [19:08:26]line Смена: 537 ФФД: 1.0 [19:08:26]line ЗНМ: 0300000104 [19:08:26]line РНМ: 0000000000091764 [19:08:26]line Версия ККМ: 001 [19:08:26]line ФМ: 0000000000871759 [19:08:26]line ФД: 166870 [19:08:26]line ФПД: 238352966424769 [19:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166870&fm=238352966424769&tin=02508201610067®Number=0000000000091764&sum=23900 [19:08:26]OFD Sender: Processing packet 166870 [packets to send 48, broken 47] [19:08:26]ProducePacketName [19:08:26]name=ofd_packets/00166870 [19:08:26]OFD Sender: To server: pG, [19:08:26]CommunicateWithHost lk.salyk.kg:30040 [19:08:26]ConnectInit lk.salyk.kg [19:08:26]written 0, free lines is 4095 [19:08:26]Connected sock=10 [19:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 82 07 01 30 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 49 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8B 02 00 35 04 06 00 D8 C7 DF E5 18 C1 F9 98 E1 F4 58 12 67 4E [19:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 3A 47 00 1A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 8B 02 00 F4 03 04 00 11 F0 18 67 B6 04 01 00 00 46 8A 33 5E CF 92 B7 E1 [19:08:26]CommunicateWithHost err = 0 [19:08:26]CheckOFDResponse [19:08:26]1017 (14) - 77093643461234 [19:08:26]1041 (16) - 0000000000871759 [19:08:26]1040 (4) - 166870 [19:08:26]1012 (4) - 23.10.2024 12:46 [19:08:26]1206 (1) - 0 [19:08:26]OFD Sender: Remove packet 166870 [19:08:26]ProducePacketName [19:08:26]name=ofd_packets/00166870 [19:08:26]NVStorageDeleteData [19:08:27]Write to MH i2c: 01 00 00 C3 42 05 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 07 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 07 00 C3 42 00 00 00 00 00 AD 0C C5 [19:08:27]RasterBufferAndPrint [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]written 0, free lines is 3250 [19:08:27]MH_Cut [19:08:27]Write to MH i2c: D1 01 00 CA 42 01 DE [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 01 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 01 00 CA 42 00 DD [19:08:27]Write to MH i2c: 01 00 00 CB 42 0D [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]OFD Sender: No OFD packet to send [19:08:27]*** Cut start [19:08:27]*** Partial cut [19:08:27]*** CUTSNS_PIN = 1 [19:08:28]*** CUTSNS_PIN = 0 [19:08:28]*** Brake cut motor [19:08:28]Read from MH i2c: 01 [19:08:28]MH_I2C_Read... [19:08:28]*** Stop cut motor [19:08:28]*** Cut end [19:08:28]Read from MH i2c: 01 07 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 CB 42 00 00 00 00 00 FF 0F 22 [19:08:28]process_action close_receipt done [19:08:28]requested_data is exist [19:08:28]produce_requested_data [19:08:28]requested_item fm.sn is exist - process it [19:08:28]wFMCommunicate request_size=4 [19:08:28]MH_SAM_APDU [19:08:28]CAPDU: 80 11 00 00 [19:08:28]Write to MH i2c: E2 08 00 CC 42 80 11 00 00 00 00 00 00 88 [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 17 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 17 00 CC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [19:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:08:28]wFMCommunicate OK [19:08:28]requested_item fd.num is exist - process it [19:08:28]SAM_PROTO_GetFieldsCounters [19:08:28]wFMCommunicate request_size=4 [19:08:28]MH_SAM_APDU [19:08:28]CAPDU: 80 13 00 00 [19:08:28]Write to MH i2c: E2 08 00 CD 42 80 13 00 00 00 00 00 00 8B [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 62 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 62 00 CD 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [19:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:28]wFMCommunicate OK [19:08:28]SAM_PROTO_GetFieldsCounters done [19:08:28]requested_item shift.num is exist - process it [19:08:28]requested_item shift.opened is exist - process it [19:08:28]req_shift_opened [19:08:28]FM_GetShiftState [19:08:28]SAM_PROTO_GetShiftState [19:08:28]wFMCommunicate request_size=4 [19:08:28]MH_SAM_APDU [19:08:28]CAPDU: 80 13 01 00 [19:08:28]Write to MH i2c: E2 08 00 CE 42 80 13 01 00 00 00 00 00 8D [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 0E 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 0E 00 CE 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 58 [19:08:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:08:28]wFMCommunicate OK [19:08:28]SAM_PROTO_GetShiftState done [19:08:28]FM_GetShiftState done [19:08:28]req_shift_opened done [19:08:28]requested_item shift.open_date is exist - process it [19:08:28]req_shift_open_date [19:08:28]req_shift_open_date done [19:08:28]produce_requested_data done [19:08:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166870,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:08:28]process_action_free close_receipt [19:08:28]json_value_free [19:08:28]json_value_free done [19:08:28]process_json_proto returns [19:08:28]Send response to host [19:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166870,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:08:28]free response buf [19:08:28]execute_script done [19:08:28]execute_script returns [19:08:28]free content buf [19:08:28]Sock 8.Close socket [19:08:28]Sock 8.Thread stoped [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:41]accept exits with 9 [19:11:41]New connection [19:11:41]New thread 3067034980 created [19:11:41]Thread 3067178340 joined [19:11:41]Waiting for new connection... [19:11:41] Sock 9.Parse request [19:11:41]Sock 9.Check first char [19:11:41]Sock 9.First char is OK [19:11:41]request: POST /json_proto HTTP/1.0 [19:11:41]Method: POST [19:11:41]URL: /json_proto [19:11:41]Method is POST - this is cgi request [19:11:41]url: /json_proto [19:11:41]query_string will be loaded in cgi processing [19:11:41]execute_cgi json_proto POST (null) [19:11:41]execute_cgi path=json_proto method=POST [19:11:41]POST find Content-Length [19:11:41]Host: 172.17.53.195:8080 [19:11:41]Content-Length: 677 [19:11:41]Content-Type: application/json [19:11:41] [19:11:41]POST finish read [19:11:41]Found Content-Length = 677 [19:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:41]execute_script... [19:11: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)221457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:41]POST & json_proto [19:11:41]process_json_proto [19:11:41]json parsed OK: [19:11:41]protocol is kg_v1.0 [19:11:41]action value=close_receipt [19:11:41]process_action close_receipt [19:11:41]cmd_close_receipt [19:11:41]MH_GetDate [19:11:41]Write to MH i2c: F0 00 00 CF 42 00 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: F0 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: F0 09 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: F0 09 00 CF 42 00 70 4A 19 67 21 48 4A 65 5B [19:11:41]GetLastDocTimeStamp 1729710507 [19:11:41]current date 1729710704 [19:11:41]FM_GetShiftState [19:11:41]SAM_PROTO_GetShiftState [19:11:41]wFMCommunicate request_size=4 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 13 01 00 [19:11:41]Write to MH i2c: E2 08 00 D0 42 80 13 01 00 00 00 00 00 8F [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 D0 42 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5A [19:11:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:11:42]wFMCommunicate OK [19:11:42]SAM_PROTO_GetShiftState done [19:11:42]FM_GetShiftState done [19:11:42]opened in 1729643772 [19:11:42]opened+sec_in_day 1729730172 [19:11:42]quantity*price = 50041 [19:11:42]sum+1 = 50042 [19:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 286 23.10.2024 19:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166871 ФПД: 121383441667508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191144&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166871&fm=121383441667508&tin=02508201610067®Number=0000000000091764&sum=50000 [19:11:43]StoreToDocumentArchive [19:11:43]shift 537 fd 166871 [19:11:43]save to /storage/0537/doc_00166871 [19:11:43]save last doc name /storage/0537/doc_00166871 to /storage/kkm_last_doc_name [19:11:43]save OK [19:11:43]Clear old archive folders... [19:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:43]tlvbuf is 02024130 [19:11:43]SAM_PROTO_ClearQueue [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 09 00 00 [19:11:43]Write to MH i2c: E2 08 00 DD 42 80 09 00 00 00 00 00 00 91 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_ClearQueue done [19:11:43]KKMCreateOFDPacket [19:11:43]OFDProtocolAddRootSTLVToBuf [19:11:43]FM_MakeSignedData [19:11:43]FM_MakeSignedData [19:11:43]SAM_PROTO_SignData [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 01 02 [19:11:43]Write to MH i2c: E2 08 00 DE 42 80 0D 01 02 00 00 00 00 99 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 DE 42 00 90 00 94 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=255 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 70 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8B 02 00 35 04 06 00 6E [19:11:43]Write to MH i2c: E2 02 01 DF 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 70 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8B 02 00 35 04 06 00 6E 00 00 75 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 DF 42 00 90 00 95 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=10 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 02 02 05 65 C8 EC 15 B4 [19:11:43]Write to MH i2c: E2 0D 00 E0 42 80 0D 02 02 05 00 65 C8 EC 15 B4 00 00 88 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 E0 42 00 90 00 96 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 03 02 [19:11:43]Write to MH i2c: E2 08 00 E1 42 80 0D 03 02 00 00 00 00 9E [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0B 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0B 00 E1 42 00 FA 0E B9 22 58 24 FA 23 90 00 1B [19:11:43]RAPDU: FA 0E B9 22 58 24 FA 23 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_SignData done [19:11:43]FM_MakeSignedData done [19:11:43]CreateOFDProtocolMessage [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 11 00 00 [19:11:43]Write to MH i2c: E2 08 00 E2 42 80 11 00 00 00 00 00 00 9E [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 E2 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [19:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:11:43]wFMCommunicate OK [19:11:43]CreateOFDProtocolMessage done [19:11:43]OFDSenderStorePacket 166871 [19:11:43]StoreOFDPacket docnum=166871 [19:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 11 07 01 C9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 70 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8B 02 00 35 04 06 00 6E 65 C8 EC 15 B4 FA 0E B9 22 58 24 FA 23 [19:11:43]CheckFolder [19:11:43]dirname=/storage/ofd_packets [19:11:43]CheckFolder done [19:11:43]ProducePacketName [19:11:43]name=ofd_packets/00166871 [19:11:43]NVStorageSaveData ofd_packets/00166871 [19:11:43]File name is /storage/ofd_packets/00166871 [19:11:43]Write 301 bytes [19:11:43]NVStorageSaveData done [19:11:43]OFDSenderStorePacket done [19:11:43]KKMCreateOFDPacket done [19:11:43]NVStorageSaveData kkm_last_timestamp [19:11:43]File name is /storage/kkm_last_timestamp [19:11:43]Write 4 bytes [19:11:43]NVStorageSaveData done [19:11:43]ExternCall_PrintAddStr [19:11:43]wPrintStart [19:11:43]Write to MH i2c: 01 00 00 E3 42 25 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 07 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 07 00 E3 42 00 00 00 00 00 FF 0F 3A [19:11:43]RasterBufferAndPrint [19:11:43]line Счет N : (1)221457 [19:11:43]line ИНН: 02508201610067 [19:11:43]line Контрольно-Кассовый Чек [19:11:43]line ПРОДАЖА [19:11:43]line ТРК (МРК, ГНК) : 23 [19:11:43]line Товар: 2710124130 [19:11:43]line Аи-92-К-5 [19:11:43]line 7.480 * 66.90 [19:11:43]line = 500.41 [19:11:43]line НДС 12% НСП 1% [19:11:43]line > о реализуемом товаре [19:11:43]line ОКРУГЛЕНИЕ: -0.41 [19:11:43]line ИТОГО: 500.00 [19:11:43]line Внесено: 500.00 [19:11:43]line СДАЧА: 0.00 [19:11:43]line НСП 1% : 4.43 [19:11:43]line НДС 12% : 53.14 [19:11:43]line Наличными: 500.00 [19:11:43]line Безнал.: 0.00 [19:11:43]line Место: АЗС № 161 "Партнер Нефть" [19:11:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:11:43]line СНО: Общий режим [19:11:43]line Чек 286 23.10.2024 19:11 [19:11:43]line Смена: 537 ФФД: 1.0 [19:11:43]line ЗНМ: 0300000104 [19:11:43]line РНМ: 0000000000091764 [19:11:43]line Версия ККМ: 001 [19:11:43]line ФМ: 0000000000871759 [19:11:43]line ФД: 166871 [19:11:43]line ФПД: 121383441667508 [19:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191144&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166871&fm=121383441667508&tin=02508201610067®Number=0000000000091764&sum=50000 [19:11:44]OFD Sender: Processing packet 166871 [packets to send 48, broken 47] [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00166871 [19:11:44]OFD Sender: To server: pG, [19:11:44]CommunicateWithHost lk.salyk.kg:30040 [19:11:44]ConnectInit lk.salyk.kg [19:11:44]written 0, free lines is 4095 [19:11:44]Connected sock=10 [19:11:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 11 07 01 C9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 70 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8B 02 00 35 04 06 00 6E 65 C8 EC 15 B4 FA 0E B9 22 58 24 FA 23 [19:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 B7 47 00 51 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 8B 02 00 F4 03 04 00 D7 F0 18 67 B6 04 01 00 00 BA 5C 7C F2 38 9E 56 F0 [19:11:44]CommunicateWithHost err = 0 [19:11:44]CheckOFDResponse [19:11:44]1017 (14) - 77093643461234 [19:11:44]1041 (16) - 0000000000871759 [19:11:44]1040 (4) - 166871 [19:11:44]1012 (4) - 23.10.2024 12:49 [19:11:44]1206 (1) - 0 [19:11:44]OFD Sender: Remove packet 166871 [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00166871 [19:11:44]NVStorageDeleteData [19:11:44]Write to MH i2c: 01 00 00 0E 43 51 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 0E 43 00 00 00 00 00 B0 0C 14 [19:11:44]RasterBufferAndPrint [19:11:44]line [19:11:44]line [19:11:44]line [19:11:44]line [19:11:44]line [19:11:44]written 0, free lines is 3256 [19:11:44]MH_Cut [19:11:44]Write to MH i2c: D1 01 00 15 43 01 2A [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: D1 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: D1 01 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: D1 01 00 15 43 00 29 [19:11:44]Write to MH i2c: 01 00 00 16 43 59 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]OFD Sender: No OFD packet to send [19:11:45]*** Cut start [19:11:45]*** Partial cut [19:11:45]*** CUTSNS_PIN = 1 [19:11:45]*** CUTSNS_PIN = 0 [19:11:45]*** Brake cut motor [19:11:45]Read from MH i2c: 01 [19:11:45]MH_I2C_Read... [19:11:45]*** Stop cut motor [19:11:45]*** Cut end [19:11:45]Read from MH i2c: 01 07 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 16 43 00 00 00 00 00 FF 0F 6E [19:11:45]process_action close_receipt done [19:11:45]requested_data is exist [19:11:45]produce_requested_data [19:11:45]requested_item fm.sn is exist - process it [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 11 00 00 [19:11:45]Write to MH i2c: E2 08 00 17 43 80 11 00 00 00 00 00 00 D4 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 17 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [19:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:11:46]wFMCommunicate OK [19:11:46]requested_item fd.num is exist - process it [19:11:46]SAM_PROTO_GetFieldsCounters [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 00 00 [19:11:46]Write to MH i2c: E2 08 00 18 43 80 13 00 00 00 00 00 00 D7 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 18 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [19:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetFieldsCounters done [19:11:46]requested_item shift.num is exist - process it [19:11:46]requested_item shift.opened is exist - process it [19:11:46]req_shift_opened [19:11:46]FM_GetShiftState [19:11:46]SAM_PROTO_GetShiftState [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 01 00 [19:11:46]Write to MH i2c: E2 08 00 19 43 80 13 01 00 00 00 00 00 D9 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0E 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0E 00 19 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A4 [19:11:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetShiftState done [19:11:46]FM_GetShiftState done [19:11:46]req_shift_opened done [19:11:46]requested_item shift.open_date is exist - process it [19:11:46]req_shift_open_date [19:11:46]req_shift_open_date done [19:11:46]produce_requested_data done [19:11:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166871,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:11:46]process_action_free close_receipt [19:11:46]json_value_free [19:11:46]json_value_free done [19:11:46]process_json_proto returns [19:11:46]Send response to host [19:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166871,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:11:46]free response buf [19:11:46]execute_script done [19:11:46]execute_script returns [19:11:46]free content buf [19:11:46]Sock 9.Close socket [19:11:46]Sock 9.Thread stoped [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:48]accept exits with 8 [19:13:48]New connection [19:13:48]New thread 3067178340 created [19:13:48]Thread 3067034980 joined [19:13:48]Waiting for new connection... [19:13:48] Sock 8.Parse request [19:13:48]Sock 8.Check first char [19:13:48]Sock 8.First char is OK [19:13:48]request: POST /json_proto HTTP/1.0 [19:13:48]Method: POST [19:13:48]URL: /json_proto [19:13:48]Method is POST - this is cgi request [19:13:48]url: /json_proto [19:13:48]query_string will be loaded in cgi processing [19:13:48]execute_cgi json_proto POST (null) [19:13:48]execute_cgi path=json_proto method=POST [19:13:48]POST find Content-Length [19:13:48]Host: 172.17.53.195:8080 [19:13:48]Content-Length: 677 [19:13:48]Content-Type: application/json [19:13:48] [19:13:48]POST finish read [19:13:48]Found Content-Length = 677 [19:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:48]execute_script... [19:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:48]POST & json_proto [19:13:48]process_json_proto [19:13:48]json parsed OK: [19:13:48]protocol is kg_v1.0 [19:13:48]action value=close_receipt [19:13:48]process_action close_receipt [19:13:48]cmd_close_receipt [19:13:48]MH_GetDate [19:13:48]Write to MH i2c: F0 00 00 1A 43 4C [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 09 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 09 00 1A 43 00 EE 4A 19 67 21 48 4A 65 25 [19:13:48]GetLastDocTimeStamp 1729710704 [19:13:48]current date 1729710830 [19:13:48]FM_GetShiftState [19:13:48]SAM_PROTO_GetShiftState [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 01 00 [19:13:48]Write to MH i2c: E2 08 00 1B 43 80 13 01 00 00 00 00 00 DB [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 1B 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A6 [19:13:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetShiftState done [19:13:48]FM_GetShiftState done [19:13:48]opened in 1729643772 [19:13:48]opened+sec_in_day 1729730172 [19:13:48]quantity*price = 50010 [19:13:48]sum+1 = 50012 [19:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 287 23.10.2024 19:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166872 ФПД: 162246589890640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191350&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166872&fm=162246589890640&tin=02508201610067®Number=0000000000091764&sum=50000 [19:13:49]StoreToDocumentArchive [19:13:49]shift 537 fd 166872 [19:13:49]save to /storage/0537/doc_00166872 [19:13:49]save last doc name /storage/0537/doc_00166872 to /storage/kkm_last_doc_name [19:13:49]save OK [19:13:49]Clear old archive folders... [19:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:49]tlvbuf is B6F8C450 [19:13:49]SAM_PROTO_ClearQueue [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 09 00 00 [19:13:49]Write to MH i2c: E2 08 00 28 43 80 09 00 00 00 00 00 00 DD [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 28 43 00 90 00 DF [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_ClearQueue done [19:13:49]KKMCreateOFDPacket [19:13:49]OFDProtocolAddRootSTLVToBuf [19:13:49]FM_MakeSignedData [19:13:49]FM_MakeSignedData [19:13:49]SAM_PROTO_SignData [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 01 02 [19:13:49]Write to MH i2c: E2 08 00 29 43 80 0D 01 02 00 00 00 00 E5 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 29 43 00 90 00 E0 [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=255 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 EE 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8B 02 00 35 04 06 00 93 [19:13:49]Write to MH i2c: E2 02 01 2A 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 EE 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8B 02 00 35 04 06 00 93 00 00 3E [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 2A 43 00 90 00 E1 [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=10 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 02 02 05 8F FA 5B 40 50 [19:13:49]Write to MH i2c: E2 0D 00 2B 43 80 0D 02 02 05 00 8F FA 5B 40 50 00 00 66 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 2B 43 00 90 00 E2 [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 03 02 [19:13:49]Write to MH i2c: E2 08 00 2C 43 80 0D 03 02 00 00 00 00 EA [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0B 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0B 00 2C 43 00 F2 88 E7 3E D0 05 59 CB 90 00 83 [19:13:49]RAPDU: F2 88 E7 3E D0 05 59 CB 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_SignData done [19:13:49]FM_MakeSignedData done [19:13:49]CreateOFDProtocolMessage [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 11 00 00 [19:13:49]Write to MH i2c: E2 08 00 2D 43 80 11 00 00 00 00 00 00 EA [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:50]OFD Sender: No OFD packet to send [19:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:50]Read from MH i2c: E2 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 17 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 17 00 2D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [19:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:50]wFMCommunicate OK [19:13:50]CreateOFDProtocolMessage done [19:13:50]OFDSenderStorePacket 166872 [19:13:50]StoreOFDPacket docnum=166872 [19:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 C0 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 EE 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8B 02 00 35 04 06 00 93 8F FA 5B 40 50 F2 88 E7 3E D0 05 59 CB [19:13:50]CheckFolder [19:13:50]dirname=/storage/ofd_packets [19:13:50]CheckFolder done [19:13:50]ProducePacketName [19:13:50]name=ofd_packets/00166872 [19:13:50]NVStorageSaveData ofd_packets/00166872 [19:13:50]File name is /storage/ofd_packets/00166872 [19:13:50]Write 301 bytes [19:13:50]NVStorageSaveData done [19:13:50]OFDSenderStorePacket done [19:13:50]KKMCreateOFDPacket done [19:13:50]NVStorageSaveData kkm_last_timestamp [19:13:50]File name is /storage/kkm_last_timestamp [19:13:50]Write 4 bytes [19:13:50]NVStorageSaveData done [19:13:50]ExternCall_PrintAddStr [19:13:50]wPrintStart [19:13:50]Write to MH i2c: 01 00 00 2E 43 71 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 2E 43 00 00 00 00 00 FF 0F 86 [19:13:50]RasterBufferAndPrint [19:13:50]line Счет N : (1)221458 [19:13:50]line ИНН: 02508201610067 [19:13:50]line Контрольно-Кассовый Чек [19:13:50]line ПРОДАЖА [19:13:50]line ТРК (МРК, ГНК) : 44 [19:13:50]line Товар: 2710124500 [19:13:50]line Аи-95-К-5 [19:13:50]line 6.740 * 74.20 [19:13:50]line = 500.11 [19:13:50]line НДС 12% НСП 1% [19:13:50]line > о реализуемом товаре [19:13:50]line ОКРУГЛЕНИЕ: -0.11 [19:13:50]line ИТОГО: 500.00 [19:13:50]line Внесено: 500.00 [19:13:50]line СДАЧА: 0.00 [19:13:50]line НСП 1% : 4.43 [19:13:50]line НДС 12% : 53.11 [19:13:50]line Наличными: 500.00 [19:13:50]line Безнал.: 0.00 [19:13:50]line Место: АЗС № 161 "Партнер Нефть" [19:13:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:13:50]line СНО: Общий режим [19:13:50]line Чек 287 23.10.2024 19:13 [19:13:50]line Смена: 537 ФФД: 1.0 [19:13:50]line ЗНМ: 0300000104 [19:13:50]line РНМ: 0000000000091764 [19:13:50]line Версия ККМ: 001 [19:13:50]line ФМ: 0000000000871759 [19:13:50]line ФД: 166872 [19:13:50]line ФПД: 162246589890640 [19:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191350&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166872&fm=162246589890640&tin=02508201610067®Number=0000000000091764&sum=50000 [19:13:50]OFD Sender: Processing packet 166872 [packets to send 48, broken 47] [19:13:50]ProducePacketName [19:13:50]name=ofd_packets/00166872 [19:13:50]OFD Sender: To server: pG, [19:13:50]CommunicateWithHost lk.salyk.kg:30040 [19:13:50]ConnectInit lk.salyk.kg [19:13:50]written 0, free lines is 4095 [19:13:50]Connected sock=10 [19:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 C0 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 EE 4A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8B 02 00 35 04 06 00 93 8F FA 5B 40 50 F2 88 E7 3E D0 05 59 CB [19:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 95 47 00 3B 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 8B 02 00 F4 03 04 00 55 F1 18 67 B6 04 01 00 00 76 BD 02 27 D3 3C 56 14 [19:13:50]CommunicateWithHost err = 0 [19:13:50]CheckOFDResponse [19:13:50]1017 (14) - 77093643461234 [19:13:50]1041 (16) - 0000000000871759 [19:13:50]1040 (4) - 166872 [19:13:50]1012 (4) - 23.10.2024 12:51 [19:13:50]1206 (1) - 0 [19:13:50]OFD Sender: Remove packet 166872 [19:13:50]ProducePacketName [19:13:50]name=ofd_packets/00166872 [19:13:50]NVStorageDeleteData [19:13:50]Write to MH i2c: 01 00 00 59 43 9C [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 59 43 00 00 00 00 00 BB 0C 6A [19:13:50]RasterBufferAndPrint [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]written 0, free lines is 3266 [19:13:50]MH_Cut [19:13:50]Write to MH i2c: D1 01 00 60 43 01 75 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 01 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 01 00 60 43 00 74 [19:13:50]Write to MH i2c: 01 00 00 61 43 A4 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:51]OFD Sender: No OFD packet to send [19:13:51]*** Cut start [19:13:51]*** Partial cut [19:13:51]*** CUTSNS_PIN = 1 [19:13:51]*** CUTSNS_PIN = 0 [19:13:52]*** Brake cut motor [19:13:52]Read from MH i2c: 01 [19:13:52]MH_I2C_Read... [19:13:52]*** Stop cut motor [19:13:52]*** Cut end [19:13:52]Read from MH i2c: 01 07 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: 01 07 00 61 43 00 00 00 00 00 FF 0F B9 [19:13:52]process_action close_receipt done [19:13:52]requested_data is exist [19:13:52]produce_requested_data [19:13:52]requested_item fm.sn is exist - process it [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 11 00 00 [19:13:52]Write to MH i2c: E2 08 00 62 43 80 11 00 00 00 00 00 00 1F [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 17 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 17 00 62 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [19:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:52]wFMCommunicate OK [19:13:52]requested_item fd.num is exist - process it [19:13:52]SAM_PROTO_GetFieldsCounters [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 13 00 00 [19:13:52]Write to MH i2c: E2 08 00 63 43 80 13 00 00 00 00 00 00 22 [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 62 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 62 00 63 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_GetFieldsCounters done [19:13:52]requested_item shift.num is exist - process it [19:13:52]requested_item shift.opened is exist - process it [19:13:52]req_shift_opened [19:13:52]FM_GetShiftState [19:13:52]SAM_PROTO_GetShiftState [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 13 01 00 [19:13:52]Write to MH i2c: E2 08 00 64 43 80 13 01 00 00 00 00 00 24 [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 64 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EF [19:13:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_GetShiftState done [19:13:52]FM_GetShiftState done [19:13:52]req_shift_opened done [19:13:52]requested_item shift.open_date is exist - process it [19:13:52]req_shift_open_date [19:13:52]req_shift_open_date done [19:13:52]produce_requested_data done [19:13:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166872,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:13:52]process_action_free close_receipt [19:13:52]json_value_free [19:13:52]json_value_free done [19:13:52]process_json_proto returns [19:13:52]Send response to host [19:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166872,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:13:52]free response buf [19:13:52]execute_script done [19:13:52]execute_script returns [19:13:52]free content buf [19:13:52]Sock 8.Close socket [19:13:52]Sock 8.Thread stoped [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:39]accept exits with 9 [19:15:39]New connection [19:15:39]New thread 3067034980 created [19:15:39]Thread 3067178340 joined [19:15:39]Waiting for new connection... [19:15:39] Sock 9.Parse request [19:15:39]Sock 9.Check first char [19:15:39]Sock 9.First char is OK [19:15:39]request: POST /json_proto HTTP/1.0 [19:15:39]Method: POST [19:15:39]URL: /json_proto [19:15:39]Method is POST - this is cgi request [19:15:39]url: /json_proto [19:15:39]query_string will be loaded in cgi processing [19:15:39]execute_cgi json_proto POST (null) [19:15:39]execute_cgi path=json_proto method=POST [19:15:39]POST find Content-Length [19:15:39]Host: 172.17.53.195:8080 [19:15:39]Content-Length: 682 [19:15:39]Content-Type: application/json [19:15:39] [19:15:39]POST finish read [19:15:39]Found Content-Length = 682 [19:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:39]execute_script... [19:15:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:39]POST & json_proto [19:15:39]process_json_proto [19:15:39]json parsed OK: [19:15:39]protocol is kg_v1.0 [19:15:39]action value=close_receipt [19:15:39]process_action close_receipt [19:15:39]cmd_close_receipt [19:15:39]MH_GetDate [19:15:39]Write to MH i2c: F0 00 00 65 43 97 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: F0 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: F0 09 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: F0 09 00 65 43 00 5D 4B 19 67 21 48 4A 65 E0 [19:15:39]GetLastDocTimeStamp 1729710830 [19:15:39]current date 1729710941 [19:15:39]FM_GetShiftState [19:15:39]SAM_PROTO_GetShiftState [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 01 00 [19:15:39]Write to MH i2c: E2 08 00 66 43 80 13 01 00 00 00 00 00 26 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 66 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F1 [19:15:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetShiftState done [19:15:39]FM_GetShiftState done [19:15:39]opened in 1729643772 [19:15:39]opened+sec_in_day 1729730172 [19:15:39]quantity*price = 100021 [19:15:39]sum+1 = 100023 [19:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 288 23.10.2024 19:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166873 ФПД: 180285221667134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166873&fm=180285221667134&tin=02508201610067®Number=0000000000091764&sum=100000 [19:15:40]StoreToDocumentArchive [19:15:40]shift 537 fd 166873 [19:15:40]save to /storage/0537/doc_00166873 [19:15:40]save last doc name /storage/0537/doc_00166873 to /storage/kkm_last_doc_name [19:15:40]save OK [19:15:40]Clear old archive folders... [19:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:40]tlvbuf is 01F618B0 [19:15:40]SAM_PROTO_ClearQueue [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 09 00 00 [19:15:40]Write to MH i2c: E2 08 00 73 43 80 09 00 00 00 00 00 00 28 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 73 43 00 90 00 2A [19:15:40]RAPDU: 90 00 [19:15:40]wFMCommunicate OK [19:15:40]SAM_PROTO_ClearQueue done [19:15:40]KKMCreateOFDPacket [19:15:40]OFDProtocolAddRootSTLVToBuf [19:15:40]FM_MakeSignedData [19:15:40]FM_MakeSignedData [19:15:40]SAM_PROTO_SignData [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 0D 01 02 [19:15:40]Write to MH i2c: E2 08 00 74 43 80 0D 01 02 00 00 00 00 30 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 74 43 00 90 00 2B [19:15:40]RAPDU: 90 00 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=255 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D 4B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8B 02 00 35 04 06 00 A3 [19:15:40]Write to MH i2c: E2 02 01 75 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D 4B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8B 02 00 35 04 06 00 A3 00 00 50 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 75 43 00 90 00 2C [19:15:40]RAPDU: 90 00 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=10 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 0D 02 02 05 F7 EC 98 81 3E [19:15:40]Write to MH i2c: E2 0D 00 76 43 80 0D 02 02 05 00 F7 EC 98 81 3E 00 00 77 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 03 00 76 43 00 90 00 2D [19:15:40]RAPDU: 90 00 [19:15:40]wFMCommunicate OK [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 0D 03 02 [19:15:40]Write to MH i2c: E2 08 00 77 43 80 0D 03 02 00 00 00 00 35 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 0B 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 0B 00 77 43 00 0B B0 26 B0 C1 D8 7E 56 90 00 34 [19:15:40]RAPDU: 0B B0 26 B0 C1 D8 7E 56 90 00 [19:15:40]wFMCommunicate OK [19:15:40]SAM_PROTO_SignData done [19:15:40]FM_MakeSignedData done [19:15:40]CreateOFDProtocolMessage [19:15:40]wFMCommunicate request_size=4 [19:15:40]MH_SAM_APDU [19:15:40]CAPDU: 80 11 00 00 [19:15:40]Write to MH i2c: E2 08 00 78 43 80 11 00 00 00 00 00 00 35 [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:40]Read from MH i2c: E2 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 17 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: E2 17 00 78 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [19:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:15:40]wFMCommunicate OK [19:15:40]CreateOFDProtocolMessage done [19:15:40]OFDSenderStorePacket 166873 [19:15:40]StoreOFDPacket docnum=166873 [19:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 D7 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D 4B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8B 02 00 35 04 06 00 A3 F7 EC 98 81 3E 0B B0 26 B0 C1 D8 7E 56 [19:15:40]CheckFolder [19:15:40]dirname=/storage/ofd_packets [19:15:40]CheckFolder done [19:15:40]ProducePacketName [19:15:40]name=ofd_packets/00166873 [19:15:40]NVStorageSaveData ofd_packets/00166873 [19:15:40]File name is /storage/ofd_packets/00166873 [19:15:40]Write 301 bytes [19:15:40]NVStorageSaveData done [19:15:40]OFDSenderStorePacket done [19:15:40]KKMCreateOFDPacket done [19:15:40]NVStorageSaveData kkm_last_timestamp [19:15:40]File name is /storage/kkm_last_timestamp [19:15:40]Write 4 bytes [19:15:40]NVStorageSaveData done [19:15:40]ExternCall_PrintAddStr [19:15:40]wPrintStart [19:15:40]Write to MH i2c: 01 00 00 79 43 BC [19:15:40]Write i2c OK [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: 01 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: 01 07 00 [19:15:40]MH_I2C_Read... [19:15:40]Read from MH i2c: 01 07 00 79 43 00 00 00 00 00 FF 0F D1 [19:15:40]RasterBufferAndPrint [19:15:40]line Счет N : (1)221459 [19:15:40]line ИНН: 02508201610067 [19:15:40]line Контрольно-Кассовый Чек [19:15:40]line ПРОДАЖА [19:15:40]line ТРК (МРК, ГНК) : 24 [19:15:40]line Товар: 2710124500 [19:15:40]line Аи-95-К-5 [19:15:40]line 13.480 * 74.20 [19:15:40]line = 1000.22 [19:15:40]line НДС 12% НСП 1% [19:15:40]line > о реализуемом товаре [19:15:40]line ОКРУГЛЕНИЕ: -0.22 [19:15:40]line ИТОГО: 1000.00 [19:15:40]line Внесено: 1000.00 [19:15:40]line СДАЧА: 0.00 [19:15:40]line НСП 1% : 8.85 [19:15:40]line НДС 12% : 106.22 [19:15:40]line Наличными: 1000.00 [19:15:40]line Безнал.: 0.00 [19:15:40]line Место: АЗС № 161 "Партнер Нефть" [19:15:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:15:40]line СНО: Общий режим [19:15:40]line Чек 288 23.10.2024 19:15 [19:15:40]line Смена: 537 ФФД: 1.0 [19:15:40]line ЗНМ: 0300000104 [19:15:40]line РНМ: 0000000000091764 [19:15:40]line Версия ККМ: 001 [19:15:40]line ФМ: 0000000000871759 [19:15:40]line ФД: 166873 [19:15:40]line ФПД: 180285221667134 [19:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166873&fm=180285221667134&tin=02508201610067®Number=0000000000091764&sum=100000 [19:15:41]OFD Sender: Processing packet 166873 [packets to send 48, broken 47] [19:15:41]ProducePacketName [19:15:41]name=ofd_packets/00166873 [19:15:41]OFD Sender: To server: pG, [19:15:41]CommunicateWithHost lk.salyk.kg:30040 [19:15:41]ConnectInit lk.salyk.kg [19:15:41]written 0, free lines is 4095 [19:15:41]Connected sock=10 [19:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 D7 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5D 4B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8B 02 00 35 04 06 00 A3 F7 EC 98 81 3E 0B B0 26 B0 C1 D8 7E 56 [19:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E4 8B 47 00 CC 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 8B 02 00 F4 03 04 00 C4 F1 18 67 B6 04 01 00 00 C8 1C CA A9 25 CA CA 36 [19:15:41]CommunicateWithHost err = 0 [19:15:41]CheckOFDResponse [19:15:41]1017 (14) - 77093643461234 [19:15:41]1041 (16) - 0000000000871759 [19:15:41]1040 (4) - 166873 [19:15:41]1012 (4) - 23.10.2024 12:53 [19:15:41]1206 (1) - 0 [19:15:41]OFD Sender: Remove packet 166873 [19:15:41]ProducePacketName [19:15:41]name=ofd_packets/00166873 [19:15:41]NVStorageDeleteData [19:15:41]Write to MH i2c: 01 00 00 A4 43 E7 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: 01 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: 01 07 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: 01 07 00 A4 43 00 00 00 00 00 AF 0C A9 [19:15:41]RasterBufferAndPrint [19:15:41]line [19:15:41]line [19:15:41]line [19:15:41]line [19:15:41]line [19:15:41]written 0, free lines is 3251 [19:15:41]MH_Cut [19:15:41]Write to MH i2c: D1 01 00 AB 43 01 C0 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: D1 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: D1 01 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: D1 01 00 AB 43 00 BF [19:15:41]Write to MH i2c: 01 00 00 AC 43 EF [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]OFD Sender: No OFD packet to send [19:15:42]*** Cut start [19:15:42]*** Partial cut [19:15:42]*** CUTSNS_PIN = 1 [19:15:42]*** CUTSNS_PIN = 0 [19:15:42]*** Brake cut motor [19:15:43]Read from MH i2c: 01 [19:15:43]MH_I2C_Read... [19:15:43]*** Stop cut motor [19:15:43]*** Cut end [19:15:43]Read from MH i2c: 01 07 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 AC 43 00 00 00 00 00 FF 0F 04 [19:15:43]process_action close_receipt done [19:15:43]requested_data is exist [19:15:43]produce_requested_data [19:15:43]requested_item fm.sn is exist - process it [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 11 00 00 [19:15:43]Write to MH i2c: E2 08 00 AD 43 80 11 00 00 00 00 00 00 6A [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 AD 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [19:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:15:43]wFMCommunicate OK [19:15:43]requested_item fd.num is exist - process it [19:15:43]SAM_PROTO_GetFieldsCounters [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 13 00 00 [19:15:43]Write to MH i2c: E2 08 00 AE 43 80 13 00 00 00 00 00 00 6D [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 62 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 62 00 AE 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_GetFieldsCounters done [19:15:43]requested_item shift.num is exist - process it [19:15:43]requested_item shift.opened is exist - process it [19:15:43]req_shift_opened [19:15:43]FM_GetShiftState [19:15:43]SAM_PROTO_GetShiftState [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 13 01 00 [19:15:43]Write to MH i2c: E2 08 00 AF 43 80 13 01 00 00 00 00 00 6F [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 AF 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3A [19:15:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_GetShiftState done [19:15:43]FM_GetShiftState done [19:15:43]req_shift_opened done [19:15:43]requested_item shift.open_date is exist - process it [19:15:43]req_shift_open_date [19:15:43]req_shift_open_date done [19:15:43]produce_requested_data done [19:15:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166873,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:15:43]process_action_free close_receipt [19:15:43]json_value_free [19:15:43]json_value_free done [19:15:43]process_json_proto returns [19:15:43]Send response to host [19:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166873,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:15:43]free response buf [19:15:43]execute_script done [19:15:43]execute_script returns [19:15:43]free content buf [19:15:43]Sock 9.Close socket [19:15:43]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:24]accept exits with 8 [19:26:24]New connection [19:26:24]New thread 3067178340 created [19:26:24]Thread 3067034980 joined [19:26:24]Waiting for new connection... [19:26:24] Sock 8.Parse request [19:26:24]Sock 8.Check first char [19:26:24]Sock 8.First char is OK [19:26:24]request: POST /json_proto HTTP/1.0 [19:26:24]Method: POST [19:26:24]URL: /json_proto [19:26:24]Method is POST - this is cgi request [19:26:24]url: /json_proto [19:26:24]query_string will be loaded in cgi processing [19:26:24]execute_cgi json_proto POST (null) [19:26:24]execute_cgi path=json_proto method=POST [19:26:24]POST find Content-Length [19:26:24]Host: 172.17.53.195:8080 [19:26:24]Content-Length: 682 [19:26:24]Content-Type: application/json [19:26:24] [19:26:24]POST finish read [19:26:24]Found Content-Length = 682 [19:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:24]execute_script... [19:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:24]POST & json_proto [19:26:24]process_json_proto [19:26:24]json parsed OK: [19:26:24]protocol is kg_v1.0 [19:26:24]action value=close_receipt [19:26:24]process_action close_receipt [19:26:24]cmd_close_receipt [19:26:24]MH_GetDate [19:26:24]Write to MH i2c: F0 00 00 B0 43 E2 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 09 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 09 00 B0 43 00 E3 4D 19 67 21 48 4A 65 B3 [19:26:24]GetLastDocTimeStamp 1729710941 [19:26:24]current date 1729711587 [19:26:24]FM_GetShiftState [19:26:24]SAM_PROTO_GetShiftState [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 13 01 00 [19:26:24]Write to MH i2c: E2 08 00 B1 43 80 13 01 00 00 00 00 00 71 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 B1 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3C [19:26:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_GetShiftState done [19:26:24]FM_GetShiftState done [19:26:24]opened in 1729643772 [19:26:24]opened+sec_in_day 1729730172 [19:26:24]quantity*price = 100021 [19:26:24]sum+1 = 100023 [19:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 289 23.10.2024 19:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166874 ФПД: 216314688036682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192627&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166874&fm=216314688036682&tin=02508201610067®Number=0000000000091764&sum=100000 [19:26:26]StoreToDocumentArchive [19:26:26]shift 537 fd 166874 [19:26:26]save to /storage/0537/doc_00166874 [19:26:26]save last doc name /storage/0537/doc_00166874 to /storage/kkm_last_doc_name [19:26:26]save OK [19:26:26]Clear old archive folders... [19:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:26]tlvbuf is 01FDAF10 [19:26:26]SAM_PROTO_ClearQueue [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 09 00 00 [19:26:26]Write to MH i2c: E2 08 00 BE 43 80 09 00 00 00 00 00 00 73 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 BE 43 00 90 00 75 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_ClearQueue done [19:26:26]KKMCreateOFDPacket [19:26:26]OFDProtocolAddRootSTLVToBuf [19:26:26]FM_MakeSignedData [19:26:26]FM_MakeSignedData [19:26:26]SAM_PROTO_SignData [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 01 02 [19:26:26]Write to MH i2c: E2 08 00 BF 43 80 0D 01 02 00 00 00 00 7B [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 BF 43 00 90 00 76 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]wFMCommunicate request_size=255 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E3 4D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8B 02 00 35 04 06 00 C4 [19:26:26]Write to MH i2c: E2 02 01 C0 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E3 4D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8B 02 00 35 04 06 00 C4 00 00 46 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 C0 43 00 90 00 77 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]wFMCommunicate request_size=10 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 02 02 05 BC B0 23 DF 4A [19:26:26]Write to MH i2c: E2 0D 00 C1 43 80 0D 02 02 05 00 BC B0 23 DF 4A 00 00 40 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 C1 43 00 90 00 78 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 03 02 [19:26:26]Write to MH i2c: E2 08 00 C2 43 80 0D 03 02 00 00 00 00 80 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0B 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0B 00 C2 43 00 0B E4 C6 21 D6 53 5D A2 90 00 7F [19:26:26]RAPDU: 0B E4 C6 21 D6 53 5D A2 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_SignData done [19:26:26]FM_MakeSignedData done [19:26:26]CreateOFDProtocolMessage [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 C3 43 80 11 00 00 00 00 00 00 80 [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 C3 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [19:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:26:26]wFMCommunicate OK [19:26:26]CreateOFDProtocolMessage done [19:26:26]OFDSenderStorePacket 166874 [19:26:26]StoreOFDPacket docnum=166874 [19:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 7F 07 01 35 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E3 4D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8B 02 00 35 04 06 00 C4 BC B0 23 DF 4A 0B E4 C6 21 D6 53 5D A2 [19:26:26]CheckFolder [19:26:26]dirname=/storage/ofd_packets [19:26:26]CheckFolder done [19:26:26]ProducePacketName [19:26:26]name=ofd_packets/00166874 [19:26:26]NVStorageSaveData ofd_packets/00166874 [19:26:26]File name is /storage/ofd_packets/00166874 [19:26:26]Write 301 bytes [19:26:26]NVStorageSaveData done [19:26:26]OFDSenderStorePacket done [19:26:26]KKMCreateOFDPacket done [19:26:26]NVStorageSaveData kkm_last_timestamp [19:26:26]File name is /storage/kkm_last_timestamp [19:26:26]Write 4 bytes [19:26:26]NVStorageSaveData done [19:26:26]ExternCall_PrintAddStr [19:26:26]wPrintStart [19:26:26]Write to MH i2c: 01 00 00 C4 43 07 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: 01 [19:26:26]MH_I2C_Read... [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 C4 43 00 00 00 00 00 FF 0F 1C [19:26:26]RasterBufferAndPrint [19:26:26]line Счет N : (1)221460 [19:26:26]line ИНН: 02508201610067 [19:26:26]line Контрольно-Кассовый Чек [19:26:26]line ПРОДАЖА [19:26:26]line ТРК (МРК, ГНК) : 24 [19:26:26]line Товар: 2710124500 [19:26:26]line Аи-95-К-5 [19:26:26]line 13.480 * 74.20 [19:26:26]line = 1000.22 [19:26:26]line НДС 12% НСП 1% [19:26:26]line > о реализуемом товаре [19:26:26]line ОКРУГЛЕНИЕ: -0.22 [19:26:26]line ИТОГО: 1000.00 [19:26:26]line Внесено: 1000.00 [19:26:26]line СДАЧА: 0.00 [19:26:26]line НСП 1% : 8.85 [19:26:26]line НДС 12% : 106.22 [19:26:26]line Наличными: 1000.00 [19:26:26]line Безнал.: 0.00 [19:26:26]line Место: АЗС № 161 "Партнер Нефть" [19:26:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:26:26]line СНО: Общий режим [19:26:26]line Чек 289 23.10.2024 19:26 [19:26:26]line Смена: 537 ФФД: 1.0 [19:26:26]line ЗНМ: 0300000104 [19:26:26]line РНМ: 0000000000091764 [19:26:26]line Версия ККМ: 001 [19:26:26]line ФМ: 0000000000871759 [19:26:26]line ФД: 166874 [19:26:26]line ФПД: 216314688036682 [19:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192627&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166874&fm=216314688036682&tin=02508201610067®Number=0000000000091764&sum=100000 [19:26:26]OFD Sender: Processing packet 166874 [packets to send 48, broken 47] [19:26:26]ProducePacketName [19:26:26]name=ofd_packets/00166874 [19:26:26]OFD Sender: To server: pG, [19:26:26]CommunicateWithHost lk.salyk.kg:30040 [19:26:26]ConnectInit lk.salyk.kg [19:26:26]written 0, free lines is 4095 [19:26:27]Connected sock=10 [19:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 7F 07 01 35 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E3 4D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8B 02 00 35 04 06 00 C4 BC B0 23 DF 4A 0B E4 C6 21 D6 53 5D A2 [19:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 53 47 00 5F 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 8B 02 00 F4 03 04 00 4A F4 18 67 B6 04 01 00 00 90 5C FC 12 2E FA 7E 50 [19:26:27]CommunicateWithHost err = 0 [19:26:27]CheckOFDResponse [19:26:27]1017 (14) - 77093643461234 [19:26:27]1041 (16) - 0000000000871759 [19:26:27]1040 (4) - 166874 [19:26:27]1012 (4) - 23.10.2024 13:04 [19:26:27]1206 (1) - 0 [19:26:27]OFD Sender: Remove packet 166874 [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00166874 [19:26:27]NVStorageDeleteData [19:26:27]Write to MH i2c: 01 00 00 EF 43 32 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 EF 43 00 00 00 00 00 A2 0C E7 [19:26:27]RasterBufferAndPrint [19:26:27]line [19:26:27]line [19:26:27]line [19:26:27]line [19:26:27]line [19:26:27]written 0, free lines is 3238 [19:26:27]MH_Cut [19:26:27]Write to MH i2c: D1 01 00 F6 43 01 0B [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: D1 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: D1 01 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: D1 01 00 F6 43 00 0A [19:26:27]Write to MH i2c: 01 00 00 F7 43 3A [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]OFD Sender: No OFD packet to send [19:26:28]*** Cut start [19:26:28]*** Partial cut [19:26:28]*** CUTSNS_PIN = 1 [19:26:28]*** CUTSNS_PIN = 0 [19:26:28]*** Brake cut motor [19:26:28]Read from MH i2c: 01 [19:26:28]MH_I2C_Read... [19:26:28]*** Stop cut motor [19:26:28]*** Cut end [19:26:28]Read from MH i2c: 01 07 00 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 07 00 F7 43 00 00 00 00 00 FF 0F 4F [19:26:28]process_action close_receipt done [19:26:28]requested_data is exist [19:26:28]produce_requested_data [19:26:28]requested_item fm.sn is exist - process it [19:26:28]wFMCommunicate request_size=4 [19:26:28]MH_SAM_APDU [19:26:28]CAPDU: 80 11 00 00 [19:26:28]Write to MH i2c: E2 08 00 F8 43 80 11 00 00 00 00 00 00 B5 [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 F8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [19:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:26:29]wFMCommunicate OK [19:26:29]requested_item fd.num is exist - process it [19:26:29]SAM_PROTO_GetFieldsCounters [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 00 00 [19:26:29]Write to MH i2c: E2 08 00 F9 43 80 13 00 00 00 00 00 00 B8 [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 F9 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetFieldsCounters done [19:26:29]requested_item shift.num is exist - process it [19:26:29]requested_item shift.opened is exist - process it [19:26:29]req_shift_opened [19:26:29]FM_GetShiftState [19:26:29]SAM_PROTO_GetShiftState [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 01 00 [19:26:29]Write to MH i2c: E2 08 00 FA 43 80 13 01 00 00 00 00 00 BA [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:29]Read from MH i2c: E2 0E 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 FA 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 85 [19:26:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetShiftState done [19:26:29]FM_GetShiftState done [19:26:29]req_shift_opened done [19:26:29]requested_item shift.open_date is exist - process it [19:26:29]req_shift_open_date [19:26:29]req_shift_open_date done [19:26:29]produce_requested_data done [19:26:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166874,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:26:29]process_action_free close_receipt [19:26:29]json_value_free [19:26:29]json_value_free done [19:26:29]process_json_proto returns [19:26:29]Send response to host [19:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166874,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:26:29]free response buf [19:26:29]execute_script done [19:26:29]execute_script returns [19:26:29]free content buf [19:26:29]Sock 8.Close socket [19:26:29]Sock 8.Thread stoped [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:10]accept exits with 9 [19:28:10]New connection [19:28:10]New thread 3067034980 created [19:28:10]Thread 3067178340 joined [19:28:10]Waiting for new connection... [19:28:10] Sock 9.Parse request [19:28:10]Sock 9.Check first char [19:28:10]Sock 9.First char is OK [19:28:10]request: POST /json_proto HTTP/1.0 [19:28:10]Method: POST [19:28:10]URL: /json_proto [19:28:10]Method is POST - this is cgi request [19:28:10]url: /json_proto [19:28:10]query_string will be loaded in cgi processing [19:28:10]execute_cgi json_proto POST (null) [19:28:10]execute_cgi path=json_proto method=POST [19:28:10]POST find Content-Length [19:28:10]Host: 172.17.53.195:8080 [19:28:10]Content-Length: 679 [19:28:10]Content-Type: application/json [19:28:10] [19:28:10]POST finish read [19:28:10]Found Content-Length = 679 [19:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:10]execute_script... [19:28:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:10]POST & json_proto [19:28:10]process_json_proto [19:28:10]json parsed OK: [19:28:10]protocol is kg_v1.0 [19:28:10]action value=close_receipt [19:28:10]process_action close_receipt [19:28:10]cmd_close_receipt [19:28:10]MH_GetDate [19:28:10]Write to MH i2c: F0 00 00 FB 43 2D [19:28:10]Write i2c OK [19:28:10]MH_I2C_Read... [19:28:10]Read from MH i2c: F0 [19:28:10]MH_I2C_Read... [19:28:10]Read from MH i2c: F0 09 00 [19:28:10]MH_I2C_Read... [19:28:10]Read from MH i2c: F0 09 00 FB 43 00 4D 4E 19 67 21 48 4A 65 69 [19:28:10]GetLastDocTimeStamp 1729711587 [19:28:10]current date 1729711693 [19:28:10]FM_GetShiftState [19:28:10]SAM_PROTO_GetShiftState [19:28:10]wFMCommunicate request_size=4 [19:28:10]MH_SAM_APDU [19:28:10]CAPDU: 80 13 01 00 [19:28:10]Write to MH i2c: E2 08 00 FC 43 80 13 01 00 00 00 00 00 BC [19:28:10]Write i2c OK [19:28:10]MH_I2C_Read... [19:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:11]Read from MH i2c: E2 [19:28:11]MH_I2C_Read... [19:28:11]Read from MH i2c: E2 0E 00 [19:28:11]MH_I2C_Read... [19:28:11]Read from MH i2c: E2 0E 00 FC 43 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 87 [19:28:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:28:11]wFMCommunicate OK [19:28:11]SAM_PROTO_GetShiftState done [19:28:11]FM_GetShiftState done [19:28:11]opened in 1729643772 [19:28:11]opened+sec_in_day 1729730172 [19:28:11]quantity*price = 99948 [19:28:11]sum+1 = 99950 [19:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 290 23.10.2024 19:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166875 ФПД: 48908655401390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166875&fm=48908655401390&tin=02508201610067®Number=0000000000091764&sum=99900 [19:28:12]StoreToDocumentArchive [19:28:12]shift 537 fd 166875 [19:28:12]save to /storage/0537/doc_00166875 [19:28:12]save last doc name /storage/0537/doc_00166875 to /storage/kkm_last_doc_name [19:28:12]save OK [19:28:12]Clear old archive folders... [19:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:12]tlvbuf is 01FB0050 [19:28:12]SAM_PROTO_ClearQueue [19:28:12]wFMCommunicate request_size=4 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 09 00 00 [19:28:12]Write to MH i2c: E2 08 00 09 44 80 09 00 00 00 00 00 00 BF [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 09 44 00 90 00 C1 [19:28:12]RAPDU: 90 00 [19:28:12]wFMCommunicate OK [19:28:12]SAM_PROTO_ClearQueue done [19:28:12]KKMCreateOFDPacket [19:28:12]OFDProtocolAddRootSTLVToBuf [19:28:12]FM_MakeSignedData [19:28:12]FM_MakeSignedData [19:28:12]SAM_PROTO_SignData [19:28:12]wFMCommunicate request_size=4 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 0D 01 02 [19:28:12]Write to MH i2c: E2 08 00 0A 44 80 0D 01 02 00 00 00 00 C7 [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 0A 44 00 90 00 C2 [19:28:12]RAPDU: 90 00 [19:28:12]wFMCommunicate OK [19:28:12]wFMCommunicate request_size=255 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4D 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8B 02 00 35 04 06 00 2C [19:28:12]Write to MH i2c: E2 02 01 0B 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4D 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8B 02 00 35 04 06 00 2C 00 00 27 [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 0B 44 00 90 00 C3 [19:28:12]RAPDU: 90 00 [19:28:12]wFMCommunicate OK [19:28:12]wFMCommunicate request_size=10 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 0D 02 02 05 7B 6F 08 19 AE [19:28:12]Write to MH i2c: E2 0D 00 0C 44 80 0D 02 02 05 00 7B 6F 08 19 AE 00 00 8D [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 03 00 0C 44 00 90 00 C4 [19:28:12]RAPDU: 90 00 [19:28:12]wFMCommunicate OK [19:28:12]wFMCommunicate request_size=4 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 0D 03 02 [19:28:12]Write to MH i2c: E2 08 00 0D 44 80 0D 03 02 00 00 00 00 CC [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 0B 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 0B 00 0D 44 00 2F 73 84 7D EE 07 05 5C 90 00 C6 [19:28:12]RAPDU: 2F 73 84 7D EE 07 05 5C 90 00 [19:28:12]wFMCommunicate OK [19:28:12]SAM_PROTO_SignData done [19:28:12]FM_MakeSignedData done [19:28:12]CreateOFDProtocolMessage [19:28:12]wFMCommunicate request_size=4 [19:28:12]MH_SAM_APDU [19:28:12]CAPDU: 80 11 00 00 [19:28:12]Write to MH i2c: E2 08 00 0E 44 80 11 00 00 00 00 00 00 CC [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:12]Read from MH i2c: E2 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 17 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: E2 17 00 0E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [19:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:12]wFMCommunicate OK [19:28:12]CreateOFDProtocolMessage done [19:28:12]OFDSenderStorePacket 166875 [19:28:12]StoreOFDPacket docnum=166875 [19:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 BC 07 01 60 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4D 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8B 02 00 35 04 06 00 2C 7B 6F 08 19 AE 2F 73 84 7D EE 07 05 5C [19:28:12]CheckFolder [19:28:12]dirname=/storage/ofd_packets [19:28:12]CheckFolder done [19:28:12]ProducePacketName [19:28:12]name=ofd_packets/00166875 [19:28:12]NVStorageSaveData ofd_packets/00166875 [19:28:12]File name is /storage/ofd_packets/00166875 [19:28:12]Write 301 bytes [19:28:12]NVStorageSaveData done [19:28:12]OFDSenderStorePacket done [19:28:12]KKMCreateOFDPacket done [19:28:12]NVStorageSaveData kkm_last_timestamp [19:28:12]File name is /storage/kkm_last_timestamp [19:28:12]Write 4 bytes [19:28:12]NVStorageSaveData done [19:28:12]ExternCall_PrintAddStr [19:28:12]wPrintStart [19:28:12]Write to MH i2c: 01 00 00 0F 44 53 [19:28:12]Write i2c OK [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: 01 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: 01 07 00 [19:28:12]MH_I2C_Read... [19:28:12]Read from MH i2c: 01 07 00 0F 44 00 00 00 00 00 FF 0F 68 [19:28:12]RasterBufferAndPrint [19:28:12]line Счет N : (1)221461 [19:28:12]line ИНН: 02508201610067 [19:28:12]line Контрольно-Кассовый Чек [19:28:12]line ПРОДАЖА [19:28:12]line ТРК (МРК, ГНК) : 43 [19:28:12]line Товар: 2710124130 [19:28:12]line Аи-92-К-5 [19:28:12]line 14.940 * 66.90 [19:28:12]line = 999.49 [19:28:12]line НДС 12% НСП 1% [19:28:12]line > о реализуемом товаре [19:28:12]line ОКРУГЛЕНИЕ: -0.49 [19:28:12]line ИТОГО: 999.00 [19:28:12]line Внесено: 1000.00 [19:28:12]line СДАЧА: 1.00 [19:28:12]line НСП 1% : 8.84 [19:28:12]line НДС 12% : 106.14 [19:28:12]line Наличными: 999.00 [19:28:12]line Безнал.: 0.00 [19:28:12]line Место: АЗС № 161 "Партнер Нефть" [19:28:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:28:12]line СНО: Общий режим [19:28:12]line Чек 290 23.10.2024 19:28 [19:28:12]line Смена: 537 ФФД: 1.0 [19:28:12]line ЗНМ: 0300000104 [19:28:12]line РНМ: 0000000000091764 [19:28:12]line Версия ККМ: 001 [19:28:12]line ФМ: 0000000000871759 [19:28:12]line ФД: 166875 [19:28:12]line ФПД: 48908655401390 [19:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166875&fm=48908655401390&tin=02508201610067®Number=0000000000091764&sum=99900 [19:28:13]OFD Sender: Processing packet 166875 [packets to send 48, broken 47] [19:28:13]ProducePacketName [19:28:13]name=ofd_packets/00166875 [19:28:13]OFD Sender: To server: pG, [19:28:13]CommunicateWithHost lk.salyk.kg:30040 [19:28:13]ConnectInit lk.salyk.kg [19:28:13]written 0, free lines is 4095 [19:28:13]Connected sock=10 [19:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 BC 07 01 60 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4D 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8B 02 00 35 04 06 00 2C 7B 6F 08 19 AE 2F 73 84 7D EE 07 05 5C [19:28:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 CA 47 00 A1 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 8B 02 00 F4 03 04 00 B4 F4 18 67 B6 04 01 00 00 50 6A 0B 95 2B 2C 27 F5 [19:28:13]CommunicateWithHost err = 0 [19:28:13]CheckOFDResponse [19:28:13]1017 (14) - 77093643461234 [19:28:13]1041 (16) - 0000000000871759 [19:28:13]1040 (4) - 166875 [19:28:13]1012 (4) - 23.10.2024 13:05 [19:28:13]1206 (1) - 0 [19:28:13]OFD Sender: Remove packet 166875 [19:28:13]ProducePacketName [19:28:13]name=ofd_packets/00166875 [19:28:13]NVStorageDeleteData [19:28:13]Write to MH i2c: 01 00 00 3A 44 7E [19:28:13]Write i2c OK [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: 01 [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: 01 07 00 [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: 01 07 00 3A 44 00 00 00 00 00 AF 0C 40 [19:28:13]RasterBufferAndPrint [19:28:13]line [19:28:13]line [19:28:13]line [19:28:13]line [19:28:13]line [19:28:13]written 0, free lines is 3253 [19:28:13]MH_Cut [19:28:13]Write to MH i2c: D1 01 00 41 44 01 57 [19:28:13]Write i2c OK [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: D1 [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: D1 01 00 [19:28:13]MH_I2C_Read... [19:28:13]Read from MH i2c: D1 01 00 41 44 00 56 [19:28:13]Write to MH i2c: 01 00 00 42 44 86 [19:28:13]Write i2c OK [19:28:13]MH_I2C_Read... [19:28:13]OFD Sender: No OFD packet to send [19:28:14]*** Cut start [19:28:14]*** Partial cut [19:28:14]*** CUTSNS_PIN = 1 [19:28:14]*** CUTSNS_PIN = 0 [19:28:14]*** Brake cut motor [19:28:14]Read from MH i2c: 01 [19:28:14]MH_I2C_Read... [19:28:14]*** Stop cut motor [19:28:14]*** Cut end [19:28:14]Read from MH i2c: 01 07 00 [19:28:14]MH_I2C_Read... [19:28:14]Read from MH i2c: 01 07 00 42 44 00 00 00 00 00 FF 0F 9B [19:28:14]process_action close_receipt done [19:28:14]requested_data is exist [19:28:14]produce_requested_data [19:28:14]requested_item fm.sn is exist - process it [19:28:14]wFMCommunicate request_size=4 [19:28:14]MH_SAM_APDU [19:28:14]CAPDU: 80 11 00 00 [19:28:14]Write to MH i2c: E2 08 00 43 44 80 11 00 00 00 00 00 00 01 [19:28:14]Write i2c OK [19:28:14]MH_I2C_Read... [19:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:15]Read from MH i2c: E2 [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 17 00 [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 17 00 43 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 59 [19:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:15]wFMCommunicate OK [19:28:15]requested_item fd.num is exist - process it [19:28:15]SAM_PROTO_GetFieldsCounters [19:28:15]wFMCommunicate request_size=4 [19:28:15]MH_SAM_APDU [19:28:15]CAPDU: 80 13 00 00 [19:28:15]Write to MH i2c: E2 08 00 44 44 80 13 00 00 00 00 00 00 04 [19:28:15]Write i2c OK [19:28:15]MH_I2C_Read... [19:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:15]Read from MH i2c: E2 [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 62 00 [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 62 00 44 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [19:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:15]wFMCommunicate OK [19:28:15]SAM_PROTO_GetFieldsCounters done [19:28:15]requested_item shift.num is exist - process it [19:28:15]requested_item shift.opened is exist - process it [19:28:15]req_shift_opened [19:28:15]FM_GetShiftState [19:28:15]SAM_PROTO_GetShiftState [19:28:15]wFMCommunicate request_size=4 [19:28:15]MH_SAM_APDU [19:28:15]CAPDU: 80 13 01 00 [19:28:15]Write to MH i2c: E2 08 00 45 44 80 13 01 00 00 00 00 00 06 [19:28:15]Write i2c OK [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 [19:28:15]MH_I2C_Read... [19:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:15]Read from MH i2c: E2 0E 00 [19:28:15]MH_I2C_Read... [19:28:15]Read from MH i2c: E2 0E 00 45 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D1 [19:28:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:28:15]wFMCommunicate OK [19:28:15]SAM_PROTO_GetShiftState done [19:28:15]FM_GetShiftState done [19:28:15]req_shift_opened done [19:28:15]requested_item shift.open_date is exist - process it [19:28:15]req_shift_open_date [19:28:15]req_shift_open_date done [19:28:15]produce_requested_data done [19:28:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166875,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:28:15]process_action_free close_receipt [19:28:15]json_value_free [19:28:15]json_value_free done [19:28:15]process_json_proto returns [19:28:15]Send response to host [19:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166875,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:28:15]free response buf [19:28:15]execute_script done [19:28:15]execute_script returns [19:28:15]free content buf [19:28:15]Sock 9.Close socket [19:28:15]Sock 9.Thread stoped [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:51]int [19:28:51]Write to MH i2c: 01 00 00 46 44 8A [19:28:51]*** FLAG_PRN_KEY set [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 46 44 00 08 00 00 00 FF 0F A7 [19:28:51]state=0 [19:28:51]Key pressed [19:28:51]Feed [19:28:51]Write to MH i2c: D8 00 00 47 44 62 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D8 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D8 01 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D8 01 00 47 44 00 63 [19:28:51]int [19:28:51]Write to MH i2c: 01 00 00 48 44 8C [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 48 44 00 48 00 00 00 3C 00 17 [19:28:51]state=2 [19:28:51]Key pressed [19:28:52]int [19:28:52]Write to MH i2c: 01 00 00 49 44 8D [19:28:52]*** FLAG_PRN_KEY reset [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 49 44 00 00 00 00 00 F6 0F 99 [19:28:52]state=2 [19:28:52]Stop feed [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:04]accept exits with 8 [19:29:04]New connection [19:29:04]New thread 3067178340 created [19:29:04]Thread 3067034980 joined [19:29:04]Waiting for new connection... [19:29:04] Sock 8.Parse request [19:29:04]Sock 8.Check first char [19:29:04]Sock 8.First char is OK [19:29:04]request: POST /json_proto HTTP/1.0 [19:29:04]Method: POST [19:29:04]URL: /json_proto [19:29:04]Method is POST - this is cgi request [19:29:04]url: /json_proto [19:29:04]query_string will be loaded in cgi processing [19:29:04]execute_cgi json_proto POST (null) [19:29:04]execute_cgi path=json_proto method=POST [19:29:04]POST find Content-Length [19:29:04]Host: 172.17.53.195:8080 [19:29:04]Content-Length: 677 [19:29:04]Content-Type: application/json [19:29:04] [19:29:04]POST finish read [19:29:04]Found Content-Length = 677 [19:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.890, "sum" : 460.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 461.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:04]execute_script... [19:29: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)221462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.890, "sum" : 460.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 461.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:04]POST & json_proto [19:29:04]process_json_proto [19:29:04]json parsed OK: [19:29:04]protocol is kg_v1.0 [19:29:04]action value=close_receipt [19:29:04]process_action close_receipt [19:29:04]cmd_close_receipt [19:29:04]MH_GetDate [19:29:04]Write to MH i2c: F0 00 00 4A 44 7D [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: F0 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: F0 09 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: F0 09 00 4A 44 00 83 4E 19 67 21 48 4A 65 EF [19:29:04]GetLastDocTimeStamp 1729711693 [19:29:04]current date 1729711747 [19:29:04]FM_GetShiftState [19:29:04]SAM_PROTO_GetShiftState [19:29:04]wFMCommunicate request_size=4 [19:29:04]MH_SAM_APDU [19:29:04]CAPDU: 80 13 01 00 [19:29:04]Write to MH i2c: E2 08 00 4B 44 80 13 01 00 00 00 00 00 0C [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:04]Read from MH i2c: E2 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: E2 0E 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: E2 0E 00 4B 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D7 [19:29:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:29:04]wFMCommunicate OK [19:29:04]SAM_PROTO_GetShiftState done [19:29:04]FM_GetShiftState done [19:29:04]opened in 1729643772 [19:29:04]opened+sec_in_day 1729730172 [19:29:04]quantity*price = 46094 [19:29:04]sum+1 = 46095 [19:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 460.00 Внесено: 461.00 СДАЧА: 1.00 НСП 1% : 4.08 НДС 12% : 48.95 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 291 23.10.2024 19:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166876 ФПД: 263100017585702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166876&fm=263100017585702&tin=02508201610067®Number=0000000000091764&sum=46000 [19:29:06]StoreToDocumentArchive [19:29:06]shift 537 fd 166876 [19:29:06]save to /storage/0537/doc_00166876 [19:29:06]save last doc name /storage/0537/doc_00166876 to /storage/kkm_last_doc_name [19:29:06]save OK [19:29:06]Clear old archive folders... [19:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:06]tlvbuf is B6DDF0C0 [19:29:06]SAM_PROTO_ClearQueue [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 09 00 00 [19:29:06]Write to MH i2c: E2 08 00 58 44 80 09 00 00 00 00 00 00 0E [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 58 44 00 90 00 10 [19:29:06]RAPDU: 90 00 [19:29:06]wFMCommunicate OK [19:29:06]SAM_PROTO_ClearQueue done [19:29:06]KKMCreateOFDPacket [19:29:06]OFDProtocolAddRootSTLVToBuf [19:29:06]FM_MakeSignedData [19:29:06]FM_MakeSignedData [19:29:06]SAM_PROTO_SignData [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 0D 01 02 [19:29:06]Write to MH i2c: E2 08 00 59 44 80 0D 01 02 00 00 00 00 16 [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 59 44 00 90 00 11 [19:29:06]RAPDU: 90 00 [19:29:06]wFMCommunicate OK [19:29:06]wFMCommunicate request_size=255 [19:29:06]MH_SAM_APDU [19:29: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 EA 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 83 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8B 02 00 35 04 06 00 EF [19:29:06]Write to MH i2c: E2 02 01 5A 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 83 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8B 02 00 35 04 06 00 EF 00 00 A2 [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 5A 44 00 90 00 12 [19:29:06]RAPDU: 90 00 [19:29:06]wFMCommunicate OK [19:29:06]wFMCommunicate request_size=10 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 0D 02 02 05 49 BF 16 AE 26 [19:29:06]Write to MH i2c: E2 0D 00 5B 44 80 0D 02 02 05 00 49 BF 16 AE 26 00 00 15 [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 03 00 5B 44 00 90 00 13 [19:29:06]RAPDU: 90 00 [19:29:06]wFMCommunicate OK [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 0D 03 02 [19:29:06]Write to MH i2c: E2 08 00 5C 44 80 0D 03 02 00 00 00 00 1B [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0B 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0B 00 5C 44 00 9F 35 E9 DC C6 26 9A 55 90 00 90 [19:29:06]RAPDU: 9F 35 E9 DC C6 26 9A 55 90 00 [19:29:06]wFMCommunicate OK [19:29:06]SAM_PROTO_SignData done [19:29:06]FM_MakeSignedData done [19:29:06]CreateOFDProtocolMessage [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 11 00 00 [19:29:06]Write to MH i2c: E2 08 00 5D 44 80 11 00 00 00 00 00 00 1B [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 17 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 17 00 5D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [19:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:29:06]wFMCommunicate OK [19:29:06]CreateOFDProtocolMessage done [19:29:06]OFDSenderStorePacket 166876 [19:29:06]StoreOFDPacket docnum=166876 [19:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 7B 07 01 B7 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 83 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8B 02 00 35 04 06 00 EF 49 BF 16 AE 26 9F 35 E9 DC C6 26 9A 55 [19:29:06]CheckFolder [19:29:06]dirname=/storage/ofd_packets [19:29:06]CheckFolder done [19:29:06]ProducePacketName [19:29:06]name=ofd_packets/00166876 [19:29:06]NVStorageSaveData ofd_packets/00166876 [19:29:06]File name is /storage/ofd_packets/00166876 [19:29:06]Write 301 bytes [19:29:06]NVStorageSaveData done [19:29:06]OFDSenderStorePacket done [19:29:06]KKMCreateOFDPacket done [19:29:06]NVStorageSaveData kkm_last_timestamp [19:29:06]File name is /storage/kkm_last_timestamp [19:29:06]Write 4 bytes [19:29:06]NVStorageSaveData done [19:29:06]ExternCall_PrintAddStr [19:29:06]wPrintStart [19:29:06]Write to MH i2c: 01 00 00 5E 44 A2 [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: 01 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: 01 07 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: 01 07 00 5E 44 00 00 00 00 00 FF 0F B7 [19:29:06]RasterBufferAndPrint [19:29:06]line Счет N : (1)221462 [19:29:06]line ИНН: 02508201610067 [19:29:06]line Контрольно-Кассовый Чек [19:29:06]line ПРОДАЖА [19:29:06]line ТРК (МРК, ГНК) : 13 [19:29:06]line Товар: 2710124130 [19:29:06]line Аи-92-К-5 [19:29:06]line 6.890 * 66.90 [19:29:06]line = 460.94 [19:29:06]line НДС 12% НСП 1% [19:29:06]line > о реализуемом товаре [19:29:06]line ОКРУГЛЕНИЕ: -0.94 [19:29:06]line ИТОГО: 460.00 [19:29:06]line Внесено: 461.00 [19:29:06]line СДАЧА: 1.00 [19:29:06]line НСП 1% : 4.08 [19:29:06]line НДС 12% : 48.95 [19:29:06]line Наличными: 460.00 [19:29:06]line Безнал.: 0.00 [19:29:06]line Место: АЗС № 161 "Партнер Нефть" [19:29:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:29:06]line СНО: Общий режим [19:29:06]line Чек 291 23.10.2024 19:29 [19:29:06]line Смена: 537 ФФД: 1.0 [19:29:06]line ЗНМ: 0300000104 [19:29:06]line РНМ: 0000000000091764 [19:29:06]line Версия ККМ: 001 [19:29:06]line ФМ: 0000000000871759 [19:29:06]line ФД: 166876 [19:29:06]line ФПД: 263100017585702 [19:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166876&fm=263100017585702&tin=02508201610067®Number=0000000000091764&sum=46000 [19:29:06]OFD Sender: Processing packet 166876 [packets to send 48, broken 47] [19:29:06]ProducePacketName [19:29:06]name=ofd_packets/00166876 [19:29:06]OFD Sender: To server: pG, [19:29:06]CommunicateWithHost lk.salyk.kg:30040 [19:29:06]ConnectInit lk.salyk.kg [19:29:06]written 0, free lines is 4095 [19:29:07]Connected sock=10 [19:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 7B 07 01 B7 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 83 4E 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8B 02 00 35 04 06 00 EF 49 BF 16 AE 26 9F 35 E9 DC C6 26 9A 55 [19:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 4D 47 00 21 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 8B 02 00 F4 03 04 00 EA F4 18 67 B6 04 01 00 00 23 AE D0 B0 82 F3 71 2E [19:29:07]CommunicateWithHost err = 0 [19:29:07]CheckOFDResponse [19:29:07]1017 (14) - 77093643461234 [19:29:07]1041 (16) - 0000000000871759 [19:29:07]1040 (4) - 166876 [19:29:07]1012 (4) - 23.10.2024 13:06 [19:29:07]1206 (1) - 0 [19:29:07]OFD Sender: Remove packet 166876 [19:29:07]ProducePacketName [19:29:07]name=ofd_packets/00166876 [19:29:07]NVStorageDeleteData [19:29:07]Write to MH i2c: 01 00 00 89 44 CD [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 07 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 07 00 89 44 00 00 00 00 00 AF 0C 8F [19:29:07]RasterBufferAndPrint [19:29:07]line [19:29:07]line [19:29:07]line [19:29:07]line [19:29:07]line [19:29:07]written 0, free lines is 3253 [19:29:07]MH_Cut [19:29:07]Write to MH i2c: D1 01 00 90 44 01 A6 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: D1 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: D1 01 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: D1 01 00 90 44 00 A5 [19:29:07]Write to MH i2c: 01 00 00 91 44 D5 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]OFD Sender: No OFD packet to send [19:29:08]*** Cut start [19:29:08]*** Partial cut [19:29:08]*** CUTSNS_PIN = 1 [19:29:08]*** CUTSNS_PIN = 0 [19:29:08]*** Brake cut motor [19:29:08]Read from MH i2c: 01 [19:29:08]MH_I2C_Read... [19:29:08]*** Stop cut motor [19:29:08]*** Cut end [19:29:08]Read from MH i2c: 01 07 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: 01 07 00 91 44 00 00 00 00 00 FF 0F EA [19:29:08]process_action close_receipt done [19:29:08]requested_data is exist [19:29:08]produce_requested_data [19:29:08]requested_item fm.sn is exist - process it [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 11 00 00 [19:29:08]Write to MH i2c: E2 08 00 92 44 80 11 00 00 00 00 00 00 50 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 17 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 17 00 92 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [19:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:29:08]wFMCommunicate OK [19:29:08]requested_item fd.num is exist - process it [19:29:08]SAM_PROTO_GetFieldsCounters [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 13 00 00 [19:29:08]Write to MH i2c: E2 08 00 93 44 80 13 00 00 00 00 00 00 53 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 62 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 62 00 93 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [19:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_GetFieldsCounters done [19:29:09]requested_item shift.num is exist - process it [19:29:09]requested_item shift.opened is exist - process it [19:29:09]req_shift_opened [19:29:09]FM_GetShiftState [19:29:09]SAM_PROTO_GetShiftState [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 13 01 00 [19:29:09]Write to MH i2c: E2 08 00 94 44 80 13 01 00 00 00 00 00 55 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0E 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0E 00 94 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [19:29:09]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_GetShiftState done [19:29:09]FM_GetShiftState done [19:29:09]req_shift_opened done [19:29:09]requested_item shift.open_date is exist - process it [19:29:09]req_shift_open_date [19:29:09]req_shift_open_date done [19:29:09]produce_requested_data done [19:29:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166876,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:29:09]process_action_free close_receipt [19:29:09]json_value_free [19:29:09]json_value_free done [19:29:09]process_json_proto returns [19:29:09]Send response to host [19:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166876,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:29:09]free response buf [19:29:09]execute_script done [19:29:09]execute_script returns [19:29:09]free content buf [19:29:09]Sock 8.Close socket [19:29:09]Sock 8.Thread stoped [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:08]accept exits with 9 [19:32:08]New connection [19:32:08]New thread 3067034980 created [19:32:08]Thread 3067178340 joined [19:32:08]Waiting for new connection... [19:32:08] Sock 9.Parse request [19:32:08]Sock 9.Check first char [19:32:08]Sock 9.First char is OK [19:32:08]request: POST /json_proto HTTP/1.0 [19:32:08]Method: POST [19:32:08]URL: /json_proto [19:32:08]Method is POST - this is cgi request [19:32:08]url: /json_proto [19:32:08]query_string will be loaded in cgi processing [19:32:08]execute_cgi json_proto POST (null) [19:32:08]execute_cgi path=json_proto method=POST [19:32:08]POST find Content-Length [19:32:08]Host: 172.17.53.195:8080 [19:32:08]Content-Length: 677 [19:32:08]Content-Type: application/json [19:32:08] [19:32:08]POST finish read [19:32:08]Found Content-Length = 677 [19:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:08]execute_script... [19: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)221463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:08]POST & json_proto [19:32:08]process_json_proto [19:32:08]json parsed OK: [19:32:08]protocol is kg_v1.0 [19:32:08]action value=close_receipt [19:32:08]process_action close_receipt [19:32:08]cmd_close_receipt [19:32:08]MH_GetDate [19:32:08]Write to MH i2c: F0 00 00 95 44 C8 [19:32:08]Write i2c OK [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: F0 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: F0 09 00 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: F0 09 00 95 44 00 3A 4F 19 67 21 48 4A 65 F2 [19:32:08]GetLastDocTimeStamp 1729711747 [19:32:08]current date 1729711930 [19:32:08]FM_GetShiftState [19:32:08]SAM_PROTO_GetShiftState [19:32:08]wFMCommunicate request_size=4 [19:32:08]MH_SAM_APDU [19:32:08]CAPDU: 80 13 01 00 [19:32:08]Write to MH i2c: E2 08 00 96 44 80 13 01 00 00 00 00 00 57 [19:32:08]Write i2c OK [19:32:08]MH_I2C_Read... [19:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:08]Read from MH i2c: E2 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 0E 00 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 0E 00 96 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 22 [19:32:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:32:08]wFMCommunicate OK [19:32:08]SAM_PROTO_GetShiftState done [19:32:08]FM_GetShiftState done [19:32:08]opened in 1729643772 [19:32:08]opened+sec_in_day 1729730172 [19:32:08]quantity*price = 20003 [19:32:08]sum+1 = 20004 [19:32: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 292 23.10.2024 19:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166877 ФПД: 13727245113244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166877&fm=13727245113244&tin=02508201610067®Number=0000000000091764&sum=20000 [19:32:09]StoreToDocumentArchive [19:32:09]shift 537 fd 166877 [19:32:09]save to /storage/0537/doc_00166877 [19:32:09]save last doc name /storage/0537/doc_00166877 to /storage/kkm_last_doc_name [19:32:09]save OK [19:32:09]Clear old archive folders... [19:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:09]tlvbuf is 01F61A20 [19:32:09]SAM_PROTO_ClearQueue [19:32:09]wFMCommunicate request_size=4 [19:32:09]MH_SAM_APDU [19:32:09]CAPDU: 80 09 00 00 [19:32:09]Write to MH i2c: E2 08 00 A3 44 80 09 00 00 00 00 00 00 59 [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:09]Read from MH i2c: E2 03 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 A3 44 00 90 00 5B [19:32:09]RAPDU: 90 00 [19:32:09]wFMCommunicate OK [19:32:09]SAM_PROTO_ClearQueue done [19:32:09]KKMCreateOFDPacket [19:32:09]OFDProtocolAddRootSTLVToBuf [19:32:09]FM_MakeSignedData [19:32:09]FM_MakeSignedData [19:32:09]SAM_PROTO_SignData [19:32:09]wFMCommunicate request_size=4 [19:32:09]MH_SAM_APDU [19:32:09]CAPDU: 80 0D 01 02 [19:32:09]Write to MH i2c: E2 08 00 A4 44 80 0D 01 02 00 00 00 00 61 [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 A4 44 00 90 00 5C [19:32:09]RAPDU: 90 00 [19:32:09]wFMCommunicate OK [19:32:09]wFMCommunicate request_size=255 [19:32:09]MH_SAM_APDU [19: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3A 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8B 02 00 35 04 06 00 0C [19:32:09]Write to MH i2c: E2 02 01 A5 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3A 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8B 02 00 35 04 06 00 0C 00 00 78 [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 A5 44 00 90 00 5D [19:32:09]RAPDU: 90 00 [19:32:09]wFMCommunicate OK [19:32:09]wFMCommunicate request_size=10 [19:32:09]MH_SAM_APDU [19:32:09]CAPDU: 80 0D 02 02 05 7C 1F 91 97 9C [19:32:09]Write to MH i2c: E2 0D 00 A6 44 80 0D 02 02 05 00 7C 1F 91 97 9C 00 00 CD [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 03 00 A6 44 00 90 00 5E [19:32:09]RAPDU: 90 00 [19:32:09]wFMCommunicate OK [19:32:09]wFMCommunicate request_size=4 [19:32:09]MH_SAM_APDU [19:32:09]CAPDU: 80 0D 03 02 [19:32:09]Write to MH i2c: E2 08 00 A7 44 80 0D 03 02 00 00 00 00 66 [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 0B 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 0B 00 A7 44 00 3B E7 53 86 0B 0B AC B2 90 00 D6 [19:32:09]RAPDU: 3B E7 53 86 0B 0B AC B2 90 00 [19:32:09]wFMCommunicate OK [19:32:09]SAM_PROTO_SignData done [19:32:09]FM_MakeSignedData done [19:32:09]CreateOFDProtocolMessage [19:32:09]wFMCommunicate request_size=4 [19:32:09]MH_SAM_APDU [19:32:09]CAPDU: 80 11 00 00 [19:32:09]Write to MH i2c: E2 08 00 A8 44 80 11 00 00 00 00 00 00 66 [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:09]Read from MH i2c: E2 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 17 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: E2 17 00 A8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [19:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:32:09]wFMCommunicate OK [19:32:09]CreateOFDProtocolMessage done [19:32:09]OFDSenderStorePacket 166877 [19:32:09]StoreOFDPacket docnum=166877 [19:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3A 33 07 01 34 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3A 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8B 02 00 35 04 06 00 0C 7C 1F 91 97 9C 3B E7 53 86 0B 0B AC B2 [19:32:09]CheckFolder [19:32:09]dirname=/storage/ofd_packets [19:32:09]CheckFolder done [19:32:09]ProducePacketName [19:32:09]name=ofd_packets/00166877 [19:32:09]NVStorageSaveData ofd_packets/00166877 [19:32:09]File name is /storage/ofd_packets/00166877 [19:32:09]Write 301 bytes [19:32:09]NVStorageSaveData done [19:32:09]OFDSenderStorePacket done [19:32:09]KKMCreateOFDPacket done [19:32:09]NVStorageSaveData kkm_last_timestamp [19:32:09]File name is /storage/kkm_last_timestamp [19:32:09]Write 4 bytes [19:32:09]NVStorageSaveData done [19:32:09]ExternCall_PrintAddStr [19:32:09]wPrintStart [19:32:09]Write to MH i2c: 01 00 00 A9 44 ED [19:32:09]Write i2c OK [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: 01 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: 01 07 00 [19:32:09]MH_I2C_Read... [19:32:09]Read from MH i2c: 01 07 00 A9 44 00 00 00 00 00 FF 0F 02 [19:32:09]RasterBufferAndPrint [19:32:09]line Счет N : (1)221463 [19:32:09]line ИНН: 02508201610067 [19:32:09]line Контрольно-Кассовый Чек [19:32:09]line ПРОДАЖА [19:32:09]line ТРК (МРК, ГНК) : 23 [19:32:09]line Товар: 2710124130 [19:32:09]line Аи-92-К-5 [19:32:09]line 2.990 * 66.90 [19:32:09]line = 200.03 [19:32:09]line НДС 12% НСП 1% [19:32:09]line > о реализуемом товаре [19:32:09]line ОКРУГЛЕНИЕ: -0.03 [19:32:09]line ИТОГО: 200.00 [19:32:09]line Внесено: 200.00 [19:32:09]line СДАЧА: 0.00 [19:32:09]line НСП 1% : 1.77 [19:32:09]line НДС 12% : 21.24 [19:32:09]line Наличными: 200.00 [19:32:09]line Безнал.: 0.00 [19:32:09]line Место: АЗС № 161 "Партнер Нефть" [19:32:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:32:09]line СНО: Общий режим [19:32:09]line Чек 292 23.10.2024 19:32 [19:32:09]line Смена: 537 ФФД: 1.0 [19:32:10]line ЗНМ: 0300000104 [19:32:10]line РНМ: 0000000000091764 [19:32:10]line Версия ККМ: 001 [19:32:10]line ФМ: 0000000000871759 [19:32:10]line ФД: 166877 [19:32:10]line ФПД: 13727245113244 [19:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166877&fm=13727245113244&tin=02508201610067®Number=0000000000091764&sum=20000 [19:32:10]OFD Sender: Processing packet 166877 [packets to send 48, broken 47] [19:32:10]ProducePacketName [19:32:10]name=ofd_packets/00166877 [19:32:10]OFD Sender: To server: pG, [19:32:10]CommunicateWithHost lk.salyk.kg:30040 [19:32:10]ConnectInit lk.salyk.kg [19:32:10]written 0, free lines is 4095 [19:32:10]Connected sock=10 [19: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 31 37 35 39 0F 01 00 00 3A 33 07 01 34 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3A 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8B 02 00 35 04 06 00 0C 7C 1F 91 97 9C 3B E7 53 86 0B 0B AC B2 [19:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CC 6C 47 00 7E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 8B 02 00 F4 03 04 00 A1 F5 18 67 B6 04 01 00 00 66 D2 91 56 95 A5 C9 C0 [19:32:10]CommunicateWithHost err = 0 [19:32:10]CheckOFDResponse [19:32:10]1017 (14) - 77093643461234 [19:32:10]1041 (16) - 0000000000871759 [19:32:10]1040 (4) - 166877 [19:32:10]1012 (4) - 23.10.2024 13:09 [19:32:10]1206 (1) - 0 [19:32:10]OFD Sender: Remove packet 166877 [19:32:10]ProducePacketName [19:32:10]name=ofd_packets/00166877 [19:32:10]NVStorageDeleteData [19:32:10]Write to MH i2c: 01 00 00 D4 44 18 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 D4 44 00 00 00 00 00 A3 0C CE [19:32:10]RasterBufferAndPrint [19:32:10]line [19:32:10]line [19:32:10]line [19:32:10]line [19:32:10]line [19:32:10]written 0, free lines is 3241 [19:32:10]MH_Cut [19:32:10]Write to MH i2c: D1 01 00 DB 44 01 F1 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D1 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D1 01 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D1 01 00 DB 44 00 F0 [19:32:10]Write to MH i2c: 01 00 00 DC 44 20 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:11]OFD Sender: No OFD packet to send [19:32:11]*** Cut start [19:32:11]*** Partial cut [19:32:11]*** CUTSNS_PIN = 1 [19:32:11]*** CUTSNS_PIN = 0 [19:32:11]*** Brake cut motor [19:32:12]Read from MH i2c: 01 [19:32:12]MH_I2C_Read... [19:32:12]*** Stop cut motor [19:32:12]*** Cut end [19:32:12]Read from MH i2c: 01 07 00 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: 01 07 00 DC 44 00 00 00 00 00 FF 0F 35 [19:32:12]process_action close_receipt done [19:32:12]requested_data is exist [19:32:12]produce_requested_data [19:32:12]requested_item fm.sn is exist - process it [19:32:12]wFMCommunicate request_size=4 [19:32:12]MH_SAM_APDU [19:32:12]CAPDU: 80 11 00 00 [19:32:12]Write to MH i2c: E2 08 00 DD 44 80 11 00 00 00 00 00 00 9B [19:32:12]Write i2c OK [19:32:12]MH_I2C_Read... [19:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:12]Read from MH i2c: E2 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 17 00 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 17 00 DD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [19:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:32:12]wFMCommunicate OK [19:32:12]requested_item fd.num is exist - process it [19:32:12]SAM_PROTO_GetFieldsCounters [19:32:12]wFMCommunicate request_size=4 [19:32:12]MH_SAM_APDU [19:32:12]CAPDU: 80 13 00 00 [19:32:12]Write to MH i2c: E2 08 00 DE 44 80 13 00 00 00 00 00 00 9E [19:32:12]Write i2c OK [19:32:12]MH_I2C_Read... [19:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:12]Read from MH i2c: E2 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 62 00 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 62 00 DE 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [19: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:12]wFMCommunicate OK [19:32:12]SAM_PROTO_GetFieldsCounters done [19:32:12]requested_item shift.num is exist - process it [19:32:12]requested_item shift.opened is exist - process it [19:32:12]req_shift_opened [19:32:12]FM_GetShiftState [19:32:12]SAM_PROTO_GetShiftState [19:32:12]wFMCommunicate request_size=4 [19:32:12]MH_SAM_APDU [19:32:12]CAPDU: 80 13 01 00 [19:32:12]Write to MH i2c: E2 08 00 DF 44 80 13 01 00 00 00 00 00 A0 [19:32:12]Write i2c OK [19:32:12]MH_I2C_Read... [19:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:12]Read from MH i2c: E2 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 0E 00 [19:32:12]MH_I2C_Read... [19:32:12]Read from MH i2c: E2 0E 00 DF 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6B [19:32:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:32:12]wFMCommunicate OK [19:32:12]SAM_PROTO_GetShiftState done [19:32:12]FM_GetShiftState done [19:32:12]req_shift_opened done [19:32:12]requested_item shift.open_date is exist - process it [19:32:12]req_shift_open_date [19:32:12]req_shift_open_date done [19:32:12]produce_requested_data done [19:32:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166877,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:32:12]process_action_free close_receipt [19:32:12]json_value_free [19:32:12]json_value_free done [19:32:12]process_json_proto returns [19:32:12]Send response to host [19:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166877,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:32:12]free response buf [19:32:12]execute_script done [19:32:12]execute_script returns [19:32:12]free content buf [19:32:12]Sock 9.Close socket [19:32:12]Sock 9.Thread stoped [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:32]accept exits with 8 [19:33:32]New connection [19:33:32]New thread 3067178340 created [19:33:32]Thread 3067034980 joined [19:33:32]Waiting for new connection... [19:33:32] Sock 8.Parse request [19:33:32]Sock 8.Check first char [19:33:32]Sock 8.First char is OK [19:33:32]request: POST /json_proto HTTP/1.0 [19:33:32]Method: POST [19:33:32]URL: /json_proto [19:33:32]Method is POST - this is cgi request [19:33:32]url: /json_proto [19:33:32]query_string will be loaded in cgi processing [19:33:32]execute_cgi json_proto POST (null) [19:33:32]execute_cgi path=json_proto method=POST [19:33:32]POST find Content-Length [19:33:32]Host: 172.17.53.195:8080 [19:33:32]Content-Length: 677 [19:33:32]Content-Type: application/json [19:33:32] [19:33:32]POST finish read [19:33:32]Found Content-Length = 677 [19:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:32]execute_script... [19:33:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:32]POST & json_proto [19:33:32]process_json_proto [19:33:32]json parsed OK: [19:33:32]protocol is kg_v1.0 [19:33:32]action value=close_receipt [19:33:32]process_action close_receipt [19:33:32]cmd_close_receipt [19:33:32]MH_GetDate [19:33:32]Write to MH i2c: F0 00 00 E0 44 13 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: F0 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: F0 09 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: F0 09 00 E0 44 00 8E 4F 19 67 21 48 4A 65 91 [19:33:32]GetLastDocTimeStamp 1729711930 [19:33:32]current date 1729712014 [19:33:32]FM_GetShiftState [19:33:32]SAM_PROTO_GetShiftState [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 13 01 00 [19:33:32]Write to MH i2c: E2 08 00 E1 44 80 13 01 00 00 00 00 00 A2 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 0E 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 0E 00 E1 44 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6D [19:33:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:33:32]wFMCommunicate OK [19:33:32]SAM_PROTO_GetShiftState done [19:33:32]FM_GetShiftState done [19:33:32]opened in 1729643772 [19:33:32]opened+sec_in_day 1729730172 [19:33:32]quantity*price = 20003 [19:33:32]sum+1 = 20004 [19:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 293 23.10.2024 19:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166878 ФПД: 150155248561375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166878&fm=150155248561375&tin=02508201610067®Number=0000000000091764&sum=20000 [19:33:33]StoreToDocumentArchive [19:33:33]shift 537 fd 166878 [19:33:33]save to /storage/0537/doc_00166878 [19:33:33]save last doc name /storage/0537/doc_00166878 to /storage/kkm_last_doc_name [19:33:33]save OK [19:33:33]Clear old archive folders... [19:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:33]tlvbuf is 01F61580 [19:33:33]SAM_PROTO_ClearQueue [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 09 00 00 [19:33:33]Write to MH i2c: E2 08 00 EE 44 80 09 00 00 00 00 00 00 A4 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 EE 44 00 90 00 A6 [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_ClearQueue done [19:33:33]KKMCreateOFDPacket [19:33:33]OFDProtocolAddRootSTLVToBuf [19:33:33]FM_MakeSignedData [19:33:33]FM_MakeSignedData [19:33:33]SAM_PROTO_SignData [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 01 02 [19:33:33]Write to MH i2c: E2 08 00 EF 44 80 0D 01 02 00 00 00 00 AC [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 EF 44 00 90 00 A7 [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]wFMCommunicate request_size=255 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 8E 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8B 02 00 35 04 06 00 88 [19:33:33]Write to MH i2c: E2 02 01 F0 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 8E 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8B 02 00 35 04 06 00 88 00 00 95 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 F0 44 00 90 00 A8 [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]wFMCommunicate request_size=10 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 02 02 05 90 BE 40 6C DF [19:33:33]Write to MH i2c: E2 0D 00 F1 44 80 0D 02 02 05 00 90 BE 40 6C DF 00 00 92 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 F1 44 00 90 00 A9 [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 03 02 [19:33:33]Write to MH i2c: E2 08 00 F2 44 80 0D 03 02 00 00 00 00 B1 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0B 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0B 00 F2 44 00 90 4A 1D C3 24 D1 8D 0F 90 00 FD [19:33:33]RAPDU: 90 4A 1D C3 24 D1 8D 0F 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_SignData done [19:33:33]FM_MakeSignedData done [19:33:33]CreateOFDProtocolMessage [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 11 00 00 [19:33:33]Write to MH i2c: E2 08 00 F3 44 80 11 00 00 00 00 00 00 B1 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 F3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [19:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:33:33]wFMCommunicate OK [19:33:33]CreateOFDProtocolMessage done [19:33:33]OFDSenderStorePacket 166878 [19:33:33]StoreOFDPacket docnum=166878 [19:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC 10 07 01 DF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 8E 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8B 02 00 35 04 06 00 88 90 BE 40 6C DF 90 4A 1D C3 24 D1 8D 0F [19:33:33]CheckFolder [19:33:33]dirname=/storage/ofd_packets [19:33:33]CheckFolder done [19:33:33]ProducePacketName [19:33:33]name=ofd_packets/00166878 [19:33:33]NVStorageSaveData ofd_packets/00166878 [19:33:33]File name is /storage/ofd_packets/00166878 [19:33:33]Write 301 bytes [19:33:33]NVStorageSaveData done [19:33:33]OFDSenderStorePacket done [19:33:33]KKMCreateOFDPacket done [19:33:33]NVStorageSaveData kkm_last_timestamp [19:33:33]File name is /storage/kkm_last_timestamp [19:33:33]Write 4 bytes [19:33:33]NVStorageSaveData done [19:33:33]ExternCall_PrintAddStr [19:33:33]wPrintStart [19:33:33]Write to MH i2c: 01 00 00 F4 44 38 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 07 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 07 00 F4 44 00 00 00 00 00 FF 0F 4D [19:33:33]RasterBufferAndPrint [19:33:33]line Счет N : (1)221464 [19:33:33]line ИНН: 02508201610067 [19:33:33]line Контрольно-Кассовый Чек [19:33:33]line ПРОДАЖА [19:33:33]line ТРК (МРК, ГНК) : 13 [19:33:33]line Товар: 2710124130 [19:33:33]line Аи-92-К-5 [19:33:33]line 2.990 * 66.90 [19:33:33]line = 200.03 [19:33:33]line НДС 12% НСП 1% [19:33:33]line > о реализуемом товаре [19:33:33]line ОКРУГЛЕНИЕ: -0.03 [19:33:33]line ИТОГО: 200.00 [19:33:33]line Внесено: 200.00 [19:33:33]line СДАЧА: 0.00 [19:33:33]line НСП 1% : 1.77 [19:33:33]line НДС 12% : 21.24 [19:33:33]line Наличными: 200.00 [19:33:33]line Безнал.: 0.00 [19:33:33]line Место: АЗС № 161 "Партнер Нефть" [19:33:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:33:33]line СНО: Общий режим [19:33:33]line Чек 293 23.10.2024 19:33 [19:33:33]line Смена: 537 ФФД: 1.0 [19:33:33]line ЗНМ: 0300000104 [19:33:33]line РНМ: 0000000000091764 [19:33:33]line Версия ККМ: 001 [19:33:33]line ФМ: 0000000000871759 [19:33:33]line ФД: 166878 [19:33:33]line ФПД: 150155248561375 [19:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166878&fm=150155248561375&tin=02508201610067®Number=0000000000091764&sum=20000 [19:33:33]OFD Sender: Processing packet 166878 [packets to send 48, broken 47] [19:33:33]ProducePacketName [19:33:33]name=ofd_packets/00166878 [19:33:33]OFD Sender: To server: pG, [19:33:33]CommunicateWithHost lk.salyk.kg:30040 [19:33:34]ConnectInit lk.salyk.kg [19:33:34]written 0, free lines is 4095 [19:33:34]Connected sock=10 [19:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC 10 07 01 DF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 8E 4F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8B 02 00 35 04 06 00 88 90 BE 40 6C DF 90 4A 1D C3 24 D1 8D 0F [19:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 C2 47 00 E7 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 8B 02 00 F4 03 04 00 F5 F5 18 67 B6 04 01 00 00 B9 34 48 2A 5F EC 33 43 [19:33:34]CommunicateWithHost err = 0 [19:33:34]CheckOFDResponse [19:33:34]1017 (14) - 77093643461234 [19:33:34]1041 (16) - 0000000000871759 [19:33:34]1040 (4) - 166878 [19:33:34]1012 (4) - 23.10.2024 13:11 [19:33:34]1206 (1) - 0 [19:33:34]OFD Sender: Remove packet 166878 [19:33:34]ProducePacketName [19:33:34]name=ofd_packets/00166878 [19:33:34]NVStorageDeleteData [19:33:34]Write to MH i2c: 01 00 00 1F 45 64 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 1F 45 00 00 00 00 00 A5 0C 1C [19:33:34]RasterBufferAndPrint [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]written 0, free lines is 3242 [19:33:34]MH_Cut [19:33:34]Write to MH i2c: D1 01 00 26 45 01 3D [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 01 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 01 00 26 45 00 3C [19:33:34]Write to MH i2c: 01 00 00 27 45 6C [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:35]OFD Sender: No OFD packet to send [19:33:35]*** Cut start [19:33:35]*** Partial cut [19:33:35]*** CUTSNS_PIN = 1 [19:33:35]*** CUTSNS_PIN = 0 [19:33:35]*** Brake cut motor [19:33:36]Read from MH i2c: 01 [19:33:36]MH_I2C_Read... [19:33:36]*** Stop cut motor [19:33:36]*** Cut end [19:33:36]Read from MH i2c: 01 07 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: 01 07 00 27 45 00 00 00 00 00 FF 0F 81 [19:33:36]process_action close_receipt done [19:33:36]requested_data is exist [19:33:36]produce_requested_data [19:33:36]requested_item fm.sn is exist - process it [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 11 00 00 [19:33:36]Write to MH i2c: E2 08 00 28 45 80 11 00 00 00 00 00 00 E7 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 17 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 17 00 28 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [19:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:33:36]wFMCommunicate OK [19:33:36]requested_item fd.num is exist - process it [19:33:36]SAM_PROTO_GetFieldsCounters [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 13 00 00 [19:33:36]Write to MH i2c: E2 08 00 29 45 80 13 00 00 00 00 00 00 EA [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 62 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 62 00 29 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:36]wFMCommunicate OK [19:33:36]SAM_PROTO_GetFieldsCounters done [19:33:36]requested_item shift.num is exist - process it [19:33:36]requested_item shift.opened is exist - process it [19:33:36]req_shift_opened [19:33:36]FM_GetShiftState [19:33:36]SAM_PROTO_GetShiftState [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 13 01 00 [19:33:36]Write to MH i2c: E2 08 00 2A 45 80 13 01 00 00 00 00 00 EC [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 0E 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 0E 00 2A 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B7 [19:33:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:33:36]wFMCommunicate OK [19:33:36]SAM_PROTO_GetShiftState done [19:33:36]FM_GetShiftState done [19:33:36]req_shift_opened done [19:33:36]requested_item shift.open_date is exist - process it [19:33:36]req_shift_open_date [19:33:36]req_shift_open_date done [19:33:36]produce_requested_data done [19:33:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166878,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:33:36]process_action_free close_receipt [19:33:36]json_value_free [19:33:36]json_value_free done [19:33:36]process_json_proto returns [19:33:36]Send response to host [19:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166878,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:33:36]free response buf [19:33:36]execute_script done [19:33:36]execute_script returns [19:33:36]free content buf [19:33:36]Sock 8.Close socket [19:33:36]Sock 8.Thread stoped [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:39]accept exits with 9 [19:35:39]New connection [19:35:39]New thread 3067034980 created [19:35:39]Thread 3067178340 joined [19:35:39]Waiting for new connection... [19:35:39] Sock 9.Parse request [19:35:39]Sock 9.Check first char [19:35:39]Sock 9.First char is OK [19:35:39]request: POST /json_proto HTTP/1.0 [19:35:39]Method: POST [19:35:39]URL: /json_proto [19:35:39]Method is POST - this is cgi request [19:35:39]url: /json_proto [19:35:39]query_string will be loaded in cgi processing [19:35:39]execute_cgi json_proto POST (null) [19:35:39]execute_cgi path=json_proto method=POST [19:35:39]POST find Content-Length [19:35:39]Host: 172.17.53.195:8080 [19:35:39]Content-Length: 679 [19:35:39]Content-Type: application/json [19:35:39] [19:35:39]POST finish read [19:35:39]Found Content-Length = 679 [19:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:39]execute_script... [19:35: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)221465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:39]POST & json_proto [19:35:39]process_json_proto [19:35:39]json parsed OK: [19:35:39]protocol is kg_v1.0 [19:35:39]action value=close_receipt [19:35:39]process_action close_receipt [19:35:39]cmd_close_receipt [19:35:39]MH_GetDate [19:35:39]Write to MH i2c: F0 00 00 2B 45 5F [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 09 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 09 00 2B 45 00 0E 50 19 67 21 48 4A 65 5E [19:35:39]GetLastDocTimeStamp 1729712014 [19:35:39]current date 1729712142 [19:35:39]FM_GetShiftState [19:35:39]SAM_PROTO_GetShiftState [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 13 01 00 [19:35:39]Write to MH i2c: E2 08 00 2C 45 80 13 01 00 00 00 00 00 EE [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 2C 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B9 [19:35:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_GetShiftState done [19:35:39]FM_GetShiftState done [19:35:39]opened in 1729643772 [19:35:39]opened+sec_in_day 1729730172 [19:35:39]quantity*price = 150037 [19:35:39]sum+1 = 150039 [19:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 294 23.10.2024 19:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166879 ФПД: 157512588161482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166879&fm=157512588161482&tin=02508201610067®Number=0000000000091764&sum=150000 [19:35:40]StoreToDocumentArchive [19:35:40]shift 537 fd 166879 [19:35:40]save to /storage/0537/doc_00166879 [19:35:40]save last doc name /storage/0537/doc_00166879 to /storage/kkm_last_doc_name [19:35:40]save OK [19:35:40]Clear old archive folders... [19:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:35:40]tlvbuf is 01FC7160 [19:35:40]SAM_PROTO_ClearQueue [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 09 00 00 [19:35:40]Write to MH i2c: E2 08 00 39 45 80 09 00 00 00 00 00 00 F0 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 39 45 00 90 00 F2 [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_ClearQueue done [19:35:40]KKMCreateOFDPacket [19:35:40]OFDProtocolAddRootSTLVToBuf [19:35:40]FM_MakeSignedData [19:35:40]FM_MakeSignedData [19:35:40]SAM_PROTO_SignData [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 01 02 [19:35:40]Write to MH i2c: E2 08 00 3A 45 80 0D 01 02 00 00 00 00 F8 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 3A 45 00 90 00 F3 [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]wFMCommunicate request_size=255 [19:35:40]MH_SAM_APDU [19:35: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 0E 50 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8B 02 00 35 04 06 00 8F 41 C1 DD [19:35:40]Write to MH i2c: E2 02 01 3B 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 0E 50 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8B 02 00 35 04 06 00 8F 41 C1 DD 00 00 F5 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 3B 45 00 90 00 F4 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=7 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 02 02 02 71 CA [19:35:41]Write to MH i2c: E2 0A 00 3C 45 80 0D 02 02 02 00 71 CA 00 00 3A [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 3C 45 00 90 00 F5 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 03 02 [19:35:41]Write to MH i2c: E2 08 00 3D 45 80 0D 03 02 00 00 00 00 FD [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0B 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0B 00 3D 45 00 3C 86 8E 39 8A A3 E2 33 90 00 C9 [19:35:41]RAPDU: 3C 86 8E 39 8A A3 E2 33 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_SignData done [19:35:41]FM_MakeSignedData done [19:35:41]CreateOFDProtocolMessage [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 11 00 00 [19:35:41]Write to MH i2c: E2 08 00 3E 45 80 11 00 00 00 00 00 00 FD [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 3E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [19:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:35:41]wFMCommunicate OK [19:35:41]CreateOFDProtocolMessage done [19:35:41]OFDSenderStorePacket 166879 [19:35:41]StoreOFDPacket docnum=166879 [19:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 40 9D 04 01 C1 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 0E 50 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8B 02 00 35 04 06 00 8F 41 C1 DD 71 CA 3C 86 8E 39 8A A3 E2 33 [19:35:41]CheckFolder [19:35:41]dirname=/storage/ofd_packets [19:35:41]CheckFolder done [19:35:41]ProducePacketName [19:35:41]name=ofd_packets/00166879 [19:35:41]NVStorageSaveData ofd_packets/00166879 [19:35:41]File name is /storage/ofd_packets/00166879 [19:35:41]Write 298 bytes [19:35:41]NVStorageSaveData done [19:35:41]OFDSenderStorePacket done [19:35:41]KKMCreateOFDPacket done [19:35:41]NVStorageSaveData kkm_last_timestamp [19:35:41]File name is /storage/kkm_last_timestamp [19:35:41]Write 4 bytes [19:35:41]NVStorageSaveData done [19:35:41]ExternCall_PrintAddStr [19:35:41]wPrintStart [19:35:41]Write to MH i2c: 01 00 00 3F 45 84 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 3F 45 00 00 00 00 00 FF 0F 99 [19:35:41]RasterBufferAndPrint [19:35:41]line Счет N : (1)221465 [19:35:41]line ИНН: 02508201610067 [19:35:41]line Контрольно-Кассовый Чек [19:35:41]line ПРОДАЖА [19:35:41]line ТРК (МРК, ГНК) : 21 [19:35:41]line Товар: 2710194210 [19:35:41]line ДТ-К-5 [19:35:41]line 19.690 * 76.20 [19:35:41]line = 1500.38 [19:35:41]line НДС 12% НСП 1% [19:35:41]line > о реализуемом товаре [19:35:41]line ОКРУГЛЕНИЕ: -0.38 [19:35:41]line ИТОГО: 1500.00 [19:35:41]line Внесено: 1500.00 [19:35:41]line СДАЧА: 0.00 [19:35:41]line НСП 1% : 13.28 [19:35:41]line НДС 12% : 159.33 [19:35:41]line Наличными: 1500.00 [19:35:41]line Безнал.: 0.00 [19:35:41]line Место: АЗС № 161 "Партнер Нефть" [19:35:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:35:41]line СНО: Общий режим [19:35:41]line Чек 294 23.10.2024 19:35 [19:35:41]line Смена: 537 ФФД: 1.0 [19:35:41]line ЗНМ: 0300000104 [19:35:41]line РНМ: 0000000000091764 [19:35:41]line Версия ККМ: 001 [19:35:41]line ФМ: 0000000000871759 [19:35:41]line ФД: 166879 [19:35:41]line ФПД: 157512588161482 [19:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193542&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166879&fm=157512588161482&tin=02508201610067®Number=0000000000091764&sum=150000 [19:35:41]OFD Sender: Processing packet 166879 [packets to send 48, broken 47] [19:35:41]ProducePacketName [19:35:41]name=ofd_packets/00166879 [19:35:41]OFD Sender: To server: pG, [19:35:41]CommunicateWithHost lk.salyk.kg:30040 [19:35:41]ConnectInit lk.salyk.kg [19:35:41]written 0, free lines is 4095 [19:35:41]Connected sock=10 [19:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 40 9D 04 01 C1 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 0E 50 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8B 02 00 35 04 06 00 8F 41 C1 DD 71 CA 3C 86 8E 39 8A A3 E2 33 [19:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 09 47 00 02 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 8B 02 00 F4 03 04 00 74 F6 18 67 B6 04 01 00 00 D7 50 D3 62 FA B8 A4 E8 [19:35:42]CommunicateWithHost err = 0 [19:35:42]CheckOFDResponse [19:35:42]1017 (14) - 77093643461234 [19:35:42]1041 (16) - 0000000000871759 [19:35:42]1040 (4) - 166879 [19:35:42]1012 (4) - 23.10.2024 13:13 [19:35:42]1206 (1) - 0 [19:35:42]OFD Sender: Remove packet 166879 [19:35:42]ProducePacketName [19:35:42]name=ofd_packets/00166879 [19:35:42]NVStorageDeleteData [19:35:42]Write to MH i2c: 01 00 00 6A 45 AF [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 6A 45 00 00 00 00 00 AA 0C 6C [19:35:42]RasterBufferAndPrint [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]written 0, free lines is 3245 [19:35:42]MH_Cut [19:35:42]Write to MH i2c: D1 01 00 71 45 01 88 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 01 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 01 00 71 45 00 87 [19:35:42]Write to MH i2c: 01 00 00 72 45 B7 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]OFD Sender: No OFD packet to send [19:35:43]*** Cut start [19:35:43]*** Partial cut [19:35:43]*** CUTSNS_PIN = 1 [19:35:43]*** CUTSNS_PIN = 0 [19:35:43]*** Brake cut motor [19:35:43]Read from MH i2c: 01 [19:35:43]MH_I2C_Read... [19:35:43]*** Stop cut motor [19:35:43]*** Cut end [19:35:43]Read from MH i2c: 01 07 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 07 00 72 45 00 00 00 00 00 FF 0F CC [19:35:43]process_action close_receipt done [19:35:43]requested_data is exist [19:35:43]produce_requested_data [19:35:43]requested_item fm.sn is exist - process it [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 11 00 00 [19:35:43]Write to MH i2c: E2 08 00 73 45 80 11 00 00 00 00 00 00 32 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 17 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 17 00 73 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [19:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:35:43]wFMCommunicate OK [19:35:43]requested_item fd.num is exist - process it [19:35:43]SAM_PROTO_GetFieldsCounters [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 13 00 00 [19:35:43]Write to MH i2c: E2 08 00 74 45 80 13 00 00 00 00 00 00 35 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 62 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 62 00 74 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [19:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:43]wFMCommunicate OK [19:35:43]SAM_PROTO_GetFieldsCounters done [19:35:43]requested_item shift.num is exist - process it [19:35:43]requested_item shift.opened is exist - process it [19:35:43]req_shift_opened [19:35:43]FM_GetShiftState [19:35:43]SAM_PROTO_GetShiftState [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 13 01 00 [19:35:43]Write to MH i2c: E2 08 00 75 45 80 13 01 00 00 00 00 00 37 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 75 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 02 [19:35:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:35:43]wFMCommunicate OK [19:35:43]SAM_PROTO_GetShiftState done [19:35:43]FM_GetShiftState done [19:35:43]req_shift_opened done [19:35:43]requested_item shift.open_date is exist - process it [19:35:43]req_shift_open_date [19:35:43]req_shift_open_date done [19:35:43]produce_requested_data done [19:35:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166879,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:35:43]process_action_free close_receipt [19:35:43]json_value_free [19:35:43]json_value_free done [19:35:43]process_json_proto returns [19:35:43]Send response to host [19:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166879,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:35:43]free response buf [19:35:43]execute_script done [19:35:43]execute_script returns [19:35:43]free content buf [19:35:43]Sock 9.Close socket [19:35:43]Sock 9.Thread stoped [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:06]accept exits with 8 [19:43:06]New connection [19:43:06]New thread 3067178340 created [19:43:06]Thread 3067034980 joined [19:43:06]Waiting for new connection... [19:43:06] Sock 8.Parse request [19:43:06]Sock 8.Check first char [19:43:06]Sock 8.First char is OK [19:43:06]request: POST /json_proto HTTP/1.0 [19:43:06]Method: POST [19:43:06]URL: /json_proto [19:43:06]Method is POST - this is cgi request [19:43:06]url: /json_proto [19:43:06]query_string will be loaded in cgi processing [19:43:06]execute_cgi json_proto POST (null) [19:43:06]execute_cgi path=json_proto method=POST [19:43:06]POST find Content-Length [19:43:06]Host: 172.17.53.195:8080 [19:43:06]Content-Length: 677 [19:43:06]Content-Type: application/json [19:43:06] [19:43:06]POST finish read [19:43:06]Found Content-Length = 677 [19:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:06]execute_script... [19:43: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)221466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:06]POST & json_proto [19:43:06]process_json_proto [19:43:06]json parsed OK: [19:43:06]protocol is kg_v1.0 [19:43:06]action value=close_receipt [19:43:06]process_action close_receipt [19:43:06]cmd_close_receipt [19:43:06]MH_GetDate [19:43:06]Write to MH i2c: F0 00 00 76 45 AA [19:43:06]Write i2c OK [19:43:06]MH_I2C_Read... [19:43:06]Read from MH i2c: F0 [19:43:06]MH_I2C_Read... [19:43:06]Read from MH i2c: F0 09 00 [19:43:06]MH_I2C_Read... [19:43:06]Read from MH i2c: F0 09 00 76 45 00 CD 51 19 67 21 48 4A 65 69 [19:43:06]GetLastDocTimeStamp 1729712142 [19:43:06]current date 1729712589 [19:43:06]FM_GetShiftState [19:43:06]SAM_PROTO_GetShiftState [19:43:06]wFMCommunicate request_size=4 [19:43:06]MH_SAM_APDU [19:43:06]CAPDU: 80 13 01 00 [19:43:06]Write to MH i2c: E2 08 00 77 45 80 13 01 00 00 00 00 00 39 [19:43:06]Write i2c OK [19:43:06]MH_I2C_Read... [19:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:06]Read from MH i2c: E2 [19:43:06]MH_I2C_Read... [19:43:06]Read from MH i2c: E2 0E 00 [19:43:06]MH_I2C_Read... [19:43:06]Read from MH i2c: E2 0E 00 77 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 04 [19:43:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:43:06]wFMCommunicate OK [19:43:06]SAM_PROTO_GetShiftState done [19:43:06]FM_GetShiftState done [19:43:06]opened in 1729643772 [19:43:06]opened+sec_in_day 1729730172 [19:43:06]quantity*price = 40006 [19:43:06]sum+1 = 40007 [19:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 295 23.10.2024 19:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166880 ФПД: 4796641790729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166880&fm=4796641790729&tin=02508201610067®Number=0000000000091764&sum=40000 [19:43:07]StoreToDocumentArchive [19:43:07]shift 537 fd 166880 [19:43:07]save to /storage/0537/doc_00166880 [19:43:07]save last doc name /storage/0537/doc_00166880 to /storage/kkm_last_doc_name [19:43:07]save OK [19:43:07]Clear old archive folders... [19:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:07]tlvbuf is B6F11350 [19:43:07]SAM_PROTO_ClearQueue [19:43:07]wFMCommunicate request_size=4 [19:43:07]MH_SAM_APDU [19:43:07]CAPDU: 80 09 00 00 [19:43:07]Write to MH i2c: E2 08 00 84 45 80 09 00 00 00 00 00 00 3B [19:43:07]Write i2c OK [19:43:07]MH_I2C_Read... [19:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:07]Read from MH i2c: E2 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 03 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 03 00 84 45 00 90 00 3D [19:43:07]RAPDU: 90 00 [19:43:07]wFMCommunicate OK [19:43:07]SAM_PROTO_ClearQueue done [19:43:07]KKMCreateOFDPacket [19:43:07]OFDProtocolAddRootSTLVToBuf [19:43:07]FM_MakeSignedData [19:43:07]FM_MakeSignedData [19:43:07]SAM_PROTO_SignData [19:43:07]wFMCommunicate request_size=4 [19:43:07]MH_SAM_APDU [19:43:07]CAPDU: 80 0D 01 02 [19:43:07]Write to MH i2c: E2 08 00 85 45 80 0D 01 02 00 00 00 00 43 [19:43:07]Write i2c OK [19:43:07]MH_I2C_Read... [19:43:07]OFD Sender: No OFD packet to send [19:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:07]Read from MH i2c: E2 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 03 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 03 00 85 45 00 90 00 3E [19:43:08]RAPDU: 90 00 [19:43:08]wFMCommunicate OK [19:43:08]wFMCommunicate request_size=255 [19:43:08]MH_SAM_APDU [19:43:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 CD 51 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8B 02 00 35 04 06 00 04 [19:43:08]Write to MH i2c: E2 02 01 86 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 CD 51 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8B 02 00 35 04 06 00 04 00 00 FA [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:08]Read from MH i2c: E2 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 03 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 03 00 86 45 00 90 00 3F [19:43:08]RAPDU: 90 00 [19:43:08]wFMCommunicate OK [19:43:08]wFMCommunicate request_size=10 [19:43:08]MH_SAM_APDU [19:43:08]CAPDU: 80 0D 02 02 05 5C CE 21 4B 09 [19:43:08]Write to MH i2c: E2 0D 00 87 45 80 0D 02 02 05 00 5C CE 21 4B 09 00 00 EF [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:08]Read from MH i2c: E2 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 03 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 03 00 87 45 00 90 00 40 [19:43:08]RAPDU: 90 00 [19:43:08]wFMCommunicate OK [19:43:08]wFMCommunicate request_size=4 [19:43:08]MH_SAM_APDU [19:43:08]CAPDU: 80 0D 03 02 [19:43:08]Write to MH i2c: E2 08 00 88 45 80 0D 03 02 00 00 00 00 48 [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:08]Read from MH i2c: E2 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 0B 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 0B 00 88 45 00 F3 94 C3 75 50 10 B5 38 90 00 55 [19:43:08]RAPDU: F3 94 C3 75 50 10 B5 38 90 00 [19:43:08]wFMCommunicate OK [19:43:08]SAM_PROTO_SignData done [19:43:08]FM_MakeSignedData done [19:43:08]CreateOFDProtocolMessage [19:43:08]wFMCommunicate request_size=4 [19:43:08]MH_SAM_APDU [19:43:08]CAPDU: 80 11 00 00 [19:43:08]Write to MH i2c: E2 08 00 89 45 80 11 00 00 00 00 00 00 48 [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:08]Read from MH i2c: E2 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 17 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: E2 17 00 89 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [19:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:43:08]wFMCommunicate OK [19:43:08]CreateOFDProtocolMessage done [19:43:08]OFDSenderStorePacket 166880 [19:43:08]StoreOFDPacket docnum=166880 [19:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FC 90 07 01 FA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 CD 51 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8B 02 00 35 04 06 00 04 5C CE 21 4B 09 F3 94 C3 75 50 10 B5 38 [19:43:08]CheckFolder [19:43:08]dirname=/storage/ofd_packets [19:43:08]CheckFolder done [19:43:08]ProducePacketName [19:43:08]name=ofd_packets/00166880 [19:43:08]NVStorageSaveData ofd_packets/00166880 [19:43:08]File name is /storage/ofd_packets/00166880 [19:43:08]Write 301 bytes [19:43:08]NVStorageSaveData done [19:43:08]OFDSenderStorePacket done [19:43:08]KKMCreateOFDPacket done [19:43:08]NVStorageSaveData kkm_last_timestamp [19:43:08]File name is /storage/kkm_last_timestamp [19:43:08]Write 4 bytes [19:43:08]NVStorageSaveData done [19:43:08]ExternCall_PrintAddStr [19:43:08]wPrintStart [19:43:08]Write to MH i2c: 01 00 00 8A 45 CF [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 07 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 07 00 8A 45 00 00 00 00 00 FF 0F E4 [19:43:08]RasterBufferAndPrint [19:43:08]line Счет N : (1)221466 [19:43:08]line ИНН: 02508201610067 [19:43:08]line Контрольно-Кассовый Чек [19:43:08]line ПРОДАЖА [19:43:08]line ТРК (МРК, ГНК) : 23 [19:43:08]line Товар: 2710124130 [19:43:08]line Аи-92-К-5 [19:43:08]line 5.980 * 66.90 [19:43:08]line = 400.06 [19:43:08]line НДС 12% НСП 1% [19:43:08]line > о реализуемом товаре [19:43:08]line ОКРУГЛЕНИЕ: -0.06 [19:43:08]line ИТОГО: 400.00 [19:43:08]line Внесено: 400.00 [19:43:08]line СДАЧА: 0.00 [19:43:08]line НСП 1% : 3.54 [19:43:08]line НДС 12% : 42.48 [19:43:08]line Наличными: 400.00 [19:43:08]line Безнал.: 0.00 [19:43:08]line Место: АЗС № 161 "Партнер Нефть" [19:43:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:43:08]line СНО: Общий режим [19:43:08]line Чек 295 23.10.2024 19:43 [19:43:08]line Смена: 537 ФФД: 1.0 [19:43:08]line ЗНМ: 0300000104 [19:43:08]line РНМ: 0000000000091764 [19:43:08]line Версия ККМ: 001 [19:43:08]line ФМ: 0000000000871759 [19:43:08]line ФД: 166880 [19:43:08]line ФПД: 4796641790729 [19:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166880&fm=4796641790729&tin=02508201610067®Number=0000000000091764&sum=40000 [19:43:08]written 0, free lines is 4095 [19:43:08]OFD Sender: Processing packet 166880 [packets to send 48, broken 47] [19:43:08]ProducePacketName [19:43:08]name=ofd_packets/00166880 [19:43:08]OFD Sender: To server: pG, [19:43:08]CommunicateWithHost lk.salyk.kg:30040 [19:43:08]ConnectInit lk.salyk.kg [19:43:08]Connected sock=10 [19:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FC 90 07 01 FA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 CD 51 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8B 02 00 35 04 06 00 04 5C CE 21 4B 09 F3 94 C3 75 50 10 B5 38 [19:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D8 9C 47 00 F9 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 8B 02 00 F4 03 04 00 33 F8 18 67 B6 04 01 00 00 E0 6F E7 13 CC 72 3D 05 [19:43:08]CommunicateWithHost err = 0 [19:43:08]CheckOFDResponse [19:43:08]1017 (14) - 77093643461234 [19:43:08]1041 (16) - 0000000000871759 [19:43:08]1040 (4) - 166880 [19:43:08]1012 (4) - 23.10.2024 13:20 [19:43:08]1206 (1) - 0 [19:43:08]OFD Sender: Remove packet 166880 [19:43:08]ProducePacketName [19:43:08]name=ofd_packets/00166880 [19:43:08]NVStorageDeleteData [19:43:08]Write to MH i2c: 01 00 00 B5 45 FA [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 07 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: 01 07 00 B5 45 00 00 00 00 00 A8 0C B5 [19:43:08]RasterBufferAndPrint [19:43:08]line [19:43:08]line [19:43:08]line [19:43:08]line [19:43:08]line [19:43:08]written 0, free lines is 3245 [19:43:08]MH_Cut [19:43:08]Write to MH i2c: D1 01 00 BC 45 01 D3 [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: D1 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: D1 01 00 [19:43:08]MH_I2C_Read... [19:43:08]Read from MH i2c: D1 01 00 BC 45 00 D2 [19:43:08]Write to MH i2c: 01 00 00 BD 45 02 [19:43:08]Write i2c OK [19:43:08]MH_I2C_Read... [19:43:09]OFD Sender: No OFD packet to send [19:43:09]*** Cut start [19:43:09]*** Partial cut [19:43:09]*** CUTSNS_PIN = 1 [19:43:09]*** CUTSNS_PIN = 0 [19:43:10]*** Brake cut motor [19:43:10]Read from MH i2c: 01 [19:43:10]MH_I2C_Read... [19:43:10]*** Stop cut motor [19:43:10]*** Cut end [19:43:10]Read from MH i2c: 01 07 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: 01 07 00 BD 45 00 00 00 00 00 FF 0F 17 [19:43:10]process_action close_receipt done [19:43:10]requested_data is exist [19:43:10]produce_requested_data [19:43:10]requested_item fm.sn is exist - process it [19:43:10]wFMCommunicate request_size=4 [19:43:10]MH_SAM_APDU [19:43:10]CAPDU: 80 11 00 00 [19:43:10]Write to MH i2c: E2 08 00 BE 45 80 11 00 00 00 00 00 00 7D [19:43:10]Write i2c OK [19:43:10]MH_I2C_Read... [19:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:10]Read from MH i2c: E2 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 17 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 17 00 BE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [19:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:43:10]wFMCommunicate OK [19:43:10]requested_item fd.num is exist - process it [19:43:10]SAM_PROTO_GetFieldsCounters [19:43:10]wFMCommunicate request_size=4 [19:43:10]MH_SAM_APDU [19:43:10]CAPDU: 80 13 00 00 [19:43:10]Write to MH i2c: E2 08 00 BF 45 80 13 00 00 00 00 00 00 80 [19:43:10]Write i2c OK [19:43:10]MH_I2C_Read... [19:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:10]Read from MH i2c: E2 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 62 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 62 00 BF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [19:43:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:10]wFMCommunicate OK [19:43:10]SAM_PROTO_GetFieldsCounters done [19:43:10]requested_item shift.num is exist - process it [19:43:10]requested_item shift.opened is exist - process it [19:43:10]req_shift_opened [19:43:10]FM_GetShiftState [19:43:10]SAM_PROTO_GetShiftState [19:43:10]wFMCommunicate request_size=4 [19:43:10]MH_SAM_APDU [19:43:10]CAPDU: 80 13 01 00 [19:43:10]Write to MH i2c: E2 08 00 C0 45 80 13 01 00 00 00 00 00 82 [19:43:10]Write i2c OK [19:43:10]MH_I2C_Read... [19:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:10]Read from MH i2c: E2 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 0E 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 0E 00 C0 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4D [19:43:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:43:10]wFMCommunicate OK [19:43:10]SAM_PROTO_GetShiftState done [19:43:10]FM_GetShiftState done [19:43:10]req_shift_opened done [19:43:10]requested_item shift.open_date is exist - process it [19:43:10]req_shift_open_date [19:43:10]req_shift_open_date done [19:43:10]produce_requested_data done [19:43:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166880,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:43:10]process_action_free close_receipt [19:43:10]json_value_free [19:43:10]json_value_free done [19:43:10]process_json_proto returns [19:43:10]Send response to host [19:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166880,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:43:10]free response buf [19:43:10]execute_script done [19:43:10]execute_script returns [19:43:10]free content buf [19:43:10]Sock 8.Close socket [19:43:10]Sock 8.Thread stoped [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:05]accept exits with 9 [19:45:05]New connection [19:45:05]New thread 3067034980 created [19:45:05]Thread 3067178340 joined [19:45:05]Waiting for new connection... [19:45:05] Sock 9.Parse request [19:45:05]Sock 9.Check first char [19:45:05]Sock 9.First char is OK [19:45:05]request: POST /json_proto HTTP/1.0 [19:45:05]Method: POST [19:45:05]URL: /json_proto [19:45:05]Method is POST - this is cgi request [19:45:05]url: /json_proto [19:45:05]query_string will be loaded in cgi processing [19:45:05]execute_cgi json_proto POST (null) [19:45:05]execute_cgi path=json_proto method=POST [19:45:05]POST find Content-Length [19:45:05]Host: 172.17.53.195:8080 [19:45:05]Content-Length: 682 [19:45:05]Content-Type: application/json [19:45:05] [19:45:05]POST finish read [19:45:05]Found Content-Length = 682 [19:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:05]execute_script... [19:45: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)221467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:05]POST & json_proto [19:45:05]process_json_proto [19:45:05]json parsed OK: [19:45:05]protocol is kg_v1.0 [19:45:05]action value=close_receipt [19:45:05]process_action close_receipt [19:45:05]cmd_close_receipt [19:45:05]MH_GetDate [19:45:05]Write to MH i2c: F0 00 00 C1 45 F5 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 09 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 09 00 C1 45 00 43 52 19 67 21 48 4A 65 2B [19:45:05]GetLastDocTimeStamp 1729712589 [19:45:05]current date 1729712707 [19:45:05]FM_GetShiftState [19:45:05]SAM_PROTO_GetShiftState [19:45:05]wFMCommunicate request_size=4 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 13 01 00 [19:45:05]Write to MH i2c: E2 08 00 C2 45 80 13 01 00 00 00 00 00 84 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0E 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0E 00 C2 45 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 4F [19:45:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:45:05]wFMCommunicate OK [19:45:05]SAM_PROTO_GetShiftState done [19:45:05]FM_GetShiftState done [19:45:05]opened in 1729643772 [19:45:05]opened+sec_in_day 1729730172 [19:45:05]quantity*price = 100021 [19:45:05]sum+1 = 100023 [19:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 296 23.10.2024 19:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166881 ФПД: 232131142229224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166881&fm=232131142229224&tin=02508201610067®Number=0000000000091764&sum=100000 [19:45:06]StoreToDocumentArchive [19:45:06]shift 537 fd 166881 [19:45:06]save to /storage/0537/doc_00166881 [19:45:06]save last doc name /storage/0537/doc_00166881 to /storage/kkm_last_doc_name [19:45:06]save OK [19:45:06]Clear old archive folders... [19:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:06]tlvbuf is B6F11520 [19:45:06]SAM_PROTO_ClearQueue [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 09 00 00 [19:45:06]Write to MH i2c: E2 08 00 CF 45 80 09 00 00 00 00 00 00 86 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 CF 45 00 90 00 88 [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]SAM_PROTO_ClearQueue done [19:45:06]KKMCreateOFDPacket [19:45:06]OFDProtocolAddRootSTLVToBuf [19:45:06]FM_MakeSignedData [19:45:06]FM_MakeSignedData [19:45:06]SAM_PROTO_SignData [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 01 02 [19:45:06]Write to MH i2c: E2 08 00 D0 45 80 0D 01 02 00 00 00 00 8E [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 D0 45 00 90 00 89 [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]wFMCommunicate request_size=255 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 43 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8B 02 00 35 04 06 00 D3 [19:45:06]Write to MH i2c: E2 02 01 D1 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 43 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8B 02 00 35 04 06 00 D3 00 00 DB [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 D1 45 00 90 00 8A [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]wFMCommunicate request_size=10 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 02 02 05 1F 3E 46 1C E8 [19:45:06]Write to MH i2c: E2 0D 00 D2 45 80 0D 02 02 05 00 1F 3E 46 1C E8 00 00 42 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 D2 45 00 90 00 8B [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 03 02 [19:45:06]Write to MH i2c: E2 08 00 D3 45 80 0D 03 02 00 00 00 00 93 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 0B 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 0B 00 D3 45 00 77 F0 50 0E 71 30 5D F6 90 00 4D [19:45:06]RAPDU: 77 F0 50 0E 71 30 5D F6 90 00 [19:45:06]wFMCommunicate OK [19:45:06]SAM_PROTO_SignData done [19:45:06]FM_MakeSignedData done [19:45:06]CreateOFDProtocolMessage [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 11 00 00 [19:45:06]Write to MH i2c: E2 08 00 D4 45 80 11 00 00 00 00 00 00 93 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 17 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 17 00 D4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [19:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:45:06]wFMCommunicate OK [19:45:06]CreateOFDProtocolMessage done [19:45:06]OFDSenderStorePacket 166881 [19:45:06]StoreOFDPacket docnum=166881 [19:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 20 07 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 43 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8B 02 00 35 04 06 00 D3 1F 3E 46 1C E8 77 F0 50 0E 71 30 5D F6 [19:45:06]CheckFolder [19:45:06]dirname=/storage/ofd_packets [19:45:06]CheckFolder done [19:45:06]ProducePacketName [19:45:06]name=ofd_packets/00166881 [19:45:06]NVStorageSaveData ofd_packets/00166881 [19:45:06]File name is /storage/ofd_packets/00166881 [19:45:06]Write 301 bytes [19:45:06]NVStorageSaveData done [19:45:06]OFDSenderStorePacket done [19:45:06]KKMCreateOFDPacket done [19:45:06]NVStorageSaveData kkm_last_timestamp [19:45:06]File name is /storage/kkm_last_timestamp [19:45:06]Write 4 bytes [19:45:06]NVStorageSaveData done [19:45:06]ExternCall_PrintAddStr [19:45:06]wPrintStart [19:45:06]Write to MH i2c: 01 00 00 D5 45 1A [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 07 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 07 00 D5 45 00 00 00 00 00 FF 0F 2F [19:45:06]RasterBufferAndPrint [19:45:06]line Счет N : (1)221467 [19:45:06]line ИНН: 02508201610067 [19:45:06]line Контрольно-Кассовый Чек [19:45:06]line ПРОДАЖА [19:45:06]line ТРК (МРК, ГНК) : 44 [19:45:06]line Товар: 2710124500 [19:45:06]line Аи-95-К-5 [19:45:06]line 13.480 * 74.20 [19:45:06]line = 1000.22 [19:45:06]line НДС 12% НСП 1% [19:45:06]line > о реализуемом товаре [19:45:06]line ОКРУГЛЕНИЕ: -0.22 [19:45:06]line ИТОГО: 1000.00 [19:45:06]line Внесено: 1000.00 [19:45:06]line СДАЧА: 0.00 [19:45:06]line НСП 1% : 8.85 [19:45:06]line НДС 12% : 106.22 [19:45:06]line Наличными: 1000.00 [19:45:06]line Безнал.: 0.00 [19:45:06]line Место: АЗС № 161 "Партнер Нефть" [19:45:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:45:06]line СНО: Общий режим [19:45:06]line Чек 296 23.10.2024 19:45 [19:45:06]line Смена: 537 ФФД: 1.0 [19:45:06]line ЗНМ: 0300000104 [19:45:06]line РНМ: 0000000000091764 [19:45:06]line Версия ККМ: 001 [19:45:06]line ФМ: 0000000000871759 [19:45:06]line ФД: 166881 [19:45:06]line ФПД: 232131142229224 [19:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166881&fm=232131142229224&tin=02508201610067®Number=0000000000091764&sum=100000 [19:45:07]OFD Sender: Processing packet 166881 [packets to send 48, broken 47] [19:45:07]ProducePacketName [19:45:07]name=ofd_packets/00166881 [19:45:07]OFD Sender: To server: pG, [19:45:07]CommunicateWithHost lk.salyk.kg:30040 [19:45:07]ConnectInit lk.salyk.kg [19:45:07]written 0, free lines is 4095 [19:45:07]Write to MH i2c: 01 00 00 00 46 46 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 00 46 00 00 00 00 00 A2 0C FB [19:45:07]RasterBufferAndPrint [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]written 0, free lines is 3238 [19:45:07]MH_Cut [19:45:07]Write to MH i2c: D1 01 00 07 46 01 1F [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 01 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 01 00 07 46 00 1E [19:45:07]Write to MH i2c: 01 00 00 08 46 4E [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:08]*** Cut start [19:45:08]*** Partial cut [19:45:08]*** CUTSNS_PIN = 1 [19:45:08]*** CUTSNS_PIN = 0 [19:45:08]*** Brake cut motor [19:45:09]Read from MH i2c: 01 [19:45:09]MH_I2C_Read... [19:45:09]*** Stop cut motor [19:45:09]Read from MH i2c: 01 07 00 [19:45:09]MH_I2C_Read... [19:45:09]*** Cut end [19:45:09]Read from MH i2c: 01 07 00 08 46 00 00 00 00 00 FF 0F 63 [19:45:09]process_action close_receipt done [19:45:09]requested_data is exist [19:45:09]produce_requested_data [19:45:09]requested_item fm.sn is exist - process it [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 11 00 00 [19:45:09]Write to MH i2c: E2 08 00 09 46 80 11 00 00 00 00 00 00 C9 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 09 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [19:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:45:09]wFMCommunicate OK [19:45:09]requested_item fd.num is exist - process it [19:45:09]SAM_PROTO_GetFieldsCounters [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 13 00 00 [19:45:09]Write to MH i2c: E2 08 00 0A 46 80 13 00 00 00 00 00 00 CC [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 62 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 62 00 0A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [19:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_GetFieldsCounters done [19:45:09]requested_item shift.num is exist - process it [19:45:09]requested_item shift.opened is exist - process it [19:45:09]req_shift_opened [19:45:09]FM_GetShiftState [19:45:09]SAM_PROTO_GetShiftState [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 13 01 00 [19:45:09]Write to MH i2c: E2 08 00 0B 46 80 13 01 00 00 00 00 00 CE [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0E 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0E 00 0B 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 99 [19:45:09]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_GetShiftState done [19:45:09]FM_GetShiftState done [19:45:09]req_shift_opened done [19:45:09]requested_item shift.open_date is exist - process it [19:45:09]req_shift_open_date [19:45:09]req_shift_open_date done [19:45:09]produce_requested_data done [19:45:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166881,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:45:09]process_action_free close_receipt [19:45:09]json_value_free [19:45:09]json_value_free done [19:45:09]process_json_proto returns [19:45:09]Send response to host [19:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166881,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:45:09]free response buf [19:45:09]execute_script done [19:45:09]execute_script returns [19:45:09]free content buf [19:45:09]Sock 9.Close socket [19:45:09]Sock 9.Thread stoped [19:46:00]accept exits with 8 [19:46:00]New connection [19:46:00]New thread 3067178340 created [19:46:00]Thread 3067034980 joined [19:46:00]Waiting for new connection... [19:46:00] Sock 8.Parse request [19:46:00]Sock 8.Check first char [19:46:00]Sock 8.First char is OK [19:46:00]request: POST /json_proto HTTP/1.0 [19:46:00]Method: POST [19:46:00]URL: /json_proto [19:46:00]Method is POST - this is cgi request [19:46:00]url: /json_proto [19:46:00]query_string will be loaded in cgi processing [19:46:00]execute_cgi json_proto POST (null) [19:46:00]execute_cgi path=json_proto method=POST [19:46:00]POST find Content-Length [19:46:00]Host: 172.17.53.195:8080 [19:46:00]Content-Length: 800 [19:46:00]Content-Type: application/json [19:46:00] [19:46:00]POST finish read [19:46:00]Found Content-Length = 800 [19:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:00]execute_script... [19:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:00]POST & json_proto [19:46:00]process_json_proto [19:46:00]json parsed OK: [19:46:00]protocol is kg_v1.0 [19:46:00]action value=close_receipt [19:46:00]process_action close_receipt [19:46:00]cmd_close_receipt [19:46:00]MH_GetDate [19:46:00]Write to MH i2c: F0 00 00 0C 46 41 [19:46:00]Write i2c OK [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 09 00 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 09 00 0C 46 00 7B 52 19 67 21 48 4A 65 AF [19:46:00]GetLastDocTimeStamp 1729712707 [19:46:00]current date 1729712763 [19:46:00]FM_GetShiftState [19:46:00]SAM_PROTO_GetShiftState [19:46:00]wFMCommunicate request_size=4 [19:46:00]MH_SAM_APDU [19:46:00]CAPDU: 80 13 01 00 [19:46:00]Write to MH i2c: E2 08 00 0D 46 80 13 01 00 00 00 00 00 D0 [19:46:00]Write i2c OK [19:46:00]MH_I2C_Read... [19:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:00]Read from MH i2c: E2 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: E2 0E 00 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: E2 0E 00 0D 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9B [19:46:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:46:00]wFMCommunicate OK [19:46:00]SAM_PROTO_GetShiftState done [19:46:00]FM_GetShiftState done [19:46:00]opened in 1729643772 [19:46:00]opened+sec_in_day 1729730172 [19:46:00]quantity*price = 0 [19:46:00]sum+1 = 1 [19:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 297 23.10.2024 19:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4194330 ФМ: 0000000000871759 ФД: 166882 ФПД: 186843685239272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166882&fm=186843685239272&tin=02508201610067®Number=0000000000091764&sum=0 [19:46:01]StoreToDocumentArchive [19:46:01]shift 537 fd 166882 [19:46:01]save to /storage/0537/doc_00166882 [19:46:01]save last doc name /storage/0537/doc_00166882 to /storage/kkm_last_doc_name [19:46:01]save OK [19:46:01]Clear old archive folders... [19:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:01]tlvbuf is B6F11640 [19:46:01]SAM_PROTO_ClearQueue [19:46:01]wFMCommunicate request_size=4 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 09 00 00 [19:46:01]Write to MH i2c: E2 08 00 1A 46 80 09 00 00 00 00 00 00 D2 [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:01]Read from MH i2c: E2 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 1A 46 00 90 00 D4 [19:46:01]RAPDU: 90 00 [19:46:01]wFMCommunicate OK [19:46:01]SAM_PROTO_ClearQueue done [19:46:01]KKMCreateOFDPacket [19:46:01]OFDProtocolAddRootSTLVToBuf [19:46:01]FM_MakeSignedData [19:46:01]FM_MakeSignedData [19:46:01]SAM_PROTO_SignData [19:46:01]wFMCommunicate request_size=4 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 0D 01 02 [19:46:01]Write to MH i2c: E2 08 00 1B 46 80 0D 01 02 00 00 00 00 DA [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:01]Read from MH i2c: E2 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 1B 46 00 90 00 D5 [19:46:01]RAPDU: 90 00 [19:46:01]wFMCommunicate OK [19:46:01]wFMCommunicate request_size=255 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 7B 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8B 02 00 35 04 06 00 A9 [19:46:01]Write to MH i2c: E2 02 01 1C 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 7B 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8B 02 00 35 04 06 00 A9 00 00 CC [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 1C 46 00 90 00 D6 [19:46:02]RAPDU: 90 00 [19:46:02]wFMCommunicate OK [19:46:02]wFMCommunicate request_size=10 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 0D 02 02 05 EE EF 7C B9 E8 [19:46:02]Write to MH i2c: E2 0D 00 1D 46 80 0D 02 02 05 00 EE EF 7C B9 E8 00 00 E1 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 1D 46 00 90 00 D7 [19:46:02]RAPDU: 90 00 [19:46:02]wFMCommunicate OK [19:46:02]wFMCommunicate request_size=4 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 0D 03 02 [19:46:02]Write to MH i2c: E2 08 00 1E 46 80 0D 03 02 00 00 00 00 DF [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 0B 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 0B 00 1E 46 00 37 39 5B 2A 9C 47 89 62 90 00 A3 [19:46:02]RAPDU: 37 39 5B 2A 9C 47 89 62 90 00 [19:46:02]wFMCommunicate OK [19:46:02]SAM_PROTO_SignData done [19:46:02]FM_MakeSignedData done [19:46:02]CreateOFDProtocolMessage [19:46:02]wFMCommunicate request_size=4 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 11 00 00 [19:46:02]Write to MH i2c: E2 08 00 1F 46 80 11 00 00 00 00 00 00 DF [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 17 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 17 00 1F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [19:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:46:02]wFMCommunicate OK [19:46:02]CreateOFDProtocolMessage done [19:46:02]OFDSenderStorePacket 166882 [19:46:02]StoreOFDPacket docnum=166882 [19:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 08 07 01 05 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 7B 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8B 02 00 35 04 06 00 A9 EE EF 7C B9 E8 37 39 5B 2A 9C 47 89 62 [19:46:02]CheckFolder [19:46:02]dirname=/storage/ofd_packets [19:46:02]CheckFolder done [19:46:02]ProducePacketName [19:46:02]name=ofd_packets/00166882 [19:46:02]NVStorageSaveData ofd_packets/00166882 [19:46:02]File name is /storage/ofd_packets/00166882 [19:46:02]Write 301 bytes [19:46:02]NVStorageSaveData done [19:46:02]OFDSenderStorePacket done [19:46:02]KKMCreateOFDPacket done [19:46:02]NVStorageSaveData kkm_last_timestamp [19:46:02]File name is /storage/kkm_last_timestamp [19:46:02]Write 4 bytes [19:46:02]NVStorageSaveData done [19:46:02]ExternCall_PrintAddStr [19:46:02]wPrintStart [19:46:02]Write to MH i2c: 01 00 00 20 46 66 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 07 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 07 00 20 46 00 00 00 00 00 FF 0F 7B [19:46:02]RasterBufferAndPrint [19:46:02]line Счет N : (1)221468 [19:46:02]line ИНН: 02508201610067 [19:46:02]line Контрольно-Кассовый Чек [19:46:02]line ПРОДАЖА [19:46:02]line ТРК (МРК, ГНК) : 13 [19:46:02]line Товар: 2710124130 [19:46:02]line Аи-92-К-5 [19:46:02]line 10.000 * 0.00 [19:46:02]line = 0.00 [19:46:02]line НДС 12% НСП 1% [19:46:02]line > о реализуемом товаре [19:46:02]line ИТОГО: 0.00 [19:46:02]line НСП 1% : 0.00 [19:46:02]line НДС 12% : 0.00 [19:46:02]line Наличными: 0.00 [19:46:02]line Безнал.: 0.00 [19:46:02]line Место: АЗС № 161 "Партнер Нефть" [19:46:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:46:02]line СНО: Общий режим [19:46:02]line Чек 297 23.10.2024 19:46 [19:46:02]line Смена: 537 ФФД: 1.0 [19:46:02]line ЗНМ: 0300000104 [19:46:02]line РНМ: 0000000000091764 [19:46:02]line Версия ККМ: 001 [19:46:02]line Талоны: Топливные Талоны [19:46:02]line 4194330 [19:46:02]line ФМ: 0000000000871759 [19:46:02]line ФД: 166882 [19:46:02]line ФПД: 186843685239272 [19:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166882&fm=186843685239272&tin=02508201610067®Number=0000000000091764&sum=0 [19:46:02]written 0, free lines is 4095 [19:46:03]Write to MH i2c: 01 00 00 4A 46 90 [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 4A 46 00 00 00 00 00 B3 0C 56 [19:46:03]RasterBufferAndPrint [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]written 0, free lines is 3256 [19:46:03]MH_Cut [19:46:03]Write to MH i2c: D1 01 00 51 46 01 69 [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 01 00 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 01 00 51 46 00 68 [19:46:03]Write to MH i2c: 01 00 00 52 46 98 [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]*** Cut start [19:46:03]*** Partial cut [19:46:03]*** CUTSNS_PIN = 1 [19:46:03]*** CUTSNS_PIN = 0 [19:46:04]*** Brake cut motor [19:46:04]Read from MH i2c: 01 [19:46:04]MH_I2C_Read... [19:46:04]*** Stop cut motor [19:46:04]*** Cut end [19:46:04]Read from MH i2c: 01 07 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: 01 07 00 52 46 00 00 00 00 00 FF 0F AD [19:46:04]process_action close_receipt done [19:46:04]requested_data is exist [19:46:04]produce_requested_data [19:46:04]requested_item fm.sn is exist - process it [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 11 00 00 [19:46:04]Write to MH i2c: E2 08 00 53 46 80 11 00 00 00 00 00 00 13 [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 17 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 17 00 53 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [19:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:46:04]wFMCommunicate OK [19:46:04]requested_item fd.num is exist - process it [19:46:04]SAM_PROTO_GetFieldsCounters [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 00 00 [19:46:04]Write to MH i2c: E2 08 00 54 46 80 13 00 00 00 00 00 00 16 [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 62 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 62 00 54 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetFieldsCounters done [19:46:04]requested_item shift.num is exist - process it [19:46:04]requested_item shift.opened is exist - process it [19:46:04]req_shift_opened [19:46:04]FM_GetShiftState [19:46:04]SAM_PROTO_GetShiftState [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 01 00 [19:46:04]Write to MH i2c: E2 08 00 55 46 80 13 01 00 00 00 00 00 18 [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 55 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E3 [19:46:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetShiftState done [19:46:04]FM_GetShiftState done [19:46:04]req_shift_opened done [19:46:04]requested_item shift.open_date is exist - process it [19:46:04]req_shift_open_date [19:46:04]req_shift_open_date done [19:46:04]produce_requested_data done [19:46:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166882,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:46:04]process_action_free close_receipt [19:46:04]json_value_free [19:46:04]json_value_free done [19:46:04]process_json_proto returns [19:46:04]Send response to host [19:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166882,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:46:04]free response buf [19:46:04]execute_script done [19:46:04]execute_script returns [19:46:04]free content buf [19:46:04]Sock 8.Close socket [19:46:04]Sock 8.Thread stoped [19:47:18]ConnectInit Can't connect to host [19:47:18]CommunicateWithHost connect error [19:47:18]CommunicateWithHost err = -1 [19:47:18]OFD Sender: Server communicate error [19:47:18]OFD Sender: Processing packet 166881 [packets to send 49, broken 47] [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00166881 [19:47:18]OFD Sender: To server: pG, [19:47:18]CommunicateWithHost lk.salyk.kg:30040 [19:47:18]ConnectInit lk.salyk.kg [19:47:18]Connected sock=8 [19:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 20 07 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 43 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8B 02 00 35 04 06 00 D3 1F 3E 46 1C E8 77 F0 50 0E 71 30 5D F6 [19:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 88 47 00 4B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 8B 02 00 F4 03 04 00 2D F9 18 67 B6 04 01 00 00 A8 AC BA 62 FB 41 E0 A7 [19:47:18]CommunicateWithHost err = 0 [19:47:18]CheckOFDResponse [19:47:18]1017 (14) - 77093643461234 [19:47:18]1041 (16) - 0000000000871759 [19:47:18]1040 (4) - 166881 [19:47:18]1012 (4) - 23.10.2024 13:25 [19:47:18]1206 (1) - 0 [19:47:18]OFD Sender: Remove packet 166881 [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00166881 [19:47:18]NVStorageDeleteData [19:47:19]OFD Sender: Processing packet 166882 [packets to send 48, broken 47] [19:47:19]ProducePacketName [19:47:19]name=ofd_packets/00166882 [19:47:19]OFD Sender: To server: pG, [19:47:19]CommunicateWithHost lk.salyk.kg:30040 [19:47:19]ConnectInit lk.salyk.kg [19:47:19]Connected sock=8 [19:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 08 07 01 05 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 7B 52 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8B 02 00 35 04 06 00 A9 EE EF 7C B9 E8 37 39 5B 2A 9C 47 89 62 [19:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EC E9 47 00 C8 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 8B 02 00 F4 03 04 00 2E F9 18 67 B6 04 01 00 00 32 AB CB 4F 5F 4E 24 0D [19:47:19]CommunicateWithHost err = 0 [19:47:19]CheckOFDResponse [19:47:19]1017 (14) - 77093643461234 [19:47:19]1041 (16) - 0000000000871759 [19:47:19]1040 (4) - 166882 [19:47:19]1012 (4) - 23.10.2024 13:25 [19:47:19]1206 (1) - 0 [19:47:19]OFD Sender: Remove packet 166882 [19:47:19]ProducePacketName [19:47:19]name=ofd_packets/00166882 [19:47:19]NVStorageDeleteData [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:25]accept exits with 9 [19:48:25]New connection [19:48:25]New thread 3067034980 created [19:48:25]Thread 3067178340 joined [19:48:25]Waiting for new connection... [19:48:25] Sock 9.Parse request [19:48:25]Sock 9.Check first char [19:48:25]Sock 9.First char is OK [19:48:25]request: POST /json_proto HTTP/1.0 [19:48:25]Method: POST [19:48:25]URL: /json_proto [19:48:25]Method is POST - this is cgi request [19:48:25]url: /json_proto [19:48:25]query_string will be loaded in cgi processing [19:48:25]execute_cgi json_proto POST (null) [19:48:25]execute_cgi path=json_proto method=POST [19:48:25]POST find Content-Length [19:48:25]Host: 172.17.53.195:8080 [19:48:25]Content-Length: 677 [19:48:25]Content-Type: application/json [19:48:25] [19:48:25]POST finish read [19:48:25]Found Content-Length = 677 [19:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:25]execute_script... [19:48:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:25]POST & json_proto [19:48:25]process_json_proto [19:48:25]json parsed OK: [19:48:25]protocol is kg_v1.0 [19:48:25]action value=close_receipt [19:48:25]process_action close_receipt [19:48:25]cmd_close_receipt [19:48:25]MH_GetDate [19:48:25]Write to MH i2c: F0 00 00 56 46 8B [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 09 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 09 00 56 46 00 0B 53 19 67 21 48 4A 65 8A [19:48:25]GetLastDocTimeStamp 1729712763 [19:48:25]current date 1729712907 [19:48:25]FM_GetShiftState [19:48:25]SAM_PROTO_GetShiftState [19:48:25]wFMCommunicate request_size=4 [19:48:25]MH_SAM_APDU [19:48:25]CAPDU: 80 13 01 00 [19:48:25]Write to MH i2c: E2 08 00 57 46 80 13 01 00 00 00 00 00 1A [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:25]Read from MH i2c: E2 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 0E 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 0E 00 57 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E5 [19:48:25]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:48:25]wFMCommunicate OK [19:48:25]SAM_PROTO_GetShiftState done [19:48:25]FM_GetShiftState done [19:48:25]opened in 1729643772 [19:48:25]opened+sec_in_day 1729730172 [19:48:25]quantity*price = 60009 [19:48:25]sum+1 = 60010 [19:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 298 23.10.2024 19:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166883 ФПД: 98847088586823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194828&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166883&fm=98847088586823&tin=02508201610067®Number=0000000000091764&sum=60000 [19:48:26]StoreToDocumentArchive [19:48:26]shift 537 fd 166883 [19:48:26]save to /storage/0537/doc_00166883 [19:48:26]save last doc name /storage/0537/doc_00166883 to /storage/kkm_last_doc_name [19:48:26]save OK [19:48:26]Clear old archive folders... [19:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:26]tlvbuf is 02114070 [19:48:26]SAM_PROTO_ClearQueue [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 09 00 00 [19:48:26]Write to MH i2c: E2 08 00 64 46 80 09 00 00 00 00 00 00 1C [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 64 46 00 90 00 1E [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_ClearQueue done [19:48:26]KKMCreateOFDPacket [19:48:26]OFDProtocolAddRootSTLVToBuf [19:48:26]FM_MakeSignedData [19:48:26]FM_MakeSignedData [19:48:26]SAM_PROTO_SignData [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 01 02 [19:48:26]Write to MH i2c: E2 08 00 65 46 80 0D 01 02 00 00 00 00 24 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 65 46 00 90 00 1F [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]wFMCommunicate request_size=255 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0C 53 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8B 02 00 35 04 06 00 59 [19:48:26]Write to MH i2c: E2 02 01 66 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0C 53 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8B 02 00 35 04 06 00 59 00 00 85 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 66 46 00 90 00 20 [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]wFMCommunicate request_size=10 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 02 02 05 E6 A1 9A 30 47 [19:48:26]Write to MH i2c: E2 0D 00 67 46 80 0D 02 02 05 00 E6 A1 9A 30 47 00 00 C9 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 67 46 00 90 00 21 [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 03 02 [19:48:26]Write to MH i2c: E2 08 00 68 46 80 0D 03 02 00 00 00 00 29 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0B 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0B 00 68 46 00 C6 17 88 5C A5 A0 31 23 90 00 84 [19:48:26]RAPDU: C6 17 88 5C A5 A0 31 23 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_SignData done [19:48:26]FM_MakeSignedData done [19:48:26]CreateOFDProtocolMessage [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 11 00 00 [19:48:26]Write to MH i2c: E2 08 00 69 46 80 11 00 00 00 00 00 00 29 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 69 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [19:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:48:26]wFMCommunicate OK [19:48:26]CreateOFDProtocolMessage done [19:48:26]OFDSenderStorePacket 166883 [19:48:26]StoreOFDPacket docnum=166883 [19:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E C1 07 01 FA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0C 53 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8B 02 00 35 04 06 00 59 E6 A1 9A 30 47 C6 17 88 5C A5 A0 31 23 [19:48:26]CheckFolder [19:48:26]dirname=/storage/ofd_packets [19:48:26]CheckFolder done [19:48:26]ProducePacketName [19:48:26]name=ofd_packets/00166883 [19:48:26]NVStorageSaveData ofd_packets/00166883 [19:48:26]File name is /storage/ofd_packets/00166883 [19:48:26]Write 301 bytes [19:48:26]NVStorageSaveData done [19:48:26]OFDSenderStorePacket done [19:48:26]KKMCreateOFDPacket done [19:48:26]NVStorageSaveData kkm_last_timestamp [19:48:26]File name is /storage/kkm_last_timestamp [19:48:26]Write 4 bytes [19:48:26]NVStorageSaveData done [19:48:26]ExternCall_PrintAddStr [19:48:26]wPrintStart [19:48:26]Write to MH i2c: 01 00 00 6A 46 B0 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 07 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 07 00 6A 46 00 00 00 00 00 FF 0F C5 [19:48:26]RasterBufferAndPrint [19:48:26]line Счет N : (1)221469 [19:48:26]line ИНН: 02508201610067 [19:48:26]line Контрольно-Кассовый Чек [19:48:26]line ПРОДАЖА [19:48:26]line ТРК (МРК, ГНК) : 33 [19:48:26]line Товар: 2710124130 [19:48:26]line Аи-92-К-5 [19:48:26]line 8.970 * 66.90 [19:48:26]line = 600.09 [19:48:26]line НДС 12% НСП 1% [19:48:26]line > о реализуемом товаре [19:48:26]line ОКРУГЛЕНИЕ: -0.09 [19:48:26]line ИТОГО: 600.00 [19:48:26]line Внесено: 600.00 [19:48:26]line СДАЧА: 0.00 [19:48:26]line НСП 1% : 5.31 [19:48:26]line НДС 12% : 63.73 [19:48:26]line Наличными: 600.00 [19:48:26]line Безнал.: 0.00 [19:48:26]line Место: АЗС № 161 "Партнер Нефть" [19:48:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:48:26]line СНО: Общий режим [19:48:26]line Чек 298 23.10.2024 19:48 [19:48:26]line Смена: 537 ФФД: 1.0 [19:48:26]line ЗНМ: 0300000104 [19:48:26]line РНМ: 0000000000091764 [19:48:26]line Версия ККМ: 001 [19:48:26]line ФМ: 0000000000871759 [19:48:26]line ФД: 166883 [19:48:26]line ФПД: 98847088586823 [19:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194828&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166883&fm=98847088586823&tin=02508201610067®Number=0000000000091764&sum=60000 [19:48:27]OFD Sender: Processing packet 166883 [packets to send 48, broken 47] [19:48:27]ProducePacketName [19:48:27]name=ofd_packets/00166883 [19:48:27]OFD Sender: To server: pG, [19:48:27]CommunicateWithHost lk.salyk.kg:30040 [19:48:27]ConnectInit lk.salyk.kg [19:48:27]written 0, free lines is 4095 [19:48:27]Connected sock=10 [19:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E C1 07 01 FA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0C 53 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8B 02 00 35 04 06 00 59 E6 A1 9A 30 47 C6 17 88 5C A5 A0 31 23 [19:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5A 0A 47 00 FB 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 8B 02 00 F4 03 04 00 72 F9 18 67 B6 04 01 00 00 BD 16 38 6F 06 84 4B 84 [19:48:27]CommunicateWithHost err = 0 [19:48:27]CheckOFDResponse [19:48:27]1017 (14) - 77093643461234 [19:48:27]1041 (16) - 0000000000871759 [19:48:27]1040 (4) - 166883 [19:48:27]1012 (4) - 23.10.2024 13:26 [19:48:27]1206 (1) - 0 [19:48:27]OFD Sender: Remove packet 166883 [19:48:27]ProducePacketName [19:48:27]name=ofd_packets/00166883 [19:48:27]NVStorageDeleteData [19:48:27]Write to MH i2c: 01 00 00 95 46 DB [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 07 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 07 00 95 46 00 00 00 00 00 B5 0C A3 [19:48:27]RasterBufferAndPrint [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]written 0, free lines is 3257 [19:48:27]MH_Cut [19:48:27]Write to MH i2c: D1 01 00 9C 46 01 B4 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 01 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 01 00 9C 46 00 B3 [19:48:27]Write to MH i2c: 01 00 00 9D 46 E3 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:28]OFD Sender: No OFD packet to send [19:48:28]*** Cut start [19:48:28]*** Partial cut [19:48:28]*** CUTSNS_PIN = 1 [19:48:28]*** CUTSNS_PIN = 0 [19:48:28]*** Brake cut motor [19:48:29]Read from MH i2c: 01 [19:48:29]MH_I2C_Read... [19:48:29]*** Stop cut motor [19:48:29]*** Cut end [19:48:29]Read from MH i2c: 01 07 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: 01 07 00 9D 46 00 00 00 00 00 FF 0F F8 [19:48:29]process_action close_receipt done [19:48:29]requested_data is exist [19:48:29]produce_requested_data [19:48:29]requested_item fm.sn is exist - process it [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 11 00 00 [19:48:29]Write to MH i2c: E2 08 00 9E 46 80 11 00 00 00 00 00 00 5E [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 9E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [19:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:48:29]wFMCommunicate OK [19:48:29]requested_item fd.num is exist - process it [19:48:29]SAM_PROTO_GetFieldsCounters [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 13 00 00 [19:48:29]Write to MH i2c: E2 08 00 9F 46 80 13 00 00 00 00 00 00 61 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 62 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 62 00 9F 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [19:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_GetFieldsCounters done [19:48:29]requested_item shift.num is exist - process it [19:48:29]requested_item shift.opened is exist - process it [19:48:29]req_shift_opened [19:48:29]FM_GetShiftState [19:48:29]SAM_PROTO_GetShiftState [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 13 01 00 [19:48:29]Write to MH i2c: E2 08 00 A0 46 80 13 01 00 00 00 00 00 63 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0E 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0E 00 A0 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 2E [19:48:29]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_GetShiftState done [19:48:29]FM_GetShiftState done [19:48:29]req_shift_opened done [19:48:29]requested_item shift.open_date is exist - process it [19:48:29]req_shift_open_date [19:48:29]req_shift_open_date done [19:48:29]produce_requested_data done [19:48:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166883,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:48:29]process_action_free close_receipt [19:48:29]json_value_free [19:48:29]json_value_free done [19:48:29]process_json_proto returns [19:48:29]Send response to host [19:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166883,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:48:29]free response buf [19:48:29]execute_script done [19:48:29]execute_script returns [19:48:29]free content buf [19:48:29]Sock 9.Close socket [19:48:29]Sock 9.Thread stoped [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:00]accept exits with 8 [19:53:00]New connection [19:53:00]New thread 3067178340 created [19:53:00]Thread 3067034980 joined [19:53:00]Waiting for new connection... [19:53:00] Sock 8.Parse request [19:53:00]Sock 8.Check first char [19:53:00]Sock 8.First char is OK [19:53:00]request: POST /json_proto HTTP/1.0 [19:53:00]Method: POST [19:53:00]URL: /json_proto [19:53:00]Method is POST - this is cgi request [19:53:00]url: /json_proto [19:53:00]query_string will be loaded in cgi processing [19:53:00]execute_cgi json_proto POST (null) [19:53:00]execute_cgi path=json_proto method=POST [19:53:00]POST find Content-Length [19:53:00]Host: 172.17.53.195:8080 [19:53:00]Content-Length: 766 [19:53:00]Content-Type: application/json [19:53:00] [19:53:00]POST finish read [19:53:00]Found Content-Length = 766 [19:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:00]execute_script... [19: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)221470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:00]POST & json_proto [19:53:00]process_json_proto [19:53:00]json parsed OK: [19:53:00]protocol is kg_v1.0 [19:53:00]action value=close_receipt [19:53:00]process_action close_receipt [19:53:00]cmd_close_receipt [19:53:00]MH_GetDate [19:53:00]Write to MH i2c: F0 00 00 A1 46 D6 [19:53:00]Write i2c OK [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: F0 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: F0 09 00 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: F0 09 00 A1 46 00 1F 54 19 67 21 48 4A 65 EA [19:53:00]GetLastDocTimeStamp 1729712908 [19:53:00]current date 1729713183 [19:53:00]FM_GetShiftState [19:53:00]SAM_PROTO_GetShiftState [19:53:00]wFMCommunicate request_size=4 [19:53:00]MH_SAM_APDU [19:53:00]CAPDU: 80 13 01 00 [19:53:00]Write to MH i2c: E2 08 00 A2 46 80 13 01 00 00 00 00 00 65 [19:53:00]Write i2c OK [19:53:00]MH_I2C_Read... [19:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:01]Read from MH i2c: E2 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 0E 00 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 0E 00 A2 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 30 [19:53:01]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:53:01]wFMCommunicate OK [19:53:01]SAM_PROTO_GetShiftState done [19:53:01]FM_GetShiftState done [19:53:01]opened in 1729643772 [19:53:01]opened+sec_in_day 1729730172 [19:53:01]quantity*price = 70044 [19:53:01]sum+1 = 70046 [19:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 299 23.10.2024 19:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166884 ФПД: 160820849083573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195303&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166884&fm=160820849083573&tin=02508201610067®Number=0000000000091764&sum=70045 [19:53:02]StoreToDocumentArchive [19:53:02]shift 537 fd 166884 [19:53:02]save to /storage/0537/doc_00166884 [19:53:02]save last doc name /storage/0537/doc_00166884 to /storage/kkm_last_doc_name [19:53:02]save OK [19:53:02]Clear old archive folders... [19:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:02]tlvbuf is 01FE7DD0 [19:53:02]SAM_PROTO_ClearQueue [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 09 00 00 [19:53:02]Write to MH i2c: E2 08 00 AF 46 80 09 00 00 00 00 00 00 67 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 AF 46 00 90 00 69 [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]SAM_PROTO_ClearQueue done [19:53:02]KKMCreateOFDPacket [19:53:02]OFDProtocolAddRootSTLVToBuf [19:53:02]FM_MakeSignedData [19:53:02]FM_MakeSignedData [19:53:02]SAM_PROTO_SignData [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 0D 01 02 [19:53:02]Write to MH i2c: E2 08 00 B0 46 80 0D 01 02 00 00 00 00 6F [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 B0 46 00 90 00 6A [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]wFMCommunicate request_size=255 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 1F 54 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8B 02 00 35 04 06 00 92 [19:53:02]Write to MH i2c: E2 02 01 B1 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 1F 54 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8B 02 00 35 04 06 00 92 00 00 83 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 B1 46 00 90 00 6B [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]wFMCommunicate request_size=10 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 0D 02 02 05 44 05 95 04 B5 [19:53:02]Write to MH i2c: E2 0D 00 B2 46 80 0D 02 02 05 00 44 05 95 04 B5 00 00 13 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 B2 46 00 90 00 6C [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 0D 03 02 [19:53:02]Write to MH i2c: E2 08 00 B3 46 80 0D 03 02 00 00 00 00 74 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 0B 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 0B 00 B3 46 00 CD 68 2F C7 8B CA A0 B5 90 00 4A [19:53:02]RAPDU: CD 68 2F C7 8B CA A0 B5 90 00 [19:53:02]wFMCommunicate OK [19:53:02]SAM_PROTO_SignData done [19:53:02]FM_MakeSignedData done [19:53:02]CreateOFDProtocolMessage [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 11 00 00 [19:53:02]Write to MH i2c: E2 08 00 B4 46 80 11 00 00 00 00 00 00 74 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 17 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 17 00 B4 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [19:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:02]wFMCommunicate OK [19:53:02]CreateOFDProtocolMessage done [19:53:02]OFDSenderStorePacket 166884 [19:53:02]StoreOFDPacket docnum=166884 [19:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 A4 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 1F 54 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8B 02 00 35 04 06 00 92 44 05 95 04 B5 CD 68 2F C7 8B CA A0 B5 [19:53:02]CheckFolder [19:53:02]dirname=/storage/ofd_packets [19:53:02]CheckFolder done [19:53:02]ProducePacketName [19:53:02]name=ofd_packets/00166884 [19:53:02]NVStorageSaveData ofd_packets/00166884 [19:53:02]File name is /storage/ofd_packets/00166884 [19:53:02]Write 301 bytes [19:53:02]NVStorageSaveData done [19:53:02]OFDSenderStorePacket done [19:53:02]KKMCreateOFDPacket done [19:53:02]NVStorageSaveData kkm_last_timestamp [19:53:02]File name is /storage/kkm_last_timestamp [19:53:02]Write 4 bytes [19:53:02]NVStorageSaveData done [19:53:02]ExternCall_PrintAddStr [19:53:02]wPrintStart [19:53:02]Write to MH i2c: 01 00 00 B5 46 FB [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 07 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 07 00 B5 46 00 00 00 00 00 FF 0F 10 [19:53:02]RasterBufferAndPrint [19:53:02]line Счет N : (1)221470 [19:53:02]line ИНН: 02508201610067 [19:53:02]line Контрольно-Кассовый Чек [19:53:02]line ПРОДАЖА [19:53:02]line ТРК (МРК, ГНК) : 24 [19:53:02]line Товар: 2710124500 [19:53:02]line Аи-95-К-5 [19:53:02]line 9.440 * 74.20 [19:53:02]line = 700.45 [19:53:02]line НДС 12% НСП 1% [19:53:02]line > о реализуемом товаре [19:53:02]line ИТОГО: 700.45 [19:53:02]line НСП 1% : 6.20 [19:53:02]line НДС 12% : 74.38 [19:53:02]line Наличными: 0.00 [19:53:02]line Безнал.: 700.45 [19:53:02]line Место: АЗС № 161 "Партнер Нефть" [19:53:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:53:02]line СНО: Общий режим [19:53:02]line Чек 299 23.10.2024 19:53 [19:53:02]line Смена: 537 ФФД: 1.0 [19:53:02]line ЗНМ: 0300000104 [19:53:02]line РНМ: 0000000000091764 [19:53:02]line Версия ККМ: 001 [19:53:02]line Платежная система: Mbank [19:53:02]line ФМ: 0000000000871759 [19:53:02]line ФД: 166884 [19:53:02]line ФПД: 160820849083573 [19:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195303&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166884&fm=160820849083573&tin=02508201610067®Number=0000000000091764&sum=70045 [19:53:02]written 0, free lines is 4095 [19:53:02]OFD Sender: Processing packet 166884 [packets to send 48, broken 47] [19:53:02]ProducePacketName [19:53:02]name=ofd_packets/00166884 [19:53:03]OFD Sender: To server: pG, [19:53:03]CommunicateWithHost lk.salyk.kg:30040 [19:53:03]ConnectInit lk.salyk.kg [19:53:03]Write to MH i2c: 01 00 00 DE 46 24 [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Connected sock=10 [19:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 A4 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 1F 54 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8B 02 00 35 04 06 00 92 44 05 95 04 B5 CD 68 2F C7 8B CA A0 B5 [19:53:03]Read from MH i2c: 01 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 DE 46 00 00 00 00 00 CA 0C 01 [19:53:03]RasterBufferAndPrint [19:53:03]line [19:53:03]line [19:53:03]line [19:53:03]line [19:53:03]line [19:53:03]written 0, free lines is 3330 [19:53:03]MH_Cut [19:53:03]Write to MH i2c: D1 01 00 E5 46 01 FD [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: D1 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: D1 01 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: D1 01 00 E5 46 00 FC [19:53:03]Write to MH i2c: 01 00 00 E6 46 2C [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4F 25 47 00 01 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 8B 02 00 F4 03 04 00 86 FA 18 67 B6 04 01 00 00 62 0F B3 80 8E BE CD BC [19:53:03]CommunicateWithHost err = 0 [19:53:03]CheckOFDResponse [19:53:03]1017 (14) - 77093643461234 [19:53:03]1041 (16) - 0000000000871759 [19:53:03]1040 (4) - 166884 [19:53:03]1012 (4) - 23.10.2024 13:30 [19:53:03]1206 (1) - 0 [19:53:03]OFD Sender: Remove packet 166884 [19:53:03]ProducePacketName [19:53:03]name=ofd_packets/00166884 [19:53:03]NVStorageDeleteData [19:53:03]OFD Sender: No OFD packet to send [19:53:03]*** Cut start [19:53:03]*** Partial cut [19:53:03]*** CUTSNS_PIN = 1 [19:53:04]*** CUTSNS_PIN = 0 [19:53:04]*** Brake cut motor [19:53:04]Read from MH i2c: 01 [19:53:04]MH_I2C_Read... [19:53:04]*** Stop cut motor [19:53:04]*** Cut end [19:53:04]Read from MH i2c: 01 07 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: 01 07 00 E6 46 00 00 00 00 00 FF 0F 41 [19:53:04]process_action close_receipt done [19:53:04]requested_data is exist [19:53:04]produce_requested_data [19:53:04]requested_item fm.sn is exist - process it [19:53:04]wFMCommunicate request_size=4 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 11 00 00 [19:53:04]Write to MH i2c: E2 08 00 E7 46 80 11 00 00 00 00 00 00 A7 [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 17 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 17 00 E7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [19:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:04]wFMCommunicate OK [19:53:04]requested_item fd.num is exist - process it [19:53:04]SAM_PROTO_GetFieldsCounters [19:53:04]wFMCommunicate request_size=4 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 13 00 00 [19:53:04]Write to MH i2c: E2 08 00 E8 46 80 13 00 00 00 00 00 00 AA [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 62 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 62 00 E8 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [19:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:04]wFMCommunicate OK [19:53:04]SAM_PROTO_GetFieldsCounters done [19:53:04]requested_item shift.num is exist - process it [19:53:04]requested_item shift.opened is exist - process it [19:53:04]req_shift_opened [19:53:04]FM_GetShiftState [19:53:04]SAM_PROTO_GetShiftState [19:53:04]wFMCommunicate request_size=4 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 13 01 00 [19:53:04]Write to MH i2c: E2 08 00 E9 46 80 13 01 00 00 00 00 00 AC [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 0E 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 0E 00 E9 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 77 [19:53:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [19:53:04]wFMCommunicate OK [19:53:04]SAM_PROTO_GetShiftState done [19:53:04]FM_GetShiftState done [19:53:04]req_shift_opened done [19:53:04]requested_item shift.open_date is exist - process it [19:53:04]req_shift_open_date [19:53:04]req_shift_open_date done [19:53:04]produce_requested_data done [19:53:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166884,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [19:53:04]process_action_free close_receipt [19:53:04]json_value_free [19:53:04]json_value_free done [19:53:04]process_json_proto returns [19:53:04]Send response to host [19:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166884,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [19:53:04]free response buf [19:53:04]execute_script done [19:53:04]execute_script returns [19:53:04]free content buf [19:53:04]Sock 8.Close socket [19:53:04]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:38]accept exits with 9 [20:05:38]New connection [20:05:38]New thread 3067034980 created [20:05:38]Thread 3067178340 joined [20:05:38]Waiting for new connection... [20:05:38] Sock 9.Parse request [20:05:38]Sock 9.Check first char [20:05:38]Sock 9.First char is OK [20:05:38]request: POST /json_proto HTTP/1.0 [20:05:38]Method: POST [20:05:38]URL: /json_proto [20:05:38]Method is POST - this is cgi request [20:05:38]url: /json_proto [20:05:38]query_string will be loaded in cgi processing [20:05:38]execute_cgi json_proto POST (null) [20:05:38]execute_cgi path=json_proto method=POST [20:05:38]POST find Content-Length [20:05:38]Host: 172.17.53.195:8080 [20:05:38]Content-Length: 677 [20:05:38]Content-Type: application/json [20:05:38] [20:05:38]POST finish read [20:05:38]Found Content-Length = 677 [20:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:38]execute_script... [20:05: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)221472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:38]POST & json_proto [20:05:38]process_json_proto [20:05:38]json parsed OK: [20:05:38]protocol is kg_v1.0 [20:05:38]action value=close_receipt [20:05:38]process_action close_receipt [20:05:38]cmd_close_receipt [20:05:38]MH_GetDate [20:05:38]Write to MH i2c: F0 00 00 EA 46 1F [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: F0 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: F0 09 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: F0 09 00 EA 46 00 15 57 19 67 21 48 4A 65 2C [20:05:38]GetLastDocTimeStamp 1729713183 [20:05:38]current date 1729713941 [20:05:38]FM_GetShiftState [20:05:38]SAM_PROTO_GetShiftState [20:05:38]wFMCommunicate request_size=4 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 13 01 00 [20:05:38]Write to MH i2c: E2 08 00 EB 46 80 13 01 00 00 00 00 00 AE [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0E 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0E 00 EB 46 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 79 [20:05:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:05:38]wFMCommunicate OK [20:05:38]SAM_PROTO_GetShiftState done [20:05:38]FM_GetShiftState done [20:05:38]opened in 1729643772 [20:05:38]opened+sec_in_day 1729730172 [20:05:38]quantity*price = 30038 [20:05:38]sum+1 = 30039 [20:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 300 23.10.2024 20:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166885 ФПД: 115521172191795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166885&fm=115521172191795&tin=02508201610067®Number=0000000000091764&sum=30000 [20:05:39]StoreToDocumentArchive [20:05:39]shift 537 fd 166885 [20:05:39]save to /storage/0537/doc_00166885 [20:05:39]save last doc name /storage/0537/doc_00166885 to /storage/kkm_last_doc_name [20:05:39]save OK [20:05:39]Clear old archive folders... [20:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:39]tlvbuf is 01FFAE30 [20:05:39]SAM_PROTO_ClearQueue [20:05:39]wFMCommunicate request_size=4 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 09 00 00 [20:05:39]Write to MH i2c: E2 08 00 F8 46 80 09 00 00 00 00 00 00 B0 [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:39]Read from MH i2c: E2 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 F8 46 00 90 00 B2 [20:05:39]RAPDU: 90 00 [20:05:39]wFMCommunicate OK [20:05:39]SAM_PROTO_ClearQueue done [20:05:39]KKMCreateOFDPacket [20:05:39]OFDProtocolAddRootSTLVToBuf [20:05:39]FM_MakeSignedData [20:05:39]FM_MakeSignedData [20:05:39]SAM_PROTO_SignData [20:05:39]wFMCommunicate request_size=4 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 0D 01 02 [20:05:39]Write to MH i2c: E2 08 00 F9 46 80 0D 01 02 00 00 00 00 B8 [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]OFD Sender: No OFD packet to send [20:05:39]Read from MH i2c: E2 [20:05:39]MH_I2C_Read... [20:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:39]Read from MH i2c: E2 03 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 F9 46 00 90 00 B3 [20:05:39]RAPDU: 90 00 [20:05:39]wFMCommunicate OK [20:05:39]wFMCommunicate request_size=255 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 15 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8B 02 00 35 04 06 00 69 [20:05:39]Write to MH i2c: E2 02 01 FA 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 15 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8B 02 00 35 04 06 00 69 00 00 51 [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:39]Read from MH i2c: E2 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 FA 46 00 90 00 B4 [20:05:39]RAPDU: 90 00 [20:05:39]wFMCommunicate OK [20:05:39]wFMCommunicate request_size=10 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 0D 02 02 05 10 DE 6E BA 33 [20:05:39]Write to MH i2c: E2 0D 00 FB 46 80 0D 02 02 05 00 10 DE 6E BA 33 00 00 0E [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:39]Read from MH i2c: E2 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 03 00 FB 46 00 90 00 B5 [20:05:39]RAPDU: 90 00 [20:05:39]wFMCommunicate OK [20:05:39]wFMCommunicate request_size=4 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 0D 03 02 [20:05:39]Write to MH i2c: E2 08 00 FC 46 80 0D 03 02 00 00 00 00 BD [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 0B 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 0B 00 FC 46 00 4A 68 0E 53 D0 52 01 C9 90 00 BD [20:05:40]RAPDU: 4A 68 0E 53 D0 52 01 C9 90 00 [20:05:40]wFMCommunicate OK [20:05:40]SAM_PROTO_SignData done [20:05:40]FM_MakeSignedData done [20:05:40]CreateOFDProtocolMessage [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 11 00 00 [20:05:40]Write to MH i2c: E2 08 00 FD 46 80 11 00 00 00 00 00 00 BD [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 17 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 17 00 FD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [20:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:40]wFMCommunicate OK [20:05:40]CreateOFDProtocolMessage done [20:05:40]OFDSenderStorePacket 166885 [20:05:40]StoreOFDPacket docnum=166885 [20:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 B9 07 01 F9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 15 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8B 02 00 35 04 06 00 69 10 DE 6E BA 33 4A 68 0E 53 D0 52 01 C9 [20:05:40]CheckFolder [20:05:40]dirname=/storage/ofd_packets [20:05:40]CheckFolder done [20:05:40]ProducePacketName [20:05:40]name=ofd_packets/00166885 [20:05:40]NVStorageSaveData ofd_packets/00166885 [20:05:40]File name is /storage/ofd_packets/00166885 [20:05:40]Write 301 bytes [20:05:40]NVStorageSaveData done [20:05:40]OFDSenderStorePacket done [20:05:40]KKMCreateOFDPacket done [20:05:40]NVStorageSaveData kkm_last_timestamp [20:05:40]File name is /storage/kkm_last_timestamp [20:05:40]Write 4 bytes [20:05:40]NVStorageSaveData done [20:05:40]ExternCall_PrintAddStr [20:05:40]wPrintStart [20:05:40]Write to MH i2c: 01 00 00 FE 46 44 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 07 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 07 00 FE 46 00 00 00 00 00 FF 0F 59 [20:05:40]RasterBufferAndPrint [20:05:40]line Счет N : (1)221472 [20:05:40]line ИНН: 02508201610067 [20:05:40]line Контрольно-Кассовый Чек [20:05:40]line ПРОДАЖА [20:05:40]line ТРК (МРК, ГНК) : 33 [20:05:40]line Товар: 2710124130 [20:05:40]line Аи-92-К-5 [20:05:40]line 4.490 * 66.90 [20:05:40]line = 300.38 [20:05:40]line НДС 12% НСП 1% [20:05:40]line > о реализуемом товаре [20:05:40]line ОКРУГЛЕНИЕ: -0.38 [20:05:40]line ИТОГО: 300.00 [20:05:40]line Внесено: 300.00 [20:05:40]line СДАЧА: 0.00 [20:05:40]line НСП 1% : 2.66 [20:05:40]line НДС 12% : 31.90 [20:05:40]line Наличными: 300.00 [20:05:40]line Безнал.: 0.00 [20:05:40]line Место: АЗС № 161 "Партнер Нефть" [20:05:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:05:40]line СНО: Общий режим [20:05:40]line Чек 300 23.10.2024 20:05 [20:05:40]line Смена: 537 ФФД: 1.0 [20:05:40]line ЗНМ: 0300000104 [20:05:40]line РНМ: 0000000000091764 [20:05:40]line Версия ККМ: 001 [20:05:40]line ФМ: 0000000000871759 [20:05:40]line ФД: 166885 [20:05:40]line ФПД: 115521172191795 [20:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166885&fm=115521172191795&tin=02508201610067®Number=0000000000091764&sum=30000 [20:05:40]OFD Sender: Processing packet 166885 [packets to send 48, broken 47] [20:05:40]ProducePacketName [20:05:40]name=ofd_packets/00166885 [20:05:40]OFD Sender: To server: pG, [20:05:40]CommunicateWithHost lk.salyk.kg:30040 [20:05:40]ConnectInit lk.salyk.kg [20:05:40]written 0, free lines is 4095 [20:05:40]Connected sock=10 [20:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 B9 07 01 F9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 15 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8B 02 00 35 04 06 00 69 10 DE 6E BA 33 4A 68 0E 53 D0 52 01 C9 [20:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 76 47 00 82 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 8B 02 00 F4 03 04 00 7B FD 18 67 B6 04 01 00 00 49 42 D3 3B 23 B1 C7 7F [20:05:40]CommunicateWithHost err = 0 [20:05:40]CheckOFDResponse [20:05:40]1017 (14) - 77093643461234 [20:05:40]1041 (16) - 0000000000871759 [20:05:40]1040 (4) - 166885 [20:05:40]1012 (4) - 23.10.2024 13:43 [20:05:40]1206 (1) - 0 [20:05:40]OFD Sender: Remove packet 166885 [20:05:40]ProducePacketName [20:05:40]name=ofd_packets/00166885 [20:05:40]NVStorageDeleteData [20:05:40]Write to MH i2c: 01 00 00 29 47 70 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 07 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 07 00 29 47 00 00 00 00 00 A0 0C 23 [20:05:40]RasterBufferAndPrint [20:05:40]line [20:05:40]line [20:05:40]line [20:05:40]line [20:05:40]line [20:05:40]written 0, free lines is 3237 [20:05:40]MH_Cut [20:05:40]Write to MH i2c: D1 01 00 30 47 01 49 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: D1 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: D1 01 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: D1 01 00 30 47 00 48 [20:05:40]Write to MH i2c: 01 00 00 31 47 78 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:41]OFD Sender: No OFD packet to send [20:05:41]*** Cut start [20:05:41]*** Partial cut [20:05:41]*** CUTSNS_PIN = 1 [20:05:41]*** CUTSNS_PIN = 0 [20:05:42]*** Brake cut motor [20:05:42]Read from MH i2c: 01 [20:05:42]MH_I2C_Read... [20:05:42]*** Stop cut motor [20:05:42]*** Cut end [20:05:42]Read from MH i2c: 01 07 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 07 00 31 47 00 00 00 00 00 FF 0F 8D [20:05:42]process_action close_receipt done [20:05:42]requested_data is exist [20:05:42]produce_requested_data [20:05:42]requested_item fm.sn is exist - process it [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 11 00 00 [20:05:42]Write to MH i2c: E2 08 00 32 47 80 11 00 00 00 00 00 00 F3 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 32 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [20:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:42]wFMCommunicate OK [20:05:42]requested_item fd.num is exist - process it [20:05:42]SAM_PROTO_GetFieldsCounters [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 13 00 00 [20:05:42]Write to MH i2c: E2 08 00 33 47 80 13 00 00 00 00 00 00 F6 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 62 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 62 00 33 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [20:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_GetFieldsCounters done [20:05:42]requested_item shift.num is exist - process it [20:05:42]requested_item shift.opened is exist - process it [20:05:42]req_shift_opened [20:05:42]FM_GetShiftState [20:05:42]SAM_PROTO_GetShiftState [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 13 01 00 [20:05:42]Write to MH i2c: E2 08 00 34 47 80 13 01 00 00 00 00 00 F8 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 34 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C3 [20:05:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_GetShiftState done [20:05:42]FM_GetShiftState done [20:05:42]req_shift_opened done [20:05:42]requested_item shift.open_date is exist - process it [20:05:42]req_shift_open_date [20:05:42]req_shift_open_date done [20:05:42]produce_requested_data done [20:05:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166885,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:05:42]process_action_free close_receipt [20:05:42]json_value_free [20:05:42]json_value_free done [20:05:42]process_json_proto returns [20:05:42]Send response to host [20:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166885,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:05:42]free response buf [20:05:42]execute_script done [20:05:42]execute_script returns [20:05:42]free content buf [20:05:42]Sock 9.Close socket [20:05:42]Sock 9.Thread stoped [20:05:42]accept exits with 8 [20:05:42]New connection [20:05:42]New thread 3067178340 created [20:05:42]Thread 3067034980 joined [20:05:42]Waiting for new connection... [20:05:42] Sock 8.Parse request [20:05:42]Sock 8.Check first char [20:05:42]Sock 8.First char is OK [20:05:42]request: POST /json_proto HTTP/1.0 [20:05:42]Method: POST [20:05:42]URL: /json_proto [20:05:42]Method is POST - this is cgi request [20:05:42]url: /json_proto [20:05:42]query_string will be loaded in cgi processing [20:05:42]execute_cgi json_proto POST (null) [20:05:42]execute_cgi path=json_proto method=POST [20:05:42]POST find Content-Length [20:05:42]Host: 172.17.53.195:8080 [20:05:42]Content-Length: 769 [20:05:42]Content-Type: application/json [20:05:42] [20:05:42]POST finish read [20:05:42]Found Content-Length = 769 [20:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:42]execute_script... [20:05: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)221471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:42]POST & json_proto [20:05:42]process_json_proto [20:05:42]json parsed OK: [20:05:42]protocol is kg_v1.0 [20:05:42]action value=close_receipt [20:05:42]process_action close_receipt [20:05:42]cmd_close_receipt [20:05:42]MH_GetDate [20:05:42]Write to MH i2c: F0 00 00 35 47 6B [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 09 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 09 00 35 47 00 19 57 19 67 21 48 4A 65 7C [20:05:42]GetLastDocTimeStamp 1729713941 [20:05:42]current date 1729713945 [20:05:42]FM_GetShiftState [20:05:42]SAM_PROTO_GetShiftState [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 13 01 00 [20:05:42]Write to MH i2c: E2 08 00 36 47 80 13 01 00 00 00 00 00 FA [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 36 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C5 [20:05:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetShiftState done [20:05:43]FM_GetShiftState done [20:05:43]opened in 1729643772 [20:05:43]opened+sec_in_day 1729730172 [20:05:43]quantity*price = 100021 [20:05:43]sum+1 = 100023 [20:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 301 23.10.2024 20:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166886 ФПД: 232114811590947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200545&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166886&fm=232114811590947&tin=02508201610067®Number=0000000000091764&sum=100022 [20:05:44]StoreToDocumentArchive [20:05:44]shift 537 fd 166886 [20:05:44]save to /storage/0537/doc_00166886 [20:05:44]save last doc name /storage/0537/doc_00166886 to /storage/kkm_last_doc_name [20:05:44]save OK [20:05:44]Clear old archive folders... [20:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:44]tlvbuf is 020F20A0 [20:05:44]SAM_PROTO_ClearQueue [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 09 00 00 [20:05:44]Write to MH i2c: E2 08 00 43 47 80 09 00 00 00 00 00 00 FC [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 43 47 00 90 00 FE [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_ClearQueue done [20:05:44]KKMCreateOFDPacket [20:05:44]OFDProtocolAddRootSTLVToBuf [20:05:44]FM_MakeSignedData [20:05:44]FM_MakeSignedData [20:05:44]SAM_PROTO_SignData [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 01 02 [20:05:44]Write to MH i2c: E2 08 00 44 47 80 0D 01 02 00 00 00 00 04 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 44 47 00 90 00 FF [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=255 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 19 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8B 02 00 35 04 06 00 D3 [20:05:44]Write to MH i2c: E2 02 01 45 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 19 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8B 02 00 35 04 06 00 D3 00 00 62 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 45 47 00 90 00 00 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=10 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 05 1B 70 E4 59 23 [20:05:44]Write to MH i2c: E2 0D 00 46 47 80 0D 02 02 05 00 1B 70 E4 59 23 00 00 FC [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 46 47 00 90 00 01 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 03 02 [20:05:44]Write to MH i2c: E2 08 00 47 47 80 0D 03 02 00 00 00 00 09 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 47 47 00 18 14 89 63 10 57 C7 E9 90 00 39 [20:05:44]RAPDU: 18 14 89 63 10 57 C7 E9 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_SignData done [20:05:44]FM_MakeSignedData done [20:05:44]CreateOFDProtocolMessage [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 11 00 00 [20:05:44]Write to MH i2c: E2 08 00 48 47 80 11 00 00 00 00 00 00 09 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:45]Read from MH i2c: E2 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: E2 17 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: E2 17 00 48 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [20:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:45]wFMCommunicate OK [20:05:45]CreateOFDProtocolMessage done [20:05:45]OFDSenderStorePacket 166886 [20:05:45]StoreOFDPacket docnum=166886 [20:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D 4E 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 19 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8B 02 00 35 04 06 00 D3 1B 70 E4 59 23 18 14 89 63 10 57 C7 E9 [20:05:45]CheckFolder [20:05:45]dirname=/storage/ofd_packets [20:05:45]CheckFolder done [20:05:45]ProducePacketName [20:05:45]name=ofd_packets/00166886 [20:05:45]NVStorageSaveData ofd_packets/00166886 [20:05:45]File name is /storage/ofd_packets/00166886 [20:05:45]Write 301 bytes [20:05:45]NVStorageSaveData done [20:05:45]OFDSenderStorePacket done [20:05:45]KKMCreateOFDPacket done [20:05:45]NVStorageSaveData kkm_last_timestamp [20:05:45]File name is /storage/kkm_last_timestamp [20:05:45]Write 4 bytes [20:05:45]NVStorageSaveData done [20:05:45]ExternCall_PrintAddStr [20:05:45]wPrintStart [20:05:45]Write to MH i2c: 01 00 00 49 47 90 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 49 47 00 00 00 00 00 FF 0F A5 [20:05:45]RasterBufferAndPrint [20:05:45]line Счет N : (1)221471 [20:05:45]line ИНН: 02508201610067 [20:05:45]line Контрольно-Кассовый Чек [20:05:45]line ПРОДАЖА [20:05:45]line ТРК (МРК, ГНК) : 24 [20:05:45]line Товар: 2710124500 [20:05:45]line Аи-95-К-5 [20:05:45]line 13.480 * 74.20 [20:05:45]line = 1000.22 [20:05:45]line НДС 12% НСП 1% [20:05:45]line > о реализуемом товаре [20:05:45]line ИТОГО: 1000.22 [20:05:45]line НСП 1% : 8.85 [20:05:45]line НДС 12% : 106.22 [20:05:45]line Наличными: 0.00 [20:05:45]line Безнал.: 1000.22 [20:05:45]line Место: АЗС № 161 "Партнер Нефть" [20:05:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:05:45]line СНО: Общий режим [20:05:45]line Чек 301 23.10.2024 20:05 [20:05:45]line Смена: 537 ФФД: 1.0 [20:05:45]line ЗНМ: 0300000104 [20:05:45]line РНМ: 0000000000091764 [20:05:45]line Версия ККМ: 001 [20:05:45]line Платежная система: Mbank [20:05:45]line ФМ: 0000000000871759 [20:05:45]line ФД: 166886 [20:05:45]line ФПД: 232114811590947 [20:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200545&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166886&fm=232114811590947&tin=02508201610067®Number=0000000000091764&sum=100022 [20:05:45]OFD Sender: Processing packet 166886 [packets to send 48, broken 47] [20:05:45]ProducePacketName [20:05:45]name=ofd_packets/00166886 [20:05:45]OFD Sender: To server: pG, [20:05:45]CommunicateWithHost lk.salyk.kg:30040 [20:05:45]ConnectInit lk.salyk.kg [20:05:45]written 0, free lines is 4095 [20:05:45]Connected sock=11 [20:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D 4E 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 19 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8B 02 00 35 04 06 00 D3 1B 70 E4 59 23 18 14 89 63 10 57 C7 E9 [20:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 03 0A 47 00 00 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 8B 02 00 F4 03 04 00 80 FD 18 67 B6 04 01 00 00 29 84 E3 1E 98 DB D5 2F [20:05:45]CommunicateWithHost err = 0 [20:05:45]CheckOFDResponse [20:05:45]1017 (14) - 77093643461234 [20:05:45]1041 (16) - 0000000000871759 [20:05:45]1040 (4) - 166886 [20:05:45]1012 (4) - 23.10.2024 13:43 [20:05:45]1206 (1) - 0 [20:05:45]OFD Sender: Remove packet 166886 [20:05:45]ProducePacketName [20:05:45]name=ofd_packets/00166886 [20:05:45]NVStorageDeleteData [20:05:45]Write to MH i2c: 01 00 00 72 47 B9 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 72 47 00 00 00 00 00 E6 0C B2 [20:05:45]RasterBufferAndPrint [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]written 0, free lines is 3310 [20:05:45]MH_Cut [20:05:45]Write to MH i2c: D1 01 00 79 47 01 92 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 79 47 00 91 [20:05:45]Write to MH i2c: 01 00 00 7A 47 C1 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:46]OFD Sender: No OFD packet to send [20:05:46]*** Cut start [20:05:46]*** Partial cut [20:05:46]*** CUTSNS_PIN = 1 [20:05:46]*** CUTSNS_PIN = 0 [20:05:46]*** Brake cut motor [20:05:47]Read from MH i2c: 01 [20:05:47]MH_I2C_Read... [20:05:47]*** Stop cut motor [20:05:47]*** Cut end [20:05:47]Read from MH i2c: 01 07 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: 01 07 00 7A 47 00 00 00 00 00 FF 0F D6 [20:05:47]process_action close_receipt done [20:05:47]requested_data is exist [20:05:47]produce_requested_data [20:05:47]requested_item fm.sn is exist - process it [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 11 00 00 [20:05:47]Write to MH i2c: E2 08 00 7B 47 80 11 00 00 00 00 00 00 3C [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 17 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 17 00 7B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [20:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:47]wFMCommunicate OK [20:05:47]requested_item fd.num is exist - process it [20:05:47]SAM_PROTO_GetFieldsCounters [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 13 00 00 [20:05:47]Write to MH i2c: E2 08 00 7C 47 80 13 00 00 00 00 00 00 3F [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 62 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 62 00 7C 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetFieldsCounters done [20:05:47]requested_item shift.num is exist - process it [20:05:47]requested_item shift.opened is exist - process it [20:05:47]req_shift_opened [20:05:47]FM_GetShiftState [20:05:47]SAM_PROTO_GetShiftState [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 13 01 00 [20:05:47]Write to MH i2c: E2 08 00 7D 47 80 13 01 00 00 00 00 00 41 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 7D 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0C [20:05:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetShiftState done [20:05:47]FM_GetShiftState done [20:05:47]req_shift_opened done [20:05:47]requested_item shift.open_date is exist - process it [20:05:47]req_shift_open_date [20:05:47]req_shift_open_date done [20:05:47]produce_requested_data done [20:05:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166886,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:05:47]process_action_free close_receipt [20:05:47]json_value_free [20:05:47]json_value_free done [20:05:47]process_json_proto returns [20:05:47]Send response to host [20:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166886,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:05:47]free response buf [20:05:47]execute_script done [20:05:47]execute_script returns [20:05:47]free content buf [20:05:47]Sock 8.Close socket [20:05:47]Sock 8.Thread stoped [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:28]accept exits with 9 [20:06:28]New connection [20:06:28]New thread 3067034980 created [20:06:28]Thread 3067178340 joined [20:06:28]Waiting for new connection... [20:06:28] Sock 9.Parse request [20:06:28]Sock 9.Check first char [20:06:28]Sock 9.First char is OK [20:06:28]request: POST /json_proto HTTP/1.0 [20:06:28]Method: POST [20:06:28]URL: /json_proto [20:06:28]Method is POST - this is cgi request [20:06:28]url: /json_proto [20:06:28]query_string will be loaded in cgi processing [20:06:28]execute_cgi json_proto POST (null) [20:06:28]execute_cgi path=json_proto method=POST [20:06:28]POST find Content-Length [20:06:28]Host: 172.17.53.195:8080 [20:06:28]Content-Length: 677 [20:06:28]Content-Type: application/json [20:06:28] [20:06:28]POST finish read [20:06:28]Found Content-Length = 677 [20:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:28]execute_script... [20:06: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)221473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:28]POST & json_proto [20:06:28]process_json_proto [20:06:28]json parsed OK: [20:06:28]protocol is kg_v1.0 [20:06:28]action value=close_receipt [20:06:28]process_action close_receipt [20:06:28]cmd_close_receipt [20:06:28]MH_GetDate [20:06:28]Write to MH i2c: F0 00 00 7E 47 B4 [20:06:28]Write i2c OK [20:06:28]MH_I2C_Read... [20:06:28]Read from MH i2c: F0 [20:06:28]MH_I2C_Read... [20:06:28]Read from MH i2c: F0 09 00 [20:06:28]MH_I2C_Read... [20:06:28]Read from MH i2c: F0 09 00 7E 47 00 47 57 19 67 21 48 4A 65 F3 [20:06:28]GetLastDocTimeStamp 1729713945 [20:06:28]current date 1729713991 [20:06:28]FM_GetShiftState [20:06:28]SAM_PROTO_GetShiftState [20:06:28]wFMCommunicate request_size=4 [20:06:28]MH_SAM_APDU [20:06:28]CAPDU: 80 13 01 00 [20:06:28]Write to MH i2c: E2 08 00 7F 47 80 13 01 00 00 00 00 00 43 [20:06:28]Write i2c OK [20:06:28]MH_I2C_Read... [20:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:28]Read from MH i2c: E2 [20:06:28]MH_I2C_Read... [20:06:28]Read from MH i2c: E2 0E 00 [20:06:28]MH_I2C_Read... [20:06:28]Read from MH i2c: E2 0E 00 7F 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 0E [20:06:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:06:28]wFMCommunicate OK [20:06:28]SAM_PROTO_GetShiftState done [20:06:28]FM_GetShiftState done [20:06:28]opened in 1729643772 [20:06:28]opened+sec_in_day 1729730172 [20:06:28]quantity*price = 30038 [20:06:28]sum+1 = 30039 [20:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 302 23.10.2024 20:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166887 ФПД: 96139283203139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200631&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166887&fm=96139283203139&tin=02508201610067®Number=0000000000091764&sum=30000 [20:06:29]StoreToDocumentArchive [20:06:29]shift 537 fd 166887 [20:06:29]save to /storage/0537/doc_00166887 [20:06:29]save last doc name /storage/0537/doc_00166887 to /storage/kkm_last_doc_name [20:06:29]save OK [20:06:29]Clear old archive folders... [20:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:29]tlvbuf is B6DDF2C0 [20:06:29]SAM_PROTO_ClearQueue [20:06:29]wFMCommunicate request_size=4 [20:06:29]MH_SAM_APDU [20:06:29]CAPDU: 80 09 00 00 [20:06:29]Write to MH i2c: E2 08 00 8C 47 80 09 00 00 00 00 00 00 45 [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:29]Read from MH i2c: E2 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 03 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 03 00 8C 47 00 90 00 47 [20:06:29]RAPDU: 90 00 [20:06:29]wFMCommunicate OK [20:06:29]SAM_PROTO_ClearQueue done [20:06:29]KKMCreateOFDPacket [20:06:29]OFDProtocolAddRootSTLVToBuf [20:06:29]FM_MakeSignedData [20:06:29]FM_MakeSignedData [20:06:29]SAM_PROTO_SignData [20:06:29]wFMCommunicate request_size=4 [20:06:29]MH_SAM_APDU [20:06:29]CAPDU: 80 0D 01 02 [20:06:29]Write to MH i2c: E2 08 00 8D 47 80 0D 01 02 00 00 00 00 4D [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:29]Read from MH i2c: E2 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 03 00 [20:06:29]MH_I2C_Read... [20:06:29]Read from MH i2c: E2 03 00 8D 47 00 90 00 48 [20:06:29]RAPDU: 90 00 [20:06:29]wFMCommunicate OK [20:06:29]wFMCommunicate request_size=255 [20:06:29]MH_SAM_APDU [20:06: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 47 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8B 02 00 35 04 06 00 57 [20:06:29]Write to MH i2c: E2 02 01 8E 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 47 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8B 02 00 35 04 06 00 57 00 00 0A [20:06:29]Write i2c OK [20:06:29]MH_I2C_Read... [20:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:30]Read from MH i2c: E2 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 03 00 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 03 00 8E 47 00 90 00 49 [20:06:30]RAPDU: 90 00 [20:06:30]wFMCommunicate OK [20:06:30]wFMCommunicate request_size=10 [20:06:30]MH_SAM_APDU [20:06:30]CAPDU: 80 0D 02 02 05 70 2B D3 04 43 [20:06:30]Write to MH i2c: E2 0D 00 8F 47 80 0D 02 02 05 00 70 2B D3 04 43 00 00 0F [20:06:30]Write i2c OK [20:06:30]MH_I2C_Read... [20:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:30]Read from MH i2c: E2 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 03 00 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 03 00 8F 47 00 90 00 4A [20:06:30]RAPDU: 90 00 [20:06:30]wFMCommunicate OK [20:06:30]wFMCommunicate request_size=4 [20:06:30]MH_SAM_APDU [20:06:30]CAPDU: 80 0D 03 02 [20:06:30]Write to MH i2c: E2 08 00 90 47 80 0D 03 02 00 00 00 00 52 [20:06:30]Write i2c OK [20:06:30]MH_I2C_Read... [20:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:30]Read from MH i2c: E2 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 0B 00 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 0B 00 90 47 00 72 77 5A BF 64 6F CB 54 90 00 47 [20:06:30]RAPDU: 72 77 5A BF 64 6F CB 54 90 00 [20:06:30]wFMCommunicate OK [20:06:30]SAM_PROTO_SignData done [20:06:30]FM_MakeSignedData done [20:06:30]CreateOFDProtocolMessage [20:06:30]wFMCommunicate request_size=4 [20:06:30]MH_SAM_APDU [20:06:30]CAPDU: 80 11 00 00 [20:06:30]Write to MH i2c: E2 08 00 91 47 80 11 00 00 00 00 00 00 52 [20:06:30]Write i2c OK [20:06:30]MH_I2C_Read... [20:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:30]Read from MH i2c: E2 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 17 00 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: E2 17 00 91 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [20:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:30]wFMCommunicate OK [20:06:30]CreateOFDProtocolMessage done [20:06:30]OFDSenderStorePacket 166887 [20:06:30]StoreOFDPacket docnum=166887 [20:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 07 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 47 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8B 02 00 35 04 06 00 57 70 2B D3 04 43 72 77 5A BF 64 6F CB 54 [20:06:30]CheckFolder [20:06:30]dirname=/storage/ofd_packets [20:06:30]CheckFolder done [20:06:30]ProducePacketName [20:06:30]name=ofd_packets/00166887 [20:06:30]NVStorageSaveData ofd_packets/00166887 [20:06:30]File name is /storage/ofd_packets/00166887 [20:06:30]Write 301 bytes [20:06:30]NVStorageSaveData done [20:06:30]OFDSenderStorePacket done [20:06:30]KKMCreateOFDPacket done [20:06:30]NVStorageSaveData kkm_last_timestamp [20:06:30]File name is /storage/kkm_last_timestamp [20:06:30]Write 4 bytes [20:06:30]NVStorageSaveData done [20:06:30]ExternCall_PrintAddStr [20:06:30]wPrintStart [20:06:30]Write to MH i2c: 01 00 00 92 47 D9 [20:06:30]Write i2c OK [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: 01 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: 01 07 00 [20:06:30]MH_I2C_Read... [20:06:30]Read from MH i2c: 01 07 00 92 47 00 00 00 00 00 FF 0F EE [20:06:30]RasterBufferAndPrint [20:06:30]line Счет N : (1)221473 [20:06:30]line ИНН: 02508201610067 [20:06:30]line Контрольно-Кассовый Чек [20:06:30]line ПРОДАЖА [20:06:30]line ТРК (МРК, ГНК) : 33 [20:06:30]line Товар: 2710124130 [20:06:30]line Аи-92-К-5 [20:06:30]line 4.490 * 66.90 [20:06:30]line = 300.38 [20:06:30]line НДС 12% НСП 1% [20:06:30]line > о реализуемом товаре [20:06:30]line ОКРУГЛЕНИЕ: -0.38 [20:06:30]line ИТОГО: 300.00 [20:06:30]line Внесено: 300.00 [20:06:30]line СДАЧА: 0.00 [20:06:30]line НСП 1% : 2.66 [20:06:30]line НДС 12% : 31.90 [20:06:30]line Наличными: 300.00 [20:06:30]line Безнал.: 0.00 [20:06:30]line Место: АЗС № 161 "Партнер Нефть" [20:06:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:06:30]line СНО: Общий режим [20:06:30]line Чек 302 23.10.2024 20:06 [20:06:30]line Смена: 537 ФФД: 1.0 [20:06:30]line ЗНМ: 0300000104 [20:06:30]line РНМ: 0000000000091764 [20:06:30]line Версия ККМ: 001 [20:06:30]line ФМ: 0000000000871759 [20:06:30]line ФД: 166887 [20:06:30]line ФПД: 96139283203139 [20:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200631&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166887&fm=96139283203139&tin=02508201610067®Number=0000000000091764&sum=30000 [20:06:30]OFD Sender: Processing packet 166887 [packets to send 48, broken 47] [20:06:30]ProducePacketName [20:06:30]name=ofd_packets/00166887 [20:06:30]OFD Sender: To server: pG, [20:06:30]CommunicateWithHost lk.salyk.kg:30040 [20:06:30]ConnectInit lk.salyk.kg [20:06:30]written 0, free lines is 4095 [20:06:30]Connected sock=10 [20:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 07 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 47 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8B 02 00 35 04 06 00 57 70 2B D3 04 43 72 77 5A BF 64 6F CB 54 [20:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 16 4A 47 00 8B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 8B 02 00 F4 03 04 00 AD FD 18 67 B6 04 01 00 00 5B 43 03 81 5B F0 EF 0B [20:06:30]CommunicateWithHost err = 0 [20:06:30]CheckOFDResponse [20:06:30]1017 (14) - 77093643461234 [20:06:30]1041 (16) - 0000000000871759 [20:06:30]1040 (4) - 166887 [20:06:30]1012 (4) - 23.10.2024 13:44 [20:06:30]1206 (1) - 0 [20:06:30]OFD Sender: Remove packet 166887 [20:06:30]ProducePacketName [20:06:30]name=ofd_packets/00166887 [20:06:30]NVStorageDeleteData [20:06:31]Write to MH i2c: 01 00 00 BD 47 04 [20:06:31]Write i2c OK [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: 01 [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: 01 07 00 [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: 01 07 00 BD 47 00 00 00 00 00 A7 0C BE [20:06:31]RasterBufferAndPrint [20:06:31]line [20:06:31]line [20:06:31]line [20:06:31]line [20:06:31]line [20:06:31]written 0, free lines is 3245 [20:06:31]MH_Cut [20:06:31]Write to MH i2c: D1 01 00 C4 47 01 DD [20:06:31]Write i2c OK [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: D1 [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: D1 01 00 [20:06:31]MH_I2C_Read... [20:06:31]Read from MH i2c: D1 01 00 C4 47 00 DC [20:06:31]Write to MH i2c: 01 00 00 C5 47 0C [20:06:31]Write i2c OK [20:06:31]MH_I2C_Read... [20:06:31]OFD Sender: No OFD packet to send [20:06:31]*** Cut start [20:06:31]*** Partial cut [20:06:31]*** CUTSNS_PIN = 1 [20:06:31]*** CUTSNS_PIN = 0 [20:06:32]*** Brake cut motor [20:06:32]Read from MH i2c: 01 [20:06:32]MH_I2C_Read... [20:06:32]*** Stop cut motor [20:06:32]*** Cut end [20:06:32]Read from MH i2c: 01 07 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: 01 07 00 C5 47 00 00 00 00 00 FF 0F 21 [20:06:32]process_action close_receipt done [20:06:32]requested_data is exist [20:06:32]produce_requested_data [20:06:32]requested_item fm.sn is exist - process it [20:06:32]wFMCommunicate request_size=4 [20:06:32]MH_SAM_APDU [20:06:32]CAPDU: 80 11 00 00 [20:06:32]Write to MH i2c: E2 08 00 C6 47 80 11 00 00 00 00 00 00 87 [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:32]Read from MH i2c: E2 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 17 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 17 00 C6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [20:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:32]wFMCommunicate OK [20:06:32]requested_item fd.num is exist - process it [20:06:32]SAM_PROTO_GetFieldsCounters [20:06:32]wFMCommunicate request_size=4 [20:06:32]MH_SAM_APDU [20:06:32]CAPDU: 80 13 00 00 [20:06:32]Write to MH i2c: E2 08 00 C7 47 80 13 00 00 00 00 00 00 8A [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:32]Read from MH i2c: E2 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 62 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 62 00 C7 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:32]wFMCommunicate OK [20:06:32]SAM_PROTO_GetFieldsCounters done [20:06:32]requested_item shift.num is exist - process it [20:06:32]requested_item shift.opened is exist - process it [20:06:32]req_shift_opened [20:06:32]FM_GetShiftState [20:06:32]SAM_PROTO_GetShiftState [20:06:32]wFMCommunicate request_size=4 [20:06:32]MH_SAM_APDU [20:06:32]CAPDU: 80 13 01 00 [20:06:32]Write to MH i2c: E2 08 00 C8 47 80 13 01 00 00 00 00 00 8C [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:32]Read from MH i2c: E2 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 0E 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 0E 00 C8 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 57 [20:06:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:06:32]wFMCommunicate OK [20:06:32]SAM_PROTO_GetShiftState done [20:06:32]FM_GetShiftState done [20:06:32]req_shift_opened done [20:06:32]requested_item shift.open_date is exist - process it [20:06:32]req_shift_open_date [20:06:32]req_shift_open_date done [20:06:32]produce_requested_data done [20:06:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166887,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:06:32]process_action_free close_receipt [20:06:32]json_value_free [20:06:32]json_value_free done [20:06:32]process_json_proto returns [20:06:32]Send response to host [20:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166887,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:06:32]free response buf [20:06:32]execute_script done [20:06:32]execute_script returns [20:06:32]free content buf [20:06:32]Sock 9.Close socket [20:06:32]Sock 9.Thread stoped [20:06:36]OFD Sender: No OFD packet to send [20:06:37]accept exits with 8 [20:06:37]New connection [20:06:37]New thread 3067178340 created [20:06:37]Thread 3067034980 joined [20:06:37]Waiting for new connection... [20:06:37] Sock 8.Parse request [20:06:37]Sock 8.Check first char [20:06:37]Sock 8.First char is OK [20:06:37]request: POST /json_proto HTTP/1.0 [20:06:37]Method: POST [20:06:37]URL: /json_proto [20:06:37]Method is POST - this is cgi request [20:06:37]url: /json_proto [20:06:37]query_string will be loaded in cgi processing [20:06:37]execute_cgi json_proto POST (null) [20:06:37]execute_cgi path=json_proto method=POST [20:06:37]POST find Content-Length [20:06:37]Host: 172.17.53.195:8080 [20:06:37]Content-Length: 677 [20:06:37]Content-Type: application/json [20:06:37] [20:06:37]POST finish read [20:06:37]Found Content-Length = 677 [20:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:37]execute_script... [20:06: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)221474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:37]POST & json_proto [20:06:37]process_json_proto [20:06:37]json parsed OK: [20:06:37]protocol is kg_v1.0 [20:06:37]action value=close_receipt [20:06:37]process_action close_receipt [20:06:37]cmd_close_receipt [20:06:37]MH_GetDate [20:06:37]Write to MH i2c: F0 00 00 C9 47 FF [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: F0 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: F0 09 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: F0 09 00 C9 47 00 50 57 19 67 21 48 4A 65 47 [20:06:37]GetLastDocTimeStamp 1729713991 [20:06:37]current date 1729714000 [20:06:37]FM_GetShiftState [20:06:37]SAM_PROTO_GetShiftState [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 13 01 00 [20:06:37]Write to MH i2c: E2 08 00 CA 47 80 13 01 00 00 00 00 00 8E [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 CA 47 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 59 [20:06:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:06:37]wFMCommunicate OK [20:06:37]SAM_PROTO_GetShiftState done [20:06:37]FM_GetShiftState done [20:06:37]opened in 1729643772 [20:06:37]opened+sec_in_day 1729730172 [20:06:37]quantity*price = 40006 [20:06:37]sum+1 = 40007 [20:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 303 23.10.2024 20:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166888 ФПД: 214378903104207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166888&fm=214378903104207&tin=02508201610067®Number=0000000000091764&sum=40000 [20:06:38]StoreToDocumentArchive [20:06:38]shift 537 fd 166888 [20:06:38]save to /storage/0537/doc_00166888 [20:06:38]save last doc name /storage/0537/doc_00166888 to /storage/kkm_last_doc_name [20:06:38]save OK [20:06:38]Clear old archive folders... [20:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:38]tlvbuf is 01F7B830 [20:06:38]SAM_PROTO_ClearQueue [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 09 00 00 [20:06:38]Write to MH i2c: E2 08 00 D7 47 80 09 00 00 00 00 00 00 90 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 D7 47 00 90 00 92 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_ClearQueue done [20:06:38]KKMCreateOFDPacket [20:06:38]OFDProtocolAddRootSTLVToBuf [20:06:38]FM_MakeSignedData [20:06:38]FM_MakeSignedData [20:06:38]SAM_PROTO_SignData [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 0D 01 02 [20:06:38]Write to MH i2c: E2 08 00 D8 47 80 0D 01 02 00 00 00 00 98 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 D8 47 00 90 00 93 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]wFMCommunicate request_size=255 [20:06:38]MH_SAM_APDU [20:06: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 50 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8B 02 00 35 04 06 00 C2 [20:06:38]Write to MH i2c: E2 02 01 D9 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 50 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8B 02 00 35 04 06 00 C2 00 00 A6 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:38]Read from MH i2c: E2 03 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 03 00 D9 47 00 90 00 94 [20:06:38]RAPDU: 90 00 [20:06:38]wFMCommunicate OK [20:06:38]wFMCommunicate request_size=10 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 0D 02 02 05 F9 FA 5D EA CF [20:06:38]Write to MH i2c: E2 0D 00 DA 47 80 0D 02 02 05 00 F9 FA 5D EA CF 00 00 AE [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 03 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 03 00 DA 47 00 90 00 95 [20:06:39]RAPDU: 90 00 [20:06:39]wFMCommunicate OK [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 0D 03 02 [20:06:39]Write to MH i2c: E2 08 00 DB 47 80 0D 03 02 00 00 00 00 9D [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0B 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0B 00 DB 47 00 39 BC FE 40 37 99 AC EA 90 00 37 [20:06:39]RAPDU: 39 BC FE 40 37 99 AC EA 90 00 [20:06:39]wFMCommunicate OK [20:06:39]SAM_PROTO_SignData done [20:06:39]FM_MakeSignedData done [20:06:39]CreateOFDProtocolMessage [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 11 00 00 [20:06:39]Write to MH i2c: E2 08 00 DC 47 80 11 00 00 00 00 00 00 9D [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 DC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [20:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:39]wFMCommunicate OK [20:06:39]CreateOFDProtocolMessage done [20:06:39]OFDSenderStorePacket 166888 [20:06:39]StoreOFDPacket docnum=166888 [20:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 F8 07 01 1C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 50 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8B 02 00 35 04 06 00 C2 F9 FA 5D EA CF 39 BC FE 40 37 99 AC EA [20:06:39]CheckFolder [20:06:39]dirname=/storage/ofd_packets [20:06:39]CheckFolder done [20:06:39]ProducePacketName [20:06:39]name=ofd_packets/00166888 [20:06:39]NVStorageSaveData ofd_packets/00166888 [20:06:39]File name is /storage/ofd_packets/00166888 [20:06:39]Write 301 bytes [20:06:39]NVStorageSaveData done [20:06:39]OFDSenderStorePacket done [20:06:39]KKMCreateOFDPacket done [20:06:39]NVStorageSaveData kkm_last_timestamp [20:06:39]File name is /storage/kkm_last_timestamp [20:06:39]Write 4 bytes [20:06:39]NVStorageSaveData done [20:06:39]ExternCall_PrintAddStr [20:06:39]wPrintStart [20:06:39]Write to MH i2c: 01 00 00 DD 47 24 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 DD 47 00 00 00 00 00 FF 0F 39 [20:06:39]RasterBufferAndPrint [20:06:39]line Счет N : (1)221474 [20:06:39]line ИНН: 02508201610067 [20:06:39]line Контрольно-Кассовый Чек [20:06:39]line ПРОДАЖА [20:06:39]line ТРК (МРК, ГНК) : 43 [20:06:39]line Товар: 2710124130 [20:06:39]line Аи-92-К-5 [20:06:39]line 5.980 * 66.90 [20:06:39]line = 400.06 [20:06:39]line НДС 12% НСП 1% [20:06:39]line > о реализуемом товаре [20:06:39]line ОКРУГЛЕНИЕ: -0.06 [20:06:39]line ИТОГО: 400.00 [20:06:39]line Внесено: 400.00 [20:06:39]line СДАЧА: 0.00 [20:06:39]line НСП 1% : 3.54 [20:06:39]line НДС 12% : 42.48 [20:06:39]line Наличными: 400.00 [20:06:39]line Безнал.: 0.00 [20:06:39]line Место: АЗС № 161 "Партнер Нефть" [20:06:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:06:39]line СНО: Общий режим [20:06:39]line Чек 303 23.10.2024 20:06 [20:06:39]line Смена: 537 ФФД: 1.0 [20:06:39]line ЗНМ: 0300000104 [20:06:39]line РНМ: 0000000000091764 [20:06:39]line Версия ККМ: 001 [20:06:39]line ФМ: 0000000000871759 [20:06:39]line ФД: 166888 [20:06:39]line ФПД: 214378903104207 [20:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166888&fm=214378903104207&tin=02508201610067®Number=0000000000091764&sum=40000 [20:06:39]OFD Sender: Processing packet 166888 [packets to send 48, broken 47] [20:06:39]ProducePacketName [20:06:39]name=ofd_packets/00166888 [20:06:39]OFD Sender: To server: pG, [20:06:39]CommunicateWithHost lk.salyk.kg:30040 [20:06:39]ConnectInit lk.salyk.kg [20:06:39]written 0, free lines is 4095 [20:06:39]Connected sock=10 [20:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 F8 07 01 1C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 50 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8B 02 00 35 04 06 00 C2 F9 FA 5D EA CF 39 BC FE 40 37 99 AC EA [20:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BE 9F 47 00 BE 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 8B 02 00 F4 03 04 00 B6 FD 18 67 B6 04 01 00 00 B2 5E F6 CB 5B E3 00 47 [20:06:39]CommunicateWithHost err = 0 [20:06:39]CheckOFDResponse [20:06:39]1017 (14) - 77093643461234 [20:06:39]1041 (16) - 0000000000871759 [20:06:39]1040 (4) - 166888 [20:06:39]1012 (4) - 23.10.2024 13:44 [20:06:39]1206 (1) - 0 [20:06:39]OFD Sender: Remove packet 166888 [20:06:39]ProducePacketName [20:06:39]name=ofd_packets/00166888 [20:06:39]NVStorageDeleteData [20:06:39]Write to MH i2c: 01 00 00 08 48 50 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 08 48 00 00 00 00 00 CA 0C 2D [20:06:39]RasterBufferAndPrint [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]line [20:06:39]written 0, free lines is 3283 [20:06:39]MH_Cut [20:06:39]Write to MH i2c: D1 01 00 0F 48 01 29 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: D1 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: D1 01 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: D1 01 00 0F 48 00 28 [20:06:39]Write to MH i2c: 01 00 00 10 48 58 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]OFD Sender: No OFD packet to send [20:06:40]*** Cut start [20:06:40]*** Partial cut [20:06:40]*** CUTSNS_PIN = 1 [20:06:40]*** CUTSNS_PIN = 0 [20:06:40]*** Brake cut motor [20:06:41]Read from MH i2c: 01 [20:06:41]MH_I2C_Read... [20:06:41]*** Stop cut motor [20:06:41]*** Cut end [20:06:41]Read from MH i2c: 01 07 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: 01 07 00 10 48 00 00 00 00 00 FF 0F 6D [20:06:41]process_action close_receipt done [20:06:41]requested_data is exist [20:06:41]produce_requested_data [20:06:41]requested_item fm.sn is exist - process it [20:06:41]wFMCommunicate request_size=4 [20:06:41]MH_SAM_APDU [20:06:41]CAPDU: 80 11 00 00 [20:06:41]Write to MH i2c: E2 08 00 11 48 80 11 00 00 00 00 00 00 D3 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:41]Read from MH i2c: E2 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 17 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 17 00 11 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [20:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:41]wFMCommunicate OK [20:06:41]requested_item fd.num is exist - process it [20:06:41]SAM_PROTO_GetFieldsCounters [20:06:41]wFMCommunicate request_size=4 [20:06:41]MH_SAM_APDU [20:06:41]CAPDU: 80 13 00 00 [20:06:41]Write to MH i2c: E2 08 00 12 48 80 13 00 00 00 00 00 00 D6 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:41]Read from MH i2c: E2 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 62 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 62 00 12 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [20:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:41]wFMCommunicate OK [20:06:41]SAM_PROTO_GetFieldsCounters done [20:06:41]requested_item shift.num is exist - process it [20:06:41]requested_item shift.opened is exist - process it [20:06:41]req_shift_opened [20:06:41]FM_GetShiftState [20:06:41]SAM_PROTO_GetShiftState [20:06:41]wFMCommunicate request_size=4 [20:06:41]MH_SAM_APDU [20:06:41]CAPDU: 80 13 01 00 [20:06:41]Write to MH i2c: E2 08 00 13 48 80 13 01 00 00 00 00 00 D8 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:41]Read from MH i2c: E2 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 0E 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 0E 00 13 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A3 [20:06:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:06:41]wFMCommunicate OK [20:06:41]SAM_PROTO_GetShiftState done [20:06:41]FM_GetShiftState done [20:06:41]req_shift_opened done [20:06:41]requested_item shift.open_date is exist - process it [20:06:41]req_shift_open_date [20:06:41]req_shift_open_date done [20:06:41]produce_requested_data done [20:06:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166888,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:06:41]process_action_free close_receipt [20:06:41]json_value_free [20:06:41]json_value_free done [20:06:41]process_json_proto returns [20:06:41]Send response to host [20:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166888,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:06:41]free response buf [20:06:41]execute_script done [20:06:41]execute_script returns [20:06:41]free content buf [20:06:41]Sock 8.Close socket [20:06:41]Sock 8.Thread stoped [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07: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: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:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:24]accept exits with 9 [20:08:24]New connection [20:08:24]New thread 3067034980 created [20:08:24]Thread 3067178340 joined [20:08:24]Waiting for new connection... [20:08:24] Sock 9.Parse request [20:08:24]Sock 9.Check first char [20:08:24]Sock 9.First char is OK [20:08:24]request: POST /json_proto HTTP/1.0 [20:08:24]Method: POST [20:08:24]URL: /json_proto [20:08:24]Method is POST - this is cgi request [20:08:24]url: /json_proto [20:08:24]query_string will be loaded in cgi processing [20:08:24]execute_cgi json_proto POST (null) [20:08:24]execute_cgi path=json_proto method=POST [20:08:24]POST find Content-Length [20:08:24]Host: 172.17.53.195:8080 [20:08:24]Content-Length: 674 [20:08:24]Content-Type: application/json [20:08:24] [20:08:24]POST finish read [20:08:24]Found Content-Length = 674 [20:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:24]execute_script... [20:08: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)221475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:24]POST & json_proto [20:08:24]process_json_proto [20:08:24]json parsed OK: [20:08:24]protocol is kg_v1.0 [20:08:24]action value=close_receipt [20:08:24]process_action close_receipt [20:08:24]cmd_close_receipt [20:08:24]MH_GetDate [20:08:24]Write to MH i2c: F0 00 00 14 48 4B [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: F0 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: F0 09 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: F0 09 00 14 48 00 BB 57 19 67 21 48 4A 65 FE [20:08:24]GetLastDocTimeStamp 1729714000 [20:08:24]current date 1729714107 [20:08:24]FM_GetShiftState [20:08:24]SAM_PROTO_GetShiftState [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 13 01 00 [20:08:24]Write to MH i2c: E2 08 00 15 48 80 13 01 00 00 00 00 00 DA [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 0E 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 0E 00 15 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A5 [20:08:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:08:24]wFMCommunicate OK [20:08:24]SAM_PROTO_GetShiftState done [20:08:24]FM_GetShiftState done [20:08:24]opened in 1729643772 [20:08:24]opened+sec_in_day 1729730172 [20:08:24]quantity*price = 70027 [20:08:24]sum+1 = 70029 [20:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 304 23.10.2024 20:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166889 ФПД: 158453774588483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166889&fm=158453774588483&tin=02508201610067®Number=0000000000091764&sum=70000 [20:08:25]StoreToDocumentArchive [20:08:25]shift 537 fd 166889 [20:08:25]save to /storage/0537/doc_00166889 [20:08:25]save last doc name /storage/0537/doc_00166889 to /storage/kkm_last_doc_name [20:08:25]save OK [20:08:25]Clear old archive folders... [20:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:25]tlvbuf is 0206D0C0 [20:08:25]SAM_PROTO_ClearQueue [20:08:25]wFMCommunicate request_size=4 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 09 00 00 [20:08:25]Write to MH i2c: E2 08 00 22 48 80 09 00 00 00 00 00 00 DC [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 22 48 00 90 00 DE [20:08:25]RAPDU: 90 00 [20:08:25]wFMCommunicate OK [20:08:25]SAM_PROTO_ClearQueue done [20:08:25]KKMCreateOFDPacket [20:08:25]OFDProtocolAddRootSTLVToBuf [20:08:25]FM_MakeSignedData [20:08:25]FM_MakeSignedData [20:08:25]SAM_PROTO_SignData [20:08:25]wFMCommunicate request_size=4 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 0D 01 02 [20:08:25]Write to MH i2c: E2 08 00 23 48 80 0D 01 02 00 00 00 00 E4 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 23 48 00 90 00 DF [20:08:25]RAPDU: 90 00 [20:08:25]wFMCommunicate OK [20:08:25]wFMCommunicate request_size=255 [20:08:25]MH_SAM_APDU [20:08: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BB 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8B 02 00 35 04 06 00 90 1C E4 F2 [20:08:25]Write to MH i2c: E2 02 01 24 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BB 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8B 02 00 35 04 06 00 90 1C E4 F2 00 00 42 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 24 48 00 90 00 E0 [20:08:25]RAPDU: 90 00 [20:08:25]wFMCommunicate OK [20:08:25]wFMCommunicate request_size=7 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 0D 02 02 02 9A 43 [20:08:25]Write to MH i2c: E2 0A 00 25 48 80 0D 02 02 02 00 9A 43 00 00 C8 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 25 48 00 90 00 E1 [20:08:26]RAPDU: 90 00 [20:08:26]wFMCommunicate OK [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 0D 03 02 [20:08:26]Write to MH i2c: E2 08 00 26 48 80 0D 03 02 00 00 00 00 E9 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0B 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0B 00 26 48 00 ED 06 4B 33 0C C5 44 7B 90 00 EB [20:08:26]RAPDU: ED 06 4B 33 0C C5 44 7B 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_SignData done [20:08:26]FM_MakeSignedData done [20:08:26]CreateOFDProtocolMessage [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 11 00 00 [20:08:26]Write to MH i2c: E2 08 00 27 48 80 11 00 00 00 00 00 00 E9 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 27 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [20:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:08:26]wFMCommunicate OK [20:08:26]CreateOFDProtocolMessage done [20:08:26]OFDSenderStorePacket 166889 [20:08:26]StoreOFDPacket docnum=166889 [20:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4C 9D 04 01 78 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BB 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8B 02 00 35 04 06 00 90 1C E4 F2 9A 43 ED 06 4B 33 0C C5 44 7B [20:08:26]CheckFolder [20:08:26]dirname=/storage/ofd_packets [20:08:26]CheckFolder done [20:08:26]ProducePacketName [20:08:26]name=ofd_packets/00166889 [20:08:26]NVStorageSaveData ofd_packets/00166889 [20:08:26]File name is /storage/ofd_packets/00166889 [20:08:26]Write 298 bytes [20:08:26]NVStorageSaveData done [20:08:26]OFDSenderStorePacket done [20:08:26]KKMCreateOFDPacket done [20:08:26]NVStorageSaveData kkm_last_timestamp [20:08:26]File name is /storage/kkm_last_timestamp [20:08:26]Write 4 bytes [20:08:26]NVStorageSaveData done [20:08:26]ExternCall_PrintAddStr [20:08:26]wPrintStart [20:08:26]Write to MH i2c: 01 00 00 28 48 70 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 28 48 00 00 00 00 00 FF 0F 85 [20:08:26]RasterBufferAndPrint [20:08:26]line Счет N : (1)221475 [20:08:26]line ИНН: 02508201610067 [20:08:26]line Контрольно-Кассовый Чек [20:08:26]line ПРОДАЖА [20:08:26]line ТРК (МРК, ГНК) : 31 [20:08:26]line Товар: 2710194210 [20:08:26]line ДТ-К-5 [20:08:26]line 9.190 * 76.20 [20:08:26]line = 700.28 [20:08:26]line НДС 12% НСП 1% [20:08:26]line > о реализуемом товаре [20:08:26]line ОКРУГЛЕНИЕ: -0.28 [20:08:26]line ИТОГО: 700.00 [20:08:26]line Внесено: 700.00 [20:08:26]line СДАЧА: 0.00 [20:08:26]line НСП 1% : 6.20 [20:08:26]line НДС 12% : 74.37 [20:08:26]line Наличными: 700.00 [20:08:26]line Безнал.: 0.00 [20:08:26]line Место: АЗС № 161 "Партнер Нефть" [20:08:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:08:26]line СНО: Общий режим [20:08:26]line Чек 304 23.10.2024 20:08 [20:08:26]line Смена: 537 ФФД: 1.0 [20:08:26]line ЗНМ: 0300000104 [20:08:26]line РНМ: 0000000000091764 [20:08:26]line Версия ККМ: 001 [20:08:26]line ФМ: 0000000000871759 [20:08:26]line ФД: 166889 [20:08:26]line ФПД: 158453774588483 [20:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166889&fm=158453774588483&tin=02508201610067®Number=0000000000091764&sum=70000 [20:08:26]OFD Sender: Processing packet 166889 [packets to send 48, broken 47] [20:08:26]ProducePacketName [20:08:26]name=ofd_packets/00166889 [20:08:26]OFD Sender: To server: pG, [20:08:26]CommunicateWithHost lk.salyk.kg:30040 [20:08:26]ConnectInit lk.salyk.kg [20:08:26]written 0, free lines is 4095 [20:08:26]Connected sock=10 [20:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4C 9D 04 01 78 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BB 57 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8B 02 00 35 04 06 00 90 1C E4 F2 9A 43 ED 06 4B 33 0C C5 44 7B [20:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 DD 47 00 2E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 8B 02 00 F4 03 04 00 21 FE 18 67 B6 04 01 00 00 4B A0 E2 3C 19 93 DB 1E [20:08:26]CommunicateWithHost err = 0 [20:08:26]CheckOFDResponse [20:08:26]1017 (14) - 77093643461234 [20:08:26]1041 (16) - 0000000000871759 [20:08:26]1040 (4) - 166889 [20:08:26]1012 (4) - 23.10.2024 13:46 [20:08:26]1206 (1) - 0 [20:08:26]OFD Sender: Remove packet 166889 [20:08:26]ProducePacketName [20:08:26]name=ofd_packets/00166889 [20:08:26]NVStorageDeleteData [20:08:26]Write to MH i2c: 01 00 00 53 48 9B [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 53 48 00 00 00 00 00 AD 0C 5B [20:08:26]RasterBufferAndPrint [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]written 0, free lines is 3251 [20:08:26]MH_Cut [20:08:26]Write to MH i2c: D1 01 00 5A 48 01 74 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 01 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 01 00 5A 48 00 73 [20:08:26]Write to MH i2c: 01 00 00 5B 48 A3 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:27]OFD Sender: No OFD packet to send [20:08:27]*** Cut start [20:08:27]*** Partial cut [20:08:27]*** CUTSNS_PIN = 1 [20:08:27]*** CUTSNS_PIN = 0 [20:08:28]*** Brake cut motor [20:08:28]Read from MH i2c: 01 [20:08:28]MH_I2C_Read... [20:08:28]*** Stop cut motor [20:08:28]*** Cut end [20:08:28]Read from MH i2c: 01 07 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: 01 07 00 5B 48 00 00 00 00 00 FF 0F B8 [20:08:28]process_action close_receipt done [20:08:28]requested_data is exist [20:08:28]produce_requested_data [20:08:28]requested_item fm.sn is exist - process it [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 11 00 00 [20:08:28]Write to MH i2c: E2 08 00 5C 48 80 11 00 00 00 00 00 00 1E [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 17 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 17 00 5C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [20:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:08:28]wFMCommunicate OK [20:08:28]requested_item fd.num is exist - process it [20:08:28]SAM_PROTO_GetFieldsCounters [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 13 00 00 [20:08:28]Write to MH i2c: E2 08 00 5D 48 80 13 00 00 00 00 00 00 21 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 62 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 62 00 5D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [20:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:28]wFMCommunicate OK [20:08:28]SAM_PROTO_GetFieldsCounters done [20:08:28]requested_item shift.num is exist - process it [20:08:28]requested_item shift.opened is exist - process it [20:08:28]req_shift_opened [20:08:28]FM_GetShiftState [20:08:28]SAM_PROTO_GetShiftState [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 13 01 00 [20:08:28]Write to MH i2c: E2 08 00 5E 48 80 13 01 00 00 00 00 00 23 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 0E 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 0E 00 5E 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EE [20:08:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:08:28]wFMCommunicate OK [20:08:28]SAM_PROTO_GetShiftState done [20:08:28]FM_GetShiftState done [20:08:28]req_shift_opened done [20:08:28]requested_item shift.open_date is exist - process it [20:08:28]req_shift_open_date [20:08:28]req_shift_open_date done [20:08:28]produce_requested_data done [20:08:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166889,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:08:28]process_action_free close_receipt [20:08:28]json_value_free [20:08:28]json_value_free done [20:08:28]process_json_proto returns [20:08:28]Send response to host [20:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166889,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:08:28]free response buf [20:08:28]execute_script done [20:08:28]execute_script returns [20:08:28]free content buf [20:08:28]Sock 9.Close socket [20:08:28]Sock 9.Thread stoped [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:52]accept exits with 8 [20:16:52]New connection [20:16:52]New thread 3067178340 created [20:16:52]Thread 3067034980 joined [20:16:52]Waiting for new connection... [20:16:52] Sock 8.Parse request [20:16:52]Sock 8.Check first char [20:16:52]Sock 8.First char is OK [20:16:52]request: POST /json_proto HTTP/1.0 [20:16:52]Method: POST [20:16:52]URL: /json_proto [20:16:52]Method is POST - this is cgi request [20:16:52]url: /json_proto [20:16:52]query_string will be loaded in cgi processing [20:16:52]execute_cgi json_proto POST (null) [20:16:52]execute_cgi path=json_proto method=POST [20:16:52]POST find Content-Length [20:16:52]Host: 172.17.53.195:8080 [20:16:52]Content-Length: 679 [20:16:52]Content-Type: application/json [20:16:52] [20:16:52]POST finish read [20:16:52]Found Content-Length = 679 [20:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:52]execute_script... [20:16: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)221476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:52]POST & json_proto [20:16:52]process_json_proto [20:16:52]json parsed OK: [20:16:52]protocol is kg_v1.0 [20:16:52]action value=close_receipt [20:16:52]process_action close_receipt [20:16:52]cmd_close_receipt [20:16:52]MH_GetDate [20:16:52]Write to MH i2c: F0 00 00 5F 48 96 [20:16:52]Write i2c OK [20:16:52]MH_I2C_Read... [20:16:52]Read from MH i2c: F0 [20:16:52]MH_I2C_Read... [20:16:52]Read from MH i2c: F0 09 00 [20:16:52]MH_I2C_Read... [20:16:52]Read from MH i2c: F0 09 00 5F 48 00 B7 59 19 67 21 48 4A 65 47 [20:16:52]GetLastDocTimeStamp 1729714107 [20:16:52]current date 1729714615 [20:16:52]FM_GetShiftState [20:16:52]SAM_PROTO_GetShiftState [20:16:52]wFMCommunicate request_size=4 [20:16:52]MH_SAM_APDU [20:16:52]CAPDU: 80 13 01 00 [20:16:52]Write to MH i2c: E2 08 00 60 48 80 13 01 00 00 00 00 00 25 [20:16:52]Write i2c OK [20:16:52]MH_I2C_Read... [20:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:52]Read from MH i2c: E2 [20:16:52]MH_I2C_Read... [20:16:52]Read from MH i2c: E2 0E 00 [20:16:52]MH_I2C_Read... [20:16:52]Read from MH i2c: E2 0E 00 60 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F0 [20:16:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:16:52]wFMCommunicate OK [20:16:52]SAM_PROTO_GetShiftState done [20:16:52]FM_GetShiftState done [20:16:52]opened in 1729643772 [20:16:52]opened+sec_in_day 1729730172 [20:16:52]quantity*price = 150037 [20:16:52]sum+1 = 150039 [20:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 305 23.10.2024 20:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166890 ФПД: 236348681520430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166890&fm=236348681520430&tin=02508201610067®Number=0000000000091764&sum=150000 [20:16:53]StoreToDocumentArchive [20:16:53]shift 537 fd 166890 [20:16:53]save to /storage/0537/doc_00166890 [20:16:53]save last doc name /storage/0537/doc_00166890 to /storage/kkm_last_doc_name [20:16:53]save OK [20:16:53]Clear old archive folders... [20:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:16:53]tlvbuf is 01FAFA80 [20:16:53]SAM_PROTO_ClearQueue [20:16:53]wFMCommunicate request_size=4 [20:16:53]MH_SAM_APDU [20:16:53]CAPDU: 80 09 00 00 [20:16:53]Write to MH i2c: E2 08 00 6D 48 80 09 00 00 00 00 00 00 27 [20:16:53]Write i2c OK [20:16:53]MH_I2C_Read... [20:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 6D 48 00 90 00 29 [20:16:54]RAPDU: 90 00 [20:16:54]wFMCommunicate OK [20:16:54]SAM_PROTO_ClearQueue done [20:16:54]KKMCreateOFDPacket [20:16:54]OFDProtocolAddRootSTLVToBuf [20:16:54]FM_MakeSignedData [20:16:54]FM_MakeSignedData [20:16:54]SAM_PROTO_SignData [20:16:54]wFMCommunicate request_size=4 [20:16:54]MH_SAM_APDU [20:16:54]CAPDU: 80 0D 01 02 [20:16:54]Write to MH i2c: E2 08 00 6E 48 80 0D 01 02 00 00 00 00 2F [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 6E 48 00 90 00 2A [20:16:54]RAPDU: 90 00 [20:16:54]wFMCommunicate OK [20:16:54]wFMCommunicate request_size=255 [20:16:54]MH_SAM_APDU [20:16: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 B7 59 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8B 02 00 35 04 06 00 D6 F5 37 34 [20:16:54]Write to MH i2c: E2 02 01 6F 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 B7 59 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8B 02 00 35 04 06 00 D6 F5 37 34 00 00 BC [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 6F 48 00 90 00 2B [20:16:54]RAPDU: 90 00 [20:16:54]wFMCommunicate OK [20:16:54]wFMCommunicate request_size=7 [20:16:54]MH_SAM_APDU [20:16:54]CAPDU: 80 0D 02 02 02 85 2E [20:16:54]Write to MH i2c: E2 0A 00 70 48 80 0D 02 02 02 00 85 2E 00 00 E9 [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 03 00 70 48 00 90 00 2C [20:16:54]RAPDU: 90 00 [20:16:54]wFMCommunicate OK [20:16:54]wFMCommunicate request_size=4 [20:16:54]MH_SAM_APDU [20:16:54]CAPDU: 80 0D 03 02 [20:16:54]Write to MH i2c: E2 08 00 71 48 80 0D 03 02 00 00 00 00 34 [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 0B 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 0B 00 71 48 00 8B 0E A3 05 EF 25 24 96 90 00 44 [20:16:54]RAPDU: 8B 0E A3 05 EF 25 24 96 90 00 [20:16:54]wFMCommunicate OK [20:16:54]SAM_PROTO_SignData done [20:16:54]FM_MakeSignedData done [20:16:54]CreateOFDProtocolMessage [20:16:54]wFMCommunicate request_size=4 [20:16:54]MH_SAM_APDU [20:16:54]CAPDU: 80 11 00 00 [20:16:54]Write to MH i2c: E2 08 00 72 48 80 11 00 00 00 00 00 00 34 [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:54]Read from MH i2c: E2 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 17 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: E2 17 00 72 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [20:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:16:54]wFMCommunicate OK [20:16:54]CreateOFDProtocolMessage done [20:16:54]OFDSenderStorePacket 166890 [20:16:54]StoreOFDPacket docnum=166890 [20:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E E5 04 01 41 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 B7 59 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8B 02 00 35 04 06 00 D6 F5 37 34 85 2E 8B 0E A3 05 EF 25 24 96 [20:16:54]CheckFolder [20:16:54]dirname=/storage/ofd_packets [20:16:54]CheckFolder done [20:16:54]ProducePacketName [20:16:54]name=ofd_packets/00166890 [20:16:54]NVStorageSaveData ofd_packets/00166890 [20:16:54]File name is /storage/ofd_packets/00166890 [20:16:54]Write 298 bytes [20:16:54]NVStorageSaveData done [20:16:54]OFDSenderStorePacket done [20:16:54]KKMCreateOFDPacket done [20:16:54]NVStorageSaveData kkm_last_timestamp [20:16:54]File name is /storage/kkm_last_timestamp [20:16:54]Write 4 bytes [20:16:54]NVStorageSaveData done [20:16:54]ExternCall_PrintAddStr [20:16:54]wPrintStart [20:16:54]Write to MH i2c: 01 00 00 73 48 BB [20:16:54]Write i2c OK [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: 01 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: 01 07 00 [20:16:54]MH_I2C_Read... [20:16:54]Read from MH i2c: 01 07 00 73 48 00 00 00 00 00 FF 0F D0 [20:16:54]RasterBufferAndPrint [20:16:54]line Счет N : (1)221476 [20:16:54]line ИНН: 02508201610067 [20:16:54]line Контрольно-Кассовый Чек [20:16:54]line ПРОДАЖА [20:16:54]line ТРК (МРК, ГНК) : 31 [20:16:54]line Товар: 2710194210 [20:16:54]line ДТ-К-5 [20:16:54]line 19.690 * 76.20 [20:16:54]line = 1500.38 [20:16:54]line НДС 12% НСП 1% [20:16:54]line > о реализуемом товаре [20:16:54]line ОКРУГЛЕНИЕ: -0.38 [20:16:54]line ИТОГО: 1500.00 [20:16:54]line Внесено: 1500.00 [20:16:54]line СДАЧА: 0.00 [20:16:54]line НСП 1% : 13.28 [20:16:54]line НДС 12% : 159.33 [20:16:54]line Наличными: 1500.00 [20:16:54]line Безнал.: 0.00 [20:16:54]line Место: АЗС № 161 "Партнер Нефть" [20:16:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:16:54]line СНО: Общий режим [20:16:54]line Чек 305 23.10.2024 20:16 [20:16:54]line Смена: 537 ФФД: 1.0 [20:16:54]line ЗНМ: 0300000104 [20:16:54]line РНМ: 0000000000091764 [20:16:54]line Версия ККМ: 001 [20:16:54]line ФМ: 0000000000871759 [20:16:54]line ФД: 166890 [20:16:54]line ФПД: 236348681520430 [20:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166890&fm=236348681520430&tin=02508201610067®Number=0000000000091764&sum=150000 [20:16:54]OFD Sender: Processing packet 166890 [packets to send 48, broken 47] [20:16:54]ProducePacketName [20:16:54]name=ofd_packets/00166890 [20:16:54]OFD Sender: To server: pG, [20:16:54]CommunicateWithHost lk.salyk.kg:30040 [20:16:54]ConnectInit lk.salyk.kg [20:16:54]written 0, free lines is 4095 [20:16:54]Connected sock=10 [20:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E E5 04 01 41 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 B7 59 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8B 02 00 35 04 06 00 D6 F5 37 34 85 2E 8B 0E A3 05 EF 25 24 96 [20:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 05 47 00 7C 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 8B 02 00 F4 03 04 00 1E 00 19 67 B6 04 01 00 00 DE 08 28 82 7F 63 27 54 [20:16:55]CommunicateWithHost err = 0 [20:16:55]CheckOFDResponse [20:16:55]1017 (14) - 77093643461234 [20:16:55]1041 (16) - 0000000000871759 [20:16:55]1040 (4) - 166890 [20:16:55]1012 (4) - 23.10.2024 13:54 [20:16:55]1206 (1) - 0 [20:16:55]OFD Sender: Remove packet 166890 [20:16:55]ProducePacketName [20:16:55]name=ofd_packets/00166890 [20:16:55]NVStorageDeleteData [20:16:55]Write to MH i2c: 01 00 00 9E 48 E6 [20:16:55]Write i2c OK [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 07 00 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 07 00 9E 48 00 00 00 00 00 9D 0C 96 [20:16:55]RasterBufferAndPrint [20:16:55]line [20:16:55]line [20:16:55]line [20:16:55]line [20:16:55]line [20:16:55]written 0, free lines is 3237 [20:16:55]MH_Cut [20:16:55]Write to MH i2c: D1 01 00 A5 48 01 BF [20:16:55]Write i2c OK [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: D1 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: D1 01 00 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: D1 01 00 A5 48 00 BE [20:16:55]Write to MH i2c: 01 00 00 A6 48 EE [20:16:55]Write i2c OK [20:16:55]MH_I2C_Read... [20:16:55]OFD Sender: No OFD packet to send [20:16:56]*** Cut start [20:16:56]*** Partial cut [20:16:56]*** CUTSNS_PIN = 1 [20:16:56]*** CUTSNS_PIN = 0 [20:16:56]*** Brake cut motor [20:16:56]Read from MH i2c: 01 [20:16:56]MH_I2C_Read... [20:16:56]*** Stop cut motor [20:16:56]*** Cut end [20:16:56]Read from MH i2c: 01 07 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: 01 07 00 A6 48 00 00 00 00 00 FF 0F 03 [20:16:56]process_action close_receipt done [20:16:56]requested_data is exist [20:16:56]produce_requested_data [20:16:56]requested_item fm.sn is exist - process it [20:16:56]wFMCommunicate request_size=4 [20:16:56]MH_SAM_APDU [20:16:56]CAPDU: 80 11 00 00 [20:16:56]Write to MH i2c: E2 08 00 A7 48 80 11 00 00 00 00 00 00 69 [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:56]Read from MH i2c: E2 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 17 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 17 00 A7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [20:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:16:56]wFMCommunicate OK [20:16:56]requested_item fd.num is exist - process it [20:16:56]SAM_PROTO_GetFieldsCounters [20:16:56]wFMCommunicate request_size=4 [20:16:56]MH_SAM_APDU [20:16:56]CAPDU: 80 13 00 00 [20:16:56]Write to MH i2c: E2 08 00 A8 48 80 13 00 00 00 00 00 00 6C [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:56]Read from MH i2c: E2 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 62 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 62 00 A8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [20:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:56]wFMCommunicate OK [20:16:56]SAM_PROTO_GetFieldsCounters done [20:16:56]requested_item shift.num is exist - process it [20:16:56]requested_item shift.opened is exist - process it [20:16:56]req_shift_opened [20:16:56]FM_GetShiftState [20:16:56]SAM_PROTO_GetShiftState [20:16:56]wFMCommunicate request_size=4 [20:16:56]MH_SAM_APDU [20:16:56]CAPDU: 80 13 01 00 [20:16:56]Write to MH i2c: E2 08 00 A9 48 80 13 01 00 00 00 00 00 6E [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 0E 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 0E 00 A9 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 39 [20:16:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:16:57]wFMCommunicate OK [20:16:57]SAM_PROTO_GetShiftState done [20:16:57]FM_GetShiftState done [20:16:57]req_shift_opened done [20:16:57]requested_item shift.open_date is exist - process it [20:16:57]req_shift_open_date [20:16:57]req_shift_open_date done [20:16:57]produce_requested_data done [20:16:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166890,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:16:57]process_action_free close_receipt [20:16:57]json_value_free [20:16:57]json_value_free done [20:16:57]process_json_proto returns [20:16:57]Send response to host [20:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166890,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:16:57]free response buf [20:16:57]execute_script done [20:16:57]execute_script returns [20:16:57]free content buf [20:16:57]Sock 8.Close socket [20:16:57]Sock 8.Thread stoped [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18: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:48]accept exits with 9 [20:20:48]New connection [20:20:48]New thread 3067034980 created [20:20:48]Thread 3067178340 joined [20:20:48]Waiting for new connection... [20:20:48] Sock 9.Parse request [20:20:48]Sock 9.Check first char [20:20:48]Sock 9.First char is OK [20:20:48]request: POST /json_proto HTTP/1.0 [20:20:48]Method: POST [20:20:48]URL: /json_proto [20:20:48]Method is POST - this is cgi request [20:20:48]url: /json_proto [20:20:48]query_string will be loaded in cgi processing [20:20:48]execute_cgi json_proto POST (null) [20:20:48]execute_cgi path=json_proto method=POST [20:20:48]POST find Content-Length [20:20:48]Host: 172.17.53.195:8080 [20:20:48]Content-Length: 769 [20:20:48]Content-Type: application/json [20:20:48] [20:20:48]POST finish read [20:20:48]Found Content-Length = 769 [20:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:48]execute_script... [20:20:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:48]POST & json_proto [20:20:48]process_json_proto [20:20:48]json parsed OK: [20:20:48]protocol is kg_v1.0 [20:20:48]action value=close_receipt [20:20:48]process_action close_receipt [20:20:48]cmd_close_receipt [20:20:48]MH_GetDate [20:20:48]Write to MH i2c: F0 00 00 AA 48 E1 [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: F0 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: F0 09 00 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: F0 09 00 AA 48 00 A3 5A 19 67 21 48 4A 65 7F [20:20:48]GetLastDocTimeStamp 1729714615 [20:20:48]current date 1729714851 [20:20:48]FM_GetShiftState [20:20:48]SAM_PROTO_GetShiftState [20:20:48]wFMCommunicate request_size=4 [20:20:48]MH_SAM_APDU [20:20:48]CAPDU: 80 13 01 00 [20:20:48]Write to MH i2c: E2 08 00 AB 48 80 13 01 00 00 00 00 00 70 [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:48]Read from MH i2c: E2 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 0E 00 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 0E 00 AB 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3B [20:20:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:20:48]wFMCommunicate OK [20:20:48]SAM_PROTO_GetShiftState done [20:20:48]FM_GetShiftState done [20:20:48]opened in 1729643772 [20:20:48]opened+sec_in_day 1729730172 [20:20:48]quantity*price = 150056 [20:20:48]sum+1 = 150058 [20:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 306 23.10.2024 20:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166891 ФПД: 42202635648672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166891&fm=42202635648672&tin=02508201610067®Number=0000000000091764&sum=150057 [20:20:49]StoreToDocumentArchive [20:20:49]shift 537 fd 166891 [20:20:49]save to /storage/0537/doc_00166891 [20:20:49]save last doc name /storage/0537/doc_00166891 to /storage/kkm_last_doc_name [20:20:49]save OK [20:20:49]Clear old archive folders... [20:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:49]tlvbuf is 01FE1320 [20:20:49]SAM_PROTO_ClearQueue [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 09 00 00 [20:20:49]Write to MH i2c: E2 08 00 B8 48 80 09 00 00 00 00 00 00 72 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 B8 48 00 90 00 74 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]SAM_PROTO_ClearQueue done [20:20:49]KKMCreateOFDPacket [20:20:49]OFDProtocolAddRootSTLVToBuf [20:20:49]FM_MakeSignedData [20:20:49]FM_MakeSignedData [20:20:49]SAM_PROTO_SignData [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 01 02 [20:20:49]Write to MH i2c: E2 08 00 B9 48 80 0D 01 02 00 00 00 00 7A [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 B9 48 00 90 00 75 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=255 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A3 5A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8B 02 00 35 04 06 00 26 [20:20:49]Write to MH i2c: E2 02 01 BA 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A3 5A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8B 02 00 35 04 06 00 26 00 00 36 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:50]Read from MH i2c: E2 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 03 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 03 00 BA 48 00 90 00 76 [20:20:50]RAPDU: 90 00 [20:20:50]wFMCommunicate OK [20:20:50]wFMCommunicate request_size=10 [20:20:50]MH_SAM_APDU [20:20:50]CAPDU: 80 0D 02 02 05 62 11 1B 3E A0 [20:20:50]Write to MH i2c: E2 0D 00 BB 48 80 0D 02 02 05 00 62 11 1B 3E A0 00 00 F3 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:50]Read from MH i2c: E2 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 03 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 03 00 BB 48 00 90 00 77 [20:20:50]RAPDU: 90 00 [20:20:50]wFMCommunicate OK [20:20:50]wFMCommunicate request_size=4 [20:20:50]MH_SAM_APDU [20:20:50]CAPDU: 80 0D 03 02 [20:20:50]Write to MH i2c: E2 08 00 BC 48 80 0D 03 02 00 00 00 00 7F [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:50]Read from MH i2c: E2 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 0B 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 0B 00 BC 48 00 E5 39 08 57 C5 AC A6 DF 90 00 F3 [20:20:50]RAPDU: E5 39 08 57 C5 AC A6 DF 90 00 [20:20:50]wFMCommunicate OK [20:20:50]SAM_PROTO_SignData done [20:20:50]FM_MakeSignedData done [20:20:50]CreateOFDProtocolMessage [20:20:50]wFMCommunicate request_size=4 [20:20:50]MH_SAM_APDU [20:20:50]CAPDU: 80 11 00 00 [20:20:50]Write to MH i2c: E2 08 00 BD 48 80 11 00 00 00 00 00 00 7F [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:50]Read from MH i2c: E2 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 17 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 17 00 BD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [20:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:20:50]wFMCommunicate OK [20:20:50]CreateOFDProtocolMessage done [20:20:50]OFDSenderStorePacket 166891 [20:20:50]StoreOFDPacket docnum=166891 [20:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 0B 07 01 E6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A3 5A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8B 02 00 35 04 06 00 26 62 11 1B 3E A0 E5 39 08 57 C5 AC A6 DF [20:20:50]CheckFolder [20:20:50]dirname=/storage/ofd_packets [20:20:50]CheckFolder done [20:20:50]ProducePacketName [20:20:50]name=ofd_packets/00166891 [20:20:50]NVStorageSaveData ofd_packets/00166891 [20:20:50]File name is /storage/ofd_packets/00166891 [20:20:50]Write 301 bytes [20:20:50]NVStorageSaveData done [20:20:50]OFDSenderStorePacket done [20:20:50]KKMCreateOFDPacket done [20:20:50]NVStorageSaveData kkm_last_timestamp [20:20:50]File name is /storage/kkm_last_timestamp [20:20:50]Write 4 bytes [20:20:50]NVStorageSaveData done [20:20:50]ExternCall_PrintAddStr [20:20:50]wPrintStart [20:20:50]Write to MH i2c: 01 00 00 BE 48 06 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 BE 48 00 00 00 00 00 FF 0F 1B [20:20:50]RasterBufferAndPrint [20:20:50]line Счет N : (1)221477 [20:20:50]line ИНН: 02508201610067 [20:20:50]line Контрольно-Кассовый Чек [20:20:50]line ПРОДАЖА [20:20:50]line ТРК (МРК, ГНК) : 23 [20:20:50]line Товар: 2710124130 [20:20:50]line Аи-92-К-5 [20:20:50]line 22.430 * 66.90 [20:20:50]line = 1500.57 [20:20:50]line НДС 12% НСП 1% [20:20:50]line > о реализуемом товаре [20:20:50]line ИТОГО: 1500.57 [20:20:50]line НСП 1% : 13.28 [20:20:50]line НДС 12% : 159.35 [20:20:50]line Наличными: 0.00 [20:20:50]line Безнал.: 1500.57 [20:20:50]line Место: АЗС № 161 "Партнер Нефть" [20:20:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:20:50]line СНО: Общий режим [20:20:50]line Чек 306 23.10.2024 20:20 [20:20:50]line Смена: 537 ФФД: 1.0 [20:20:50]line ЗНМ: 0300000104 [20:20:50]line РНМ: 0000000000091764 [20:20:50]line Версия ККМ: 001 [20:20:50]line Платежная система: Mbank [20:20:50]line ФМ: 0000000000871759 [20:20:50]line ФД: 166891 [20:20:50]line ФПД: 42202635648672 [20:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166891&fm=42202635648672&tin=02508201610067®Number=0000000000091764&sum=150057 [20:20:50]written 0, free lines is 4095 [20:20:50]OFD Sender: Processing packet 166891 [packets to send 48, broken 47] [20:20:50]ProducePacketName [20:20:50]name=ofd_packets/00166891 [20:20:50]OFD Sender: To server: pG, [20:20:50]CommunicateWithHost lk.salyk.kg:30040 [20:20:50]ConnectInit lk.salyk.kg [20:20:50]Connected sock=10 [20:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 0B 07 01 E6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A3 5A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8B 02 00 35 04 06 00 26 62 11 1B 3E A0 E5 39 08 57 C5 AC A6 DF [20:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2B 44 47 00 FE 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 8B 02 00 F4 03 04 00 09 01 19 67 B6 04 01 00 00 53 B1 95 30 23 E7 B7 D6 [20:20:50]CommunicateWithHost err = 0 [20:20:50]CheckOFDResponse [20:20:50]1017 (14) - 77093643461234 [20:20:50]1041 (16) - 0000000000871759 [20:20:50]1040 (4) - 166891 [20:20:50]1012 (4) - 23.10.2024 13:58 [20:20:50]1206 (1) - 0 [20:20:50]OFD Sender: Remove packet 166891 [20:20:50]ProducePacketName [20:20:50]name=ofd_packets/00166891 [20:20:50]NVStorageDeleteData [20:20:51]Write to MH i2c: 01 00 00 E7 48 2F [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 E7 48 00 00 00 00 00 E3 0C 25 [20:20:51]RasterBufferAndPrint [20:20:51]line [20:20:51]line [20:20:51]line [20:20:51]line [20:20:51]line [20:20:51]written 0, free lines is 3302 [20:20:51]MH_Cut [20:20:51]Write to MH i2c: D1 01 00 EE 48 01 08 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: D1 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: D1 01 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: D1 01 00 EE 48 00 07 [20:20:51]Write to MH i2c: 01 00 00 EF 48 37 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]OFD Sender: No OFD packet to send [20:20:51]*** Cut start [20:20:51]*** Partial cut [20:20:51]*** CUTSNS_PIN = 1 [20:20:51]*** CUTSNS_PIN = 0 [20:20:52]*** Brake cut motor [20:20:52]Read from MH i2c: 01 [20:20:52]MH_I2C_Read... [20:20:52]*** Stop cut motor [20:20:52]*** Cut end [20:20:52]Read from MH i2c: 01 07 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: 01 07 00 EF 48 00 00 00 00 00 FF 0F 4C [20:20:52]process_action close_receipt done [20:20:52]requested_data is exist [20:20:52]produce_requested_data [20:20:52]requested_item fm.sn is exist - process it [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 11 00 00 [20:20:52]Write to MH i2c: E2 08 00 F0 48 80 11 00 00 00 00 00 00 B2 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 17 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 17 00 F0 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [20:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:20:52]wFMCommunicate OK [20:20:52]requested_item fd.num is exist - process it [20:20:52]SAM_PROTO_GetFieldsCounters [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 13 00 00 [20:20:52]Write to MH i2c: E2 08 00 F1 48 80 13 00 00 00 00 00 00 B5 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 62 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 62 00 F1 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [20:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:52]wFMCommunicate OK [20:20:52]SAM_PROTO_GetFieldsCounters done [20:20:52]requested_item shift.num is exist - process it [20:20:52]requested_item shift.opened is exist - process it [20:20:52]req_shift_opened [20:20:52]FM_GetShiftState [20:20:52]SAM_PROTO_GetShiftState [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 13 01 00 [20:20:52]Write to MH i2c: E2 08 00 F2 48 80 13 01 00 00 00 00 00 B7 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 0E 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 0E 00 F2 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 82 [20:20:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:20:52]wFMCommunicate OK [20:20:52]SAM_PROTO_GetShiftState done [20:20:52]FM_GetShiftState done [20:20:52]req_shift_opened done [20:20:52]requested_item shift.open_date is exist - process it [20:20:52]req_shift_open_date [20:20:52]req_shift_open_date done [20:20:52]produce_requested_data done [20:20:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166891,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:20:52]process_action_free close_receipt [20:20:52]json_value_free [20:20:52]json_value_free done [20:20:52]process_json_proto returns [20:20:52]Send response to host [20:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166891,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:20:52]free response buf [20:20:52]execute_script done [20:20:52]execute_script returns [20:20:52]free content buf [20:20:52]Sock 9.Close socket [20:20:52]Sock 9.Thread stoped [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:43]accept exits with 8 [20:23:43]New connection [20:23:43]New thread 3067178340 created [20:23:43]Thread 3067034980 joined [20:23:43]Waiting for new connection... [20:23:43] Sock 8.Parse request [20:23:43]Sock 8.Check first char [20:23:43]Sock 8.First char is OK [20:23:43]request: POST /json_proto HTTP/1.0 [20:23:43]Method: POST [20:23:43]URL: /json_proto [20:23:43]Method is POST - this is cgi request [20:23:43]url: /json_proto [20:23:43]query_string will be loaded in cgi processing [20:23:43]execute_cgi json_proto POST (null) [20:23:43]execute_cgi path=json_proto method=POST [20:23:43]POST find Content-Length [20:23:43]Host: 172.17.53.195:8080 [20:23:43]Content-Length: 677 [20:23:43]Content-Type: application/json [20:23:43] [20:23:43]POST finish read [20:23:43]Found Content-Length = 677 [20:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:43]execute_script... [20:23: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)221478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:43]POST & json_proto [20:23:43]process_json_proto [20:23:43]json parsed OK: [20:23:43]protocol is kg_v1.0 [20:23:43]action value=close_receipt [20:23:43]process_action close_receipt [20:23:43]cmd_close_receipt [20:23:43]MH_GetDate [20:23:43]Write to MH i2c: F0 00 00 F3 48 2A [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 09 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 09 00 F3 48 00 52 5B 19 67 21 48 4A 65 78 [20:23:43]GetLastDocTimeStamp 1729714851 [20:23:43]current date 1729715026 [20:23:43]FM_GetShiftState [20:23:43]SAM_PROTO_GetShiftState [20:23:43]wFMCommunicate request_size=4 [20:23:43]MH_SAM_APDU [20:23:43]CAPDU: 80 13 01 00 [20:23:43]Write to MH i2c: E2 08 00 F4 48 80 13 01 00 00 00 00 00 B9 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:43]Read from MH i2c: E2 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: E2 0E 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: E2 0E 00 F4 48 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 84 [20:23:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:23:43]wFMCommunicate OK [20:23:43]SAM_PROTO_GetShiftState done [20:23:43]FM_GetShiftState done [20:23:43]opened in 1729643772 [20:23:43]opened+sec_in_day 1729730172 [20:23:43]quantity*price = 40006 [20:23:43]sum+1 = 40007 [20:23: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 307 23.10.2024 20:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166892 ФПД: 179483659403120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166892&fm=179483659403120&tin=02508201610067®Number=0000000000091764&sum=40000 [20:23:44]StoreToDocumentArchive [20:23:44]shift 537 fd 166892 [20:23:44]save to /storage/0537/doc_00166892 [20:23:44]save last doc name /storage/0537/doc_00166892 to /storage/kkm_last_doc_name [20:23:44]save OK [20:23:44]Clear old archive folders... [20:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:44]tlvbuf is 02057EE0 [20:23:44]SAM_PROTO_ClearQueue [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 09 00 00 [20:23:44]Write to MH i2c: E2 08 00 01 49 80 09 00 00 00 00 00 00 BC [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 01 49 00 90 00 BE [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_ClearQueue done [20:23:44]KKMCreateOFDPacket [20:23:44]OFDProtocolAddRootSTLVToBuf [20:23:44]FM_MakeSignedData [20:23:44]FM_MakeSignedData [20:23:44]SAM_PROTO_SignData [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 01 02 [20:23:44]Write to MH i2c: E2 08 00 02 49 80 0D 01 02 00 00 00 00 C4 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 02 49 00 90 00 BF [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]wFMCommunicate request_size=255 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 52 5B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8B 02 00 35 04 06 00 A3 [20:23:44]Write to MH i2c: E2 02 01 03 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 52 5B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8B 02 00 35 04 06 00 A3 00 00 C1 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:45]Read from MH i2c: E2 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 03 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 03 00 03 49 00 90 00 C0 [20:23:45]RAPDU: 90 00 [20:23:45]wFMCommunicate OK [20:23:45]wFMCommunicate request_size=10 [20:23:45]MH_SAM_APDU [20:23:45]CAPDU: 80 0D 02 02 05 3D 4B C2 FF 70 [20:23:45]Write to MH i2c: E2 0D 00 04 49 80 0D 02 02 05 00 3D 4B C2 FF 70 00 00 8A [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:45]Read from MH i2c: E2 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 03 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 03 00 04 49 00 90 00 C1 [20:23:45]RAPDU: 90 00 [20:23:45]wFMCommunicate OK [20:23:45]wFMCommunicate request_size=4 [20:23:45]MH_SAM_APDU [20:23:45]CAPDU: 80 0D 03 02 [20:23:45]Write to MH i2c: E2 08 00 05 49 80 0D 03 02 00 00 00 00 C9 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:45]Read from MH i2c: E2 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 0B 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 0B 00 05 49 00 DE D9 87 61 05 23 14 50 90 00 F5 [20:23:45]RAPDU: DE D9 87 61 05 23 14 50 90 00 [20:23:45]wFMCommunicate OK [20:23:45]SAM_PROTO_SignData done [20:23:45]FM_MakeSignedData done [20:23:45]CreateOFDProtocolMessage [20:23:45]wFMCommunicate request_size=4 [20:23:45]MH_SAM_APDU [20:23:45]CAPDU: 80 11 00 00 [20:23:45]Write to MH i2c: E2 08 00 06 49 80 11 00 00 00 00 00 00 C9 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:45]Read from MH i2c: E2 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 17 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: E2 17 00 06 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [20:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:23:45]wFMCommunicate OK [20:23:45]CreateOFDProtocolMessage done [20:23:45]OFDSenderStorePacket 166892 [20:23:45]StoreOFDPacket docnum=166892 [20:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 28 07 01 A1 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 52 5B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8B 02 00 35 04 06 00 A3 3D 4B C2 FF 70 DE D9 87 61 05 23 14 50 [20:23:45]CheckFolder [20:23:45]dirname=/storage/ofd_packets [20:23:45]CheckFolder done [20:23:45]ProducePacketName [20:23:45]name=ofd_packets/00166892 [20:23:45]NVStorageSaveData ofd_packets/00166892 [20:23:45]File name is /storage/ofd_packets/00166892 [20:23:45]Write 301 bytes [20:23:45]NVStorageSaveData done [20:23:45]OFDSenderStorePacket done [20:23:45]KKMCreateOFDPacket done [20:23:45]NVStorageSaveData kkm_last_timestamp [20:23:45]File name is /storage/kkm_last_timestamp [20:23:45]Write 4 bytes [20:23:45]NVStorageSaveData done [20:23:45]ExternCall_PrintAddStr [20:23:45]wPrintStart [20:23:45]Write to MH i2c: 01 00 00 07 49 50 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 07 49 00 00 00 00 00 FF 0F 65 [20:23:45]RasterBufferAndPrint [20:23:45]line Счет N : (1)221478 [20:23:45]line ИНН: 02508201610067 [20:23:45]line Контрольно-Кассовый Чек [20:23:45]line ПРОДАЖА [20:23:45]line ТРК (МРК, ГНК) : 23 [20:23:45]line Товар: 2710124130 [20:23:45]line Аи-92-К-5 [20:23:45]line 5.980 * 66.90 [20:23:45]line = 400.06 [20:23:45]line НДС 12% НСП 1% [20:23:45]line > о реализуемом товаре [20:23:45]line ОКРУГЛЕНИЕ: -0.06 [20:23:45]line ИТОГО: 400.00 [20:23:45]line Внесено: 400.00 [20:23:45]line СДАЧА: 0.00 [20:23:45]line НСП 1% : 3.54 [20:23:45]line НДС 12% : 42.48 [20:23:45]line Наличными: 400.00 [20:23:45]line Безнал.: 0.00 [20:23:45]line Место: АЗС № 161 "Партнер Нефть" [20:23:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:23:45]line СНО: Общий режим [20:23:45]line Чек 307 23.10.2024 20:23 [20:23:45]line Смена: 537 ФФД: 1.0 [20:23:45]line ЗНМ: 0300000104 [20:23:45]line РНМ: 0000000000091764 [20:23:45]line Версия ККМ: 001 [20:23:45]line ФМ: 0000000000871759 [20:23:45]line ФД: 166892 [20:23:45]line ФПД: 179483659403120 [20:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166892&fm=179483659403120&tin=02508201610067®Number=0000000000091764&sum=40000 [20:23:45]OFD Sender: Processing packet 166892 [packets to send 48, broken 47] [20:23:45]ProducePacketName [20:23:45]name=ofd_packets/00166892 [20:23:45]OFD Sender: To server: pG, [20:23:45]CommunicateWithHost lk.salyk.kg:30040 [20:23:45]ConnectInit lk.salyk.kg [20:23:45]written 0, free lines is 4095 [20:23:45]Connected sock=10 [20:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 28 07 01 A1 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 52 5B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8B 02 00 35 04 06 00 A3 3D 4B C2 FF 70 DE D9 87 61 05 23 14 50 [20:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 60 00 47 00 8F 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 8B 02 00 F4 03 04 00 B9 01 19 67 B6 04 01 00 00 D3 8C BE FD D1 D5 05 A7 [20:23:46]CommunicateWithHost err = 0 [20:23:46]CheckOFDResponse [20:23:46]1017 (14) - 77093643461234 [20:23:46]1041 (16) - 0000000000871759 [20:23:46]1040 (4) - 166892 [20:23:46]1012 (4) - 23.10.2024 14:01 [20:23:46]1206 (1) - 0 [20:23:46]OFD Sender: Remove packet 166892 [20:23:46]ProducePacketName [20:23:46]name=ofd_packets/00166892 [20:23:46]NVStorageDeleteData [20:23:46]Write to MH i2c: 01 00 00 32 49 7B [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 32 49 00 00 00 00 00 B2 0C 40 [20:23:46]RasterBufferAndPrint [20:23:46]line [20:23:46]line [20:23:46]line [20:23:46]line [20:23:46]line [20:23:46]written 0, free lines is 3257 [20:23:46]MH_Cut [20:23:46]Write to MH i2c: D1 01 00 39 49 01 54 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: D1 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: D1 01 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: D1 01 00 39 49 00 53 [20:23:46]Write to MH i2c: 01 00 00 3A 49 83 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]OFD Sender: No OFD packet to send [20:23:47]*** Cut start [20:23:47]*** Partial cut [20:23:47]*** CUTSNS_PIN = 1 [20:23:47]*** CUTSNS_PIN = 0 [20:23:47]*** Brake cut motor [20:23:47]Read from MH i2c: 01 [20:23:47]MH_I2C_Read... [20:23:47]*** Stop cut motor [20:23:47]*** Cut end [20:23:47]Read from MH i2c: 01 07 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: 01 07 00 3A 49 00 00 00 00 00 FF 0F 98 [20:23:47]process_action close_receipt done [20:23:47]requested_data is exist [20:23:47]produce_requested_data [20:23:47]requested_item fm.sn is exist - process it [20:23:47]wFMCommunicate request_size=4 [20:23:47]MH_SAM_APDU [20:23:47]CAPDU: 80 11 00 00 [20:23:47]Write to MH i2c: E2 08 00 3B 49 80 11 00 00 00 00 00 00 FE [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:47]Read from MH i2c: E2 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 17 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 17 00 3B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [20:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:23:47]wFMCommunicate OK [20:23:47]requested_item fd.num is exist - process it [20:23:47]SAM_PROTO_GetFieldsCounters [20:23:47]wFMCommunicate request_size=4 [20:23:47]MH_SAM_APDU [20:23:47]CAPDU: 80 13 00 00 [20:23:47]Write to MH i2c: E2 08 00 3C 49 80 13 00 00 00 00 00 00 01 [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:47]Read from MH i2c: E2 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 62 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 62 00 3C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:47]wFMCommunicate OK [20:23:47]SAM_PROTO_GetFieldsCounters done [20:23:47]requested_item shift.num is exist - process it [20:23:47]requested_item shift.opened is exist - process it [20:23:47]req_shift_opened [20:23:47]FM_GetShiftState [20:23:47]SAM_PROTO_GetShiftState [20:23:47]wFMCommunicate request_size=4 [20:23:47]MH_SAM_APDU [20:23:47]CAPDU: 80 13 01 00 [20:23:47]Write to MH i2c: E2 08 00 3D 49 80 13 01 00 00 00 00 00 03 [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:47]Read from MH i2c: E2 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 3D 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CE [20:23:47]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:23:47]wFMCommunicate OK [20:23:47]SAM_PROTO_GetShiftState done [20:23:47]FM_GetShiftState done [20:23:47]req_shift_opened done [20:23:47]requested_item shift.open_date is exist - process it [20:23:47]req_shift_open_date [20:23:47]req_shift_open_date done [20:23:47]produce_requested_data done [20:23:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166892,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:23:47]process_action_free close_receipt [20:23:47]json_value_free [20:23:47]json_value_free done [20:23:47]process_json_proto returns [20:23:47]Send response to host [20:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166892,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:23:47]free response buf [20:23:47]execute_script done [20:23:47]execute_script returns [20:23:47]free content buf [20:23:47]Sock 8.Close socket [20:23:47]Sock 8.Thread stoped [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]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:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:38]accept exits with 9 [20:44:38]New connection [20:44:38]New thread 3067034980 created [20:44:38]Thread 3067178340 joined [20:44:38]Waiting for new connection... [20:44:38] Sock 9.Parse request [20:44:38]Sock 9.Check first char [20:44:38]Sock 9.First char is OK [20:44:38]request: POST /json_proto HTTP/1.0 [20:44:38]Method: POST [20:44:38]URL: /json_proto [20:44:38]Method is POST - this is cgi request [20:44:38]url: /json_proto [20:44:38]query_string will be loaded in cgi processing [20:44:38]execute_cgi json_proto POST (null) [20:44:38]execute_cgi path=json_proto method=POST [20:44:38]POST find Content-Length [20:44:38]Host: 172.17.53.195:8080 [20:44:38]Content-Length: 682 [20:44:38]Content-Type: application/json [20:44:38] [20:44:38]POST finish read [20:44:38]Found Content-Length = 682 [20:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:38]execute_script... [20:44: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)221479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:38]POST & json_proto [20:44:38]process_json_proto [20:44:38]json parsed OK: [20:44:38]protocol is kg_v1.0 [20:44:38]action value=close_receipt [20:44:38]process_action close_receipt [20:44:38]cmd_close_receipt [20:44:38]MH_GetDate [20:44:38]Write to MH i2c: F0 00 00 3E 49 76 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: F0 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: F0 09 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: F0 09 00 3E 49 00 39 60 19 67 21 48 4A 65 B0 [20:44:38]GetLastDocTimeStamp 1729715026 [20:44:38]current date 1729716281 [20:44:38]FM_GetShiftState [20:44:38]SAM_PROTO_GetShiftState [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 13 01 00 [20:44:38]Write to MH i2c: E2 08 00 3F 49 80 13 01 00 00 00 00 00 05 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 0E 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 0E 00 3F 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D0 [20:44:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:44:38]wFMCommunicate OK [20:44:38]SAM_PROTO_GetShiftState done [20:44:38]FM_GetShiftState done [20:44:38]opened in 1729643772 [20:44:38]opened+sec_in_day 1729730172 [20:44:38]quantity*price = 100021 [20:44:38]sum+1 = 100023 [20:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 308 23.10.2024 20:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166893 ФПД: 73808000230842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166893&fm=73808000230842&tin=02508201610067®Number=0000000000091764&sum=100000 [20:44:39]StoreToDocumentArchive [20:44:39]shift 537 fd 166893 [20:44:39]save to /storage/0537/doc_00166893 [20:44:39]save last doc name /storage/0537/doc_00166893 to /storage/kkm_last_doc_name [20:44:39]save OK [20:44:39]Clear old archive folders... [20:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:39]tlvbuf is 01FDA890 [20:44:39]SAM_PROTO_ClearQueue [20:44:39]wFMCommunicate request_size=4 [20:44:39]MH_SAM_APDU [20:44:39]CAPDU: 80 09 00 00 [20:44:39]Write to MH i2c: E2 08 00 4C 49 80 09 00 00 00 00 00 00 07 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 4C 49 00 90 00 09 [20:44:39]RAPDU: 90 00 [20:44:39]wFMCommunicate OK [20:44:39]SAM_PROTO_ClearQueue done [20:44:39]KKMCreateOFDPacket [20:44:39]OFDProtocolAddRootSTLVToBuf [20:44:39]FM_MakeSignedData [20:44:39]FM_MakeSignedData [20:44:39]SAM_PROTO_SignData [20:44:39]wFMCommunicate request_size=4 [20:44:39]MH_SAM_APDU [20:44:39]CAPDU: 80 0D 01 02 [20:44:39]Write to MH i2c: E2 08 00 4D 49 80 0D 01 02 00 00 00 00 0F [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 4D 49 00 90 00 0A [20:44:39]RAPDU: 90 00 [20:44:39]wFMCommunicate OK [20:44:39]wFMCommunicate request_size=255 [20:44:39]MH_SAM_APDU [20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 39 60 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8B 02 00 35 04 06 00 43 [20:44:39]Write to MH i2c: E2 02 01 4E 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 39 60 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8B 02 00 35 04 06 00 43 00 00 E8 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:40]Read from MH i2c: E2 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 03 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 03 00 4E 49 00 90 00 0B [20:44:40]RAPDU: 90 00 [20:44:40]wFMCommunicate OK [20:44:40]wFMCommunicate request_size=10 [20:44:40]MH_SAM_APDU [20:44:40]CAPDU: 80 0D 02 02 05 20 C3 A2 A5 BA [20:44:40]Write to MH i2c: E2 0D 00 4F 49 80 0D 02 02 05 00 20 C3 A2 A5 BA 00 00 00 [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:40]Read from MH i2c: E2 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 03 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 03 00 4F 49 00 90 00 0C [20:44:40]RAPDU: 90 00 [20:44:40]wFMCommunicate OK [20:44:40]wFMCommunicate request_size=4 [20:44:40]MH_SAM_APDU [20:44:40]CAPDU: 80 0D 03 02 [20:44:40]Write to MH i2c: E2 08 00 50 49 80 0D 03 02 00 00 00 00 14 [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:40]Read from MH i2c: E2 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 0B 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 0B 00 50 49 00 4B 6B 10 DB 5C D9 3C E2 90 00 09 [20:44:40]RAPDU: 4B 6B 10 DB 5C D9 3C E2 90 00 [20:44:40]wFMCommunicate OK [20:44:40]SAM_PROTO_SignData done [20:44:40]FM_MakeSignedData done [20:44:40]CreateOFDProtocolMessage [20:44:40]wFMCommunicate request_size=4 [20:44:40]MH_SAM_APDU [20:44:40]CAPDU: 80 11 00 00 [20:44:40]Write to MH i2c: E2 08 00 51 49 80 11 00 00 00 00 00 00 14 [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:40]Read from MH i2c: E2 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 17 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 17 00 51 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [20:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:40]wFMCommunicate OK [20:44:40]CreateOFDProtocolMessage done [20:44:40]OFDSenderStorePacket 166893 [20:44:40]StoreOFDPacket docnum=166893 [20:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 C7 07 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 39 60 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8B 02 00 35 04 06 00 43 20 C3 A2 A5 BA 4B 6B 10 DB 5C D9 3C E2 [20:44:40]CheckFolder [20:44:40]dirname=/storage/ofd_packets [20:44:40]CheckFolder done [20:44:40]ProducePacketName [20:44:40]name=ofd_packets/00166893 [20:44:40]NVStorageSaveData ofd_packets/00166893 [20:44:40]File name is /storage/ofd_packets/00166893 [20:44:40]Write 301 bytes [20:44:40]NVStorageSaveData done [20:44:40]OFDSenderStorePacket done [20:44:40]KKMCreateOFDPacket done [20:44:40]NVStorageSaveData kkm_last_timestamp [20:44:40]File name is /storage/kkm_last_timestamp [20:44:40]Write 4 bytes [20:44:40]NVStorageSaveData done [20:44:40]ExternCall_PrintAddStr [20:44:40]wPrintStart [20:44:40]Write to MH i2c: 01 00 00 52 49 9B [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 07 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 07 00 52 49 00 00 00 00 00 FF 0F B0 [20:44:40]RasterBufferAndPrint [20:44:40]line Счет N : (1)221479 [20:44:40]line ИНН: 02508201610067 [20:44:40]line Контрольно-Кассовый Чек [20:44:40]line ПРОДАЖА [20:44:40]line ТРК (МРК, ГНК) : 34 [20:44:40]line Товар: 2710124500 [20:44:40]line Аи-95-К-5 [20:44:40]line 13.480 * 74.20 [20:44:40]line = 1000.22 [20:44:40]line НДС 12% НСП 1% [20:44:40]line > о реализуемом товаре [20:44:40]line ОКРУГЛЕНИЕ: -0.22 [20:44:40]line ИТОГО: 1000.00 [20:44:40]line Внесено: 1000.00 [20:44:40]line СДАЧА: 0.00 [20:44:40]line НСП 1% : 8.85 [20:44:40]line НДС 12% : 106.22 [20:44:40]line Наличными: 1000.00 [20:44:40]line Безнал.: 0.00 [20:44:40]line Место: АЗС № 161 "Партнер Нефть" [20:44:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:44:40]line СНО: Общий режим [20:44:40]line Чек 308 23.10.2024 20:44 [20:44:40]line Смена: 537 ФФД: 1.0 [20:44:40]line ЗНМ: 0300000104 [20:44:40]line РНМ: 0000000000091764 [20:44:40]line Версия ККМ: 001 [20:44:40]line ФМ: 0000000000871759 [20:44:40]line ФД: 166893 [20:44:40]line ФПД: 73808000230842 [20:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166893&fm=73808000230842&tin=02508201610067®Number=0000000000091764&sum=100000 [20:44:40]OFD Sender: Processing packet 166893 [packets to send 48, broken 47] [20:44:40]ProducePacketName [20:44:40]name=ofd_packets/00166893 [20:44:40]OFD Sender: To server: pG, [20:44:40]CommunicateWithHost lk.salyk.kg:30040 [20:44:40]ConnectInit lk.salyk.kg [20:44:40]written 0, free lines is 4095 [20:44:40]Connected sock=10 [20:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 C7 07 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 39 60 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8B 02 00 35 04 06 00 43 20 C3 A2 A5 BA 4B 6B 10 DB 5C D9 3C E2 [20:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF D6 47 00 69 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 8B 02 00 F4 03 04 00 9F 06 19 67 B6 04 01 00 00 4E A6 9D 66 2D 35 FE 69 [20:44:40]CommunicateWithHost err = 0 [20:44:40]CheckOFDResponse [20:44:40]1017 (14) - 77093643461234 [20:44:40]1041 (16) - 0000000000871759 [20:44:40]1040 (4) - 166893 [20:44:40]1012 (4) - 23.10.2024 14:22 [20:44:40]1206 (1) - 0 [20:44:40]OFD Sender: Remove packet 166893 [20:44:40]ProducePacketName [20:44:40]name=ofd_packets/00166893 [20:44:40]NVStorageDeleteData [20:44:41]Write to MH i2c: 01 00 00 7D 49 C6 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: 01 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: 01 07 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: 01 07 00 7D 49 00 00 00 00 00 AA 0C 83 [20:44:41]RasterBufferAndPrint [20:44:41]line [20:44:41]line [20:44:41]line [20:44:41]line [20:44:41]line [20:44:41]written 0, free lines is 3248 [20:44:41]MH_Cut [20:44:41]Write to MH i2c: D1 01 00 84 49 01 9F [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: D1 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: D1 01 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: D1 01 00 84 49 00 9E [20:44:41]Write to MH i2c: 01 00 00 85 49 CE [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]OFD Sender: No OFD packet to send [20:44:41]*** Cut start [20:44:41]*** Partial cut [20:44:41]*** CUTSNS_PIN = 1 [20:44:41]*** CUTSNS_PIN = 0 [20:44:42]*** Brake cut motor [20:44:42]Read from MH i2c: 01 [20:44:42]MH_I2C_Read... [20:44:42]*** Stop cut motor [20:44:42]*** Cut end [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 85 49 00 00 00 00 00 FF 0F E3 [20:44:42]process_action close_receipt done [20:44:42]requested_data is exist [20:44:42]produce_requested_data [20:44:42]requested_item fm.sn is exist - process it [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 86 49 80 11 00 00 00 00 00 00 49 [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 86 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [20:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:42]wFMCommunicate OK [20:44:42]requested_item fd.num is exist - process it [20:44:42]SAM_PROTO_GetFieldsCounters [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 13 00 00 [20:44:42]Write to MH i2c: E2 08 00 87 49 80 13 00 00 00 00 00 00 4C [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 62 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 62 00 87 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [20:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_GetFieldsCounters done [20:44:42]requested_item shift.num is exist - process it [20:44:42]requested_item shift.opened is exist - process it [20:44:42]req_shift_opened [20:44:42]FM_GetShiftState [20:44:42]SAM_PROTO_GetShiftState [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 13 01 00 [20:44:42]Write to MH i2c: E2 08 00 88 49 80 13 01 00 00 00 00 00 4E [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0E 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0E 00 88 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 19 [20:44:42]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_GetShiftState done [20:44:42]FM_GetShiftState done [20:44:42]req_shift_opened done [20:44:42]requested_item shift.open_date is exist - process it [20:44:42]req_shift_open_date [20:44:42]req_shift_open_date done [20:44:42]produce_requested_data done [20:44:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166893,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:44:42]process_action_free close_receipt [20:44:42]json_value_free [20:44:42]json_value_free done [20:44:42]process_json_proto returns [20:44:42]Send response to host [20:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166893,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:44:42]free response buf [20:44:42]execute_script done [20:44:42]execute_script returns [20:44:42]free content buf [20:44:42]Sock 9.Close socket [20:44:42]Sock 9.Thread stoped [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:44]accept exits with 8 [20:55:44]New connection [20:55:44]New thread 3067178340 created [20:55:44]Thread 3067034980 joined [20:55:44]Waiting for new connection... [20:55:44] Sock 8.Parse request [20:55:44]Sock 8.Check first char [20:55:44]Sock 8.First char is OK [20:55:44]request: POST /json_proto HTTP/1.0 [20:55:44]Method: POST [20:55:44]URL: /json_proto [20:55:44]Method is POST - this is cgi request [20:55:44]url: /json_proto [20:55:44]query_string will be loaded in cgi processing [20:55:44]execute_cgi json_proto POST (null) [20:55:44]execute_cgi path=json_proto method=POST [20:55:44]POST find Content-Length [20:55:44]Host: 172.17.53.195:8080 [20:55:44]Content-Length: 677 [20:55:44]Content-Type: application/json [20:55:44] [20:55:44]POST finish read [20:55:44]Found Content-Length = 677 [20:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:44]execute_script... [20: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)221481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:44]POST & json_proto [20:55:44]process_json_proto [20:55:44]json parsed OK: [20:55:44]protocol is kg_v1.0 [20:55:44]action value=close_receipt [20:55:44]process_action close_receipt [20:55:44]cmd_close_receipt [20:55:44]MH_GetDate [20:55:44]Write to MH i2c: F0 00 00 89 49 C1 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: F0 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: F0 09 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: F0 09 00 89 49 00 D3 62 19 67 21 48 4A 65 97 [20:55:44]GetLastDocTimeStamp 1729716281 [20:55:44]current date 1729716947 [20:55:44]FM_GetShiftState [20:55:44]SAM_PROTO_GetShiftState [20:55:44]wFMCommunicate request_size=4 [20:55:44]MH_SAM_APDU [20:55:44]CAPDU: 80 13 01 00 [20:55:44]Write to MH i2c: E2 08 00 8A 49 80 13 01 00 00 00 00 00 50 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:44]Read from MH i2c: E2 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 0E 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 0E 00 8A 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1B [20:55:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:55:44]wFMCommunicate OK [20:55:44]SAM_PROTO_GetShiftState done [20:55:44]FM_GetShiftState done [20:55:44]opened in 1729643772 [20:55:44]opened+sec_in_day 1729730172 [20:55:44]quantity*price = 50041 [20:55:44]sum+1 = 50042 [20:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 309 23.10.2024 20:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166894 ФПД: 267762574381103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205547&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166894&fm=267762574381103&tin=02508201610067®Number=0000000000091764&sum=50000 [20:55:45]StoreToDocumentArchive [20:55:45]shift 537 fd 166894 [20:55:45]save to /storage/0537/doc_00166894 [20:55:45]save last doc name /storage/0537/doc_00166894 to /storage/kkm_last_doc_name [20:55:45]save OK [20:55:45]Clear old archive folders... [20:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:45]tlvbuf is B6F8C320 [20:55:45]SAM_PROTO_ClearQueue [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 09 00 00 [20:55:45]Write to MH i2c: E2 08 00 97 49 80 09 00 00 00 00 00 00 52 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 97 49 00 90 00 54 [20:55:45]RAPDU: 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_ClearQueue done [20:55:45]KKMCreateOFDPacket [20:55:45]OFDProtocolAddRootSTLVToBuf [20:55:45]FM_MakeSignedData [20:55:45]FM_MakeSignedData [20:55:45]SAM_PROTO_SignData [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 0D 01 02 [20:55:45]Write to MH i2c: E2 08 00 98 49 80 0D 01 02 00 00 00 00 5A [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 98 49 00 90 00 55 [20:55:45]RAPDU: 90 00 [20:55:45]wFMCommunicate OK [20:55:45]wFMCommunicate request_size=255 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D3 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8B 02 00 35 04 06 00 F3 [20:55:45]Write to MH i2c: E2 02 01 99 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D3 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8B 02 00 35 04 06 00 F3 00 00 64 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 99 49 00 90 00 56 [20:55:45]RAPDU: 90 00 [20:55:45]wFMCommunicate OK [20:55:45]wFMCommunicate request_size=10 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 0D 02 02 05 87 55 21 50 2F [20:55:45]Write to MH i2c: E2 0D 00 9A 49 80 0D 02 02 05 00 87 55 21 50 2F 00 00 E3 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 03 00 9A 49 00 90 00 57 [20:55:45]RAPDU: 90 00 [20:55:45]wFMCommunicate OK [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 0D 03 02 [20:55:45]Write to MH i2c: E2 08 00 9B 49 80 0D 03 02 00 00 00 00 5F [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0B 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0B 00 9B 49 00 44 E3 26 C0 7E F7 EC 00 90 00 CE [20:55:45]RAPDU: 44 E3 26 C0 7E F7 EC 00 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_SignData done [20:55:45]FM_MakeSignedData done [20:55:45]CreateOFDProtocolMessage [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 11 00 00 [20:55:45]Write to MH i2c: E2 08 00 9C 49 80 11 00 00 00 00 00 00 5F [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 17 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 17 00 9C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [20:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:55:45]wFMCommunicate OK [20:55:45]CreateOFDProtocolMessage done [20:55:45]OFDSenderStorePacket 166894 [20:55:45]StoreOFDPacket docnum=166894 [20:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3A 3F 07 01 60 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D3 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8B 02 00 35 04 06 00 F3 87 55 21 50 2F 44 E3 26 C0 7E F7 EC 00 [20:55:45]CheckFolder [20:55:45]dirname=/storage/ofd_packets [20:55:45]CheckFolder done [20:55:45]ProducePacketName [20:55:45]name=ofd_packets/00166894 [20:55:45]NVStorageSaveData ofd_packets/00166894 [20:55:45]File name is /storage/ofd_packets/00166894 [20:55:45]Write 301 bytes [20:55:45]NVStorageSaveData done [20:55:45]OFDSenderStorePacket done [20:55:45]KKMCreateOFDPacket done [20:55:45]NVStorageSaveData kkm_last_timestamp [20:55:45]File name is /storage/kkm_last_timestamp [20:55:45]Write 4 bytes [20:55:45]NVStorageSaveData done [20:55:45]OFD Sender: Processing packet 166894 [packets to send 48, broken 47] [20:55:45]ProducePacketName [20:55:45]name=ofd_packets/00166894 [20:55:45]OFD Sender: To server: pG, [20:55:45]CommunicateWithHost lk.salyk.kg:30040 [20:55:45]ConnectInit lk.salyk.kg [20:55:45]ExternCall_PrintAddStr [20:55:45]wPrintStart [20:55:45]Write to MH i2c: 01 00 00 9D 49 E6 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 9D 49 00 00 00 00 00 FF 0F FB [20:55:45]RasterBufferAndPrint [20:55:45]line Счет N : (1)221481 [20:55:45]line ИНН: 02508201610067 [20:55:45]line Контрольно-Кассовый Чек [20:55:45]line ПРОДАЖА [20:55:45]line ТРК (МРК, ГНК) : 23 [20:55:45]line Товар: 2710124130 [20:55:45]line Аи-92-К-5 [20:55:45]line 7.480 * 66.90 [20:55:45]line = 500.41 [20:55:45]line НДС 12% НСП 1% [20:55:45]line > о реализуемом товаре [20:55:45]line ОКРУГЛЕНИЕ: -0.41 [20:55:45]line ИТОГО: 500.00 [20:55:45]line Внесено: 500.00 [20:55:45]line СДАЧА: 0.00 [20:55:45]line НСП 1% : 4.43 [20:55:45]line НДС 12% : 53.14 [20:55:45]line Наличными: 500.00 [20:55:45]line Безнал.: 0.00 [20:55:45]line Место: АЗС № 161 "Партнер Нефть" [20:55:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:55:45]line СНО: Общий режим [20:55:45]line Чек 309 23.10.2024 20:55 [20:55:45]line Смена: 537 ФФД: 1.0 [20:55:45]line ЗНМ: 0300000104 [20:55:45]line РНМ: 0000000000091764 [20:55:45]line Версия ККМ: 001 [20:55:45]line ФМ: 0000000000871759 [20:55:45]line ФД: 166894 [20:55:45]line ФПД: 267762574381103 [20:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205547&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166894&fm=267762574381103&tin=02508201610067®Number=0000000000091764&sum=50000 [20:55:46]Connected sock=11 [20: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 31 37 35 39 0F 01 00 00 3A 3F 07 01 60 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D3 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8B 02 00 35 04 06 00 F3 87 55 21 50 2F 44 E3 26 C0 7E F7 EC 00 [20:55:46]written 0, free lines is 4095 [20:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 E0 47 00 C7 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 8B 02 00 F4 03 04 00 39 09 19 67 B6 04 01 00 00 8E F6 FA D8 84 7D 3B 8C [20:55:46]CommunicateWithHost err = 0 [20:55:46]CheckOFDResponse [20:55:46]1017 (14) - 77093643461234 [20:55:46]1041 (16) - 0000000000871759 [20:55:46]1040 (4) - 166894 [20:55:46]1012 (4) - 23.10.2024 14:33 [20:55:46]1206 (1) - 0 [20:55:46]OFD Sender: Remove packet 166894 [20:55:46]ProducePacketName [20:55:46]name=ofd_packets/00166894 [20:55:46]NVStorageDeleteData [20:55:46]Write to MH i2c: 01 00 00 C8 49 11 [20:55:46]Write i2c OK [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: 01 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: 01 07 00 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: 01 07 00 C8 49 00 00 00 00 00 A9 0C CD [20:55:46]RasterBufferAndPrint [20:55:46]line [20:55:46]line [20:55:46]line [20:55:46]line [20:55:46]line [20:55:46]written 0, free lines is 3249 [20:55:46]MH_Cut [20:55:46]Write to MH i2c: D1 01 00 CF 49 01 EA [20:55:46]Write i2c OK [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: D1 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: D1 01 00 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: D1 01 00 CF 49 00 E9 [20:55:46]Write to MH i2c: 01 00 00 D0 49 19 [20:55:46]Write i2c OK [20:55:46]MH_I2C_Read... [20:55:46]OFD Sender: No OFD packet to send [20:55:47]*** Cut start [20:55:47]*** Partial cut [20:55:47]*** CUTSNS_PIN = 1 [20:55:47]*** CUTSNS_PIN = 0 [20:55:47]*** Brake cut motor [20:55:48]Read from MH i2c: 01 [20:55:48]MH_I2C_Read... [20:55:48]*** Stop cut motor [20:55:48]*** Cut end [20:55:48]Read from MH i2c: 01 07 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 07 00 D0 49 00 00 00 00 00 FF 0F 2E [20:55:48]process_action close_receipt done [20:55:48]requested_data is exist [20:55:48]produce_requested_data [20:55:48]requested_item fm.sn is exist - process it [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 11 00 00 [20:55:48]Write to MH i2c: E2 08 00 D1 49 80 11 00 00 00 00 00 00 94 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 17 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 17 00 D1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [20:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:55:48]wFMCommunicate OK [20:55:48]requested_item fd.num is exist - process it [20:55:48]SAM_PROTO_GetFieldsCounters [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 13 00 00 [20:55:48]Write to MH i2c: E2 08 00 D2 49 80 13 00 00 00 00 00 00 97 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 62 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 62 00 D2 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [20: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:48]wFMCommunicate OK [20:55:48]SAM_PROTO_GetFieldsCounters done [20:55:48]requested_item shift.num is exist - process it [20:55:48]requested_item shift.opened is exist - process it [20:55:48]req_shift_opened [20:55:48]FM_GetShiftState [20:55:48]SAM_PROTO_GetShiftState [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 13 01 00 [20:55:48]Write to MH i2c: E2 08 00 D3 49 80 13 01 00 00 00 00 00 99 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 0E 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 0E 00 D3 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 64 [20:55:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:55:48]wFMCommunicate OK [20:55:48]SAM_PROTO_GetShiftState done [20:55:48]FM_GetShiftState done [20:55:48]req_shift_opened done [20:55:48]requested_item shift.open_date is exist - process it [20:55:48]req_shift_open_date [20:55:48]req_shift_open_date done [20:55:48]produce_requested_data done [20:55:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166894,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:55:48]process_action_free close_receipt [20:55:48]json_value_free [20:55:48]json_value_free done [20:55:48]process_json_proto returns [20:55:48]Send response to host [20:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166894,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:55:48]free response buf [20:55:48]execute_script done [20:55:48]execute_script returns [20:55:48]free content buf [20:55:48]Sock 8.Close socket [20:55:48]Sock 8.Thread stoped [20:55:51]OFD Sender: No OFD packet to send [20:55:55]accept exits with 9 [20:55:55]New connection [20:55:55]New thread 3067034980 created [20:55:55]Thread 3067178340 joined [20:55:55]Waiting for new connection... [20:55:55] Sock 9.Parse request [20:55:55]Sock 9.Check first char [20:55:55]Sock 9.First char is OK [20:55:55]request: POST /json_proto HTTP/1.0 [20:55:55]Method: POST [20:55:55]URL: /json_proto [20:55:55]Method is POST - this is cgi request [20:55:55]url: /json_proto [20:55:55]query_string will be loaded in cgi processing [20:55:55]execute_cgi json_proto POST (null) [20:55:55]execute_cgi path=json_proto method=POST [20:55:55]POST find Content-Length [20:55:55]Host: 172.17.53.195:8080 [20:55:55]Content-Length: 679 [20:55:55]Content-Type: application/json [20:55:55] [20:55:55]POST finish read [20:55:55]Found Content-Length = 679 [20:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:55]execute_script... [20: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)221480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:55]POST & json_proto [20:55:55]process_json_proto [20:55:55]json parsed OK: [20:55:55]protocol is kg_v1.0 [20:55:55]action value=close_receipt [20:55:55]process_action close_receipt [20:55:55]cmd_close_receipt [20:55:55]MH_GetDate [20:55:55]Write to MH i2c: F0 00 00 D4 49 0C [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 09 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 09 00 D4 49 00 DE 62 19 67 21 48 4A 65 ED [20:55:55]GetLastDocTimeStamp 1729716947 [20:55:55]current date 1729716958 [20:55:55]FM_GetShiftState [20:55:55]SAM_PROTO_GetShiftState [20:55:55]wFMCommunicate request_size=4 [20:55:55]MH_SAM_APDU [20:55:55]CAPDU: 80 13 01 00 [20:55:55]Write to MH i2c: E2 08 00 D5 49 80 13 01 00 00 00 00 00 9B [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:55]Read from MH i2c: E2 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: E2 0E 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: E2 0E 00 D5 49 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 66 [20:55:55]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:55:55]wFMCommunicate OK [20:55:55]SAM_PROTO_GetShiftState done [20:55:55]FM_GetShiftState done [20:55:55]opened in 1729643772 [20:55:55]opened+sec_in_day 1729730172 [20:55:55]quantity*price = 100050 [20:55:55]sum+1 = 100052 [20:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 310 23.10.2024 20:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166895 ФПД: 133738973378153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166895&fm=133738973378153&tin=02508201610067®Number=0000000000091764&sum=100000 [20:55:56]StoreToDocumentArchive [20:55:56]shift 537 fd 166895 [20:55:56]save to /storage/0537/doc_00166895 [20:55:56]save last doc name /storage/0537/doc_00166895 to /storage/kkm_last_doc_name [20:55:56]save OK [20:55:56]Clear old archive folders... [20:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:55:56]tlvbuf is 01F7C1B0 [20:55:56]SAM_PROTO_ClearQueue [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 09 00 00 [20:55:56]Write to MH i2c: E2 08 00 E2 49 80 09 00 00 00 00 00 00 9D [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 E2 49 00 90 00 9F [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_ClearQueue done [20:55:56]KKMCreateOFDPacket [20:55:56]OFDProtocolAddRootSTLVToBuf [20:55:56]FM_MakeSignedData [20:55:56]FM_MakeSignedData [20:55:56]SAM_PROTO_SignData [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 01 02 [20:55:56]Write to MH i2c: E2 08 00 E3 49 80 0D 01 02 00 00 00 00 A5 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 E3 49 00 90 00 A0 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=255 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 DE 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8B 02 00 35 04 06 00 79 A2 88 00 [20:55:56]Write to MH i2c: E2 02 01 E4 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 DE 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8B 02 00 35 04 06 00 79 A2 88 00 00 00 62 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 E4 49 00 90 00 A1 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=7 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 02 02 02 36 69 [20:55:56]Write to MH i2c: E2 0A 00 E5 49 80 0D 02 02 02 00 36 69 00 00 4B [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 E5 49 00 90 00 A2 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 03 02 [20:55:56]Write to MH i2c: E2 08 00 E6 49 80 0D 03 02 00 00 00 00 AA [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]OFD Sender: No OFD packet to send [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:56]Read from MH i2c: E2 0B 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0B 00 E6 49 00 13 7A B0 D1 09 C0 08 61 90 00 EB [20:55:56]RAPDU: 13 7A B0 D1 09 C0 08 61 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_SignData done [20:55:56]FM_MakeSignedData done [20:55:56]CreateOFDProtocolMessage [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 11 00 00 [20:55:56]Write to MH i2c: E2 08 00 E7 49 80 11 00 00 00 00 00 00 AA [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 17 00 [20:55:56]MH_I2C_Read... [20:55:57]Read from MH i2c: E2 17 00 E7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [20:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:55:57]wFMCommunicate OK [20:55:57]CreateOFDProtocolMessage done [20:55:57]OFDSenderStorePacket 166895 [20:55:57]StoreOFDPacket docnum=166895 [20:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 64 4A 04 01 DE D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 DE 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8B 02 00 35 04 06 00 79 A2 88 00 36 69 13 7A B0 D1 09 C0 08 61 [20:55:57]CheckFolder [20:55:57]dirname=/storage/ofd_packets [20:55:57]CheckFolder done [20:55:57]ProducePacketName [20:55:57]name=ofd_packets/00166895 [20:55:57]NVStorageSaveData ofd_packets/00166895 [20:55:57]File name is /storage/ofd_packets/00166895 [20:55:57]Write 298 bytes [20:55:57]NVStorageSaveData done [20:55:57]OFDSenderStorePacket done [20:55:57]KKMCreateOFDPacket done [20:55:57]NVStorageSaveData kkm_last_timestamp [20:55:57]File name is /storage/kkm_last_timestamp [20:55:57]Write 4 bytes [20:55:57]NVStorageSaveData done [20:55:57]ExternCall_PrintAddStr [20:55:57]wPrintStart [20:55:57]Write to MH i2c: 01 00 00 E8 49 31 [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 E8 49 00 00 00 00 00 FF 0F 46 [20:55:57]RasterBufferAndPrint [20:55:57]line Счет N : (1)221480 [20:55:57]line ИНН: 02508201610067 [20:55:57]line Контрольно-Кассовый Чек [20:55:57]line ПРОДАЖА [20:55:57]line ТРК (МРК, ГНК) : 11 [20:55:57]line Товар: 2710194210 [20:55:57]line ДТ-К-5 [20:55:57]line 13.130 * 76.20 [20:55:57]line = 1000.51 [20:55:57]line НДС 12% НСП 1% [20:55:57]line > о реализуемом товаре [20:55:57]line ОКРУГЛЕНИЕ: -0.51 [20:55:57]line ИТОГО: 1000.00 [20:55:57]line Внесено: 1000.00 [20:55:57]line СДАЧА: 0.00 [20:55:57]line НСП 1% : 8.85 [20:55:57]line НДС 12% : 106.25 [20:55:57]line Наличными: 1000.00 [20:55:57]line Безнал.: 0.00 [20:55:57]line Место: АЗС № 161 "Партнер Нефть" [20:55:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:55:57]line СНО: Общий режим [20:55:57]line Чек 310 23.10.2024 20:55 [20:55:57]line Смена: 537 ФФД: 1.0 [20:55:57]line ЗНМ: 0300000104 [20:55:57]line РНМ: 0000000000091764 [20:55:57]line Версия ККМ: 001 [20:55:57]line ФМ: 0000000000871759 [20:55:57]line ФД: 166895 [20:55:57]line ФПД: 133738973378153 [20:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166895&fm=133738973378153&tin=02508201610067®Number=0000000000091764&sum=100000 [20:55:57]written 0, free lines is 4095 [20:55:57]OFD Sender: Processing packet 166895 [packets to send 48, broken 47] [20:55:57]ProducePacketName [20:55:57]name=ofd_packets/00166895 [20:55:57]OFD Sender: To server: pG, [20:55:57]CommunicateWithHost lk.salyk.kg:30040 [20:55:57]ConnectInit lk.salyk.kg [20:55:57]Connected sock=10 [20:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 64 4A 04 01 DE D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 DE 62 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8B 02 00 35 04 06 00 79 A2 88 00 36 69 13 7A B0 D1 09 C0 08 61 [20:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 79 C8 47 00 84 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 8B 02 00 F4 03 04 00 44 09 19 67 B6 04 01 00 00 A9 CD 6A E7 56 84 FA 64 [20:55:57]CommunicateWithHost err = 0 [20:55:57]CheckOFDResponse [20:55:57]1017 (14) - 77093643461234 [20:55:57]1041 (16) - 0000000000871759 [20:55:57]1040 (4) - 166895 [20:55:57]1012 (4) - 23.10.2024 14:33 [20:55:57]1206 (1) - 0 [20:55:57]OFD Sender: Remove packet 166895 [20:55:57]ProducePacketName [20:55:57]name=ofd_packets/00166895 [20:55:57]NVStorageDeleteData [20:55:57]Write to MH i2c: 01 00 00 13 4A 5D [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 13 4A 00 00 00 00 00 B9 0C 29 [20:55:57]RasterBufferAndPrint [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]written 0, free lines is 3267 [20:55:57]MH_Cut [20:55:57]Write to MH i2c: D1 01 00 1A 4A 01 36 [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 01 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 01 00 1A 4A 00 35 [20:55:57]Write to MH i2c: 01 00 00 1B 4A 65 [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]OFD Sender: No OFD packet to send [20:55:58]*** Cut start [20:55:58]*** Partial cut [20:55:58]*** CUTSNS_PIN = 1 [20:55:58]*** CUTSNS_PIN = 0 [20:55:58]*** Brake cut motor [20:55:58]Read from MH i2c: 01 [20:55:58]MH_I2C_Read... [20:55:58]*** Stop cut motor [20:55:59]*** Cut end [20:55:59]Read from MH i2c: 01 07 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: 01 07 00 1B 4A 00 00 00 00 00 FF 0F 7A [20:55:59]process_action close_receipt done [20:55:59]requested_data is exist [20:55:59]produce_requested_data [20:55:59]requested_item fm.sn is exist - process it [20:55:59]wFMCommunicate request_size=4 [20:55:59]MH_SAM_APDU [20:55:59]CAPDU: 80 11 00 00 [20:55:59]Write to MH i2c: E2 08 00 1C 4A 80 11 00 00 00 00 00 00 E0 [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:59]Read from MH i2c: E2 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 17 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 17 00 1C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [20:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:55:59]wFMCommunicate OK [20:55:59]requested_item fd.num is exist - process it [20:55:59]SAM_PROTO_GetFieldsCounters [20:55:59]wFMCommunicate request_size=4 [20:55:59]MH_SAM_APDU [20:55:59]CAPDU: 80 13 00 00 [20:55:59]Write to MH i2c: E2 08 00 1D 4A 80 13 00 00 00 00 00 00 E3 [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:59]Read from MH i2c: E2 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 62 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 62 00 1D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [20:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:59]wFMCommunicate OK [20:55:59]SAM_PROTO_GetFieldsCounters done [20:55:59]requested_item shift.num is exist - process it [20:55:59]requested_item shift.opened is exist - process it [20:55:59]req_shift_opened [20:55:59]FM_GetShiftState [20:55:59]SAM_PROTO_GetShiftState [20:55:59]wFMCommunicate request_size=4 [20:55:59]MH_SAM_APDU [20:55:59]CAPDU: 80 13 01 00 [20:55:59]Write to MH i2c: E2 08 00 1E 4A 80 13 01 00 00 00 00 00 E5 [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:59]Read from MH i2c: E2 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 0E 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: E2 0E 00 1E 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B0 [20:55:59]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:55:59]wFMCommunicate OK [20:55:59]SAM_PROTO_GetShiftState done [20:55:59]FM_GetShiftState done [20:55:59]req_shift_opened done [20:55:59]requested_item shift.open_date is exist - process it [20:55:59]req_shift_open_date [20:55:59]req_shift_open_date done [20:55:59]produce_requested_data done [20:55:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166895,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:55:59]process_action_free close_receipt [20:55:59]json_value_free [20:55:59]json_value_free done [20:55:59]process_json_proto returns [20:55:59]Send response to host [20:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166895,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:55:59]free response buf [20:55:59]execute_script done [20:55:59]execute_script returns [20:55:59]free content buf [20:55:59]Sock 9.Close socket [20:55:59]Sock 9.Thread stoped [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:13]accept exits with 8 [20:58:13]New connection [20:58:13]New thread 3067178340 created [20:58:13]Thread 3067034980 joined [20:58:13]Waiting for new connection... [20:58:13] Sock 8.Parse request [20:58:13]Sock 8.Check first char [20:58:13]Sock 8.First char is OK [20:58:13]request: POST /json_proto HTTP/1.0 [20:58:13]Method: POST [20:58:13]URL: /json_proto [20:58:13]Method is POST - this is cgi request [20:58:13]url: /json_proto [20:58:13]query_string will be loaded in cgi processing [20:58:13]execute_cgi json_proto POST (null) [20:58:13]execute_cgi path=json_proto method=POST [20:58:13]POST find Content-Length [20:58:13]Host: 172.17.53.195:8080 [20:58:13]Content-Length: 677 [20:58:13]Content-Type: application/json [20:58:13] [20:58:13]POST finish read [20:58:13]Found Content-Length = 677 [20:58:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.390, "sum" : 399.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:13]execute_script... [20:58: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)221482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.390, "sum" : 399.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:13]POST & json_proto [20:58:13]process_json_proto [20:58:13]json parsed OK: [20:58:13]protocol is kg_v1.0 [20:58:13]action value=close_receipt [20:58:13]process_action close_receipt [20:58:13]cmd_close_receipt [20:58:13]MH_GetDate [20:58:13]Write to MH i2c: F0 00 00 1F 4A 58 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: F0 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: F0 09 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: F0 09 00 1F 4A 00 68 63 19 67 21 48 4A 65 C4 [20:58:13]GetLastDocTimeStamp 1729716958 [20:58:13]current date 1729717096 [20:58:13]FM_GetShiftState [20:58:13]SAM_PROTO_GetShiftState [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 13 01 00 [20:58:13]Write to MH i2c: E2 08 00 20 4A 80 13 01 00 00 00 00 00 E7 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0E 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0E 00 20 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B2 [20:58:13]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:58:13]wFMCommunicate OK [20:58:13]SAM_PROTO_GetShiftState done [20:58:13]FM_GetShiftState done [20:58:13]opened in 1729643772 [20:58:13]opened+sec_in_day 1729730172 [20:58:13]quantity*price = 39993 [20:58:13]sum+1 = 39995 [20:58:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 399.00 Внесено: 400.00 СДАЧА: 1.00 НСП 1% : 3.54 НДС 12% : 42.47 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 311 23.10.2024 20:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166896 ФПД: 79024010805630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166896&fm=79024010805630&tin=02508201610067®Number=0000000000091764&sum=39900 [20:58:14]StoreToDocumentArchive [20:58:14]shift 537 fd 166896 [20:58:14]save to /storage/0537/doc_00166896 [20:58:14]save last doc name /storage/0537/doc_00166896 to /storage/kkm_last_doc_name [20:58:14]save OK [20:58:14]Clear old archive folders... [20:58:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:14]tlvbuf is 0211DFE0 [20:58:14]SAM_PROTO_ClearQueue [20:58:14]wFMCommunicate request_size=4 [20:58:14]MH_SAM_APDU [20:58:14]CAPDU: 80 09 00 00 [20:58:14]Write to MH i2c: E2 08 00 2D 4A 80 09 00 00 00 00 00 00 E9 [20:58:14]Write i2c OK [20:58:14]MH_I2C_Read... [20:58:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:14]Read from MH i2c: E2 [20:58:14]MH_I2C_Read... [20:58:14]Read from MH i2c: E2 03 00 [20:58:14]MH_I2C_Read... [20:58:14]Read from MH i2c: E2 03 00 2D 4A 00 90 00 EB [20:58:14]RAPDU: 90 00 [20:58:14]wFMCommunicate OK [20:58:14]SAM_PROTO_ClearQueue done [20:58:14]KKMCreateOFDPacket [20:58:14]OFDProtocolAddRootSTLVToBuf [20:58:14]FM_MakeSignedData [20:58:14]FM_MakeSignedData [20:58:14]SAM_PROTO_SignData [20:58:14]wFMCommunicate request_size=4 [20:58:14]MH_SAM_APDU [20:58:14]CAPDU: 80 0D 01 02 [20:58:14]Write to MH i2c: E2 08 00 2E 4A 80 0D 01 02 00 00 00 00 F1 [20:58:14]Write i2c OK [20:58:14]MH_I2C_Read... [20:58:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:14]Read from MH i2c: E2 [20:58:14]MH_I2C_Read... [20:58:14]Read from MH i2c: E2 03 00 [20:58:14]MH_I2C_Read... [20:58:14]Read from MH i2c: E2 03 00 2E 4A 00 90 00 EC [20:58:14]RAPDU: 90 00 [20:58:14]wFMCommunicate OK [20:58:14]wFMCommunicate request_size=255 [20:58:14]MH_SAM_APDU [20:58:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 68 63 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8B 02 00 35 04 06 00 47 [20:58:14]Write to MH i2c: E2 02 01 2F 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 68 63 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8B 02 00 35 04 06 00 47 00 00 71 [20:58:14]Write i2c OK [20:58:14]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 03 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 03 00 2F 4A 00 90 00 ED [20:58:15]RAPDU: 90 00 [20:58:15]wFMCommunicate OK [20:58:15]wFMCommunicate request_size=10 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 0D 02 02 05 DF 36 17 C1 7E [20:58:15]Write to MH i2c: E2 0D 00 30 4A 80 0D 02 02 05 00 DF 36 17 C1 7E 00 00 69 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 03 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 03 00 30 4A 00 90 00 EE [20:58:15]RAPDU: 90 00 [20:58:15]wFMCommunicate OK [20:58:15]wFMCommunicate request_size=4 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 0D 03 02 [20:58:15]Write to MH i2c: E2 08 00 31 4A 80 0D 03 02 00 00 00 00 F6 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 0B 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 0B 00 31 4A 00 F4 1B D3 AE 26 65 01 EE 90 00 01 [20:58:15]RAPDU: F4 1B D3 AE 26 65 01 EE 90 00 [20:58:15]wFMCommunicate OK [20:58:15]SAM_PROTO_SignData done [20:58:15]FM_MakeSignedData done [20:58:15]CreateOFDProtocolMessage [20:58:15]wFMCommunicate request_size=4 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 11 00 00 [20:58:15]Write to MH i2c: E2 08 00 32 4A 80 11 00 00 00 00 00 00 F6 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 17 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 17 00 32 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [20:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:58:15]wFMCommunicate OK [20:58:15]CreateOFDProtocolMessage done [20:58:15]OFDSenderStorePacket 166896 [20:58:15]StoreOFDPacket docnum=166896 [20:58:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 3D 07 01 65 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 68 63 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8B 02 00 35 04 06 00 47 DF 36 17 C1 7E F4 1B D3 AE 26 65 01 EE [20:58:15]CheckFolder [20:58:15]dirname=/storage/ofd_packets [20:58:15]CheckFolder done [20:58:15]ProducePacketName [20:58:15]name=ofd_packets/00166896 [20:58:15]NVStorageSaveData ofd_packets/00166896 [20:58:15]File name is /storage/ofd_packets/00166896 [20:58:15]Write 301 bytes [20:58:15]NVStorageSaveData done [20:58:15]OFDSenderStorePacket done [20:58:15]KKMCreateOFDPacket done [20:58:15]NVStorageSaveData kkm_last_timestamp [20:58:15]File name is /storage/kkm_last_timestamp [20:58:15]Write 4 bytes [20:58:15]NVStorageSaveData done [20:58:15]ExternCall_PrintAddStr [20:58:15]wPrintStart [20:58:15]Write to MH i2c: 01 00 00 33 4A 7D [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 33 4A 00 00 00 00 00 FF 0F 92 [20:58:15]RasterBufferAndPrint [20:58:15]line Счет N : (1)221482 [20:58:15]line ИНН: 02508201610067 [20:58:15]line Контрольно-Кассовый Чек [20:58:15]line ПРОДАЖА [20:58:15]line ТРК (МРК, ГНК) : 44 [20:58:15]line Товар: 2710124500 [20:58:15]line Аи-95-К-5 [20:58:15]line 5.390 * 74.20 [20:58:15]line = 399.94 [20:58:15]line НДС 12% НСП 1% [20:58:15]line > о реализуемом товаре [20:58:15]line ОКРУГЛЕНИЕ: -0.94 [20:58:15]line ИТОГО: 399.00 [20:58:15]line Внесено: 400.00 [20:58:15]line СДАЧА: 1.00 [20:58:15]line НСП 1% : 3.54 [20:58:15]line НДС 12% : 42.47 [20:58:15]line Наличными: 399.00 [20:58:15]line Безнал.: 0.00 [20:58:15]line Место: АЗС № 161 "Партнер Нефть" [20:58:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:58:15]line СНО: Общий режим [20:58:15]line Чек 311 23.10.2024 20:58 [20:58:15]line Смена: 537 ФФД: 1.0 [20:58:15]line ЗНМ: 0300000104 [20:58:15]line РНМ: 0000000000091764 [20:58:15]line Версия ККМ: 001 [20:58:15]line ФМ: 0000000000871759 [20:58:15]line ФД: 166896 [20:58:15]line ФПД: 79024010805630 [20:58:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166896&fm=79024010805630&tin=02508201610067®Number=0000000000091764&sum=39900 [20:58:15]OFD Sender: Processing packet 166896 [packets to send 48, broken 47] [20:58:15]ProducePacketName [20:58:15]name=ofd_packets/00166896 [20:58:15]OFD Sender: To server: pG, [20:58:15]CommunicateWithHost lk.salyk.kg:30040 [20:58:15]ConnectInit lk.salyk.kg [20:58:15]written 0, free lines is 4095 [20:58:15]Connected sock=10 [20:58:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 3D 07 01 65 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 68 63 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 8B 02 00 35 04 06 00 47 DF 36 17 C1 7E F4 1B D3 AE 26 65 01 EE [20:58:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 04 C7 47 00 B6 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 31 37 35 39 10 04 04 00 F0 8B 02 00 F4 03 04 00 CE 09 19 67 B6 04 01 00 00 93 F8 D0 70 1F F9 F7 30 [20:58:15]CommunicateWithHost err = 0 [20:58:15]CheckOFDResponse [20:58:15]1017 (14) - 77093643461234 [20:58:15]1041 (16) - 0000000000871759 [20:58:15]1040 (4) - 166896 [20:58:15]1012 (4) - 23.10.2024 14:35 [20:58:15]1206 (1) - 0 [20:58:15]OFD Sender: Remove packet 166896 [20:58:15]ProducePacketName [20:58:15]name=ofd_packets/00166896 [20:58:15]NVStorageDeleteData [20:58:15]Write to MH i2c: 01 00 00 5E 4A A8 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 5E 4A 00 00 00 00 00 AB 0C 66 [20:58:15]RasterBufferAndPrint [20:58:15]line [20:58:15]line [20:58:15]line [20:58:15]line [20:58:15]line [20:58:15]written 0, free lines is 3248 [20:58:15]MH_Cut [20:58:15]Write to MH i2c: D1 01 00 65 4A 01 81 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: D1 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: D1 01 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: D1 01 00 65 4A 00 80 [20:58:15]Write to MH i2c: 01 00 00 66 4A B0 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:16]OFD Sender: No OFD packet to send [20:58:16]*** Cut start [20:58:16]*** Partial cut [20:58:16]*** CUTSNS_PIN = 1 [20:58:16]*** CUTSNS_PIN = 0 [20:58:17]*** Brake cut motor [20:58:17]Read from MH i2c: 01 [20:58:17]MH_I2C_Read... [20:58:17]*** Stop cut motor [20:58:17]*** Cut end [20:58:17]Read from MH i2c: 01 07 00 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: 01 07 00 66 4A 00 00 00 00 00 FF 0F C5 [20:58:17]process_action close_receipt done [20:58:17]requested_data is exist [20:58:17]produce_requested_data [20:58:17]requested_item fm.sn is exist - process it [20:58:17]wFMCommunicate request_size=4 [20:58:17]MH_SAM_APDU [20:58:17]CAPDU: 80 11 00 00 [20:58:17]Write to MH i2c: E2 08 00 67 4A 80 11 00 00 00 00 00 00 2B [20:58:17]Write i2c OK [20:58:17]MH_I2C_Read... [20:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:17]Read from MH i2c: E2 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 17 00 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 17 00 67 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [20:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:58:17]wFMCommunicate OK [20:58:17]requested_item fd.num is exist - process it [20:58:17]SAM_PROTO_GetFieldsCounters [20:58:17]wFMCommunicate request_size=4 [20:58:17]MH_SAM_APDU [20:58:17]CAPDU: 80 13 00 00 [20:58:17]Write to MH i2c: E2 08 00 68 4A 80 13 00 00 00 00 00 00 2E [20:58:17]Write i2c OK [20:58:17]MH_I2C_Read... [20:58:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:17]Read from MH i2c: E2 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 62 00 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 62 00 68 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [20:58:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:17]wFMCommunicate OK [20:58:17]SAM_PROTO_GetFieldsCounters done [20:58:17]requested_item shift.num is exist - process it [20:58:17]requested_item shift.opened is exist - process it [20:58:17]req_shift_opened [20:58:17]FM_GetShiftState [20:58:17]SAM_PROTO_GetShiftState [20:58:17]wFMCommunicate request_size=4 [20:58:17]MH_SAM_APDU [20:58:17]CAPDU: 80 13 01 00 [20:58:17]Write to MH i2c: E2 08 00 69 4A 80 13 01 00 00 00 00 00 30 [20:58:17]Write i2c OK [20:58:17]MH_I2C_Read... [20:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:17]Read from MH i2c: E2 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 0E 00 [20:58:17]MH_I2C_Read... [20:58:17]Read from MH i2c: E2 0E 00 69 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FB [20:58:17]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [20:58:17]wFMCommunicate OK [20:58:17]SAM_PROTO_GetShiftState done [20:58:17]FM_GetShiftState done [20:58:17]req_shift_opened done [20:58:17]requested_item shift.open_date is exist - process it [20:58:17]req_shift_open_date [20:58:17]req_shift_open_date done [20:58:17]produce_requested_data done [20:58:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166896,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [20:58:17]process_action_free close_receipt [20:58:17]json_value_free [20:58:17]json_value_free done [20:58:17]process_json_proto returns [20:58:17]Send response to host [20:58:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166896,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [20:58:17]free response buf [20:58:17]execute_script done [20:58:17]execute_script returns [20:58:17]free content buf [20:58:17]Sock 8.Close socket [20:58:17]Sock 8.Thread stoped [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:45]accept exits with 9 [21:03:45]New connection [21:03:45]New thread 3067034980 created [21:03:45]Thread 3067178340 joined [21:03:45]Waiting for new connection... [21:03:45] Sock 9.Parse request [21:03:45]Sock 9.Check first char [21:03:45]Sock 9.First char is OK [21:03:45]request: POST /json_proto HTTP/1.0 [21:03:45]Method: POST [21:03:45]URL: /json_proto [21:03:45]Method is POST - this is cgi request [21:03:45]url: /json_proto [21:03:45]query_string will be loaded in cgi processing [21:03:45]execute_cgi json_proto POST (null) [21:03:45]execute_cgi path=json_proto method=POST [21:03:45]POST find Content-Length [21:03:45]Host: 172.17.53.195:8080 [21:03:45]Content-Length: 678 [21:03:45]Content-Type: application/json [21:03:45] [21:03:45]POST finish read [21:03:45]Found Content-Length = 678 [21:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:45]execute_script... [21:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:45]POST & json_proto [21:03:45]process_json_proto [21:03:45]json parsed OK: [21:03:45]protocol is kg_v1.0 [21:03:45]action value=close_receipt [21:03:45]process_action close_receipt [21:03:45]cmd_close_receipt [21:03:45]MH_GetDate [21:03:45]Write to MH i2c: F0 00 00 6A 4A A3 [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: F0 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: F0 09 00 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: F0 09 00 6A 4A 00 B4 64 19 67 21 48 4A 65 5C [21:03:45]GetLastDocTimeStamp 1729717096 [21:03:45]current date 1729717428 [21:03:45]FM_GetShiftState [21:03:45]SAM_PROTO_GetShiftState [21:03:45]wFMCommunicate request_size=4 [21:03:45]MH_SAM_APDU [21:03:45]CAPDU: 80 13 01 00 [21:03:45]Write to MH i2c: E2 08 00 6B 4A 80 13 01 00 00 00 00 00 32 [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:45]Read from MH i2c: E2 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: E2 0E 00 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: E2 0E 00 6B 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FD [21:03:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:03:45]wFMCommunicate OK [21:03:45]SAM_PROTO_GetShiftState done [21:03:45]FM_GetShiftState done [21:03:45]opened in 1729643772 [21:03:45]opened+sec_in_day 1729730172 [21:03:45]quantity*price = 79987 [21:03:45]sum+1 = 79989 [21:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.08 НДС 12% : 84.94 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 312 23.10.2024 21:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166897 ФПД: 86650892939086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166897&fm=86650892939086&tin=02508201610067®Number=0000000000091764&sum=79900 [21:03:46]StoreToDocumentArchive [21:03:46]shift 537 fd 166897 [21:03:46]save to /storage/0537/doc_00166897 [21:03:46]save last doc name /storage/0537/doc_00166897 to /storage/kkm_last_doc_name [21:03:46]save OK [21:03:46]Clear old archive folders... [21:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:46]tlvbuf is 01F7FDA0 [21:03:46]SAM_PROTO_ClearQueue [21:03:46]wFMCommunicate request_size=4 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 09 00 00 [21:03:46]Write to MH i2c: E2 08 00 78 4A 80 09 00 00 00 00 00 00 34 [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:46]Read from MH i2c: E2 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 03 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 03 00 78 4A 00 90 00 36 [21:03:46]RAPDU: 90 00 [21:03:46]wFMCommunicate OK [21:03:46]SAM_PROTO_ClearQueue done [21:03:46]KKMCreateOFDPacket [21:03:46]OFDProtocolAddRootSTLVToBuf [21:03:46]FM_MakeSignedData [21:03:46]FM_MakeSignedData [21:03:46]SAM_PROTO_SignData [21:03:46]wFMCommunicate request_size=4 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 0D 01 02 [21:03:46]Write to MH i2c: E2 08 00 79 4A 80 0D 01 02 00 00 00 00 3C [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:46]Read from MH i2c: E2 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 03 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 03 00 79 4A 00 90 00 37 [21:03:46]RAPDU: 90 00 [21:03:46]wFMCommunicate OK [21:03:46]wFMCommunicate request_size=255 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 38 01 00 00 F4 03 04 00 B4 64 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8B 02 00 35 04 06 00 4E [21:03:46]Write to MH i2c: E2 02 01 7A 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 38 01 00 00 F4 03 04 00 B4 64 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8B 02 00 35 04 06 00 4E 00 00 D3 [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:47]Read from MH i2c: E2 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 03 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 03 00 7A 4A 00 90 00 38 [21:03:47]RAPDU: 90 00 [21:03:47]wFMCommunicate OK [21:03:47]wFMCommunicate request_size=10 [21:03:47]MH_SAM_APDU [21:03:47]CAPDU: 80 0D 02 02 05 CE FB B1 6F 4E [21:03:47]Write to MH i2c: E2 0D 00 7B 4A 80 0D 02 02 05 00 CE FB B1 6F 4E 00 00 80 [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:47]Read from MH i2c: E2 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 03 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 03 00 7B 4A 00 90 00 39 [21:03:47]RAPDU: 90 00 [21:03:47]wFMCommunicate OK [21:03:47]wFMCommunicate request_size=4 [21:03:47]MH_SAM_APDU [21:03:47]CAPDU: 80 0D 03 02 [21:03:47]Write to MH i2c: E2 08 00 7C 4A 80 0D 03 02 00 00 00 00 41 [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:47]Read from MH i2c: E2 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 0B 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 0B 00 7C 4A 00 AD 72 5D 2C 4F A9 62 DE 90 00 22 [21:03:47]RAPDU: AD 72 5D 2C 4F A9 62 DE 90 00 [21:03:47]wFMCommunicate OK [21:03:47]SAM_PROTO_SignData done [21:03:47]FM_MakeSignedData done [21:03:47]CreateOFDProtocolMessage [21:03:47]wFMCommunicate request_size=4 [21:03:47]MH_SAM_APDU [21:03:47]CAPDU: 80 11 00 00 [21:03:47]Write to MH i2c: E2 08 00 7D 4A 80 11 00 00 00 00 00 00 41 [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:47]Read from MH i2c: E2 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 17 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: E2 17 00 7D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [21:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:03:47]wFMCommunicate OK [21:03:47]CreateOFDProtocolMessage done [21:03:47]OFDSenderStorePacket 166897 [21:03:47]StoreOFDPacket docnum=166897 [21:03:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 6F 07 01 7E A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 38 01 00 00 F4 03 04 00 B4 64 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8B 02 00 35 04 06 00 4E CE FB B1 6F 4E AD 72 5D 2C 4F A9 62 DE [21:03:47]CheckFolder [21:03:47]dirname=/storage/ofd_packets [21:03:47]CheckFolder done [21:03:47]ProducePacketName [21:03:47]name=ofd_packets/00166897 [21:03:47]NVStorageSaveData ofd_packets/00166897 [21:03:47]File name is /storage/ofd_packets/00166897 [21:03:47]Write 301 bytes [21:03:47]NVStorageSaveData done [21:03:47]OFDSenderStorePacket done [21:03:47]KKMCreateOFDPacket done [21:03:47]NVStorageSaveData kkm_last_timestamp [21:03:47]File name is /storage/kkm_last_timestamp [21:03:47]Write 4 bytes [21:03:47]NVStorageSaveData done [21:03:47]ExternCall_PrintAddStr [21:03:47]wPrintStart [21:03:47]Write to MH i2c: 01 00 00 7E 4A C8 [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 07 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 07 00 7E 4A 00 00 00 00 00 FF 0F DD [21:03:47]RasterBufferAndPrint [21:03:47]line Счет N : (1)221483 [21:03:47]line ИНН: 02508201610067 [21:03:47]line Контрольно-Кассовый Чек [21:03:47]line ПРОДАЖА [21:03:47]line ТРК (МРК, ГНК) : 14 [21:03:47]line Товар: 2710124500 [21:03:47]line Аи-95-К-5 [21:03:47]line 10.780 * 74.20 [21:03:47]line = 799.88 [21:03:47]line НДС 12% НСП 1% [21:03:47]line > о реализуемом товаре [21:03:47]line ОКРУГЛЕНИЕ: -0.88 [21:03:47]line ИТОГО: 799.00 [21:03:47]line Внесено: 800.00 [21:03:47]line СДАЧА: 1.00 [21:03:47]line НСП 1% : 7.08 [21:03:47]line НДС 12% : 84.94 [21:03:47]line Наличными: 799.00 [21:03:47]line Безнал.: 0.00 [21:03:47]line Место: АЗС № 161 "Партнер Нефть" [21:03:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:03:47]line СНО: Общий режим [21:03:47]line Чек 312 23.10.2024 21:03 [21:03:47]line Смена: 537 ФФД: 1.0 [21:03:47]line ЗНМ: 0300000104 [21:03:47]line РНМ: 0000000000091764 [21:03:47]line Версия ККМ: 001 [21:03:47]line ФМ: 0000000000871759 [21:03:47]line ФД: 166897 [21:03:47]line ФПД: 86650892939086 [21:03:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166897&fm=86650892939086&tin=02508201610067®Number=0000000000091764&sum=79900 [21:03:47]written 0, free lines is 4095 [21:03:47]OFD Sender: Processing packet 166897 [packets to send 48, broken 47] [21:03:47]ProducePacketName [21:03:47]name=ofd_packets/00166897 [21:03:47]OFD Sender: To server: pG, [21:03:47]CommunicateWithHost lk.salyk.kg:30040 [21:03:47]ConnectInit lk.salyk.kg [21:03:47]Connected sock=10 [21:03:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 6F 07 01 7E A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 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 2E 21 00 00 00 00 07 04 06 00 1C 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 38 01 00 00 F4 03 04 00 B4 64 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8B 02 00 35 04 06 00 4E CE FB B1 6F 4E AD 72 5D 2C 4F A9 62 DE [21:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D7 33 47 00 0D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 8B 02 00 F4 03 04 00 1A 0B 19 67 B6 04 01 00 00 7D 2D DE CB 1E D2 70 5A [21:03:47]CommunicateWithHost err = 0 [21:03:47]CheckOFDResponse [21:03:47]1017 (14) - 77093643461234 [21:03:47]1041 (16) - 0000000000871759 [21:03:47]1040 (4) - 166897 [21:03:47]1012 (4) - 23.10.2024 14:41 [21:03:47]1206 (1) - 0 [21:03:47]OFD Sender: Remove packet 166897 [21:03:47]ProducePacketName [21:03:47]name=ofd_packets/00166897 [21:03:47]NVStorageDeleteData [21:03:47]Write to MH i2c: 01 00 00 A9 4A F3 [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 07 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: 01 07 00 A9 4A 00 00 00 00 00 B6 0C BC [21:03:47]RasterBufferAndPrint [21:03:47]line [21:03:47]line [21:03:47]line [21:03:47]line [21:03:47]line [21:03:47]written 0, free lines is 3263 [21:03:47]MH_Cut [21:03:47]Write to MH i2c: D1 01 00 B0 4A 01 CC [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: D1 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: D1 01 00 [21:03:47]MH_I2C_Read... [21:03:47]Read from MH i2c: D1 01 00 B0 4A 00 CB [21:03:47]Write to MH i2c: 01 00 00 B1 4A FB [21:03:47]Write i2c OK [21:03:47]MH_I2C_Read... [21:03:48]OFD Sender: No OFD packet to send [21:03:48]*** Cut start [21:03:48]*** Partial cut [21:03:48]*** CUTSNS_PIN = 1 [21:03:48]*** CUTSNS_PIN = 0 [21:03:49]*** Brake cut motor [21:03:49]Read from MH i2c: 01 [21:03:49]MH_I2C_Read... [21:03:49]*** Stop cut motor [21:03:49]*** Cut end [21:03:49]Read from MH i2c: 01 07 00 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: 01 07 00 B1 4A 00 00 00 00 00 FF 0F 10 [21:03:49]process_action close_receipt done [21:03:49]requested_data is exist [21:03:49]produce_requested_data [21:03:49]requested_item fm.sn is exist - process it [21:03:49]wFMCommunicate request_size=4 [21:03:49]MH_SAM_APDU [21:03:49]CAPDU: 80 11 00 00 [21:03:49]Write to MH i2c: E2 08 00 B2 4A 80 11 00 00 00 00 00 00 76 [21:03:49]Write i2c OK [21:03:49]MH_I2C_Read... [21:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:49]Read from MH i2c: E2 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 17 00 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 17 00 B2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [21:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:03:49]wFMCommunicate OK [21:03:49]requested_item fd.num is exist - process it [21:03:49]SAM_PROTO_GetFieldsCounters [21:03:49]wFMCommunicate request_size=4 [21:03:49]MH_SAM_APDU [21:03:49]CAPDU: 80 13 00 00 [21:03:49]Write to MH i2c: E2 08 00 B3 4A 80 13 00 00 00 00 00 00 79 [21:03:49]Write i2c OK [21:03:49]MH_I2C_Read... [21:03:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:49]Read from MH i2c: E2 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 62 00 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 62 00 B3 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:03:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:49]wFMCommunicate OK [21:03:49]SAM_PROTO_GetFieldsCounters done [21:03:49]requested_item shift.num is exist - process it [21:03:49]requested_item shift.opened is exist - process it [21:03:49]req_shift_opened [21:03:49]FM_GetShiftState [21:03:49]SAM_PROTO_GetShiftState [21:03:49]wFMCommunicate request_size=4 [21:03:49]MH_SAM_APDU [21:03:49]CAPDU: 80 13 01 00 [21:03:49]Write to MH i2c: E2 08 00 B4 4A 80 13 01 00 00 00 00 00 7B [21:03:49]Write i2c OK [21:03:49]MH_I2C_Read... [21:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:49]Read from MH i2c: E2 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 0E 00 [21:03:49]MH_I2C_Read... [21:03:49]Read from MH i2c: E2 0E 00 B4 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 46 [21:03:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:03:49]wFMCommunicate OK [21:03:49]SAM_PROTO_GetShiftState done [21:03:49]FM_GetShiftState done [21:03:49]req_shift_opened done [21:03:49]requested_item shift.open_date is exist - process it [21:03:49]req_shift_open_date [21:03:49]req_shift_open_date done [21:03:49]produce_requested_data done [21:03:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166897,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [21:03:49]process_action_free close_receipt [21:03:49]json_value_free [21:03:49]json_value_free done [21:03:49]process_json_proto returns [21:03:49]Send response to host [21:03:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166897,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [21:03:49]free response buf [21:03:49]execute_script done [21:03:49]execute_script returns [21:03:49]free content buf [21:03:49]Sock 9.Close socket [21:03:49]Sock 9.Thread stoped [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]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:53]accept exits with 8 [21:17:53]New connection [21:17:53]New thread 3067178340 created [21:17:53]Thread 3067034980 joined [21:17:53]Waiting for new connection... [21:17:53] Sock 8.Parse request [21:17:53]Sock 8.Check first char [21:17:53]Sock 8.First char is OK [21:17:53]request: POST /json_proto HTTP/1.0 [21:17:53]Method: POST [21:17:53]URL: /json_proto [21:17:53]Method is POST - this is cgi request [21:17:53]url: /json_proto [21:17:53]query_string will be loaded in cgi processing [21:17:53]execute_cgi json_proto POST (null) [21:17:53]execute_cgi path=json_proto method=POST [21:17:53]POST find Content-Length [21:17:53]Host: 172.17.53.195:8080 [21:17:53]Content-Length: 677 [21:17:53]Content-Type: application/json [21:17:53] [21:17:53]POST finish read [21:17:53]Found Content-Length = 677 [21:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:53]execute_script... [21:17: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)221484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:53]POST & json_proto [21:17:53]process_json_proto [21:17:53]json parsed OK: [21:17:53]protocol is kg_v1.0 [21:17:53]action value=close_receipt [21:17:53]process_action close_receipt [21:17:53]cmd_close_receipt [21:17:53]MH_GetDate [21:17:53]Write to MH i2c: F0 00 00 B5 4A EE [21:17:53]Write i2c OK [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: F0 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: F0 09 00 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: F0 09 00 B5 4A 00 04 68 19 67 21 48 4A 65 FB [21:17:53]GetLastDocTimeStamp 1729717428 [21:17:53]current date 1729718276 [21:17:53]FM_GetShiftState [21:17:53]SAM_PROTO_GetShiftState [21:17:53]wFMCommunicate request_size=4 [21:17:53]MH_SAM_APDU [21:17:53]CAPDU: 80 13 01 00 [21:17:53]Write to MH i2c: E2 08 00 B6 4A 80 13 01 00 00 00 00 00 7D [21:17:53]Write i2c OK [21:17:53]MH_I2C_Read... [21:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:53]Read from MH i2c: E2 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: E2 0E 00 [21:17:53]MH_I2C_Read... [21:17:53]Read from MH i2c: E2 0E 00 B6 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 48 [21:17:53]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:17:53]wFMCommunicate OK [21:17:53]SAM_PROTO_GetShiftState done [21:17:53]FM_GetShiftState done [21:17:53]opened in 1729643772 [21:17:53]opened+sec_in_day 1729730172 [21:17:53]quantity*price = 40006 [21:17:53]sum+1 = 40007 [21:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 313 23.10.2024 21:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166898 ФПД: 36184415524494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166898&fm=36184415524494&tin=02508201610067®Number=0000000000091764&sum=40000 [21:17:54]StoreToDocumentArchive [21:17:54]shift 537 fd 166898 [21:17:54]save to /storage/0537/doc_00166898 [21:17:54]save last doc name /storage/0537/doc_00166898 to /storage/kkm_last_doc_name [21:17:54]save OK [21:17:54]Clear old archive folders... [21:17:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:54]tlvbuf is B6F8C420 [21:17:54]SAM_PROTO_ClearQueue [21:17:54]wFMCommunicate request_size=4 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 09 00 00 [21:17:54]Write to MH i2c: E2 08 00 C3 4A 80 09 00 00 00 00 00 00 7F [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:54]Read from MH i2c: E2 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 03 00 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 03 00 C3 4A 00 90 00 81 [21:17:54]RAPDU: 90 00 [21:17:54]wFMCommunicate OK [21:17:54]SAM_PROTO_ClearQueue done [21:17:54]KKMCreateOFDPacket [21:17:54]OFDProtocolAddRootSTLVToBuf [21:17:54]FM_MakeSignedData [21:17:54]FM_MakeSignedData [21:17:54]SAM_PROTO_SignData [21:17:54]wFMCommunicate request_size=4 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 0D 01 02 [21:17:54]Write to MH i2c: E2 08 00 C4 4A 80 0D 01 02 00 00 00 00 87 [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:54]Read from MH i2c: E2 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 03 00 [21:17:54]MH_I2C_Read... [21:17:54]Read from MH i2c: E2 03 00 C4 4A 00 90 00 82 [21:17:54]RAPDU: 90 00 [21:17:54]wFMCommunicate OK [21:17:54]wFMCommunicate request_size=255 [21:17:54]MH_SAM_APDU [21:17:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 04 68 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8B 02 00 35 04 06 00 20 [21:17:54]Write to MH i2c: E2 02 01 C5 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 04 68 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8B 02 00 35 04 06 00 20 00 00 CC [21:17:54]Write i2c OK [21:17:54]MH_I2C_Read... [21:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:55]Read from MH i2c: E2 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 03 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 03 00 C5 4A 00 90 00 83 [21:17:55]RAPDU: 90 00 [21:17:55]wFMCommunicate OK [21:17:55]wFMCommunicate request_size=10 [21:17:55]MH_SAM_APDU [21:17:55]CAPDU: 80 0D 02 02 05 E8 D7 3B D6 8E [21:17:55]Write to MH i2c: E2 0D 00 C6 4A 80 0D 02 02 05 00 E8 D7 3B D6 8E 00 00 F2 [21:17:55]Write i2c OK [21:17:55]MH_I2C_Read... [21:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:55]Read from MH i2c: E2 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 03 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 03 00 C6 4A 00 90 00 84 [21:17:55]RAPDU: 90 00 [21:17:55]wFMCommunicate OK [21:17:55]wFMCommunicate request_size=4 [21:17:55]MH_SAM_APDU [21:17:55]CAPDU: 80 0D 03 02 [21:17:55]Write to MH i2c: E2 08 00 C7 4A 80 0D 03 02 00 00 00 00 8C [21:17:55]Write i2c OK [21:17:55]MH_I2C_Read... [21:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:55]Read from MH i2c: E2 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 0B 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 0B 00 C7 4A 00 99 69 34 D0 25 5E 9C 9A 90 00 4C [21:17:55]RAPDU: 99 69 34 D0 25 5E 9C 9A 90 00 [21:17:55]wFMCommunicate OK [21:17:55]SAM_PROTO_SignData done [21:17:55]FM_MakeSignedData done [21:17:55]CreateOFDProtocolMessage [21:17:55]wFMCommunicate request_size=4 [21:17:55]MH_SAM_APDU [21:17:55]CAPDU: 80 11 00 00 [21:17:55]Write to MH i2c: E2 08 00 C8 4A 80 11 00 00 00 00 00 00 8C [21:17:55]Write i2c OK [21:17:55]MH_I2C_Read... [21:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:55]Read from MH i2c: E2 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 17 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: E2 17 00 C8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [21:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:17:55]wFMCommunicate OK [21:17:55]CreateOFDProtocolMessage done [21:17:55]OFDSenderStorePacket 166898 [21:17:55]StoreOFDPacket docnum=166898 [21:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 3C 07 01 7C D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 04 68 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8B 02 00 35 04 06 00 20 E8 D7 3B D6 8E 99 69 34 D0 25 5E 9C 9A [21:17:55]CheckFolder [21:17:55]dirname=/storage/ofd_packets [21:17:55]CheckFolder done [21:17:55]ProducePacketName [21:17:55]name=ofd_packets/00166898 [21:17:55]NVStorageSaveData ofd_packets/00166898 [21:17:55]File name is /storage/ofd_packets/00166898 [21:17:55]Write 301 bytes [21:17:55]NVStorageSaveData done [21:17:55]OFDSenderStorePacket done [21:17:55]KKMCreateOFDPacket done [21:17:55]NVStorageSaveData kkm_last_timestamp [21:17:55]File name is /storage/kkm_last_timestamp [21:17:55]Write 4 bytes [21:17:55]NVStorageSaveData done [21:17:55]ExternCall_PrintAddStr [21:17:55]wPrintStart [21:17:55]Write to MH i2c: 01 00 00 C9 4A 13 [21:17:55]Write i2c OK [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: 01 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: 01 07 00 [21:17:55]MH_I2C_Read... [21:17:55]Read from MH i2c: 01 07 00 C9 4A 00 00 00 00 00 FF 0F 28 [21:17:55]RasterBufferAndPrint [21:17:55]line Счет N : (1)221484 [21:17:55]line ИНН: 02508201610067 [21:17:55]line Контрольно-Кассовый Чек [21:17:55]line ПРОДАЖА [21:17:55]line ТРК (МРК, ГНК) : 23 [21:17:55]line Товар: 2710124130 [21:17:55]line Аи-92-К-5 [21:17:55]line 5.980 * 66.90 [21:17:55]line = 400.06 [21:17:55]line НДС 12% НСП 1% [21:17:55]line > о реализуемом товаре [21:17:55]line ОКРУГЛЕНИЕ: -0.06 [21:17:55]line ИТОГО: 400.00 [21:17:55]line Внесено: 400.00 [21:17:55]line СДАЧА: 0.00 [21:17:55]line НСП 1% : 3.54 [21:17:55]line НДС 12% : 42.48 [21:17:55]line Наличными: 400.00 [21:17:55]line Безнал.: 0.00 [21:17:55]line Место: АЗС № 161 "Партнер Нефть" [21:17:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:17:55]line СНО: Общий режим [21:17:55]line Чек 313 23.10.2024 21:17 [21:17:55]line Смена: 537 ФФД: 1.0 [21:17:55]line ЗНМ: 0300000104 [21:17:55]line РНМ: 0000000000091764 [21:17:55]line Версия ККМ: 001 [21:17:55]line ФМ: 0000000000871759 [21:17:55]line ФД: 166898 [21:17:55]line ФПД: 36184415524494 [21:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166898&fm=36184415524494&tin=02508201610067®Number=0000000000091764&sum=40000 [21:17:55]OFD Sender: Processing packet 166898 [packets to send 48, broken 47] [21:17:55]ProducePacketName [21:17:55]name=ofd_packets/00166898 [21:17:55]OFD Sender: To server: pG, [21:17:55]CommunicateWithHost lk.salyk.kg:30040 [21:17:55]ConnectInit lk.salyk.kg [21:17:55]written 0, free lines is 4095 [21:17:56]Write to MH i2c: 01 00 00 F4 4A 3E [21:17:56]Write i2c OK [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 F4 4A 00 00 00 00 00 A2 0C F3 [21:17:56]RasterBufferAndPrint [21:17:56]line [21:17:56]line [21:17:56]line [21:17:56]line [21:17:56]line [21:17:56]written 0, free lines is 3237 [21:17:56]MH_Cut [21:17:56]Write to MH i2c: D1 01 00 FB 4A 01 17 [21:17:56]Write i2c OK [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: D1 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: D1 01 00 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: D1 01 00 FB 4A 00 16 [21:17:56]Write to MH i2c: 01 00 00 FC 4A 46 [21:17:56]Write i2c OK [21:17:56]MH_I2C_Read... [21:17:56]*** Cut start [21:17:56]*** Partial cut [21:17:56]*** CUTSNS_PIN = 1 [21:17:56]*** CUTSNS_PIN = 0 [21:17:57]*** Brake cut motor [21:17:57]Read from MH i2c: 01 [21:17:57]MH_I2C_Read... [21:17:57]*** Stop cut motor [21:17:57]*** Cut end [21:17:57]Read from MH i2c: 01 07 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 07 00 FC 4A 00 00 00 00 00 FF 0F 5B [21:17:57]process_action close_receipt done [21:17:57]requested_data is exist [21:17:57]produce_requested_data [21:17:57]requested_item fm.sn is exist - process it [21:17:57]wFMCommunicate request_size=4 [21:17:57]MH_SAM_APDU [21:17:57]CAPDU: 80 11 00 00 [21:17:57]Write to MH i2c: E2 08 00 FD 4A 80 11 00 00 00 00 00 00 C1 [21:17:57]Write i2c OK [21:17:57]MH_I2C_Read... [21:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:57]Read from MH i2c: E2 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 17 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 17 00 FD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [21:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:17:57]wFMCommunicate OK [21:17:57]requested_item fd.num is exist - process it [21:17:57]SAM_PROTO_GetFieldsCounters [21:17:57]wFMCommunicate request_size=4 [21:17:57]MH_SAM_APDU [21:17:57]CAPDU: 80 13 00 00 [21:17:57]Write to MH i2c: E2 08 00 FE 4A 80 13 00 00 00 00 00 00 C4 [21:17:57]Write i2c OK [21:17:57]MH_I2C_Read... [21:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:57]Read from MH i2c: E2 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 62 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 62 00 FE 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [21:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:57]wFMCommunicate OK [21:17:57]SAM_PROTO_GetFieldsCounters done [21:17:57]requested_item shift.num is exist - process it [21:17:57]requested_item shift.opened is exist - process it [21:17:57]req_shift_opened [21:17:57]FM_GetShiftState [21:17:57]SAM_PROTO_GetShiftState [21:17:57]wFMCommunicate request_size=4 [21:17:57]MH_SAM_APDU [21:17:57]CAPDU: 80 13 01 00 [21:17:57]Write to MH i2c: E2 08 00 FF 4A 80 13 01 00 00 00 00 00 C6 [21:17:57]Write i2c OK [21:17:57]MH_I2C_Read... [21:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:57]Read from MH i2c: E2 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 0E 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: E2 0E 00 FF 4A 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 91 [21:17:57]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:17:57]wFMCommunicate OK [21:17:57]SAM_PROTO_GetShiftState done [21:17:57]FM_GetShiftState done [21:17:57]req_shift_opened done [21:17:57]requested_item shift.open_date is exist - process it [21:17:57]req_shift_open_date [21:17:57]req_shift_open_date done [21:17:57]produce_requested_data done [21:17:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166898,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [21:17:57]process_action_free close_receipt [21:17:57]json_value_free [21:17:57]json_value_free done [21:17:57]process_json_proto returns [21:17:57]Send response to host [21:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166898,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [21:17:57]free response buf [21:17:57]execute_script done [21:17:57]execute_script returns [21:17:57]free content buf [21:17:57]Sock 8.Close socket [21:17:57]Sock 8.Thread stoped [21:20:08]ConnectInit Can't connect to host [21:20:08]CommunicateWithHost connect error [21:20:08]CommunicateWithHost err = -1 [21:20:08]OFD Sender: Server communicate error [21:20:13]OFD Sender: Processing packet 166898 [packets to send 48, broken 47] [21:20:13]ProducePacketName [21:20:13]name=ofd_packets/00166898 [21:20:13]OFD Sender: To server: pG, [21:20:13]CommunicateWithHost lk.salyk.kg:30040 [21:20:13]ConnectInit lk.salyk.kg [21:20:13]Connected sock=8 [21:20:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 3C 07 01 7C D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 04 68 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8B 02 00 35 04 06 00 20 E8 D7 3B D6 8E 99 69 34 D0 25 5E 9C 9A [21:20:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 06 47 00 CE 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 8B 02 00 F4 03 04 00 F5 0E 19 67 B6 04 01 00 00 69 5F 71 10 08 14 6C 7B [21:20:14]CommunicateWithHost err = 0 [21:20:14]CheckOFDResponse [21:20:14]1017 (14) - 77093643461234 [21:20:14]1041 (16) - 0000000000871759 [21:20:14]1040 (4) - 166898 [21:20:14]1012 (4) - 23.10.2024 14:57 [21:20:14]1206 (1) - 0 [21:20:14]OFD Sender: Remove packet 166898 [21:20:14]ProducePacketName [21:20:14]name=ofd_packets/00166898 [21:20:14]NVStorageDeleteData [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:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]accept exits with 9 [21:25:34]New connection [21:25:34]New thread 3067034980 created [21:25:34]Thread 3067178340 joined [21:25:34]Waiting for new connection... [21:25:34] Sock 9.Parse request [21:25:34]Sock 9.Check first char [21:25:34]Sock 9.First char is OK [21:25:34]request: POST /json_proto HTTP/1.0 [21:25:34]Method: POST [21:25:34]URL: /json_proto [21:25:34]Method is POST - this is cgi request [21:25:34]url: /json_proto [21:25:34]query_string will be loaded in cgi processing [21:25:34]execute_cgi json_proto POST (null) [21:25:34]execute_cgi path=json_proto method=POST [21:25:34]POST find Content-Length [21:25:34]Host: 172.17.53.195:8080 [21:25:34]Content-Length: 769 [21:25:34]Content-Type: application/json [21:25:34] [21:25:34]POST finish read [21:25:34]Found Content-Length = 769 [21:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:34]execute_script... [21:25: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)221485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:34]POST & json_proto [21:25:34]process_json_proto [21:25:34]json parsed OK: [21:25:34]protocol is kg_v1.0 [21:25:34]action value=close_receipt [21:25:34]process_action close_receipt [21:25:34]cmd_close_receipt [21:25:34]MH_GetDate [21:25:34]Write to MH i2c: F0 00 00 00 4B 3A [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: F0 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: F0 09 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: F0 09 00 00 4B 00 D1 69 19 67 21 48 4A 65 15 [21:25:34]GetLastDocTimeStamp 1729718276 [21:25:34]current date 1729718737 [21:25:34]FM_GetShiftState [21:25:34]SAM_PROTO_GetShiftState [21:25:34]wFMCommunicate request_size=4 [21:25:34]MH_SAM_APDU [21:25:34]CAPDU: 80 13 01 00 [21:25:34]Write to MH i2c: E2 08 00 01 4B 80 13 01 00 00 00 00 00 C9 [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0E 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0E 00 01 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 94 [21:25:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:25:34]wFMCommunicate OK [21:25:34]SAM_PROTO_GetShiftState done [21:25:34]FM_GetShiftState done [21:25:34]opened in 1729643772 [21:25:34]opened+sec_in_day 1729730172 [21:25:34]quantity*price = 200043 [21:25:34]sum+1 = 200044 [21:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 314 23.10.2024 21:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166899 ФПД: 45660226436280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212537&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166899&fm=45660226436280&tin=02508201610067®Number=0000000000091764&sum=200043 [21:25:35]StoreToDocumentArchive [21:25:35]shift 537 fd 166899 [21:25:35]save to /storage/0537/doc_00166899 [21:25:35]save last doc name /storage/0537/doc_00166899 to /storage/kkm_last_doc_name [21:25:35]save OK [21:25:35]Clear old archive folders... [21:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:35]tlvbuf is 02064160 [21:25:35]SAM_PROTO_ClearQueue [21:25:35]wFMCommunicate request_size=4 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 09 00 00 [21:25:35]Write to MH i2c: E2 08 00 0E 4B 80 09 00 00 00 00 00 00 CB [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:35]Read from MH i2c: E2 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 03 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 03 00 0E 4B 00 90 00 CD [21:25:35]RAPDU: 90 00 [21:25:35]wFMCommunicate OK [21:25:35]SAM_PROTO_ClearQueue done [21:25:35]KKMCreateOFDPacket [21:25:35]OFDProtocolAddRootSTLVToBuf [21:25:35]FM_MakeSignedData [21:25:35]FM_MakeSignedData [21:25:35]SAM_PROTO_SignData [21:25:35]wFMCommunicate request_size=4 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 0D 01 02 [21:25:35]Write to MH i2c: E2 08 00 0F 4B 80 0D 01 02 00 00 00 00 D3 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:35]Read from MH i2c: E2 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 03 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 03 00 0F 4B 00 90 00 CE [21:25:35]RAPDU: 90 00 [21:25:35]wFMCommunicate OK [21:25:35]wFMCommunicate request_size=255 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D1 69 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8B 02 00 35 04 06 00 29 [21:25:35]Write to MH i2c: E2 02 01 10 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D1 69 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8B 02 00 35 04 06 00 29 00 00 20 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 03 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 03 00 10 4B 00 90 00 CF [21:25:36]RAPDU: 90 00 [21:25:36]wFMCommunicate OK [21:25:36]wFMCommunicate request_size=10 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 0D 02 02 05 87 19 93 BC B8 [21:25:36]Write to MH i2c: E2 0D 00 11 4B 80 0D 02 02 05 00 87 19 93 BC B8 00 00 87 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 03 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 03 00 11 4B 00 90 00 D0 [21:25:36]RAPDU: 90 00 [21:25:36]wFMCommunicate OK [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 0D 03 02 [21:25:36]Write to MH i2c: E2 08 00 12 4B 80 0D 03 02 00 00 00 00 D8 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0B 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0B 00 12 4B 00 97 FE 7B 71 F5 E0 0F 54 90 00 92 [21:25:36]RAPDU: 97 FE 7B 71 F5 E0 0F 54 90 00 [21:25:36]wFMCommunicate OK [21:25:36]SAM_PROTO_SignData done [21:25:36]FM_MakeSignedData done [21:25:36]CreateOFDProtocolMessage [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 11 00 00 [21:25:36]Write to MH i2c: E2 08 00 13 4B 80 11 00 00 00 00 00 00 D8 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 17 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 17 00 13 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [21:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:25:36]wFMCommunicate OK [21:25:36]CreateOFDProtocolMessage done [21:25:36]OFDSenderStorePacket 166899 [21:25:36]StoreOFDPacket docnum=166899 [21:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 08 07 01 C3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D1 69 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8B 02 00 35 04 06 00 29 87 19 93 BC B8 97 FE 7B 71 F5 E0 0F 54 [21:25:36]CheckFolder [21:25:36]dirname=/storage/ofd_packets [21:25:36]CheckFolder done [21:25:36]ProducePacketName [21:25:36]name=ofd_packets/00166899 [21:25:36]NVStorageSaveData ofd_packets/00166899 [21:25:36]File name is /storage/ofd_packets/00166899 [21:25:36]Write 301 bytes [21:25:36]NVStorageSaveData done [21:25:36]OFDSenderStorePacket done [21:25:36]KKMCreateOFDPacket done [21:25:36]NVStorageSaveData kkm_last_timestamp [21:25:36]File name is /storage/kkm_last_timestamp [21:25:36]Write 4 bytes [21:25:36]NVStorageSaveData done [21:25:36]ExternCall_PrintAddStr [21:25:36]wPrintStart [21:25:36]Write to MH i2c: 01 00 00 14 4B 5F [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: 01 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: 01 07 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: 01 07 00 14 4B 00 00 00 00 00 FF 0F 74 [21:25:36]RasterBufferAndPrint [21:25:36]line Счет N : (1)221485 [21:25:36]line ИНН: 02508201610067 [21:25:36]line Контрольно-Кассовый Чек [21:25:36]line ПРОДАЖА [21:25:36]line ТРК (МРК, ГНК) : 24 [21:25:36]line Товар: 2710124500 [21:25:36]line Аи-95-К-5 [21:25:36]line 26.960 * 74.20 [21:25:36]line = 2000.43 [21:25:36]line НДС 12% НСП 1% [21:25:36]line > о реализуемом товаре [21:25:36]line ИТОГО: 2000.43 [21:25:36]line НСП 1% : 17.70 [21:25:36]line НДС 12% : 212.43 [21:25:36]line Наличными: 0.00 [21:25:36]line Безнал.: 2000.43 [21:25:36]line Место: АЗС № 161 "Партнер Нефть" [21:25:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:25:36]line СНО: Общий режим [21:25:36]line Чек 314 23.10.2024 21:25 [21:25:36]line Смена: 537 ФФД: 1.0 [21:25:36]line ЗНМ: 0300000104 [21:25:36]line РНМ: 0000000000091764 [21:25:36]line Версия ККМ: 001 [21:25:36]line Платежная система: Mbank [21:25:36]line ФМ: 0000000000871759 [21:25:36]line ФД: 166899 [21:25:36]line ФПД: 45660226436280 [21:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212537&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166899&fm=45660226436280&tin=02508201610067®Number=0000000000091764&sum=200043 [21:25:36]written 0, free lines is 4095 [21:25:36]OFD Sender: Processing packet 166899 [packets to send 48, broken 47] [21:25:36]ProducePacketName [21:25:36]name=ofd_packets/00166899 [21:25:36]OFD Sender: To server: pG, [21:25:36]CommunicateWithHost lk.salyk.kg:30040 [21:25:36]ConnectInit lk.salyk.kg [21:25:36]Connected sock=10 [21:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 08 07 01 C3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D1 69 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8B 02 00 35 04 06 00 29 87 19 93 BC B8 97 FE 7B 71 F5 E0 0F 54 [21:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9E 0D 47 00 97 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 8B 02 00 F4 03 04 00 38 10 19 67 B6 04 01 00 00 AA 40 39 F4 3E AB 97 3B [21:25:37]CommunicateWithHost err = 0 [21:25:37]CheckOFDResponse [21:25:37]1017 (14) - 77093643461234 [21:25:37]1041 (16) - 0000000000871759 [21:25:37]1040 (4) - 166899 [21:25:37]1012 (4) - 23.10.2024 15:03 [21:25:37]1206 (1) - 0 [21:25:37]OFD Sender: Remove packet 166899 [21:25:37]ProducePacketName [21:25:37]name=ofd_packets/00166899 [21:25:37]NVStorageDeleteData [21:25:37]Write to MH i2c: 01 00 00 3D 4B 88 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: 01 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: 01 07 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: 01 07 00 3D 4B 00 00 00 00 00 CF 0C 6A [21:25:37]RasterBufferAndPrint [21:25:37]line [21:25:37]line [21:25:37]line [21:25:37]line [21:25:37]line [21:25:37]written 0, free lines is 3285 [21:25:37]MH_Cut [21:25:37]Write to MH i2c: D1 01 00 44 4B 01 61 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: D1 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: D1 01 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: D1 01 00 44 4B 00 60 [21:25:37]Write to MH i2c: 01 00 00 45 4B 90 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]OFD Sender: No OFD packet to send [21:25:37]*** Cut start [21:25:37]*** Partial cut [21:25:37]*** CUTSNS_PIN = 1 [21:25:38]*** CUTSNS_PIN = 0 [21:25:38]*** Brake cut motor [21:25:38]Read from MH i2c: 01 [21:25:38]MH_I2C_Read... [21:25:38]*** Stop cut motor [21:25:38]*** Cut end [21:25:38]Read from MH i2c: 01 07 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: 01 07 00 45 4B 00 00 00 00 00 FF 0F A5 [21:25:38]process_action close_receipt done [21:25:38]requested_data is exist [21:25:38]produce_requested_data [21:25:38]requested_item fm.sn is exist - process it [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 11 00 00 [21:25:38]Write to MH i2c: E2 08 00 46 4B 80 11 00 00 00 00 00 00 0B [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 17 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 17 00 46 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [21:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:25:38]wFMCommunicate OK [21:25:38]requested_item fd.num is exist - process it [21:25:38]SAM_PROTO_GetFieldsCounters [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 13 00 00 [21:25:38]Write to MH i2c: E2 08 00 47 4B 80 13 00 00 00 00 00 00 0E [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 62 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 62 00 47 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [21:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:38]wFMCommunicate OK [21:25:38]SAM_PROTO_GetFieldsCounters done [21:25:38]requested_item shift.num is exist - process it [21:25:38]requested_item shift.opened is exist - process it [21:25:38]req_shift_opened [21:25:38]FM_GetShiftState [21:25:38]SAM_PROTO_GetShiftState [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 13 01 00 [21:25:38]Write to MH i2c: E2 08 00 48 4B 80 13 01 00 00 00 00 00 10 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:38]Read from MH i2c: E2 0E 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 0E 00 48 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DB [21:25:38]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:25:38]wFMCommunicate OK [21:25:38]SAM_PROTO_GetShiftState done [21:25:38]FM_GetShiftState done [21:25:38]req_shift_opened done [21:25:38]requested_item shift.open_date is exist - process it [21:25:38]req_shift_open_date [21:25:38]req_shift_open_date done [21:25:38]produce_requested_data done [21:25:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166899,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [21:25:38]process_action_free close_receipt [21:25:38]json_value_free [21:25:38]json_value_free done [21:25:38]process_json_proto returns [21:25:38]Send response to host [21:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166899,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [21:25:38]free response buf [21:25:38]execute_script done [21:25:38]execute_script returns [21:25:38]free content buf [21:25:38]Sock 9.Close socket [21:25:38]Sock 9.Thread stoped [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:28]accept exits with 8 [21:35:28]New connection [21:35:28]New thread 3067178340 created [21:35:28]Thread 3067034980 joined [21:35:28]Waiting for new connection... [21:35:28] Sock 8.Parse request [21:35:28]Sock 8.Check first char [21:35:28]Sock 8.First char is OK [21:35:28]request: POST /json_proto HTTP/1.0 [21:35:28]Method: POST [21:35:28]URL: /json_proto [21:35:28]Method is POST - this is cgi request [21:35:28]url: /json_proto [21:35:28]query_string will be loaded in cgi processing [21:35:28]execute_cgi json_proto POST (null) [21:35:28]execute_cgi path=json_proto method=POST [21:35:28]POST find Content-Length [21:35:28]Host: 172.17.53.195:8080 [21:35:28]Content-Length: 215 [21:35:28]Content-Type: application/json [21:35:28] [21:35:28]POST finish read [21:35:28]Found Content-Length = 215 [21:35:28]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:35:28]execute_script... [21:35:28]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:35:28]POST & json_proto [21:35:28]process_json_proto [21:35:28]json parsed OK: [21:35:28]protocol is kg_v1.0 [21:35:28]action value=get_value [21:35:28]process_action get_value [21:35:28]cmd_get_value [21:35:28]process_action get_value done [21:35:28]requested_data is exist [21:35:28]produce_requested_data [21:35:28]requested_item kkm.sn is exist - process it [21:35:28]requested_item kkm.ver is exist - process it [21:35:28]requested_item fm.sn is exist - process it [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 11 00 00 [21:35:28]Write to MH i2c: E2 08 00 49 4B 80 11 00 00 00 00 00 00 0E [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 17 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 17 00 49 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [21:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:35:28]wFMCommunicate OK [21:35:28]requested_item fd.num is exist - process it [21:35:28]SAM_PROTO_GetFieldsCounters [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 13 00 00 [21:35:28]Write to MH i2c: E2 08 00 4A 4B 80 13 00 00 00 00 00 00 11 [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 4A 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [21:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:28]wFMCommunicate OK [21:35:28]SAM_PROTO_GetFieldsCounters done [21:35:28]requested_item shift.num is exist - process it [21:35:28]requested_item shift.opened is exist - process it [21:35:28]req_shift_opened [21:35:28]FM_GetShiftState [21:35:28]SAM_PROTO_GetShiftState [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 13 01 00 [21:35:28]Write to MH i2c: E2 08 00 4B 4B 80 13 01 00 00 00 00 00 13 [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 0E 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 0E 00 4B 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DE [21:35:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [21:35:28]wFMCommunicate OK [21:35:28]SAM_PROTO_GetShiftState done [21:35:28]FM_GetShiftState done [21:35:28]req_shift_opened done [21:35:28]requested_item shift.open_date is exist - process it [21:35:28]req_shift_open_date [21:35:28]req_shift_open_date done [21:35:28]produce_requested_data done [21:35:28]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166899,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [21:35:28]process_action_free get_value [21:35:28]json_value_free [21:35:28]json_value_free done [21:35:28]process_json_proto returns [21:35:28]Send response to host [21:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166899,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [21:35:28]free response buf [21:35:28]execute_script done [21:35:28]execute_script returns [21:35:28]free content buf [21:35:28]Sock 8.Close socket [21:35:28]Sock 8.Thread stoped [21:35:28]accept exits with 9 [21:35:28]New connection [21:35:28]New thread 3067034980 created [21:35:28]Thread 3067178340 joined [21:35:28]Waiting for new connection... [21:35:28] Sock 9.Parse request [21:35:28]Sock 9.Check first char [21:35:28]Sock 9.First char is OK [21:35:28]request: POST /json_proto HTTP/1.0 [21:35:28]Method: POST [21:35:28]URL: /json_proto [21:35:28]Method is POST - this is cgi request [21:35:28]url: /json_proto [21:35:28]query_string will be loaded in cgi processing [21:35:28]execute_cgi json_proto POST (null) [21:35:28]execute_cgi path=json_proto method=POST [21:35:28]POST find Content-Length [21:35:28]Host: 172.17.53.195:8080 [21:35:28]Content-Length: 331 [21:35:28]Content-Type: application/json [21:35:28] [21:35:28]POST finish read [21:35:28]Found Content-Length = 331 [21:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:35:28]execute_script... [21:35:29]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:35:29]POST & json_proto [21:35:29]process_json_proto [21:35:29]json parsed OK: [21:35:29]protocol is kg_v1.0 [21:35:29]action value=get_value [21:35:29]process_action get_value [21:35:29]cmd_get_value [21:35:29]process_action get_value done [21:35:29]requested_data is exist [21:35:29]produce_requested_data [21:35:29]requested_item fm.sale.total is exist - process it [21:35:29]SAM_PROTO_GetFMData [21:35:29]wFMCommunicate request_size=4 [21:35:29]MH_SAM_APDU [21:35:29]CAPDU: 80 13 03 00 [21:35:29]Write to MH i2c: E2 08 00 4C 4B 80 13 03 00 00 00 00 00 16 [21:35:29]Write i2c OK [21:35:29]MH_I2C_Read... [21:35:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:35:29]Read from MH i2c: E2 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 FD 00 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 FD 00 4C 4B 00 C5 04 85 04 C1 04 6E 04 04 00 C1 87 02 00 69 04 A3 00 6F 04 04 00 C1 86 02 00 B1 04 05 00 EB 71 CE B5 03 70 04 05 00 F8 D1 7F 2B 03 72 04 04 00 F3 9F 4E 8A 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 73 33 E8 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 49 96 68 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 00 01 00 00 B1 04 04 00 E0 0C B3 0A 70 04 04 00 E0 0C B3 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 E4 22 01 EF 03 09 90 00 3B [21:35:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C1 87 02 00 69 04 A3 00 6F 04 04 00 C1 86 02 00 B1 04 05 00 EB 71 CE B5 03 70 04 05 00 F8 D1 7F 2B 03 72 04 04 00 F3 9F 4E 8A 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 73 33 E8 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 49 96 68 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 00 01 00 00 B1 04 04 00 E0 0C B3 0A 70 04 04 00 E0 0C B3 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 E4 22 01 EF 03 09 90 00 [21:35:29]wFMCommunicate OK [21:35:29]wFMCommunicate request_size=4 [21:35:29]MH_SAM_APDU [21:35:29]CAPDU: 80 17 00 00 [21:35:29]Write to MH i2c: E2 08 00 4D 4B 80 17 00 00 00 00 00 00 18 [21:35:29]Write i2c OK [21:35:29]MH_I2C_Read... [21:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:29]Read from MH i2c: E2 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 FD 00 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 FD 00 4D 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 B2 3D 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D5 [21:35:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B2 3D 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [21:35:29]wFMCommunicate OK [21:35:29]wFMCommunicate request_size=4 [21:35:29]MH_SAM_APDU [21:35:29]CAPDU: 80 17 00 00 [21:35:29]Write to MH i2c: E2 08 00 4E 4B 80 17 00 00 00 00 00 00 19 [21:35:29]Write i2c OK [21:35:29]MH_I2C_Read... [21:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:30]Read from MH i2c: E2 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 4E 4B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 2B [21:35:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [21:35:30]wFMCommunicate OK [21:35:30]wFMCommunicate request_size=4 [21:35:30]MH_SAM_APDU [21:35:30]CAPDU: 80 17 00 00 [21:35:30]Write to MH i2c: E2 08 00 4F 4B 80 17 00 00 00 00 00 00 1A [21:35:30]Write i2c OK [21:35:30]MH_I2C_Read... [21:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:30]Read from MH i2c: E2 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 4F 4B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A6 [21:35:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [21:35:30]wFMCommunicate OK [21:35:30]wFMCommunicate request_size=4 [21:35:30]MH_SAM_APDU [21:35:30]CAPDU: 80 17 00 00 [21:35:30]Write to MH i2c: E2 08 00 50 4B 80 17 00 00 00 00 00 00 1B [21:35:30]Write i2c OK [21:35:30]MH_I2C_Read... [21:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [21:35:30]Read from MH i2c: E2 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 E2 00 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 E2 00 50 4B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [21:35:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:35:30]wFMCommunicate OK [21:35:30]SAM_PROTO_GetFMData done [21:35:30]requested_item fm.sale_refund.total is exist - process it [21:35:30]requested_item fm.buy.total is exist - process it [21:35:30]requested_item shift.sale.total is exist - process it [21:35:30]SAM_PROTO_GetShiftData [21:35:30]wFMCommunicate request_size=4 [21:35:30]MH_SAM_APDU [21:35:30]CAPDU: 80 13 02 00 [21:35:30]Write to MH i2c: E2 08 00 51 4B 80 13 02 00 00 00 00 00 1A [21:35:30]Write i2c OK [21:35:30]MH_I2C_Read... [21:35:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:35:30]Read from MH i2c: E2 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 [21:35:30]MH_I2C_Read... [21:35:30]Read from MH i2c: E2 FD 00 51 4B 00 BB 04 AA 04 B7 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 39 01 00 00 B1 04 04 00 5D 37 72 01 70 04 04 00 5C B9 25 01 72 04 03 00 01 7E 4C 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 3B 54 27 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 46 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 40 0D 03 70 04 03 00 40 0D 03 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 FA 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 93 [21:35:30]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 39 01 00 00 B1 04 04 00 5D 37 72 01 70 04 04 00 5C B9 25 01 72 04 03 00 01 7E 4C 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 3B 54 27 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 46 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 40 0D 03 70 04 03 00 40 0D 03 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 FA 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [21:35:31]wFMCommunicate OK [21:35:31]wFMCommunicate request_size=4 [21:35:31]MH_SAM_APDU [21:35:31]CAPDU: 80 17 00 00 [21:35:31]Write to MH i2c: E2 08 00 52 4B 80 17 00 00 00 00 00 00 1D [21:35:31]Write i2c OK [21:35:31]MH_I2C_Read... [21:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:31]Read from MH i2c: E2 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 52 4B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [21:35:31]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:31]wFMCommunicate OK [21:35:31]wFMCommunicate request_size=4 [21:35:31]MH_SAM_APDU [21:35:31]CAPDU: 80 17 00 00 [21:35:31]Write to MH i2c: E2 08 00 53 4B 80 17 00 00 00 00 00 00 1E [21:35:31]Write i2c OK [21:35:31]MH_I2C_Read... [21:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:31]Read from MH i2c: E2 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 53 4B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [21:35:31]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:31]wFMCommunicate OK [21:35:31]wFMCommunicate request_size=4 [21:35:31]MH_SAM_APDU [21:35:31]CAPDU: 80 17 00 00 [21:35:31]Write to MH i2c: E2 08 00 54 4B 80 17 00 00 00 00 00 00 1F [21:35:31]Write i2c OK [21:35:31]MH_I2C_Read... [21:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:31]Read from MH i2c: E2 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 [21:35:31]MH_I2C_Read... [21:35:31]Read from MH i2c: E2 FD 00 54 4B 00 00 00 EF 03 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 90 00 94 [21:35:31]RAPDU: 00 00 EF 03 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 90 00 [21:35:31]wFMCommunicate OK [21:35:31]wFMCommunicate request_size=4 [21:35:31]MH_SAM_APDU [21:35:31]CAPDU: 80 17 00 00 [21:35:31]Write to MH i2c: E2 08 00 55 4B 80 17 00 00 00 00 00 00 20 [21:35:31]Write i2c OK [21:35:31]MH_I2C_Read... [21:35:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [21:35:32]Read from MH i2c: E2 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 D8 00 [21:35:32]MH_I2C_Read... [21:35:32]Read from MH i2c: E2 D8 00 55 4B 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 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 [21:35:32]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 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:35:32]wFMCommunicate OK [21:35:32]SAM_PROTO_GetShiftData done [21:35:32]requested_item shift.sale.total_cash is exist - process it [21:35:32]requested_item shift.sale_refund.total is exist - process it [21:35:32]requested_item shift.sale_refund.total_cash is exist - process it [21:35:32]requested_item shift.buy.total is exist - process it [21:35:32]requested_item shift.buy.total_cash is exist - process it [21:35:32]produce_requested_data done [21:35:32]produce_requested_data return {"fm.sale.total":159351075.63,"fm.sale_refund.total":1795064.00,"fm.buy.total":0.00,"shift.sale.total":242624.93,"shift.sale.total_cash":192495.00,"shift.sale_refund.total":2000.00,"shift.sale_refund.total_cash":2000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:35:32]process_action_free get_value [21:35:32]json_value_free [21:35:32]json_value_free done [21:35:32]process_json_proto returns [21:35:32]Send response to host [21:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159351075.63,"fm.sale_refund.total":1795064.00,"fm.buy.total":0.00,"shift.sale.total":242624.93,"shift.sale.total_cash":192495.00,"shift.sale_refund.total":2000.00,"shift.sale_refund.total_cash":2000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:35:32]free response buf [21:35:32]execute_script done [21:35:32]execute_script returns [21:35:32]free content buf [21:35:32]Sock 9.Close socket [21:35:32]Sock 9.Thread stoped [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:00]accept exits with 8 [22:08:00]New connection [22:08:00]New thread 3067178340 created [22:08:00]Thread 3067034980 joined [22:08:00]Waiting for new connection... [22:08:00] Sock 8.Parse request [22:08:00]Sock 8.Check first char [22:08:00]Sock 8.First char is OK [22:08:00]request: POST /json_proto HTTP/1.0 [22:08:00]Method: POST [22:08:00]URL: /json_proto [22:08:00]Method is POST - this is cgi request [22:08:00]url: /json_proto [22:08:00]query_string will be loaded in cgi processing [22:08:00]execute_cgi json_proto POST (null) [22:08:00]execute_cgi path=json_proto method=POST [22:08:00]POST find Content-Length [22:08:00]Host: 172.17.53.195:8080 [22:08:00]Content-Length: 682 [22:08:00]Content-Type: application/json [22:08:00] [22:08:00]POST finish read [22:08:00]Found Content-Length = 682 [22:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:00]execute_script... [22:08: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)221486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:00]POST & json_proto [22:08:00]process_json_proto [22:08:00]json parsed OK: [22:08:00]protocol is kg_v1.0 [22:08:00]action value=close_receipt [22:08:00]process_action close_receipt [22:08:00]cmd_close_receipt [22:08:00]MH_GetDate [22:08:00]Write to MH i2c: F0 00 00 56 4B 90 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: F0 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: F0 09 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: F0 09 00 56 4B 00 C3 73 19 67 21 48 4A 65 67 [22:08:00]GetLastDocTimeStamp 1729718737 [22:08:00]current date 1729721283 [22:08:00]FM_GetShiftState [22:08:00]SAM_PROTO_GetShiftState [22:08:00]wFMCommunicate request_size=4 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 13 01 00 [22:08:00]Write to MH i2c: E2 08 00 57 4B 80 13 01 00 00 00 00 00 1F [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 0E 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 0E 00 57 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 EA [22:08:00]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:08:00]wFMCommunicate OK [22:08:00]SAM_PROTO_GetShiftState done [22:08:00]FM_GetShiftState done [22:08:00]opened in 1729643772 [22:08:00]opened+sec_in_day 1729730172 [22:08:00]quantity*price = 100015 [22:08:00]sum+1 = 100017 [22:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 315 23.10.2024 22:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166900 ФПД: 182599290369176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166900&fm=182599290369176&tin=02508201610067®Number=0000000000091764&sum=100000 [22:08:01]StoreToDocumentArchive [22:08:01]shift 537 fd 166900 [22:08:01]save to /storage/0537/doc_00166900 [22:08:01]save last doc name /storage/0537/doc_00166900 to /storage/kkm_last_doc_name [22:08:01]save OK [22:08:01]Clear old archive folders... [22:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:01]tlvbuf is 01FFC7D0 [22:08:01]SAM_PROTO_ClearQueue [22:08:01]wFMCommunicate request_size=4 [22:08:01]MH_SAM_APDU [22:08:01]CAPDU: 80 09 00 00 [22:08:01]Write to MH i2c: E2 08 00 64 4B 80 09 00 00 00 00 00 00 21 [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:01]Read from MH i2c: E2 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 64 4B 00 90 00 23 [22:08:01]RAPDU: 90 00 [22:08:01]wFMCommunicate OK [22:08:01]SAM_PROTO_ClearQueue done [22:08:01]KKMCreateOFDPacket [22:08:01]OFDProtocolAddRootSTLVToBuf [22:08:01]FM_MakeSignedData [22:08:01]FM_MakeSignedData [22:08:01]SAM_PROTO_SignData [22:08:01]wFMCommunicate request_size=4 [22:08:01]MH_SAM_APDU [22:08:01]CAPDU: 80 0D 01 02 [22:08:01]Write to MH i2c: E2 08 00 65 4B 80 0D 01 02 00 00 00 00 29 [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:01]Read from MH i2c: E2 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 65 4B 00 90 00 24 [22:08:01]RAPDU: 90 00 [22:08:01]wFMCommunicate OK [22:08:01]wFMCommunicate request_size=255 [22:08:01]MH_SAM_APDU [22:08:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 73 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8B 02 00 35 04 06 00 A6 [22:08:01]Write to MH i2c: E2 02 01 66 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 73 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8B 02 00 35 04 06 00 A6 00 00 ED [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:01]Read from MH i2c: E2 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 66 4B 00 90 00 25 [22:08:01]RAPDU: 90 00 [22:08:01]wFMCommunicate OK [22:08:01]wFMCommunicate request_size=10 [22:08:01]MH_SAM_APDU [22:08:01]CAPDU: 80 0D 02 02 05 12 B5 D6 B4 98 [22:08:01]Write to MH i2c: E2 0D 00 67 4B 80 0D 02 02 05 00 12 B5 D6 B4 98 00 00 1F [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:01]Read from MH i2c: E2 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: E2 03 00 67 4B 00 90 00 26 [22:08:01]RAPDU: 90 00 [22:08:01]wFMCommunicate OK [22:08:01]wFMCommunicate request_size=4 [22:08:01]MH_SAM_APDU [22:08:01]CAPDU: 80 0D 03 02 [22:08:02]Write to MH i2c: E2 08 00 68 4B 80 0D 03 02 00 00 00 00 2E [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 0B 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 0B 00 68 4B 00 5C D0 54 7C 29 25 4F 7D 90 00 45 [22:08:02]RAPDU: 5C D0 54 7C 29 25 4F 7D 90 00 [22:08:02]wFMCommunicate OK [22:08:02]SAM_PROTO_SignData done [22:08:02]FM_MakeSignedData done [22:08:02]CreateOFDProtocolMessage [22:08:02]wFMCommunicate request_size=4 [22:08:02]MH_SAM_APDU [22:08:02]CAPDU: 80 11 00 00 [22:08:02]Write to MH i2c: E2 08 00 69 4B 80 11 00 00 00 00 00 00 2E [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 17 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 17 00 69 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [22:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:08:02]wFMCommunicate OK [22:08:02]CreateOFDProtocolMessage done [22:08:02]OFDSenderStorePacket 166900 [22:08:02]StoreOFDPacket docnum=166900 [22:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F 9C 07 01 FB E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C3 73 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8B 02 00 35 04 06 00 A6 12 B5 D6 B4 98 5C D0 54 7C 29 25 4F 7D [22:08:02]CheckFolder [22:08:02]dirname=/storage/ofd_packets [22:08:02]CheckFolder done [22:08:02]ProducePacketName [22:08:02]name=ofd_packets/00166900 [22:08:02]NVStorageSaveData ofd_packets/00166900 [22:08:02]File name is /storage/ofd_packets/00166900 [22:08:02]Write 301 bytes [22:08:02]NVStorageSaveData done [22:08:02]OFDSenderStorePacket done [22:08:02]KKMCreateOFDPacket done [22:08:02]NVStorageSaveData kkm_last_timestamp [22:08:02]File name is /storage/kkm_last_timestamp [22:08:02]Write 4 bytes [22:08:02]NVStorageSaveData done [22:08:02]ExternCall_PrintAddStr [22:08:02]wPrintStart [22:08:02]Write to MH i2c: 01 00 00 6A 4B B5 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 07 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 07 00 6A 4B 00 00 00 00 00 FF 0F CA [22:08:02]RasterBufferAndPrint [22:08:02]line Счет N : (1)221486 [22:08:02]line ИНН: 02508201610067 [22:08:02]line Контрольно-Кассовый Чек [22:08:02]line ПРОДАЖА [22:08:02]line ТРК (МРК, ГНК) : 13 [22:08:02]line Товар: 2710124130 [22:08:02]line Аи-92-К-5 [22:08:02]line 14.950 * 66.90 [22:08:02]line = 1000.16 [22:08:02]line НДС 12% НСП 1% [22:08:02]line > о реализуемом товаре [22:08:02]line ОКРУГЛЕНИЕ: -0.16 [22:08:02]line ИТОГО: 1000.00 [22:08:02]line Внесено: 1000.00 [22:08:02]line СДАЧА: 0.00 [22:08:02]line НСП 1% : 8.85 [22:08:02]line НДС 12% : 106.21 [22:08:02]line Наличными: 1000.00 [22:08:02]line Безнал.: 0.00 [22:08:02]line Место: АЗС № 161 "Партнер Нефть" [22:08:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:08:02]line СНО: Общий режим [22:08:02]line Чек 315 23.10.2024 22:08 [22:08:02]line Смена: 537 ФФД: 1.0 [22:08:02]line ЗНМ: 0300000104 [22:08:02]line РНМ: 0000000000091764 [22:08:02]line Версия ККМ: 001 [22:08:02]line ФМ: 0000000000871759 [22:08:02]line ФД: 166900 [22:08:02]line ФПД: 182599290369176 [22:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166900&fm=182599290369176&tin=02508201610067®Number=0000000000091764&sum=100000 [22:08:02]OFD Sender: Processing packet 166900 [packets to send 48, broken 47] [22:08:02]ProducePacketName [22:08:02]name=ofd_packets/00166900 [22:08:02]OFD Sender: To server: pG, [22:08:02]CommunicateWithHost lk.salyk.kg:30040 [22:08:02]ConnectInit lk.salyk.kg [22:08:02]written 0, free lines is 4095 [22:08:02]Connected sock=10 [22:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F 9C 07 01 FB E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C3 73 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 8B 02 00 35 04 06 00 A6 12 B5 D6 B4 98 5C D0 54 7C 29 25 4F 7D [22:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 A9 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 31 37 35 39 10 04 04 00 F4 8B 02 00 F4 03 04 00 29 1A 19 67 B6 04 01 00 00 62 EF 7B 62 0D 57 72 3B [22:08:02]CommunicateWithHost err = 0 [22:08:02]CheckOFDResponse [22:08:02]1017 (14) - 77093643461234 [22:08:02]1041 (16) - 0000000000871759 [22:08:02]1040 (4) - 166900 [22:08:02]1012 (4) - 23.10.2024 15:45 [22:08:02]1206 (1) - 0 [22:08:02]OFD Sender: Remove packet 166900 [22:08:02]ProducePacketName [22:08:02]name=ofd_packets/00166900 [22:08:02]NVStorageDeleteData [22:08:02]Write to MH i2c: 01 00 00 95 4B E0 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 07 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 07 00 95 4B 00 00 00 00 00 9B 0C 8E [22:08:02]RasterBufferAndPrint [22:08:02]line [22:08:02]line [22:08:02]line [22:08:02]line [22:08:02]line [22:08:02]written 0, free lines is 3233 [22:08:02]MH_Cut [22:08:02]Write to MH i2c: D1 01 00 9C 4B 01 B9 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: D1 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: D1 01 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: D1 01 00 9C 4B 00 B8 [22:08:02]Write to MH i2c: 01 00 00 9D 4B E8 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:03]OFD Sender: No OFD packet to send [22:08:03]*** Cut start [22:08:03]*** Partial cut [22:08:03]*** CUTSNS_PIN = 1 [22:08:03]*** CUTSNS_PIN = 0 [22:08:04]*** Brake cut motor [22:08:04]Read from MH i2c: 01 [22:08:04]MH_I2C_Read... [22:08:04]*** Stop cut motor [22:08:04]*** Cut end [22:08:04]Read from MH i2c: 01 07 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: 01 07 00 9D 4B 00 00 00 00 00 FF 0F FD [22:08:04]process_action close_receipt done [22:08:04]requested_data is exist [22:08:04]produce_requested_data [22:08:04]requested_item fm.sn is exist - process it [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 11 00 00 [22:08:04]Write to MH i2c: E2 08 00 9E 4B 80 11 00 00 00 00 00 00 63 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 17 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 17 00 9E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [22:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:08:04]wFMCommunicate OK [22:08:04]requested_item fd.num is exist - process it [22:08:04]SAM_PROTO_GetFieldsCounters [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 13 00 00 [22:08:04]Write to MH i2c: E2 08 00 9F 4B 80 13 00 00 00 00 00 00 66 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 62 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 62 00 9F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [22:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:04]wFMCommunicate OK [22:08:04]SAM_PROTO_GetFieldsCounters done [22:08:04]requested_item shift.num is exist - process it [22:08:04]requested_item shift.opened is exist - process it [22:08:04]req_shift_opened [22:08:04]FM_GetShiftState [22:08:04]SAM_PROTO_GetShiftState [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 13 01 00 [22:08:04]Write to MH i2c: E2 08 00 A0 4B 80 13 01 00 00 00 00 00 68 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 0E 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 0E 00 A0 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 33 [22:08:04]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:08:04]wFMCommunicate OK [22:08:04]SAM_PROTO_GetShiftState done [22:08:04]FM_GetShiftState done [22:08:04]req_shift_opened done [22:08:04]requested_item shift.open_date is exist - process it [22:08:04]req_shift_open_date [22:08:04]req_shift_open_date done [22:08:04]produce_requested_data done [22:08:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166900,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:08:04]process_action_free close_receipt [22:08:04]json_value_free [22:08:04]json_value_free done [22:08:04]process_json_proto returns [22:08:04]Send response to host [22:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166900,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:08:04]free response buf [22:08:04]execute_script done [22:08:04]execute_script returns [22:08:04]free content buf [22:08:04]Sock 8.Close socket [22:08:04]Sock 8.Thread stoped [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:07]accept exits with 9 [22:16:07]New connection [22:16:07]New thread 3067034980 created [22:16:07]Thread 3067178340 joined [22:16:07]Waiting for new connection... [22:16:07] Sock 9.Parse request [22:16:07]Sock 9.Check first char [22:16:07]Sock 9.First char is OK [22:16:07]request: POST /json_proto HTTP/1.0 [22:16:07]Method: POST [22:16:07]URL: /json_proto [22:16:07]Method is POST - this is cgi request [22:16:07]url: /json_proto [22:16:07]query_string will be loaded in cgi processing [22:16:07]execute_cgi json_proto POST (null) [22:16:07]execute_cgi path=json_proto method=POST [22:16:07]POST find Content-Length [22:16:07]Host: 172.17.53.195:8080 [22:16:07]Content-Length: 677 [22:16:07]Content-Type: application/json [22:16:07] [22:16:07]POST finish read [22:16:07]Found Content-Length = 677 [22:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:07]execute_script... [22:16: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)221487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:07]POST & json_proto [22:16:07]process_json_proto [22:16:07]json parsed OK: [22:16:07]protocol is kg_v1.0 [22:16:07]action value=close_receipt [22:16:07]process_action close_receipt [22:16:07]cmd_close_receipt [22:16:07]MH_GetDate [22:16:07]Write to MH i2c: F0 00 00 A1 4B DB [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: F0 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: F0 09 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: F0 09 00 A1 4B 00 AB 75 19 67 21 48 4A 65 9C [22:16:07]GetLastDocTimeStamp 1729721283 [22:16:07]current date 1729721771 [22:16:07]FM_GetShiftState [22:16:07]SAM_PROTO_GetShiftState [22:16:07]wFMCommunicate request_size=4 [22:16:07]MH_SAM_APDU [22:16:07]CAPDU: 80 13 01 00 [22:16:07]Write to MH i2c: E2 08 00 A2 4B 80 13 01 00 00 00 00 00 6A [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:07]Read from MH i2c: E2 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 A2 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 35 [22:16:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:16:07]wFMCommunicate OK [22:16:07]SAM_PROTO_GetShiftState done [22:16:07]FM_GetShiftState done [22:16:07]opened in 1729643772 [22:16:07]opened+sec_in_day 1729730172 [22:16:07]quantity*price = 60009 [22:16:07]sum+1 = 60010 [22:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 316 23.10.2024 22:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166901 ФПД: 235581853812218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221611&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166901&fm=235581853812218&tin=02508201610067®Number=0000000000091764&sum=60000 [22:16:08]StoreToDocumentArchive [22:16:08]shift 537 fd 166901 [22:16:08]save to /storage/0537/doc_00166901 [22:16:08]save last doc name /storage/0537/doc_00166901 to /storage/kkm_last_doc_name [22:16:08]save OK [22:16:08]Clear old archive folders... [22:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:08]tlvbuf is 020F0F80 [22:16:08]SAM_PROTO_ClearQueue [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 09 00 00 [22:16:08]Write to MH i2c: E2 08 00 AF 4B 80 09 00 00 00 00 00 00 6C [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 AF 4B 00 90 00 6E [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_ClearQueue done [22:16:09]KKMCreateOFDPacket [22:16:09]OFDProtocolAddRootSTLVToBuf [22:16:09]FM_MakeSignedData [22:16:09]FM_MakeSignedData [22:16:09]SAM_PROTO_SignData [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 01 02 [22:16:09]Write to MH i2c: E2 08 00 B0 4B 80 0D 01 02 00 00 00 00 74 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 B0 4B 00 90 00 6F [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=255 [22:16:09]MH_SAM_APDU [22:16: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 AB 75 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 8B 02 00 35 04 06 00 D6 [22:16:09]Write to MH i2c: E2 02 01 B1 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 AB 75 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 8B 02 00 35 04 06 00 D6 00 00 37 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 B1 4B 00 90 00 70 [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=10 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 02 02 05 42 AC B6 45 FA [22:16:09]Write to MH i2c: E2 0D 00 B2 4B 80 0D 02 02 05 00 42 AC B6 45 FA 00 00 64 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 B2 4B 00 90 00 71 [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 03 02 [22:16:09]Write to MH i2c: E2 08 00 B3 4B 80 0D 03 02 00 00 00 00 79 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 B3 4B 00 E0 A7 9E BD 26 DC 5E 94 90 00 50 [22:16:09]RAPDU: E0 A7 9E BD 26 DC 5E 94 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_SignData done [22:16:09]FM_MakeSignedData done [22:16:09]CreateOFDProtocolMessage [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 11 00 00 [22:16:09]Write to MH i2c: E2 08 00 B4 4B 80 11 00 00 00 00 00 00 79 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 17 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 17 00 B4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [22:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:16:09]wFMCommunicate OK [22:16:09]CreateOFDProtocolMessage done [22:16:09]OFDSenderStorePacket 166901 [22:16:09]StoreOFDPacket docnum=166901 [22:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 FB 07 01 EE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 AB 75 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 8B 02 00 35 04 06 00 D6 42 AC B6 45 FA E0 A7 9E BD 26 DC 5E 94 [22:16:09]CheckFolder [22:16:09]dirname=/storage/ofd_packets [22:16:09]CheckFolder done [22:16:09]ProducePacketName [22:16:09]name=ofd_packets/00166901 [22:16:09]NVStorageSaveData ofd_packets/00166901 [22:16:09]File name is /storage/ofd_packets/00166901 [22:16:09]Write 301 bytes [22:16:09]NVStorageSaveData done [22:16:09]OFDSenderStorePacket done [22:16:09]KKMCreateOFDPacket done [22:16:09]NVStorageSaveData kkm_last_timestamp [22:16:09]File name is /storage/kkm_last_timestamp [22:16:09]Write 4 bytes [22:16:09]NVStorageSaveData done [22:16:09]ExternCall_PrintAddStr [22:16:09]wPrintStart [22:16:09]Write to MH i2c: 01 00 00 B5 4B 00 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 B5 4B 00 00 00 00 00 FF 0F 15 [22:16:09]RasterBufferAndPrint [22:16:09]line Счет N : (1)221487 [22:16:09]line ИНН: 02508201610067 [22:16:09]line Контрольно-Кассовый Чек [22:16:09]line ПРОДАЖА [22:16:09]line ТРК (МРК, ГНК) : 13 [22:16:09]line Товар: 2710124130 [22:16:09]line Аи-92-К-5 [22:16:09]line 8.970 * 66.90 [22:16:09]line = 600.09 [22:16:09]line НДС 12% НСП 1% [22:16:09]line > о реализуемом товаре [22:16:09]line ОКРУГЛЕНИЕ: -0.09 [22:16:09]line ИТОГО: 600.00 [22:16:09]line Внесено: 600.00 [22:16:09]line СДАЧА: 0.00 [22:16:09]line НСП 1% : 5.31 [22:16:09]line НДС 12% : 63.73 [22:16:09]line Наличными: 600.00 [22:16:09]line Безнал.: 0.00 [22:16:09]line Место: АЗС № 161 "Партнер Нефть" [22:16:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:16:09]line СНО: Общий режим [22:16:09]line Чек 316 23.10.2024 22:16 [22:16:09]line Смена: 537 ФФД: 1.0 [22:16:09]line ЗНМ: 0300000104 [22:16:09]line РНМ: 0000000000091764 [22:16:09]line Версия ККМ: 001 [22:16:09]line ФМ: 0000000000871759 [22:16:09]line ФД: 166901 [22:16:09]line ФПД: 235581853812218 [22:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221611&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166901&fm=235581853812218&tin=02508201610067®Number=0000000000091764&sum=60000 [22:16:09]OFD Sender: Processing packet 166901 [packets to send 48, broken 47] [22:16:09]ProducePacketName [22:16:09]name=ofd_packets/00166901 [22:16:09]OFD Sender: To server: pG, [22:16:09]CommunicateWithHost lk.salyk.kg:30040 [22:16:09]ConnectInit lk.salyk.kg [22:16:09]written 0, free lines is 4095 [22:16:09]Connected sock=10 [22:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 FB 07 01 EE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 AB 75 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 8B 02 00 35 04 06 00 D6 42 AC B6 45 FA E0 A7 9E BD 26 DC 5E 94 [22:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD 23 47 00 7A 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 8B 02 00 F4 03 04 00 11 1C 19 67 B6 04 01 00 00 90 A2 25 98 C0 1E A3 DF [22:16:10]CommunicateWithHost err = 0 [22:16:10]CheckOFDResponse [22:16:10]1017 (14) - 77093643461234 [22:16:10]1041 (16) - 0000000000871759 [22:16:10]1040 (4) - 166901 [22:16:10]1012 (4) - 23.10.2024 15:53 [22:16:10]1206 (1) - 0 [22:16:10]OFD Sender: Remove packet 166901 [22:16:10]ProducePacketName [22:16:10]name=ofd_packets/00166901 [22:16:10]NVStorageDeleteData [22:16:10]Write to MH i2c: 01 00 00 E0 4B 2B [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 E0 4B 00 00 00 00 00 A9 0C E7 [22:16:10]RasterBufferAndPrint [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]written 0, free lines is 3246 [22:16:10]MH_Cut [22:16:10]Write to MH i2c: D1 01 00 E7 4B 01 04 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 E7 4B 00 03 [22:16:10]Write to MH i2c: 01 00 00 E8 4B 33 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]OFD Sender: No OFD packet to send [22:16:11]*** Cut start [22:16:11]*** Partial cut [22:16:11]*** CUTSNS_PIN = 1 [22:16:11]*** CUTSNS_PIN = 0 [22:16:11]*** Brake cut motor [22:16:11]Read from MH i2c: 01 [22:16:11]MH_I2C_Read... [22:16:11]*** Stop cut motor [22:16:11]*** Cut end [22:16:11]Read from MH i2c: 01 07 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: 01 07 00 E8 4B 00 00 00 00 00 FF 0F 48 [22:16:11]process_action close_receipt done [22:16:11]requested_data is exist [22:16:11]produce_requested_data [22:16:11]requested_item fm.sn is exist - process it [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 11 00 00 [22:16:11]Write to MH i2c: E2 08 00 E9 4B 80 11 00 00 00 00 00 00 AE [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 17 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 17 00 E9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [22:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:16:11]wFMCommunicate OK [22:16:11]requested_item fd.num is exist - process it [22:16:11]SAM_PROTO_GetFieldsCounters [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 13 00 00 [22:16:11]Write to MH i2c: E2 08 00 EA 4B 80 13 00 00 00 00 00 00 B1 [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 62 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 62 00 EA 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [22:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:11]wFMCommunicate OK [22:16:12]SAM_PROTO_GetFieldsCounters done [22:16:12]requested_item shift.num is exist - process it [22:16:12]requested_item shift.opened is exist - process it [22:16:12]req_shift_opened [22:16:12]FM_GetShiftState [22:16:12]SAM_PROTO_GetShiftState [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 13 01 00 [22:16:12]Write to MH i2c: E2 08 00 EB 4B 80 13 01 00 00 00 00 00 B3 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 EB 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [22:16:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_GetShiftState done [22:16:12]FM_GetShiftState done [22:16:12]req_shift_opened done [22:16:12]requested_item shift.open_date is exist - process it [22:16:12]req_shift_open_date [22:16:12]req_shift_open_date done [22:16:12]produce_requested_data done [22:16:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166901,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:16:12]process_action_free close_receipt [22:16:12]json_value_free [22:16:12]json_value_free done [22:16:12]process_json_proto returns [22:16:12]Send response to host [22:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166901,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:16:12]free response buf [22:16:12]execute_script done [22:16:12]execute_script returns [22:16:12]free content buf [22:16:12]Sock 9.Close socket [22:16:12]Sock 9.Thread stoped [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]accept exits with 8 [22:19:15]New connection [22:19:15]New thread 3067178340 created [22:19:15]Thread 3067034980 joined [22:19:15]Waiting for new connection... [22:19:15] Sock 8.Parse request [22:19:15]Sock 8.Check first char [22:19:15]Sock 8.First char is OK [22:19:15]request: POST /json_proto HTTP/1.0 [22:19:15]Method: POST [22:19:15]URL: /json_proto [22:19:15]Method is POST - this is cgi request [22:19:15]url: /json_proto [22:19:15]query_string will be loaded in cgi processing [22:19:15]execute_cgi json_proto POST (null) [22:19:15]execute_cgi path=json_proto method=POST [22:19:15]POST find Content-Length [22:19:15]Host: 172.17.53.195:8080 [22:19:15]Content-Length: 682 [22:19:15]Content-Type: application/json [22:19:15] [22:19:15]POST finish read [22:19:15]Found Content-Length = 682 [22:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:15]execute_script... [22:19: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)221488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:15]POST & json_proto [22:19:15]process_json_proto [22:19:15]json parsed OK: [22:19:15]protocol is kg_v1.0 [22:19:15]action value=close_receipt [22:19:15]process_action close_receipt [22:19:15]cmd_close_receipt [22:19:15]MH_GetDate [22:19:15]Write to MH i2c: F0 00 00 EC 4B 26 [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: F0 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: F0 09 00 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: F0 09 00 EC 4B 00 66 76 19 67 21 48 4A 65 A3 [22:19:15]GetLastDocTimeStamp 1729721771 [22:19:15]current date 1729721958 [22:19:15]FM_GetShiftState [22:19:15]SAM_PROTO_GetShiftState [22:19:15]wFMCommunicate request_size=4 [22:19:15]MH_SAM_APDU [22:19:15]CAPDU: 80 13 01 00 [22:19:15]Write to MH i2c: E2 08 00 ED 4B 80 13 01 00 00 00 00 00 B5 [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:15]Read from MH i2c: E2 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 0E 00 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 0E 00 ED 4B 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 80 [22:19:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:19:15]wFMCommunicate OK [22:19:15]SAM_PROTO_GetShiftState done [22:19:15]FM_GetShiftState done [22:19:15]opened in 1729643772 [22:19:15]opened+sec_in_day 1729730172 [22:19:15]quantity*price = 200043 [22:19:15]sum+1 = 200044 [22:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 317 23.10.2024 22:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166902 ФПД: 109904636780573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166902&fm=109904636780573&tin=02508201610067®Number=0000000000091764&sum=200000 [22:19:16]StoreToDocumentArchive [22:19:16]shift 537 fd 166902 [22:19:16]save to /storage/0537/doc_00166902 [22:19:16]save last doc name /storage/0537/doc_00166902 to /storage/kkm_last_doc_name [22:19:16]save OK [22:19:16]Clear old archive folders... [22:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:16]tlvbuf is 01FFA9D0 [22:19:16]SAM_PROTO_ClearQueue [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 09 00 00 [22:19:16]Write to MH i2c: E2 08 00 FA 4B 80 09 00 00 00 00 00 00 B7 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 FA 4B 00 90 00 B9 [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]SAM_PROTO_ClearQueue done [22:19:16]KKMCreateOFDPacket [22:19:16]OFDProtocolAddRootSTLVToBuf [22:19:16]FM_MakeSignedData [22:19:16]FM_MakeSignedData [22:19:16]SAM_PROTO_SignData [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 01 02 [22:19:16]Write to MH i2c: E2 08 00 FB 4B 80 0D 01 02 00 00 00 00 BF [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 FB 4B 00 90 00 BA [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]wFMCommunicate request_size=255 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 66 76 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8B 02 00 35 04 06 00 63 [22:19:16]Write to MH i2c: E2 02 01 FC 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 66 76 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8B 02 00 35 04 06 00 63 00 00 98 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 FC 4B 00 90 00 BB [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]wFMCommunicate request_size=10 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 02 02 05 F5 2A D5 A0 1D [22:19:16]Write to MH i2c: E2 0D 00 FD 4B 80 0D 02 02 05 00 F5 2A D5 A0 1D 00 00 7D [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 FD 4B 00 90 00 BC [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 03 02 [22:19:16]Write to MH i2c: E2 08 00 FE 4B 80 0D 03 02 00 00 00 00 C4 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 0B 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 0B 00 FE 4B 00 78 FF 05 43 BC D5 94 60 90 00 09 [22:19:16]RAPDU: 78 FF 05 43 BC D5 94 60 90 00 [22:19:16]wFMCommunicate OK [22:19:16]SAM_PROTO_SignData done [22:19:16]FM_MakeSignedData done [22:19:16]CreateOFDProtocolMessage [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 11 00 00 [22:19:16]Write to MH i2c: E2 08 00 FF 4B 80 11 00 00 00 00 00 00 C4 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 FF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [22:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:19:16]wFMCommunicate OK [22:19:16]CreateOFDProtocolMessage done [22:19:16]OFDSenderStorePacket 166902 [22:19:16]StoreOFDPacket docnum=166902 [22:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D D0 07 01 30 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 66 76 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8B 02 00 35 04 06 00 63 F5 2A D5 A0 1D 78 FF 05 43 BC D5 94 60 [22:19:16]CheckFolder [22:19:16]dirname=/storage/ofd_packets [22:19:16]CheckFolder done [22:19:16]ProducePacketName [22:19:16]name=ofd_packets/00166902 [22:19:16]NVStorageSaveData ofd_packets/00166902 [22:19:16]File name is /storage/ofd_packets/00166902 [22:19:16]Write 301 bytes [22:19:17]NVStorageSaveData done [22:19:17]OFDSenderStorePacket done [22:19:17]KKMCreateOFDPacket done [22:19:17]NVStorageSaveData kkm_last_timestamp [22:19:17]File name is /storage/kkm_last_timestamp [22:19:17]Write 4 bytes [22:19:17]NVStorageSaveData done [22:19:17]ExternCall_PrintAddStr [22:19:17]wPrintStart [22:19:17]Write to MH i2c: 01 00 00 00 4C 4C [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 07 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 07 00 00 4C 00 00 00 00 00 FF 0F 61 [22:19:17]RasterBufferAndPrint [22:19:17]line Счет N : (1)221488 [22:19:17]line ИНН: 02508201610067 [22:19:17]line Контрольно-Кассовый Чек [22:19:17]line ПРОДАЖА [22:19:17]line ТРК (МРК, ГНК) : 34 [22:19:17]line Товар: 2710124500 [22:19:17]line Аи-95-К-5 [22:19:17]line 26.960 * 74.20 [22:19:17]line = 2000.43 [22:19:17]line НДС 12% НСП 1% [22:19:17]line > о реализуемом товаре [22:19:17]line ОКРУГЛЕНИЕ: -0.43 [22:19:17]line ИТОГО: 2000.00 [22:19:17]line Внесено: 2000.00 [22:19:17]line СДАЧА: 0.00 [22:19:17]line НСП 1% : 17.70 [22:19:17]line НДС 12% : 212.43 [22:19:17]line Наличными: 2000.00 [22:19:17]line Безнал.: 0.00 [22:19:17]line Место: АЗС № 161 "Партнер Нефть" [22:19:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:19:17]line СНО: Общий режим [22:19:17]line Чек 317 23.10.2024 22:19 [22:19:17]line Смена: 537 ФФД: 1.0 [22:19:17]line ЗНМ: 0300000104 [22:19:17]line РНМ: 0000000000091764 [22:19:17]line Версия ККМ: 001 [22:19:17]line ФМ: 0000000000871759 [22:19:17]line ФД: 166902 [22:19:17]line ФПД: 109904636780573 [22:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166902&fm=109904636780573&tin=02508201610067®Number=0000000000091764&sum=200000 [22:19:17]OFD Sender: Processing packet 166902 [packets to send 48, broken 47] [22:19:17]ProducePacketName [22:19:17]name=ofd_packets/00166902 [22:19:17]OFD Sender: To server: pG, [22:19:17]CommunicateWithHost lk.salyk.kg:30040 [22:19:17]ConnectInit lk.salyk.kg [22:19:17]written 0, free lines is 4095 [22:19:17]Connected sock=10 [22:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D D0 07 01 30 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 66 76 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8B 02 00 35 04 06 00 63 F5 2A D5 A0 1D 78 FF 05 43 BC D5 94 60 [22:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 8E 47 00 AB 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 8B 02 00 F4 03 04 00 CC 1C 19 67 B6 04 01 00 00 B6 85 C4 C1 6E 54 13 20 [22:19:17]CommunicateWithHost err = 0 [22:19:17]CheckOFDResponse [22:19:17]1017 (14) - 77093643461234 [22:19:17]1041 (16) - 0000000000871759 [22:19:17]1040 (4) - 166902 [22:19:17]1012 (4) - 23.10.2024 15:57 [22:19:17]1206 (1) - 0 [22:19:17]OFD Sender: Remove packet 166902 [22:19:17]ProducePacketName [22:19:17]name=ofd_packets/00166902 [22:19:17]NVStorageDeleteData [22:19:17]Write to MH i2c: 01 00 00 2B 4C 77 [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 07 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: 01 07 00 2B 4C 00 00 00 00 00 B0 0C 3A [22:19:17]RasterBufferAndPrint [22:19:17]line [22:19:17]line [22:19:17]line [22:19:17]line [22:19:17]line [22:19:17]written 0, free lines is 3254 [22:19:17]MH_Cut [22:19:17]Write to MH i2c: D1 01 00 32 4C 01 50 [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: D1 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: D1 01 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: D1 01 00 32 4C 00 4F [22:19:17]Write to MH i2c: 01 00 00 33 4C 7F [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:18]OFD Sender: No OFD packet to send [22:19:18]*** Cut start [22:19:18]*** Partial cut [22:19:18]*** CUTSNS_PIN = 1 [22:19:18]*** CUTSNS_PIN = 0 [22:19:18]*** Brake cut motor [22:19:19]Read from MH i2c: 01 [22:19:19]MH_I2C_Read... [22:19:19]*** Stop cut motor [22:19:19]*** Cut end [22:19:19]Read from MH i2c: 01 07 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: 01 07 00 33 4C 00 00 00 00 00 FF 0F 94 [22:19:19]process_action close_receipt done [22:19:19]requested_data is exist [22:19:19]produce_requested_data [22:19:19]requested_item fm.sn is exist - process it [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 11 00 00 [22:19:19]Write to MH i2c: E2 08 00 34 4C 80 11 00 00 00 00 00 00 FA [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:19]Read from MH i2c: E2 17 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 17 00 34 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [22:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:19:19]wFMCommunicate OK [22:19:19]requested_item fd.num is exist - process it [22:19:19]SAM_PROTO_GetFieldsCounters [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 13 00 00 [22:19:19]Write to MH i2c: E2 08 00 35 4C 80 13 00 00 00 00 00 00 FD [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 62 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 62 00 35 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [22:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:19]wFMCommunicate OK [22:19:19]SAM_PROTO_GetFieldsCounters done [22:19:19]requested_item shift.num is exist - process it [22:19:19]requested_item shift.opened is exist - process it [22:19:19]req_shift_opened [22:19:19]FM_GetShiftState [22:19:19]SAM_PROTO_GetShiftState [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 13 01 00 [22:19:19]Write to MH i2c: E2 08 00 36 4C 80 13 01 00 00 00 00 00 FF [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 0E 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 0E 00 36 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CA [22:19:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:19:19]wFMCommunicate OK [22:19:19]SAM_PROTO_GetShiftState done [22:19:19]FM_GetShiftState done [22:19:19]req_shift_opened done [22:19:19]requested_item shift.open_date is exist - process it [22:19:19]req_shift_open_date [22:19:19]req_shift_open_date done [22:19:19]produce_requested_data done [22:19:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166902,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:19:19]process_action_free close_receipt [22:19:19]json_value_free [22:19:19]json_value_free done [22:19:19]process_json_proto returns [22:19:19]Send response to host [22:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166902,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:19:19]free response buf [22:19:19]execute_script done [22:19:19]execute_script returns [22:19:19]free content buf [22:19:19]Sock 8.Close socket [22:19:19]Sock 8.Thread stoped [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21: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:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:39]accept exits with 9 [22:39:39]New connection [22:39:39]New thread 3067034980 created [22:39:39]Thread 3067178340 joined [22:39:39]Waiting for new connection... [22:39:39] Sock 9.Parse request [22:39:39]Sock 9.Check first char [22:39:39]Sock 9.First char is OK [22:39:39]request: POST /json_proto HTTP/1.0 [22:39:39]Method: POST [22:39:39]URL: /json_proto [22:39:39]Method is POST - this is cgi request [22:39:39]url: /json_proto [22:39:39]query_string will be loaded in cgi processing [22:39:39]execute_cgi json_proto POST (null) [22:39:39]execute_cgi path=json_proto method=POST [22:39:39]POST find Content-Length [22:39:39]Host: 172.17.53.195:8080 [22:39:39]Content-Length: 766 [22:39:39]Content-Type: application/json [22:39:39] [22:39:39]POST finish read [22:39:39]Found Content-Length = 766 [22:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:39]execute_script... [22:39: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)221489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:39]POST & json_proto [22:39:39]process_json_proto [22:39:39]json parsed OK: [22:39:39]protocol is kg_v1.0 [22:39:39]action value=close_receipt [22:39:39]process_action close_receipt [22:39:39]cmd_close_receipt [22:39:39]MH_GetDate [22:39:39]Write to MH i2c: F0 00 00 37 4C 72 [22:39:39]Write i2c OK [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: F0 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: F0 09 00 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: F0 09 00 37 4C 00 2F 7B 19 67 21 48 4A 65 BD [22:39:39]GetLastDocTimeStamp 1729721958 [22:39:39]current date 1729723183 [22:39:39]FM_GetShiftState [22:39:39]SAM_PROTO_GetShiftState [22:39:39]wFMCommunicate request_size=4 [22:39:39]MH_SAM_APDU [22:39:39]CAPDU: 80 13 01 00 [22:39:39]Write to MH i2c: E2 08 00 38 4C 80 13 01 00 00 00 00 00 01 [22:39:39]Write i2c OK [22:39:39]MH_I2C_Read... [22:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:39]Read from MH i2c: E2 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: E2 0E 00 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: E2 0E 00 38 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 CC [22:39:39]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:39:39]wFMCommunicate OK [22:39:39]SAM_PROTO_GetShiftState done [22:39:39]FM_GetShiftState done [22:39:39]opened in 1729643772 [22:39:39]opened+sec_in_day 1729730172 [22:39:39]quantity*price = 200025 [22:39:39]sum+1 = 200026 [22:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 318 23.10.2024 22:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166903 ФПД: 127555889084131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166903&fm=127555889084131&tin=02508201610067®Number=0000000000091764&sum=200025 [22:39:40]StoreToDocumentArchive [22:39:40]shift 537 fd 166903 [22:39:40]save to /storage/0537/doc_00166903 [22:39:40]save last doc name /storage/0537/doc_00166903 to /storage/kkm_last_doc_name [22:39:40]save OK [22:39:40]Clear old archive folders... [22:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:39:40]tlvbuf is 0206D060 [22:39:40]SAM_PROTO_ClearQueue [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 09 00 00 [22:39:40]Write to MH i2c: E2 08 00 45 4C 80 09 00 00 00 00 00 00 03 [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 03 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [22:39:40]RAPDU: 90 00 [22:39:40]wFMCommunicate OK [22:39:40]SAM_PROTO_ClearQueue done [22:39:40]KKMCreateOFDPacket [22:39:40]OFDProtocolAddRootSTLVToBuf [22:39:40]FM_MakeSignedData [22:39:40]FM_MakeSignedData [22:39:40]SAM_PROTO_SignData [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 0D 01 02 [22:39:40]Write to MH i2c: E2 08 00 46 4C 80 0D 01 02 00 00 00 00 0B [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 03 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 03 00 46 4C 00 90 00 06 [22:39:40]RAPDU: 90 00 [22:39:40]wFMCommunicate OK [22:39:40]wFMCommunicate request_size=255 [22:39:40]MH_SAM_APDU [22:39: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 2F 7B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8B 02 00 35 04 06 00 74 02 EB 75 [22:39:40]Write to MH i2c: E2 02 01 47 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 2F 7B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8B 02 00 35 04 06 00 74 02 EB 75 00 00 95 [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 03 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 03 00 47 4C 00 90 00 07 [22:39:41]RAPDU: 90 00 [22:39:41]wFMCommunicate OK [22:39:41]wFMCommunicate request_size=7 [22:39:41]MH_SAM_APDU [22:39:41]CAPDU: 80 0D 02 02 02 36 E3 [22:39:41]Write to MH i2c: E2 0A 00 48 4C 80 0D 02 02 02 00 36 E3 00 00 2B [22:39:41]Write i2c OK [22:39:41]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 03 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 03 00 48 4C 00 90 00 08 [22:39:41]RAPDU: 90 00 [22:39:41]wFMCommunicate OK [22:39:41]wFMCommunicate request_size=4 [22:39:41]MH_SAM_APDU [22:39:41]CAPDU: 80 0D 03 02 [22:39:41]Write to MH i2c: E2 08 00 49 4C 80 0D 03 02 00 00 00 00 10 [22:39:41]Write i2c OK [22:39:41]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 0B 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 0B 00 49 4C 00 F2 9F 58 05 17 9E 53 69 90 00 70 [22:39:41]RAPDU: F2 9F 58 05 17 9E 53 69 90 00 [22:39:41]wFMCommunicate OK [22:39:41]SAM_PROTO_SignData done [22:39:41]FM_MakeSignedData done [22:39:41]CreateOFDProtocolMessage [22:39:41]wFMCommunicate request_size=4 [22:39:41]MH_SAM_APDU [22:39:41]CAPDU: 80 11 00 00 [22:39:41]Write to MH i2c: E2 08 00 4A 4C 80 11 00 00 00 00 00 00 10 [22:39:41]Write i2c OK [22:39:41]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 17 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 17 00 4A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [22:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:39:41]wFMCommunicate OK [22:39:41]CreateOFDProtocolMessage done [22:39:41]OFDSenderStorePacket 166903 [22:39:41]StoreOFDPacket docnum=166903 [22:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5D 0E 04 01 DB 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 2F 7B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8B 02 00 35 04 06 00 74 02 EB 75 36 E3 F2 9F 58 05 17 9E 53 69 [22:39:41]CheckFolder [22:39:41]dirname=/storage/ofd_packets [22:39:41]CheckFolder done [22:39:41]ProducePacketName [22:39:41]name=ofd_packets/00166903 [22:39:41]NVStorageSaveData ofd_packets/00166903 [22:39:41]File name is /storage/ofd_packets/00166903 [22:39:41]Write 298 bytes [22:39:41]NVStorageSaveData done [22:39:41]OFDSenderStorePacket done [22:39:41]KKMCreateOFDPacket done [22:39:41]NVStorageSaveData kkm_last_timestamp [22:39:41]File name is /storage/kkm_last_timestamp [22:39:41]Write 4 bytes [22:39:41]NVStorageSaveData done [22:39:41]ExternCall_PrintAddStr [22:39:41]wPrintStart [22:39:41]Write to MH i2c: 01 00 00 4B 4C 97 [22:39:41]Write i2c OK [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: 01 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: 01 07 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: 01 07 00 4B 4C 00 00 00 00 00 FF 0F AC [22:39:41]RasterBufferAndPrint [22:39:41]line Счет N : (1)221489 [22:39:41]line ИНН: 02508201610067 [22:39:41]line Контрольно-Кассовый Чек [22:39:41]line ПРОДАЖА [22:39:41]line ТРК (МРК, ГНК) : 31 [22:39:41]line Товар: 2710194210 [22:39:41]line ДТ-К-5 [22:39:41]line 26.250 * 76.20 [22:39:41]line = 2000.25 [22:39:41]line НДС 12% НСП 1% [22:39:41]line > о реализуемом товаре [22:39:41]line ИТОГО: 2000.25 [22:39:41]line НСП 1% : 17.70 [22:39:41]line НДС 12% : 212.42 [22:39:41]line Наличными: 0.00 [22:39:41]line Безнал.: 2000.25 [22:39:41]line Место: АЗС № 161 "Партнер Нефть" [22:39:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:39:41]line СНО: Общий режим [22:39:41]line Чек 318 23.10.2024 22:39 [22:39:41]line Смена: 537 ФФД: 1.0 [22:39:41]line ЗНМ: 0300000104 [22:39:41]line РНМ: 0000000000091764 [22:39:41]line Версия ККМ: 001 [22:39:41]line Платежная система: Mbank [22:39:41]line ФМ: 0000000000871759 [22:39:41]line ФД: 166903 [22:39:41]line ФПД: 127555889084131 [22:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166903&fm=127555889084131&tin=02508201610067®Number=0000000000091764&sum=200025 [22:39:41]OFD Sender: Processing packet 166903 [packets to send 48, broken 47] [22:39:41]ProducePacketName [22:39:41]name=ofd_packets/00166903 [22:39:41]OFD Sender: To server: pG, [22:39:41]CommunicateWithHost lk.salyk.kg:30040 [22:39:41]ConnectInit lk.salyk.kg [22:39:41]written 0, free lines is 4095 [22:39:41]Connected sock=10 [22:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5D 0E 04 01 DB 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 2F 7B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8B 02 00 35 04 06 00 74 02 EB 75 36 E3 F2 9F 58 05 17 9E 53 69 [22:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 13 C2 47 00 30 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 8B 02 00 F4 03 04 00 95 21 19 67 B6 04 01 00 00 4D B3 CF 18 86 A2 4A 3E [22:39:42]CommunicateWithHost err = 0 [22:39:42]CheckOFDResponse [22:39:42]1017 (14) - 77093643461234 [22:39:42]1041 (16) - 0000000000871759 [22:39:42]1040 (4) - 166903 [22:39:42]1012 (4) - 23.10.2024 16:17 [22:39:42]1206 (1) - 0 [22:39:42]OFD Sender: Remove packet 166903 [22:39:42]ProducePacketName [22:39:42]name=ofd_packets/00166903 [22:39:42]NVStorageDeleteData [22:39:42]Write to MH i2c: 01 00 00 74 4C C0 [22:39:42]Write i2c OK [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: 01 [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: 01 07 00 [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: 01 07 00 74 4C 00 00 00 00 00 D5 0C A8 [22:39:42]RasterBufferAndPrint [22:39:42]line [22:39:42]line [22:39:42]line [22:39:42]line [22:39:42]line [22:39:42]written 0, free lines is 3290 [22:39:42]MH_Cut [22:39:42]Write to MH i2c: D1 01 00 7B 4C 01 99 [22:39:42]Write i2c OK [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: D1 [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: D1 01 00 [22:39:42]MH_I2C_Read... [22:39:42]Read from MH i2c: D1 01 00 7B 4C 00 98 [22:39:42]Write to MH i2c: 01 00 00 7C 4C C8 [22:39:42]Write i2c OK [22:39:42]MH_I2C_Read... [22:39:42]OFD Sender: No OFD packet to send [22:39:43]*** Cut start [22:39:43]*** Partial cut [22:39:43]*** CUTSNS_PIN = 1 [22:39:43]*** CUTSNS_PIN = 0 [22:39:43]*** Brake cut motor [22:39:43]Read from MH i2c: 01 [22:39:43]MH_I2C_Read... [22:39:43]*** Stop cut motor [22:39:43]*** Cut end [22:39:43]Read from MH i2c: 01 07 00 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: 01 07 00 7C 4C 00 00 00 00 00 FF 0F DD [22:39:43]process_action close_receipt done [22:39:43]requested_data is exist [22:39:43]produce_requested_data [22:39:43]requested_item fm.sn is exist - process it [22:39:43]wFMCommunicate request_size=4 [22:39:43]MH_SAM_APDU [22:39:43]CAPDU: 80 11 00 00 [22:39:43]Write to MH i2c: E2 08 00 7D 4C 80 11 00 00 00 00 00 00 43 [22:39:43]Write i2c OK [22:39:43]MH_I2C_Read... [22:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:43]Read from MH i2c: E2 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 17 00 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 17 00 7D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [22:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:39:43]wFMCommunicate OK [22:39:43]requested_item fd.num is exist - process it [22:39:43]SAM_PROTO_GetFieldsCounters [22:39:43]wFMCommunicate request_size=4 [22:39:43]MH_SAM_APDU [22:39:43]CAPDU: 80 13 00 00 [22:39:43]Write to MH i2c: E2 08 00 7E 4C 80 13 00 00 00 00 00 00 46 [22:39:43]Write i2c OK [22:39:43]MH_I2C_Read... [22:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:43]Read from MH i2c: E2 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 62 00 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 62 00 7E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [22:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:43]wFMCommunicate OK [22:39:43]SAM_PROTO_GetFieldsCounters done [22:39:43]requested_item shift.num is exist - process it [22:39:43]requested_item shift.opened is exist - process it [22:39:43]req_shift_opened [22:39:43]FM_GetShiftState [22:39:43]SAM_PROTO_GetShiftState [22:39:43]wFMCommunicate request_size=4 [22:39:43]MH_SAM_APDU [22:39:43]CAPDU: 80 13 01 00 [22:39:43]Write to MH i2c: E2 08 00 7F 4C 80 13 01 00 00 00 00 00 48 [22:39:43]Write i2c OK [22:39:43]MH_I2C_Read... [22:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:43]Read from MH i2c: E2 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 0E 00 [22:39:43]MH_I2C_Read... [22:39:43]Read from MH i2c: E2 0E 00 7F 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 13 [22:39:43]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:39:43]wFMCommunicate OK [22:39:43]SAM_PROTO_GetShiftState done [22:39:43]FM_GetShiftState done [22:39:43]req_shift_opened done [22:39:43]requested_item shift.open_date is exist - process it [22:39:43]req_shift_open_date [22:39:43]req_shift_open_date done [22:39:43]produce_requested_data done [22:39:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166903,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:39:43]process_action_free close_receipt [22:39:43]json_value_free [22:39:43]json_value_free done [22:39:43]process_json_proto returns [22:39:43]Send response to host [22:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166903,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:39:43]free response buf [22:39:43]execute_script done [22:39:43]execute_script returns [22:39:43]free content buf [22:39:43]Sock 9.Close socket [22:39:43]Sock 9.Thread stoped [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:41]accept exits with 8 [22:47:41]New connection [22:47:41]New thread 3067178340 created [22:47:41]Thread 3067034980 joined [22:47:41]Waiting for new connection... [22:47:41] Sock 8.Parse request [22:47:41]Sock 8.Check first char [22:47:41]Sock 8.First char is OK [22:47:41]request: POST /json_proto HTTP/1.0 [22:47:41]Method: POST [22:47:41]URL: /json_proto [22:47:41]Method is POST - this is cgi request [22:47:41]url: /json_proto [22:47:41]query_string will be loaded in cgi processing [22:47:41]execute_cgi json_proto POST (null) [22:47:41]execute_cgi path=json_proto method=POST [22:47:41]POST find Content-Length [22:47:41]Host: 172.17.53.195:8080 [22:47:41]Content-Length: 766 [22:47:41]Content-Type: application/json [22:47:41] [22:47:41]POST finish read [22:47:41]Found Content-Length = 766 [22:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:41]execute_script... [22:47: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)221490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:41]POST & json_proto [22:47:41]process_json_proto [22:47:41]json parsed OK: [22:47:41]protocol is kg_v1.0 [22:47:41]action value=close_receipt [22:47:41]process_action close_receipt [22:47:41]cmd_close_receipt [22:47:41]MH_GetDate [22:47:41]Write to MH i2c: F0 00 00 80 4C BB [22:47:41]Write i2c OK [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: F0 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: F0 09 00 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: F0 09 00 80 4C 00 11 7D 19 67 21 48 4A 65 EA [22:47:41]GetLastDocTimeStamp 1729723183 [22:47:41]current date 1729723665 [22:47:41]FM_GetShiftState [22:47:41]SAM_PROTO_GetShiftState [22:47:41]wFMCommunicate request_size=4 [22:47:41]MH_SAM_APDU [22:47:41]CAPDU: 80 13 01 00 [22:47:41]Write to MH i2c: E2 08 00 81 4C 80 13 01 00 00 00 00 00 4A [22:47:41]Write i2c OK [22:47:41]MH_I2C_Read... [22:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:41]Read from MH i2c: E2 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 0E 00 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 0E 00 81 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 15 [22:47:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:47:41]wFMCommunicate OK [22:47:41]SAM_PROTO_GetShiftState done [22:47:41]FM_GetShiftState done [22:47:41]opened in 1729643772 [22:47:41]opened+sec_in_day 1729730172 [22:47:41]quantity*price = 50041 [22:47:41]sum+1 = 50042 [22:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 319 23.10.2024 22:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166904 ФПД: 124827041520131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224745&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166904&fm=124827041520131&tin=02508201610067®Number=0000000000091764&sum=50041 [22:47:42]StoreToDocumentArchive [22:47:42]shift 537 fd 166904 [22:47:42]save to /storage/0537/doc_00166904 [22:47:42]save last doc name /storage/0537/doc_00166904 to /storage/kkm_last_doc_name [22:47:42]save OK [22:47:42]Clear old archive folders... [22:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:42]tlvbuf is 0211DDD0 [22:47:42]SAM_PROTO_ClearQueue [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 09 00 00 [22:47:42]Write to MH i2c: E2 08 00 8E 4C 80 09 00 00 00 00 00 00 4C [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:43]OFD Sender: No OFD packet to send [22:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 8E 4C 00 90 00 4E [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]SAM_PROTO_ClearQueue done [22:47:43]KKMCreateOFDPacket [22:47:43]OFDProtocolAddRootSTLVToBuf [22:47:43]FM_MakeSignedData [22:47:43]FM_MakeSignedData [22:47:43]SAM_PROTO_SignData [22:47:43]wFMCommunicate request_size=4 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 0D 01 02 [22:47:43]Write to MH i2c: E2 08 00 8F 4C 80 0D 01 02 00 00 00 00 54 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 8F 4C 00 90 00 4F [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]wFMCommunicate request_size=255 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 11 7D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8B 02 00 35 04 06 00 71 [22:47:43]Write to MH i2c: E2 02 01 90 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 11 7D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8B 02 00 35 04 06 00 71 00 00 9B [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 90 4C 00 90 00 50 [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]wFMCommunicate request_size=10 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 0D 02 02 05 87 8F 77 DA 03 [22:47:43]Write to MH i2c: E2 0D 00 91 4C 80 0D 02 02 05 00 87 8F 77 DA 03 00 00 CB [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 91 4C 00 90 00 51 [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]wFMCommunicate request_size=4 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 0D 03 02 [22:47:43]Write to MH i2c: E2 08 00 92 4C 80 0D 03 02 00 00 00 00 59 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 0B 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 0B 00 92 4C 00 E8 6F A5 89 12 A9 EF B1 90 00 3A [22:47:43]RAPDU: E8 6F A5 89 12 A9 EF B1 90 00 [22:47:43]wFMCommunicate OK [22:47:43]SAM_PROTO_SignData done [22:47:43]FM_MakeSignedData done [22:47:43]CreateOFDProtocolMessage [22:47:43]wFMCommunicate request_size=4 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 11 00 00 [22:47:43]Write to MH i2c: E2 08 00 93 4C 80 11 00 00 00 00 00 00 59 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 17 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 17 00 93 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [22:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:47:43]wFMCommunicate OK [22:47:43]CreateOFDProtocolMessage done [22:47:43]OFDSenderStorePacket 166904 [22:47:43]StoreOFDPacket docnum=166904 [22:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C3 8E 07 01 AD 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 11 7D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8B 02 00 35 04 06 00 71 87 8F 77 DA 03 E8 6F A5 89 12 A9 EF B1 [22:47:43]CheckFolder [22:47:43]dirname=/storage/ofd_packets [22:47:43]CheckFolder done [22:47:43]ProducePacketName [22:47:43]name=ofd_packets/00166904 [22:47:43]NVStorageSaveData ofd_packets/00166904 [22:47:43]File name is /storage/ofd_packets/00166904 [22:47:43]Write 301 bytes [22:47:43]NVStorageSaveData done [22:47:43]OFDSenderStorePacket done [22:47:43]KKMCreateOFDPacket done [22:47:43]NVStorageSaveData kkm_last_timestamp [22:47:43]File name is /storage/kkm_last_timestamp [22:47:43]Write 4 bytes [22:47:43]NVStorageSaveData done [22:47:43]ExternCall_PrintAddStr [22:47:43]wPrintStart [22:47:43]Write to MH i2c: 01 00 00 94 4C E0 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 07 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 FF 0F F5 [22:47:43]RasterBufferAndPrint [22:47:43]line Счет N : (1)221490 [22:47:43]line ИНН: 02508201610067 [22:47:43]line Контрольно-Кассовый Чек [22:47:43]line ПРОДАЖА [22:47:43]line ТРК (МРК, ГНК) : 23 [22:47:43]line Товар: 2710124130 [22:47:43]line Аи-92-К-5 [22:47:43]line 7.480 * 66.90 [22:47:43]line = 500.41 [22:47:43]line НДС 12% НСП 1% [22:47:43]line > о реализуемом товаре [22:47:43]line ИТОГО: 500.41 [22:47:43]line НСП 1% : 4.43 [22:47:43]line НДС 12% : 53.14 [22:47:43]line Наличными: 0.00 [22:47:43]line Безнал.: 500.41 [22:47:43]line Место: АЗС № 161 "Партнер Нефть" [22:47:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:47:43]line СНО: Общий режим [22:47:43]line Чек 319 23.10.2024 22:47 [22:47:43]line Смена: 537 ФФД: 1.0 [22:47:43]line ЗНМ: 0300000104 [22:47:43]line РНМ: 0000000000091764 [22:47:43]line Версия ККМ: 001 [22:47:43]line Платежная система: Mbank [22:47:43]line ФМ: 0000000000871759 [22:47:43]line ФД: 166904 [22:47:43]line ФПД: 124827041520131 [22:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224745&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166904&fm=124827041520131&tin=02508201610067®Number=0000000000091764&sum=50041 [22:47:43]OFD Sender: Processing packet 166904 [packets to send 48, broken 47] [22:47:43]ProducePacketName [22:47:43]name=ofd_packets/00166904 [22:47:43]OFD Sender: To server: pG, [22:47:43]CommunicateWithHost lk.salyk.kg:30040 [22:47:43]ConnectInit lk.salyk.kg [22:47:43]written 0, free lines is 4095 [22:47:43]Connected sock=10 [22:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C3 8E 07 01 AD 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 11 7D 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8B 02 00 35 04 06 00 71 87 8F 77 DA 03 E8 6F A5 89 12 A9 EF B1 [22:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E 98 47 00 17 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 8B 02 00 F4 03 04 00 77 23 19 67 B6 04 01 00 00 08 0C 57 39 30 C2 6F DB [22:47:44]CommunicateWithHost err = 0 [22:47:44]CheckOFDResponse [22:47:44]1017 (14) - 77093643461234 [22:47:44]1041 (16) - 0000000000871759 [22:47:44]1040 (4) - 166904 [22:47:44]1012 (4) - 23.10.2024 16:25 [22:47:44]1206 (1) - 0 [22:47:44]OFD Sender: Remove packet 166904 [22:47:44]ProducePacketName [22:47:44]name=ofd_packets/00166904 [22:47:44]NVStorageDeleteData [22:47:44]Write to MH i2c: 01 00 00 BD 4C 09 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 BD 4C 00 00 00 00 00 CA 0C E6 [22:47:44]RasterBufferAndPrint [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]written 0, free lines is 3280 [22:47:44]MH_Cut [22:47:44]Write to MH i2c: D1 01 00 C4 4C 01 E2 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 01 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 01 00 C4 4C 00 E1 [22:47:44]Write to MH i2c: 01 00 00 C5 4C 11 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]OFD Sender: No OFD packet to send [22:47:45]*** Cut start [22:47:45]*** Partial cut [22:47:45]*** CUTSNS_PIN = 1 [22:47:45]*** CUTSNS_PIN = 0 [22:47:45]*** Brake cut motor [22:47:45]Read from MH i2c: 01 [22:47:45]MH_I2C_Read... [22:47:45]*** Stop cut motor [22:47:45]*** Cut end [22:47:45]Read from MH i2c: 01 07 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: 01 07 00 C5 4C 00 00 00 00 00 FF 0F 26 [22:47:45]process_action close_receipt done [22:47:45]requested_data is exist [22:47:45]produce_requested_data [22:47:45]requested_item fm.sn is exist - process it [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 11 00 00 [22:47:45]Write to MH i2c: E2 08 00 C6 4C 80 11 00 00 00 00 00 00 8C [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 17 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 17 00 C6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [22:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:47:45]wFMCommunicate OK [22:47:45]requested_item fd.num is exist - process it [22:47:45]SAM_PROTO_GetFieldsCounters [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 13 00 00 [22:47:45]Write to MH i2c: E2 08 00 C7 4C 80 13 00 00 00 00 00 00 8F [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 62 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 62 00 C7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [22:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:45]wFMCommunicate OK [22:47:45]SAM_PROTO_GetFieldsCounters done [22:47:45]requested_item shift.num is exist - process it [22:47:45]requested_item shift.opened is exist - process it [22:47:45]req_shift_opened [22:47:45]FM_GetShiftState [22:47:45]SAM_PROTO_GetShiftState [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 13 01 00 [22:47:45]Write to MH i2c: E2 08 00 C8 4C 80 13 01 00 00 00 00 00 91 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 C8 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5C [22:47:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:47:45]wFMCommunicate OK [22:47:45]SAM_PROTO_GetShiftState done [22:47:45]FM_GetShiftState done [22:47:45]req_shift_opened done [22:47:45]requested_item shift.open_date is exist - process it [22:47:45]req_shift_open_date [22:47:45]req_shift_open_date done [22:47:45]produce_requested_data done [22:47:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166904,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:47:46]process_action_free close_receipt [22:47:46]json_value_free [22:47:46]json_value_free done [22:47:46]process_json_proto returns [22:47:46]Send response to host [22:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166904,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:47:46]free response buf [22:47:46]execute_script done [22:47:46]execute_script returns [22:47:46]free content buf [22:47:46]Sock 8.Close socket [22:47:46]Sock 8.Thread stoped [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:44]accept exits with 9 [22:57:44]New connection [22:57:44]New thread 3067034980 created [22:57:44]Thread 3067178340 joined [22:57:44]Waiting for new connection... [22:57:44] Sock 9.Parse request [22:57:44]Sock 9.Check first char [22:57:44]Sock 9.First char is OK [22:57:44]request: POST /json_proto HTTP/1.0 [22:57:44]Method: POST [22:57:44]URL: /json_proto [22:57:44]Method is POST - this is cgi request [22:57:44]url: /json_proto [22:57:44]query_string will be loaded in cgi processing [22:57:44]execute_cgi json_proto POST (null) [22:57:44]execute_cgi path=json_proto method=POST [22:57:44]POST find Content-Length [22:57:44]Host: 172.17.53.195:8080 [22:57:44]Content-Length: 682 [22:57:44]Content-Type: application/json [22:57:44] [22:57:44]POST finish read [22:57:44]Found Content-Length = 682 [22:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:44]execute_script... [22:57: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)221491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:44]POST & json_proto [22:57:44]process_json_proto [22:57:44]json parsed OK: [22:57:44]protocol is kg_v1.0 [22:57:44]action value=close_receipt [22:57:44]process_action close_receipt [22:57:44]cmd_close_receipt [22:57:44]MH_GetDate [22:57:44]Write to MH i2c: F0 00 00 C9 4C 04 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: F0 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: F0 09 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: F0 09 00 C9 4C 00 6C 7F 19 67 21 48 4A 65 90 [22:57:44]GetLastDocTimeStamp 1729723665 [22:57:44]current date 1729724268 [22:57:44]FM_GetShiftState [22:57:44]SAM_PROTO_GetShiftState [22:57:44]wFMCommunicate request_size=4 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 13 01 00 [22:57:44]Write to MH i2c: E2 08 00 CA 4C 80 13 01 00 00 00 00 00 93 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 0E 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 0E 00 CA 4C 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 5E [22:57:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:57:44]wFMCommunicate OK [22:57:44]SAM_PROTO_GetShiftState done [22:57:44]FM_GetShiftState done [22:57:44]opened in 1729643772 [22:57:44]opened+sec_in_day 1729730172 [22:57:44]quantity*price = 100015 [22:57:44]sum+1 = 100017 [22:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 320 23.10.2024 22:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166905 ФПД: 37382950750063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166905&fm=37382950750063&tin=02508201610067®Number=0000000000091764&sum=100000 [22:57:46]StoreToDocumentArchive [22:57:46]shift 537 fd 166905 [22:57:46]save to /storage/0537/doc_00166905 [22:57:46]save last doc name /storage/0537/doc_00166905 to /storage/kkm_last_doc_name [22:57:46]save OK [22:57:46]Clear old archive folders... [22:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:46]tlvbuf is 021201E0 [22:57:46]SAM_PROTO_ClearQueue [22:57:46]wFMCommunicate request_size=4 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 09 00 00 [22:57:46]Write to MH i2c: E2 08 00 D7 4C 80 09 00 00 00 00 00 00 95 [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 D7 4C 00 90 00 97 [22:57:46]RAPDU: 90 00 [22:57:46]wFMCommunicate OK [22:57:46]SAM_PROTO_ClearQueue done [22:57:46]KKMCreateOFDPacket [22:57:46]OFDProtocolAddRootSTLVToBuf [22:57:46]FM_MakeSignedData [22:57:46]FM_MakeSignedData [22:57:46]SAM_PROTO_SignData [22:57:46]wFMCommunicate request_size=4 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 0D 01 02 [22:57:46]Write to MH i2c: E2 08 00 D8 4C 80 0D 01 02 00 00 00 00 9D [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 D8 4C 00 90 00 98 [22:57:46]RAPDU: 90 00 [22:57:46]wFMCommunicate OK [22:57:46]wFMCommunicate request_size=255 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6C 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8B 02 00 35 04 06 00 21 [22:57:46]Write to MH i2c: E2 02 01 D9 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6C 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8B 02 00 35 04 06 00 21 00 00 9B [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 D9 4C 00 90 00 99 [22:57:46]RAPDU: 90 00 [22:57:46]wFMCommunicate OK [22:57:46]wFMCommunicate request_size=10 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 0D 02 02 05 FF E5 80 07 6F [22:57:46]Write to MH i2c: E2 0D 00 DA 4C 80 0D 02 02 05 00 FF E5 80 07 6F 00 00 84 [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 03 00 DA 4C 00 90 00 9A [22:57:46]RAPDU: 90 00 [22:57:46]wFMCommunicate OK [22:57:46]wFMCommunicate request_size=4 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 0D 03 02 [22:57:46]Write to MH i2c: E2 08 00 DB 4C 80 0D 03 02 00 00 00 00 A2 [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 0B 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 0B 00 DB 4C 00 AF 81 46 EE CC 51 7E 85 90 00 27 [22:57:46]RAPDU: AF 81 46 EE CC 51 7E 85 90 00 [22:57:46]wFMCommunicate OK [22:57:46]SAM_PROTO_SignData done [22:57:46]FM_MakeSignedData done [22:57:46]CreateOFDProtocolMessage [22:57:46]wFMCommunicate request_size=4 [22:57:46]MH_SAM_APDU [22:57:46]CAPDU: 80 11 00 00 [22:57:46]Write to MH i2c: E2 08 00 DC 4C 80 11 00 00 00 00 00 00 A2 [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:46]Read from MH i2c: E2 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 17 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: E2 17 00 DC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [22:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:57:46]wFMCommunicate OK [22:57:46]CreateOFDProtocolMessage done [22:57:46]OFDSenderStorePacket 166905 [22:57:46]StoreOFDPacket docnum=166905 [22:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 2E 07 01 13 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6C 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8B 02 00 35 04 06 00 21 FF E5 80 07 6F AF 81 46 EE CC 51 7E 85 [22:57:46]CheckFolder [22:57:46]dirname=/storage/ofd_packets [22:57:46]CheckFolder done [22:57:46]ProducePacketName [22:57:46]name=ofd_packets/00166905 [22:57:46]NVStorageSaveData ofd_packets/00166905 [22:57:46]File name is /storage/ofd_packets/00166905 [22:57:46]Write 301 bytes [22:57:46]NVStorageSaveData done [22:57:46]OFDSenderStorePacket done [22:57:46]KKMCreateOFDPacket done [22:57:46]NVStorageSaveData kkm_last_timestamp [22:57:46]File name is /storage/kkm_last_timestamp [22:57:46]Write 4 bytes [22:57:46]NVStorageSaveData done [22:57:46]ExternCall_PrintAddStr [22:57:46]wPrintStart [22:57:46]Write to MH i2c: 01 00 00 DD 4C 29 [22:57:46]Write i2c OK [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: 01 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: 01 07 00 [22:57:46]MH_I2C_Read... [22:57:46]Read from MH i2c: 01 07 00 DD 4C 00 00 00 00 00 FF 0F 3E [22:57:46]RasterBufferAndPrint [22:57:46]line Счет N : (1)221491 [22:57:46]line ИНН: 02508201610067 [22:57:46]line Контрольно-Кассовый Чек [22:57:46]line ПРОДАЖА [22:57:46]line ТРК (МРК, ГНК) : 23 [22:57:46]line Товар: 2710124130 [22:57:46]line Аи-92-К-5 [22:57:46]line 14.950 * 66.90 [22:57:46]line = 1000.16 [22:57:46]line НДС 12% НСП 1% [22:57:46]line > о реализуемом товаре [22:57:46]line ОКРУГЛЕНИЕ: -0.16 [22:57:46]line ИТОГО: 1000.00 [22:57:46]line Внесено: 1000.00 [22:57:46]line СДАЧА: 0.00 [22:57:46]line НСП 1% : 8.85 [22:57:46]line НДС 12% : 106.21 [22:57:46]line Наличными: 1000.00 [22:57:46]line Безнал.: 0.00 [22:57:46]line Место: АЗС № 161 "Партнер Нефть" [22:57:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:57:46]line СНО: Общий режим [22:57:46]line Чек 320 23.10.2024 22:57 [22:57:46]line Смена: 537 ФФД: 1.0 [22:57:46]line ЗНМ: 0300000104 [22:57:46]line РНМ: 0000000000091764 [22:57:46]line Версия ККМ: 001 [22:57:46]line ФМ: 0000000000871759 [22:57:46]line ФД: 166905 [22:57:46]line ФПД: 37382950750063 [22:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166905&fm=37382950750063&tin=02508201610067®Number=0000000000091764&sum=100000 [22:57:46]OFD Sender: Processing packet 166905 [packets to send 48, broken 47] [22:57:46]ProducePacketName [22:57:46]name=ofd_packets/00166905 [22:57:46]OFD Sender: To server: pG, [22:57:46]CommunicateWithHost lk.salyk.kg:30040 [22:57:46]ConnectInit lk.salyk.kg [22:57:46]written 0, free lines is 4095 [22:57:46]Connected sock=10 [22:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 2E 07 01 13 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6C 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8B 02 00 35 04 06 00 21 FF E5 80 07 6F AF 81 46 EE CC 51 7E 85 [22:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C0 12 47 00 CA C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 8B 02 00 F4 03 04 00 D2 25 19 67 B6 04 01 00 00 68 41 B2 8D F6 57 A9 58 [22:57:47]CommunicateWithHost err = 0 [22:57:47]CheckOFDResponse [22:57:47]1017 (14) - 77093643461234 [22:57:47]1041 (16) - 0000000000871759 [22:57:47]1040 (4) - 166905 [22:57:47]1012 (4) - 23.10.2024 16:35 [22:57:47]1206 (1) - 0 [22:57:47]OFD Sender: Remove packet 166905 [22:57:47]ProducePacketName [22:57:47]name=ofd_packets/00166905 [22:57:47]NVStorageDeleteData [22:57:47]Write to MH i2c: 01 00 00 08 4D 55 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 07 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 07 00 08 4D 00 00 00 00 00 AD 0C 15 [22:57:47]RasterBufferAndPrint [22:57:47]line [22:57:47]line [22:57:47]line [22:57:47]line [22:57:47]line [22:57:47]written 0, free lines is 3251 [22:57:47]MH_Cut [22:57:47]Write to MH i2c: D1 01 00 0F 4D 01 2E [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: D1 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: D1 01 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: D1 01 00 0F 4D 00 2D [22:57:47]Write to MH i2c: 01 00 00 10 4D 5D [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]OFD Sender: No OFD packet to send [22:57:48]*** Cut start [22:57:48]*** Partial cut [22:57:48]*** CUTSNS_PIN = 1 [22:57:48]*** CUTSNS_PIN = 0 [22:57:48]*** Brake cut motor [22:57:48]Read from MH i2c: 01 [22:57:48]MH_I2C_Read... [22:57:48]*** Stop cut motor [22:57:48]*** Cut end [22:57:48]Read from MH i2c: 01 07 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 07 00 10 4D 00 00 00 00 00 FF 0F 72 [22:57:48]process_action close_receipt done [22:57:48]requested_data is exist [22:57:48]produce_requested_data [22:57:48]requested_item fm.sn is exist - process it [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 11 00 00 [22:57:48]Write to MH i2c: E2 08 00 11 4D 80 11 00 00 00 00 00 00 D8 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 17 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 17 00 11 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [22:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:57:48]wFMCommunicate OK [22:57:48]requested_item fd.num is exist - process it [22:57:48]SAM_PROTO_GetFieldsCounters [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 13 00 00 [22:57:48]Write to MH i2c: E2 08 00 12 4D 80 13 00 00 00 00 00 00 DB [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:49]Read from MH i2c: E2 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 62 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 62 00 12 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:49]wFMCommunicate OK [22:57:49]SAM_PROTO_GetFieldsCounters done [22:57:49]requested_item shift.num is exist - process it [22:57:49]requested_item shift.opened is exist - process it [22:57:49]req_shift_opened [22:57:49]FM_GetShiftState [22:57:49]SAM_PROTO_GetShiftState [22:57:49]wFMCommunicate request_size=4 [22:57:49]MH_SAM_APDU [22:57:49]CAPDU: 80 13 01 00 [22:57:49]Write to MH i2c: E2 08 00 13 4D 80 13 01 00 00 00 00 00 DD [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:49]Read from MH i2c: E2 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 0E 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 0E 00 13 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 A8 [22:57:49]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:57:49]wFMCommunicate OK [22:57:49]SAM_PROTO_GetShiftState done [22:57:49]FM_GetShiftState done [22:57:49]req_shift_opened done [22:57:49]requested_item shift.open_date is exist - process it [22:57:49]req_shift_open_date [22:57:49]req_shift_open_date done [22:57:49]produce_requested_data done [22:57:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166905,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:57:49]process_action_free close_receipt [22:57:49]json_value_free [22:57:49]json_value_free done [22:57:49]process_json_proto returns [22:57:49]Send response to host [22:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166905,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:57:49]free response buf [22:57:49]execute_script done [22:57:49]execute_script returns [22:57:49]free content buf [22:57:49]Sock 9.Close socket [22:57:49]Sock 9.Thread stoped [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:11]accept exits with 8 [22:58:11]New connection [22:58:11]New thread 3067178340 created [22:58:11]Thread 3067034980 joined [22:58:11]Waiting for new connection... [22:58:11] Sock 8.Parse request [22:58:11]Sock 8.Check first char [22:58:11]Sock 8.First char is OK [22:58:11]request: POST /json_proto HTTP/1.0 [22:58:11]Method: POST [22:58:11]URL: /json_proto [22:58:11]Method is POST - this is cgi request [22:58:11]url: /json_proto [22:58:11]query_string will be loaded in cgi processing [22:58:11]execute_cgi json_proto POST (null) [22:58:11]execute_cgi path=json_proto method=POST [22:58:11]POST find Content-Length [22:58:11]Host: 172.17.53.195:8080 [22:58:11]Content-Length: 677 [22:58:11]Content-Type: application/json [22:58:11] [22:58:11]POST finish read [22:58:11]Found Content-Length = 677 [22:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:11]execute_script... [22: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)221492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:11]POST & json_proto [22:58:11]process_json_proto [22:58:11]json parsed OK: [22:58:11]protocol is kg_v1.0 [22:58:11]action value=close_receipt [22:58:11]process_action close_receipt [22:58:11]cmd_close_receipt [22:58:11]MH_GetDate [22:58:11]Write to MH i2c: F0 00 00 14 4D 50 [22:58:11]Write i2c OK [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: F0 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: F0 09 00 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: F0 09 00 14 4D 00 87 7F 19 67 21 48 4A 65 F7 [22:58:11]GetLastDocTimeStamp 1729724268 [22:58:11]current date 1729724295 [22:58:11]FM_GetShiftState [22:58:11]SAM_PROTO_GetShiftState [22:58:11]wFMCommunicate request_size=4 [22:58:11]MH_SAM_APDU [22:58:11]CAPDU: 80 13 01 00 [22:58:11]Write to MH i2c: E2 08 00 15 4D 80 13 01 00 00 00 00 00 DF [22:58:11]Write i2c OK [22:58:11]MH_I2C_Read... [22:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:11]Read from MH i2c: E2 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: E2 0E 00 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: E2 0E 00 15 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 AA [22:58:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:58:11]wFMCommunicate OK [22:58:11]SAM_PROTO_GetShiftState done [22:58:11]FM_GetShiftState done [22:58:11]opened in 1729643772 [22:58:11]opened+sec_in_day 1729730172 [22:58:11]quantity*price = 50041 [22:58:11]sum+1 = 50042 [22:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 321 23.10.2024 22:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166906 ФПД: 242559649470220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225815&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166906&fm=242559649470220&tin=02508201610067®Number=0000000000091764&sum=50000 [22:58:13]StoreToDocumentArchive [22:58:13]shift 537 fd 166906 [22:58:13]save to /storage/0537/doc_00166906 [22:58:13]save last doc name /storage/0537/doc_00166906 to /storage/kkm_last_doc_name [22:58:13]save OK [22:58:13]Clear old archive folders... [22:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:13]tlvbuf is 01F7FDC0 [22:58:13]SAM_PROTO_ClearQueue [22:58:13]wFMCommunicate request_size=4 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 09 00 00 [22:58:13]Write to MH i2c: E2 08 00 22 4D 80 09 00 00 00 00 00 00 E1 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 22 4D 00 90 00 E3 [22:58:13]RAPDU: 90 00 [22:58:13]wFMCommunicate OK [22:58:13]SAM_PROTO_ClearQueue done [22:58:13]KKMCreateOFDPacket [22:58:13]OFDProtocolAddRootSTLVToBuf [22:58:13]FM_MakeSignedData [22:58:13]FM_MakeSignedData [22:58:13]SAM_PROTO_SignData [22:58:13]wFMCommunicate request_size=4 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 0D 01 02 [22:58:13]Write to MH i2c: E2 08 00 23 4D 80 0D 01 02 00 00 00 00 E9 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 23 4D 00 90 00 E4 [22:58:13]RAPDU: 90 00 [22:58:13]wFMCommunicate OK [22:58:13]wFMCommunicate request_size=255 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 87 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8B 02 00 35 04 06 00 DC [22:58:13]Write to MH i2c: E2 02 01 24 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 87 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8B 02 00 35 04 06 00 DC 00 00 C5 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 24 4D 00 90 00 E5 [22:58:13]RAPDU: 90 00 [22:58:13]wFMCommunicate OK [22:58:13]wFMCommunicate request_size=10 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 0D 02 02 05 9B 51 BE 57 0C [22:58:13]Write to MH i2c: E2 0D 00 25 4D 80 0D 02 02 05 00 9B 51 BE 57 0C 00 00 03 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 03 00 25 4D 00 90 00 E6 [22:58:13]RAPDU: 90 00 [22:58:13]wFMCommunicate OK [22:58:13]wFMCommunicate request_size=4 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 0D 03 02 [22:58:13]Write to MH i2c: E2 08 00 26 4D 80 0D 03 02 00 00 00 00 EE [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 0B 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 0B 00 26 4D 00 34 4B B7 31 B7 8F AD B3 90 00 FC [22:58:13]RAPDU: 34 4B B7 31 B7 8F AD B3 90 00 [22:58:13]wFMCommunicate OK [22:58:13]SAM_PROTO_SignData done [22:58:13]FM_MakeSignedData done [22:58:13]CreateOFDProtocolMessage [22:58:13]wFMCommunicate request_size=4 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 11 00 00 [22:58:13]Write to MH i2c: E2 08 00 27 4D 80 11 00 00 00 00 00 00 EE [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 17 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 17 00 27 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [22:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:58:13]wFMCommunicate OK [22:58:13]CreateOFDProtocolMessage done [22:58:13]OFDSenderStorePacket 166906 [22:58:13]StoreOFDPacket docnum=166906 [22:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 9F 07 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 87 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8B 02 00 35 04 06 00 DC 9B 51 BE 57 0C 34 4B B7 31 B7 8F AD B3 [22:58:13]CheckFolder [22:58:13]dirname=/storage/ofd_packets [22:58:13]CheckFolder done [22:58:13]ProducePacketName [22:58:13]name=ofd_packets/00166906 [22:58:13]NVStorageSaveData ofd_packets/00166906 [22:58:13]File name is /storage/ofd_packets/00166906 [22:58:13]Write 301 bytes [22:58:13]NVStorageSaveData done [22:58:13]OFDSenderStorePacket done [22:58:13]KKMCreateOFDPacket done [22:58:13]NVStorageSaveData kkm_last_timestamp [22:58:13]File name is /storage/kkm_last_timestamp [22:58:13]Write 4 bytes [22:58:13]NVStorageSaveData done [22:58:13]ExternCall_PrintAddStr [22:58:13]wPrintStart [22:58:13]Write to MH i2c: 01 00 00 28 4D 75 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: 01 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: 01 07 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: 01 07 00 28 4D 00 00 00 00 00 FF 0F 8A [22:58:13]RasterBufferAndPrint [22:58:13]line Счет N : (1)221492 [22:58:13]line ИНН: 02508201610067 [22:58:13]line Контрольно-Кассовый Чек [22:58:13]line ПРОДАЖА [22:58:13]line ТРК (МРК, ГНК) : 13 [22:58:13]line Товар: 2710124130 [22:58:13]line Аи-92-К-5 [22:58:13]line 7.480 * 66.90 [22:58:13]line = 500.41 [22:58:13]line НДС 12% НСП 1% [22:58:13]line > о реализуемом товаре [22:58:13]line ОКРУГЛЕНИЕ: -0.41 [22:58:13]line ИТОГО: 500.00 [22:58:13]line Внесено: 500.00 [22:58:13]line СДАЧА: 0.00 [22:58:13]line НСП 1% : 4.43 [22:58:13]line НДС 12% : 53.14 [22:58:13]line Наличными: 500.00 [22:58:13]line Безнал.: 0.00 [22:58:13]line Место: АЗС № 161 "Партнер Нефть" [22:58:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:58:13]line СНО: Общий режим [22:58:13]line Чек 321 23.10.2024 22:58 [22:58:13]line Смена: 537 ФФД: 1.0 [22:58:13]line ЗНМ: 0300000104 [22:58:13]line РНМ: 0000000000091764 [22:58:13]line Версия ККМ: 001 [22:58:13]line ФМ: 0000000000871759 [22:58:13]line ФД: 166906 [22:58:13]line ФПД: 242559649470220 [22:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225815&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166906&fm=242559649470220&tin=02508201610067®Number=0000000000091764&sum=50000 [22:58:13]OFD Sender: Processing packet 166906 [packets to send 48, broken 47] [22:58:13]ProducePacketName [22:58:13]name=ofd_packets/00166906 [22:58:13]OFD Sender: To server: pG, [22:58:13]CommunicateWithHost lk.salyk.kg:30040 [22:58:13]ConnectInit lk.salyk.kg [22:58:13]written 0, free lines is 4095 [22:58:14]Connected sock=9 [22: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 31 37 35 39 0F 01 00 00 17 9F 07 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 87 7F 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8B 02 00 35 04 06 00 DC 9B 51 BE 57 0C 34 4B B7 31 B7 8F AD B3 [22:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C 72 47 00 85 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 8B 02 00 F4 03 04 00 ED 25 19 67 B6 04 01 00 00 E0 31 B9 A8 20 98 8C 07 [22:58:14]CommunicateWithHost err = 0 [22:58:14]CheckOFDResponse [22:58:14]1017 (14) - 77093643461234 [22:58:14]1041 (16) - 0000000000871759 [22:58:14]1040 (4) - 166906 [22:58:14]1012 (4) - 23.10.2024 16:35 [22:58:14]1206 (1) - 0 [22:58:14]OFD Sender: Remove packet 166906 [22:58:14]ProducePacketName [22:58:14]name=ofd_packets/00166906 [22:58:14]NVStorageDeleteData [22:58:14]Write to MH i2c: 01 00 00 53 4D A0 [22:58:14]Write i2c OK [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: 01 [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: 01 07 00 [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: 01 07 00 53 4D 00 00 00 00 00 A9 0C 5C [22:58:14]RasterBufferAndPrint [22:58:14]line [22:58:14]line [22:58:14]line [22:58:14]line [22:58:14]line [22:58:14]written 0, free lines is 3249 [22:58:14]MH_Cut [22:58:14]Write to MH i2c: D1 01 00 5A 4D 01 79 [22:58:14]Write i2c OK [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: D1 [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: D1 01 00 [22:58:14]MH_I2C_Read... [22:58:14]Read from MH i2c: D1 01 00 5A 4D 00 78 [22:58:14]Write to MH i2c: 01 00 00 5B 4D A8 [22:58:14]Write i2c OK [22:58:14]MH_I2C_Read... [22:58:14]OFD Sender: No OFD packet to send [22:58:15]*** Cut start [22:58:15]*** Partial cut [22:58:15]*** CUTSNS_PIN = 1 [22:58:15]*** CUTSNS_PIN = 0 [22:58:15]*** Brake cut motor [22:58:15]Read from MH i2c: 01 [22:58:15]MH_I2C_Read... [22:58:15]*** Stop cut motor [22:58:15]*** Cut end [22:58:15]Read from MH i2c: 01 07 00 [22:58:15]MH_I2C_Read... [22:58:15]Read from MH i2c: 01 07 00 5B 4D 00 00 00 00 00 FF 0F BD [22:58:15]process_action close_receipt done [22:58:15]requested_data is exist [22:58:15]produce_requested_data [22:58:15]requested_item fm.sn is exist - process it [22:58:15]wFMCommunicate request_size=4 [22:58:15]MH_SAM_APDU [22:58:15]CAPDU: 80 11 00 00 [22:58:15]Write to MH i2c: E2 08 00 5C 4D 80 11 00 00 00 00 00 00 23 [22:58:15]Write i2c OK [22:58:15]MH_I2C_Read... [22:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:15]Read from MH i2c: E2 [22:58:15]MH_I2C_Read... [22:58:15]Read from MH i2c: E2 17 00 [22:58:15]MH_I2C_Read... [22:58:15]Read from MH i2c: E2 17 00 5C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [22:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:58:15]wFMCommunicate OK [22:58:15]requested_item fd.num is exist - process it [22:58:15]SAM_PROTO_GetFieldsCounters [22:58:15]wFMCommunicate request_size=4 [22:58:15]MH_SAM_APDU [22:58:15]CAPDU: 80 13 00 00 [22:58:15]Write to MH i2c: E2 08 00 5D 4D 80 13 00 00 00 00 00 00 26 [22:58:15]Write i2c OK [22:58:15]MH_I2C_Read... [22:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:16]Read from MH i2c: E2 [22:58:16]MH_I2C_Read... [22:58:16]Read from MH i2c: E2 62 00 [22:58:16]MH_I2C_Read... [22:58:16]Read from MH i2c: E2 62 00 5D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [22: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:16]wFMCommunicate OK [22:58:16]SAM_PROTO_GetFieldsCounters done [22:58:16]requested_item shift.num is exist - process it [22:58:16]requested_item shift.opened is exist - process it [22:58:16]req_shift_opened [22:58:16]FM_GetShiftState [22:58:16]SAM_PROTO_GetShiftState [22:58:16]wFMCommunicate request_size=4 [22:58:16]MH_SAM_APDU [22:58:16]CAPDU: 80 13 01 00 [22:58:16]Write to MH i2c: E2 08 00 5E 4D 80 13 01 00 00 00 00 00 28 [22:58:16]Write i2c OK [22:58:16]MH_I2C_Read... [22:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:16]Read from MH i2c: E2 [22:58:16]MH_I2C_Read... [22:58:16]Read from MH i2c: E2 0E 00 [22:58:16]MH_I2C_Read... [22:58:16]Read from MH i2c: E2 0E 00 5E 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F3 [22:58:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [22:58:16]wFMCommunicate OK [22:58:16]SAM_PROTO_GetShiftState done [22:58:16]FM_GetShiftState done [22:58:16]req_shift_opened done [22:58:16]requested_item shift.open_date is exist - process it [22:58:16]req_shift_open_date [22:58:16]req_shift_open_date done [22:58:16]produce_requested_data done [22:58:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166906,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [22:58:16]process_action_free close_receipt [22:58:16]json_value_free [22:58:16]json_value_free done [22:58:16]process_json_proto returns [22:58:16]Send response to host [22:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166906,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [22:58:16]free response buf [22:58:16]execute_script done [22:58:16]execute_script returns [22:58:16]free content buf [22:58:16]Sock 8.Close socket [22:58:16]Sock 8.Thread stoped [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:11]accept exits with 10 [23:06:11]New connection [23:06:11]New thread 3067034980 created [23:06:11]Thread 3067178340 joined [23:06:11]Waiting for new connection... [23:06:11] Sock 10.Parse request [23:06:11]Sock 10.Check first char [23:06:11]Sock 10.First char is OK [23:06:11]request: POST /json_proto HTTP/1.0 [23:06:11]Method: POST [23:06:11]URL: /json_proto [23:06:11]Method is POST - this is cgi request [23:06:11]url: /json_proto [23:06:11]query_string will be loaded in cgi processing [23:06:11]execute_cgi json_proto POST (null) [23:06:11]execute_cgi path=json_proto method=POST [23:06:11]POST find Content-Length [23:06:11]Host: 172.17.53.195:8080 [23:06:11]Content-Length: 677 [23:06:11]Content-Type: application/json [23:06:11] [23:06:11]POST finish read [23:06:11]Found Content-Length = 677 [23:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.160, "sum" : 679.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 679.00, "payments": [ { "type": 0, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:11]execute_script... [23:06: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)221493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.160, "sum" : 679.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 679.00, "payments": [ { "type": 0, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:11]POST & json_proto [23:06:11]process_json_proto [23:06:11]json parsed OK: [23:06:11]protocol is kg_v1.0 [23:06:11]action value=close_receipt [23:06:11]process_action close_receipt [23:06:11]cmd_close_receipt [23:06:11]MH_GetDate [23:06:11]Write to MH i2c: F0 00 00 5F 4D 9B [23:06:11]Write i2c OK [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: F0 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: F0 09 00 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: F0 09 00 5F 4D 00 66 81 19 67 21 48 4A 65 23 [23:06:11]GetLastDocTimeStamp 1729724295 [23:06:11]current date 1729724774 [23:06:11]FM_GetShiftState [23:06:11]SAM_PROTO_GetShiftState [23:06:11]wFMCommunicate request_size=4 [23:06:11]MH_SAM_APDU [23:06:11]CAPDU: 80 13 01 00 [23:06:11]Write to MH i2c: E2 08 00 60 4D 80 13 01 00 00 00 00 00 2A [23:06:11]Write i2c OK [23:06:11]MH_I2C_Read... [23:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:11]Read from MH i2c: E2 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: E2 0E 00 [23:06:11]MH_I2C_Read... [23:06:11]Read from MH i2c: E2 0E 00 60 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 F5 [23:06:11]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:06:11]wFMCommunicate OK [23:06:11]SAM_PROTO_GetShiftState done [23:06:11]FM_GetShiftState done [23:06:11]opened in 1729643772 [23:06:11]opened+sec_in_day 1729730172 [23:06:11]quantity*price = 67967 [23:06:11]sum+1 = 67968 [23:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 679.00 Внесено: 680.00 СДАЧА: 1.00 НСП 1% : 6.01 НДС 12% : 72.18 Наличными: 679.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 322 23.10.2024 23:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166907 ФПД: 175264212456783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T230614&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166907&fm=175264212456783&tin=02508201610067®Number=0000000000091764&sum=67900 [23:06:12]StoreToDocumentArchive [23:06:12]shift 537 fd 166907 [23:06:12]save to /storage/0537/doc_00166907 [23:06:12]save last doc name /storage/0537/doc_00166907 to /storage/kkm_last_doc_name [23:06:12]save OK [23:06:12]Clear old archive folders... [23:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:12]tlvbuf is B6F8C560 [23:06:12]SAM_PROTO_ClearQueue [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 09 00 00 [23:06:12]Write to MH i2c: E2 08 00 6D 4D 80 09 00 00 00 00 00 00 2C [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 6D 4D 00 90 00 2E [23:06:12]RAPDU: 90 00 [23:06:12]wFMCommunicate OK [23:06:12]SAM_PROTO_ClearQueue done [23:06:12]KKMCreateOFDPacket [23:06:12]OFDProtocolAddRootSTLVToBuf [23:06:12]FM_MakeSignedData [23:06:12]FM_MakeSignedData [23:06:12]SAM_PROTO_SignData [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 0D 01 02 [23:06:12]Write to MH i2c: E2 08 00 6E 4D 80 0D 01 02 00 00 00 00 34 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 6E 4D 00 90 00 2F [23:06:12]RAPDU: 90 00 [23:06:12]wFMCommunicate OK [23:06:12]wFMCommunicate request_size=255 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 66 81 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8B 02 00 35 04 06 00 9F [23:06:12]Write to MH i2c: E2 02 01 6F 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 66 81 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8B 02 00 35 04 06 00 9F 00 00 F6 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 6F 4D 00 90 00 30 [23:06:12]RAPDU: 90 00 [23:06:12]wFMCommunicate OK [23:06:12]wFMCommunicate request_size=10 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 0D 02 02 05 66 E1 20 15 4F [23:06:12]Write to MH i2c: E2 0D 00 70 4D 80 0D 02 02 05 00 66 E1 20 15 4F 00 00 0C [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 03 00 70 4D 00 90 00 31 [23:06:12]RAPDU: 90 00 [23:06:12]wFMCommunicate OK [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 0D 03 02 [23:06:12]Write to MH i2c: E2 08 00 71 4D 80 0D 03 02 00 00 00 00 39 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 0B 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 0B 00 71 4D 00 FF FB 88 33 9B 4A 76 BD 90 00 07 [23:06:12]RAPDU: FF FB 88 33 9B 4A 76 BD 90 00 [23:06:12]wFMCommunicate OK [23:06:12]SAM_PROTO_SignData done [23:06:12]FM_MakeSignedData done [23:06:12]CreateOFDProtocolMessage [23:06:12]wFMCommunicate request_size=4 [23:06:12]MH_SAM_APDU [23:06:12]CAPDU: 80 11 00 00 [23:06:12]Write to MH i2c: E2 08 00 72 4D 80 11 00 00 00 00 00 00 39 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:12]Read from MH i2c: E2 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 17 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: E2 17 00 72 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [23:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:06:12]wFMCommunicate OK [23:06:12]CreateOFDProtocolMessage done [23:06:12]OFDSenderStorePacket 166907 [23:06:12]StoreOFDPacket docnum=166907 [23:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 9A 07 01 63 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 66 81 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8B 02 00 35 04 06 00 9F 66 E1 20 15 4F FF FB 88 33 9B 4A 76 BD [23:06:12]CheckFolder [23:06:12]dirname=/storage/ofd_packets [23:06:12]CheckFolder done [23:06:12]ProducePacketName [23:06:12]name=ofd_packets/00166907 [23:06:12]NVStorageSaveData ofd_packets/00166907 [23:06:12]File name is /storage/ofd_packets/00166907 [23:06:12]Write 301 bytes [23:06:12]NVStorageSaveData done [23:06:12]OFDSenderStorePacket done [23:06:12]KKMCreateOFDPacket done [23:06:12]NVStorageSaveData kkm_last_timestamp [23:06:12]File name is /storage/kkm_last_timestamp [23:06:12]Write 4 bytes [23:06:12]NVStorageSaveData done [23:06:12]ExternCall_PrintAddStr [23:06:12]wPrintStart [23:06:12]Write to MH i2c: 01 00 00 73 4D C0 [23:06:12]Write i2c OK [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: 01 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: 01 07 00 [23:06:12]MH_I2C_Read... [23:06:12]Read from MH i2c: 01 07 00 73 4D 00 00 00 00 00 FF 0F D5 [23:06:12]RasterBufferAndPrint [23:06:12]line Счет N : (1)221493 [23:06:12]line ИНН: 02508201610067 [23:06:12]line Контрольно-Кассовый Чек [23:06:12]line ПРОДАЖА [23:06:12]line ТРК (МРК, ГНК) : 14 [23:06:12]line Товар: 2710124500 [23:06:12]line Аи-95-К-5 [23:06:12]line 9.160 * 74.20 [23:06:12]line = 679.67 [23:06:12]line НДС 12% НСП 1% [23:06:12]line > о реализуемом товаре [23:06:12]line ОКРУГЛЕНИЕ: -0.67 [23:06:12]line ИТОГО: 679.00 [23:06:12]line Внесено: 680.00 [23:06:12]line СДАЧА: 1.00 [23:06:12]line НСП 1% : 6.01 [23:06:12]line НДС 12% : 72.18 [23:06:12]line Наличными: 679.00 [23:06:12]line Безнал.: 0.00 [23:06:12]line Место: АЗС № 161 "Партнер Нефть" [23:06:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:06:12]line СНО: Общий режим [23:06:12]line Чек 322 23.10.2024 23:06 [23:06:12]line Смена: 537 ФФД: 1.0 [23:06:12]line ЗНМ: 0300000104 [23:06:12]line РНМ: 0000000000091764 [23:06:12]line Версия ККМ: 001 [23:06:12]line ФМ: 0000000000871759 [23:06:12]line ФД: 166907 [23:06:12]line ФПД: 175264212456783 [23:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T230614&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166907&fm=175264212456783&tin=02508201610067®Number=0000000000091764&sum=67900 [23:06:13]OFD Sender: Processing packet 166907 [packets to send 48, broken 47] [23:06:13]ProducePacketName [23:06:13]name=ofd_packets/00166907 [23:06:13]OFD Sender: To server: pG, [23:06:13]CommunicateWithHost lk.salyk.kg:30040 [23:06:13]ConnectInit lk.salyk.kg [23:06:13]written 0, free lines is 4095 [23:06:13]Connected sock=9 [23:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 9A 07 01 63 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 66 81 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8B 02 00 35 04 06 00 9F 66 E1 20 15 4F FF FB 88 33 9B 4A 76 BD [23:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 8B 47 00 B2 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 8B 02 00 F4 03 04 00 CC 27 19 67 B6 04 01 00 00 6D 6E EF E3 67 4B F1 62 [23:06:13]CommunicateWithHost err = 0 [23:06:13]CheckOFDResponse [23:06:13]1017 (14) - 77093643461234 [23:06:13]1041 (16) - 0000000000871759 [23:06:13]1040 (4) - 166907 [23:06:13]1012 (4) - 23.10.2024 16:43 [23:06:13]1206 (1) - 0 [23:06:13]OFD Sender: Remove packet 166907 [23:06:13]ProducePacketName [23:06:13]name=ofd_packets/00166907 [23:06:13]NVStorageDeleteData [23:06:13]Write to MH i2c: 01 00 00 9E 4D EB [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: 01 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: 01 07 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: 01 07 00 9E 4D 00 00 00 00 00 AA 0C A8 [23:06:13]RasterBufferAndPrint [23:06:13]line [23:06:13]line [23:06:13]line [23:06:13]line [23:06:13]line [23:06:13]written 0, free lines is 3251 [23:06:13]MH_Cut [23:06:13]Write to MH i2c: D1 01 00 A5 4D 01 C4 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: D1 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: D1 01 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: D1 01 00 A5 4D 00 C3 [23:06:13]Write to MH i2c: 01 00 00 A6 4D F3 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]OFD Sender: No OFD packet to send [23:06:14]*** Cut start [23:06:14]*** Partial cut [23:06:14]*** CUTSNS_PIN = 1 [23:06:14]*** CUTSNS_PIN = 0 [23:06:14]*** Brake cut motor [23:06:15]Read from MH i2c: 01 [23:06:15]MH_I2C_Read... [23:06:15]*** Stop cut motor [23:06:15]*** Cut end [23:06:15]Read from MH i2c: 01 07 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 07 00 A6 4D 00 00 00 00 00 FF 0F 08 [23:06:15]process_action close_receipt done [23:06:15]requested_data is exist [23:06:15]produce_requested_data [23:06:15]requested_item fm.sn is exist - process it [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 11 00 00 [23:06:15]Write to MH i2c: E2 08 00 A7 4D 80 11 00 00 00 00 00 00 6E [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 17 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 17 00 A7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [23:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:06:15]wFMCommunicate OK [23:06:15]requested_item fd.num is exist - process it [23:06:15]SAM_PROTO_GetFieldsCounters [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 13 00 00 [23:06:15]Write to MH i2c: E2 08 00 A8 4D 80 13 00 00 00 00 00 00 71 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 62 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 62 00 A8 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [23:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:15]wFMCommunicate OK [23:06:15]SAM_PROTO_GetFieldsCounters done [23:06:15]requested_item shift.num is exist - process it [23:06:15]requested_item shift.opened is exist - process it [23:06:15]req_shift_opened [23:06:15]FM_GetShiftState [23:06:15]SAM_PROTO_GetShiftState [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 13 01 00 [23:06:15]Write to MH i2c: E2 08 00 A9 4D 80 13 01 00 00 00 00 00 73 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0E 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0E 00 A9 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 3E [23:06:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:06:15]wFMCommunicate OK [23:06:15]SAM_PROTO_GetShiftState done [23:06:15]FM_GetShiftState done [23:06:15]req_shift_opened done [23:06:15]requested_item shift.open_date is exist - process it [23:06:15]req_shift_open_date [23:06:15]req_shift_open_date done [23:06:15]produce_requested_data done [23:06:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166907,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:06:15]process_action_free close_receipt [23:06:15]json_value_free [23:06:15]json_value_free done [23:06:15]process_json_proto returns [23:06:15]Send response to host [23:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166907,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:06:15]free response buf [23:06:15]execute_script done [23:06:15]execute_script returns [23:06:15]free content buf [23:06:15]Sock 10.Close socket [23:06:15]Sock 10.Thread stoped [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:14]accept exits with 8 [23:11:14]New connection [23:11:14]New thread 3067178340 created [23:11:14]Thread 3067034980 joined [23:11:14]Waiting for new connection... [23:11:14] Sock 8.Parse request [23:11:14]Sock 8.Check first char [23:11:14]Sock 8.First char is OK [23:11:14]request: POST /json_proto HTTP/1.0 [23:11:14]Method: POST [23:11:14]URL: /json_proto [23:11:14]Method is POST - this is cgi request [23:11:14]url: /json_proto [23:11:14]query_string will be loaded in cgi processing [23:11:14]execute_cgi json_proto POST (null) [23:11:14]execute_cgi path=json_proto method=POST [23:11:14]POST find Content-Length [23:11:14]Host: 172.17.53.195:8080 [23:11:14]Content-Length: 769 [23:11:14]Content-Type: application/json [23:11:14] [23:11:14]POST finish read [23:11:14]Found Content-Length = 769 [23:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:14]execute_script... [23:11: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)221494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:14]POST & json_proto [23:11:14]process_json_proto [23:11:14]json parsed OK: [23:11:14]protocol is kg_v1.0 [23:11:14]action value=close_receipt [23:11:14]process_action close_receipt [23:11:14]cmd_close_receipt [23:11:14]MH_GetDate [23:11:14]Write to MH i2c: F0 00 00 AA 4D E6 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 09 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 09 00 AA 4D 00 96 82 19 67 21 48 4A 65 9F [23:11:14]GetLastDocTimeStamp 1729724774 [23:11:14]current date 1729725078 [23:11:14]FM_GetShiftState [23:11:14]SAM_PROTO_GetShiftState [23:11:14]wFMCommunicate request_size=4 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 13 01 00 [23:11:14]Write to MH i2c: E2 08 00 AB 4D 80 13 01 00 00 00 00 00 75 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:14]Read from MH i2c: E2 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 0E 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 0E 00 AB 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 40 [23:11:14]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:11:14]wFMCommunicate OK [23:11:14]SAM_PROTO_GetShiftState done [23:11:14]FM_GetShiftState done [23:11:14]opened in 1729643772 [23:11:14]opened+sec_in_day 1729730172 [23:11:14]quantity*price = 100015 [23:11:14]sum+1 = 100017 [23:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 323 23.10.2024 23:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166908 ФПД: 25916302819841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231118&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166908&fm=25916302819841&tin=02508201610067®Number=0000000000091764&sum=100016 [23:11:15]StoreToDocumentArchive [23:11:15]shift 537 fd 166908 [23:11:15]save to /storage/0537/doc_00166908 [23:11:15]save last doc name /storage/0537/doc_00166908 to /storage/kkm_last_doc_name [23:11:15]save OK [23:11:15]Clear old archive folders... [23:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:15]tlvbuf is 01FFAFF0 [23:11:15]SAM_PROTO_ClearQueue [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 09 00 00 [23:11:15]Write to MH i2c: E2 08 00 B8 4D 80 09 00 00 00 00 00 00 77 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 B8 4D 00 90 00 79 [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]SAM_PROTO_ClearQueue done [23:11:15]KKMCreateOFDPacket [23:11:15]OFDProtocolAddRootSTLVToBuf [23:11:15]FM_MakeSignedData [23:11:15]FM_MakeSignedData [23:11:15]SAM_PROTO_SignData [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 01 02 [23:11:15]Write to MH i2c: E2 08 00 B9 4D 80 0D 01 02 00 00 00 00 7F [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 B9 4D 00 90 00 7A [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=255 [23:11:15]MH_SAM_APDU [23:11: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 96 82 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8B 02 00 35 04 06 00 17 [23:11:15]Write to MH i2c: E2 02 01 BA 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 96 82 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8B 02 00 35 04 06 00 17 00 00 C6 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:16]Read from MH i2c: E2 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 03 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 03 00 BA 4D 00 90 00 7B [23:11:16]RAPDU: 90 00 [23:11:16]wFMCommunicate OK [23:11:16]wFMCommunicate request_size=10 [23:11:16]MH_SAM_APDU [23:11:16]CAPDU: 80 0D 02 02 05 92 1C 06 02 01 [23:11:16]Write to MH i2c: E2 0D 00 BB 4D 80 0D 02 02 05 00 92 1C 06 02 01 00 00 43 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:16]Read from MH i2c: E2 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 03 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 03 00 BB 4D 00 90 00 7C [23:11:16]RAPDU: 90 00 [23:11:16]wFMCommunicate OK [23:11:16]wFMCommunicate request_size=4 [23:11:16]MH_SAM_APDU [23:11:16]CAPDU: 80 0D 03 02 [23:11:16]Write to MH i2c: E2 08 00 BC 4D 80 0D 03 02 00 00 00 00 84 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:16]Read from MH i2c: E2 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 0B 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 0B 00 BC 4D 00 6E AA DC F7 51 62 D5 86 90 00 7E [23:11:16]RAPDU: 6E AA DC F7 51 62 D5 86 90 00 [23:11:16]wFMCommunicate OK [23:11:16]SAM_PROTO_SignData done [23:11:16]FM_MakeSignedData done [23:11:16]CreateOFDProtocolMessage [23:11:16]wFMCommunicate request_size=4 [23:11:16]MH_SAM_APDU [23:11:16]CAPDU: 80 11 00 00 [23:11:16]Write to MH i2c: E2 08 00 BD 4D 80 11 00 00 00 00 00 00 84 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:16]Read from MH i2c: E2 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 17 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 17 00 BD 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [23:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:16]wFMCommunicate OK [23:11:16]CreateOFDProtocolMessage done [23:11:16]OFDSenderStorePacket 166908 [23:11:16]StoreOFDPacket docnum=166908 [23:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 64 07 01 CE 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 96 82 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8B 02 00 35 04 06 00 17 92 1C 06 02 01 6E AA DC F7 51 62 D5 86 [23:11:16]CheckFolder [23:11:16]dirname=/storage/ofd_packets [23:11:16]CheckFolder done [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00166908 [23:11:16]NVStorageSaveData ofd_packets/00166908 [23:11:16]File name is /storage/ofd_packets/00166908 [23:11:16]Write 301 bytes [23:11:16]NVStorageSaveData done [23:11:16]OFDSenderStorePacket done [23:11:16]KKMCreateOFDPacket done [23:11:16]NVStorageSaveData kkm_last_timestamp [23:11:16]File name is /storage/kkm_last_timestamp [23:11:16]Write 4 bytes [23:11:16]NVStorageSaveData done [23:11:16]ExternCall_PrintAddStr [23:11:16]wPrintStart [23:11:16]Write to MH i2c: 01 00 00 BE 4D 0B [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 BE 4D 00 00 00 00 00 FF 0F 20 [23:11:16]RasterBufferAndPrint [23:11:16]line Счет N : (1)221494 [23:11:16]line ИНН: 02508201610067 [23:11:16]line Контрольно-Кассовый Чек [23:11:16]line ПРОДАЖА [23:11:16]line ТРК (МРК, ГНК) : 13 [23:11:16]line Товар: 2710124130 [23:11:16]line Аи-92-К-5 [23:11:16]line 14.950 * 66.90 [23:11:16]line = 1000.16 [23:11:16]line НДС 12% НСП 1% [23:11:16]line > о реализуемом товаре [23:11:16]line ИТОГО: 1000.16 [23:11:16]line НСП 1% : 8.85 [23:11:16]line НДС 12% : 106.21 [23:11:16]line Наличными: 0.00 [23:11:16]line Безнал.: 1000.16 [23:11:16]line Место: АЗС № 161 "Партнер Нефть" [23:11:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:11:16]line СНО: Общий режим [23:11:16]line Чек 323 23.10.2024 23:11 [23:11:16]line Смена: 537 ФФД: 1.0 [23:11:16]line ЗНМ: 0300000104 [23:11:16]line РНМ: 0000000000091764 [23:11:16]line Версия ККМ: 001 [23:11:16]line Платежная система: Mbank [23:11:16]line ФМ: 0000000000871759 [23:11:16]line ФД: 166908 [23:11:16]line ФПД: 25916302819841 [23:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231118&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166908&fm=25916302819841&tin=02508201610067®Number=0000000000091764&sum=100016 [23:11:16]written 0, free lines is 4095 [23:11:16]OFD Sender: Processing packet 166908 [packets to send 48, broken 47] [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00166908 [23:11:16]OFD Sender: To server: pG, [23:11:16]CommunicateWithHost lk.salyk.kg:30040 [23:11:16]ConnectInit lk.salyk.kg [23:11:16]Connected sock=10 [23:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 64 07 01 CE 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 96 82 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8B 02 00 35 04 06 00 17 92 1C 06 02 01 6E AA DC F7 51 62 D5 86 [23:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 5F 47 00 BD 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 8B 02 00 F4 03 04 00 FC 28 19 67 B6 04 01 00 00 FC D3 1C 93 38 38 9F 9C [23:11:16]CommunicateWithHost err = 0 [23:11:16]CheckOFDResponse [23:11:16]1017 (14) - 77093643461234 [23:11:16]1041 (16) - 0000000000871759 [23:11:16]1040 (4) - 166908 [23:11:16]1012 (4) - 23.10.2024 16:49 [23:11:16]1206 (1) - 0 [23:11:16]OFD Sender: Remove packet 166908 [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00166908 [23:11:16]NVStorageDeleteData [23:11:16]Write to MH i2c: 01 00 00 E7 4D 34 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 E7 4D 00 00 00 00 00 D1 0C 18 [23:11:17]RasterBufferAndPrint [23:11:17]line [23:11:17]line [23:11:17]line [23:11:17]line [23:11:17]line [23:11:17]written 0, free lines is 3286 [23:11:17]MH_Cut [23:11:17]Write to MH i2c: D1 01 00 EE 4D 01 0D [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: D1 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: D1 01 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: D1 01 00 EE 4D 00 0C [23:11:17]Write to MH i2c: 01 00 00 EF 4D 3C [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]OFD Sender: No OFD packet to send [23:11:17]*** Cut start [23:11:17]*** Partial cut [23:11:17]*** CUTSNS_PIN = 1 [23:11:17]*** CUTSNS_PIN = 0 [23:11:18]*** Brake cut motor [23:11:18]Read from MH i2c: 01 [23:11:18]MH_I2C_Read... [23:11:18]*** Stop cut motor [23:11:18]*** Cut end [23:11:18]Read from MH i2c: 01 07 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: 01 07 00 EF 4D 00 00 00 00 00 FF 0F 51 [23:11:18]process_action close_receipt done [23:11:18]requested_data is exist [23:11:18]produce_requested_data [23:11:18]requested_item fm.sn is exist - process it [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 11 00 00 [23:11:18]Write to MH i2c: E2 08 00 F0 4D 80 11 00 00 00 00 00 00 B7 [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 17 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 17 00 F0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [23:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:18]wFMCommunicate OK [23:11:18]requested_item fd.num is exist - process it [23:11:18]SAM_PROTO_GetFieldsCounters [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 13 00 00 [23:11:18]Write to MH i2c: E2 08 00 F1 4D 80 13 00 00 00 00 00 00 BA [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 62 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 62 00 F1 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [23:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:18]wFMCommunicate OK [23:11:18]SAM_PROTO_GetFieldsCounters done [23:11:18]requested_item shift.num is exist - process it [23:11:18]requested_item shift.opened is exist - process it [23:11:18]req_shift_opened [23:11:18]FM_GetShiftState [23:11:18]SAM_PROTO_GetShiftState [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 13 01 00 [23:11:18]Write to MH i2c: E2 08 00 F2 4D 80 13 01 00 00 00 00 00 BC [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 F2 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 87 [23:11:18]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:11:18]wFMCommunicate OK [23:11:18]SAM_PROTO_GetShiftState done [23:11:18]FM_GetShiftState done [23:11:18]req_shift_opened done [23:11:18]requested_item shift.open_date is exist - process it [23:11:18]req_shift_open_date [23:11:18]req_shift_open_date done [23:11:18]produce_requested_data done [23:11:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166908,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:11:18]process_action_free close_receipt [23:11:18]json_value_free [23:11:18]json_value_free done [23:11:18]process_json_proto returns [23:11:18]Send response to host [23:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166908,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:11:18]free response buf [23:11:18]execute_script done [23:11:18]execute_script returns [23:11:18]free content buf [23:11:18]Sock 8.Close socket [23:11:18]Sock 8.Thread stoped [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:36]accept exits with 9 [23:18:36]New connection [23:18:36]New thread 3067034980 created [23:18:36]Thread 3067178340 joined [23:18:36]Waiting for new connection... [23:18:36] Sock 9.Parse request [23:18:36]Sock 9.Check first char [23:18:36]Sock 9.First char is OK [23:18:36]request: POST /json_proto HTTP/1.0 [23:18:36]Method: POST [23:18:36]URL: /json_proto [23:18:36]Method is POST - this is cgi request [23:18:36]url: /json_proto [23:18:36]query_string will be loaded in cgi processing [23:18:36]execute_cgi json_proto POST (null) [23:18:36]execute_cgi path=json_proto method=POST [23:18:36]POST find Content-Length [23:18:36]Host: 172.17.53.195:8080 [23:18:36]Content-Length: 677 [23:18:36]Content-Type: application/json [23:18:36] [23:18:36]POST finish read [23:18:36]Found Content-Length = 677 [23:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:36]execute_script... [23:18: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)221495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:36]POST & json_proto [23:18:36]process_json_proto [23:18:36]json parsed OK: [23:18:36]protocol is kg_v1.0 [23:18:36]action value=close_receipt [23:18:36]process_action close_receipt [23:18:36]cmd_close_receipt [23:18:36]MH_GetDate [23:18:36]Write to MH i2c: F0 00 00 F3 4D 2F [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: F0 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: F0 09 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: F0 09 00 F3 4D 00 4F 84 19 67 21 48 4A 65 A3 [23:18:36]GetLastDocTimeStamp 1729725078 [23:18:36]current date 1729725519 [23:18:36]FM_GetShiftState [23:18:36]SAM_PROTO_GetShiftState [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 13 01 00 [23:18:36]Write to MH i2c: E2 08 00 F4 4D 80 13 01 00 00 00 00 00 BE [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 0E 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 0E 00 F4 4D 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 89 [23:18:36]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:18:36]wFMCommunicate OK [23:18:36]SAM_PROTO_GetShiftState done [23:18:36]FM_GetShiftState done [23:18:36]opened in 1729643772 [23:18:36]opened+sec_in_day 1729730172 [23:18:36]quantity*price = 30038 [23:18:36]sum+1 = 30039 [23:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 324 23.10.2024 23:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166909 ФПД: 130747075050484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166909&fm=130747075050484&tin=02508201610067®Number=0000000000091764&sum=30000 [23:18:37]StoreToDocumentArchive [23:18:37]shift 537 fd 166909 [23:18:37]save to /storage/0537/doc_00166909 [23:18:37]save last doc name /storage/0537/doc_00166909 to /storage/kkm_last_doc_name [23:18:37]save OK [23:18:37]Clear old archive folders... [23:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:37]tlvbuf is B6DDF690 [23:18:37]SAM_PROTO_ClearQueue [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 09 00 00 [23:18:37]Write to MH i2c: E2 08 00 01 4E 80 09 00 00 00 00 00 00 C1 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 01 4E 00 90 00 C3 [23:18:37]RAPDU: 90 00 [23:18:37]wFMCommunicate OK [23:18:37]SAM_PROTO_ClearQueue done [23:18:37]KKMCreateOFDPacket [23:18:37]OFDProtocolAddRootSTLVToBuf [23:18:37]FM_MakeSignedData [23:18:37]FM_MakeSignedData [23:18:37]SAM_PROTO_SignData [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 0D 01 02 [23:18:37]Write to MH i2c: E2 08 00 02 4E 80 0D 01 02 00 00 00 00 C9 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 02 4E 00 90 00 C4 [23:18:37]RAPDU: 90 00 [23:18:37]wFMCommunicate OK [23:18:37]wFMCommunicate request_size=255 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 4F 84 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8B 02 00 35 04 06 00 76 [23:18:37]Write to MH i2c: E2 02 01 03 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 4F 84 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8B 02 00 35 04 06 00 76 00 00 06 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 03 4E 00 90 00 C5 [23:18:37]RAPDU: 90 00 [23:18:37]wFMCommunicate OK [23:18:37]wFMCommunicate request_size=10 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 0D 02 02 05 E9 EC F6 BB F4 [23:18:37]Write to MH i2c: E2 0D 00 04 4E 80 0D 02 02 05 00 E9 EC F6 BB F4 00 00 50 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 03 00 04 4E 00 90 00 C6 [23:18:37]RAPDU: 90 00 [23:18:37]wFMCommunicate OK [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 0D 03 02 [23:18:37]Write to MH i2c: E2 08 00 05 4E 80 0D 03 02 00 00 00 00 CE [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 0B 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 0B 00 05 4E 00 51 F1 A2 33 B6 44 95 A9 90 00 1E [23:18:37]RAPDU: 51 F1 A2 33 B6 44 95 A9 90 00 [23:18:37]wFMCommunicate OK [23:18:37]SAM_PROTO_SignData done [23:18:37]FM_MakeSignedData done [23:18:37]CreateOFDProtocolMessage [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 11 00 00 [23:18:37]Write to MH i2c: E2 08 00 06 4E 80 11 00 00 00 00 00 00 CE [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 17 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 17 00 06 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [23:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:18:37]wFMCommunicate OK [23:18:37]CreateOFDProtocolMessage done [23:18:37]OFDSenderStorePacket 166909 [23:18:37]StoreOFDPacket docnum=166909 [23:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 22 07 01 C9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 4F 84 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8B 02 00 35 04 06 00 76 E9 EC F6 BB F4 51 F1 A2 33 B6 44 95 A9 [23:18:37]CheckFolder [23:18:37]dirname=/storage/ofd_packets [23:18:37]CheckFolder done [23:18:37]ProducePacketName [23:18:37]name=ofd_packets/00166909 [23:18:37]NVStorageSaveData ofd_packets/00166909 [23:18:37]File name is /storage/ofd_packets/00166909 [23:18:37]Write 301 bytes [23:18:37]NVStorageSaveData done [23:18:37]OFDSenderStorePacket done [23:18:37]KKMCreateOFDPacket done [23:18:37]NVStorageSaveData kkm_last_timestamp [23:18:37]File name is /storage/kkm_last_timestamp [23:18:37]Write 4 bytes [23:18:37]NVStorageSaveData done [23:18:37]ExternCall_PrintAddStr [23:18:37]wPrintStart [23:18:37]Write to MH i2c: 01 00 00 07 4E 55 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: 01 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: 01 07 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: 01 07 00 07 4E 00 00 00 00 00 FF 0F 6A [23:18:37]RasterBufferAndPrint [23:18:37]line Счет N : (1)221495 [23:18:37]line ИНН: 02508201610067 [23:18:37]line Контрольно-Кассовый Чек [23:18:37]line ПРОДАЖА [23:18:37]line ТРК (МРК, ГНК) : 23 [23:18:37]line Товар: 2710124130 [23:18:37]line Аи-92-К-5 [23:18:37]line 4.490 * 66.90 [23:18:37]line = 300.38 [23:18:37]line НДС 12% НСП 1% [23:18:37]line > о реализуемом товаре [23:18:37]line ОКРУГЛЕНИЕ: -0.38 [23:18:37]line ИТОГО: 300.00 [23:18:37]line Внесено: 300.00 [23:18:37]line СДАЧА: 0.00 [23:18:37]line НСП 1% : 2.66 [23:18:37]line НДС 12% : 31.90 [23:18:37]line Наличными: 300.00 [23:18:37]line Безнал.: 0.00 [23:18:37]line Место: АЗС № 161 "Партнер Нефть" [23:18:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:18:37]line СНО: Общий режим [23:18:37]line Чек 324 23.10.2024 23:18 [23:18:37]line Смена: 537 ФФД: 1.0 [23:18:37]line ЗНМ: 0300000104 [23:18:37]line РНМ: 0000000000091764 [23:18:37]line Версия ККМ: 001 [23:18:37]line ФМ: 0000000000871759 [23:18:37]line ФД: 166909 [23:18:37]line ФПД: 130747075050484 [23:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166909&fm=130747075050484&tin=02508201610067®Number=0000000000091764&sum=30000 [23:18:38]OFD Sender: Processing packet 166909 [packets to send 48, broken 47] [23:18:38]ProducePacketName [23:18:38]name=ofd_packets/00166909 [23:18:38]OFD Sender: To server: pG, [23:18:38]CommunicateWithHost lk.salyk.kg:30040 [23:18:38]ConnectInit lk.salyk.kg [23:18:38]written 0, free lines is 4095 [23:18:38]Connected sock=10 [23:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 22 07 01 C9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 4F 84 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8B 02 00 35 04 06 00 76 E9 EC F6 BB F4 51 F1 A2 33 B6 44 95 A9 [23:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 65 D7 47 00 29 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 8B 02 00 F4 03 04 00 B5 2A 19 67 B6 04 01 00 00 12 8E 56 97 20 E9 E2 2C [23:18:38]CommunicateWithHost err = 0 [23:18:38]CheckOFDResponse [23:18:38]1017 (14) - 77093643461234 [23:18:38]1041 (16) - 0000000000871759 [23:18:38]1040 (4) - 166909 [23:18:38]1012 (4) - 23.10.2024 16:56 [23:18:38]1206 (1) - 0 [23:18:38]OFD Sender: Remove packet 166909 [23:18:38]ProducePacketName [23:18:38]name=ofd_packets/00166909 [23:18:38]NVStorageDeleteData [23:18:38]Write to MH i2c: 01 00 00 32 4E 80 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: 01 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: 01 07 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: 01 07 00 32 4E 00 00 00 00 00 AA 0C 3D [23:18:38]RasterBufferAndPrint [23:18:38]line [23:18:38]line [23:18:38]line [23:18:38]line [23:18:38]line [23:18:38]written 0, free lines is 3248 [23:18:38]MH_Cut [23:18:38]Write to MH i2c: D1 01 00 39 4E 01 59 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: D1 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: D1 01 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: D1 01 00 39 4E 00 58 [23:18:38]Write to MH i2c: 01 00 00 3A 4E 88 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]OFD Sender: No OFD packet to send [23:18:39]*** Cut start [23:18:39]*** Partial cut [23:18:39]*** CUTSNS_PIN = 1 [23:18:39]*** CUTSNS_PIN = 0 [23:18:39]*** Brake cut motor [23:18:40]Read from MH i2c: 01 [23:18:40]MH_I2C_Read... [23:18:40]*** Stop cut motor [23:18:40]*** Cut end [23:18:40]Read from MH i2c: 01 07 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: 01 07 00 3A 4E 00 00 00 00 00 FF 0F 9D [23:18:40]process_action close_receipt done [23:18:40]requested_data is exist [23:18:40]produce_requested_data [23:18:40]requested_item fm.sn is exist - process it [23:18:40]wFMCommunicate request_size=4 [23:18:40]MH_SAM_APDU [23:18:40]CAPDU: 80 11 00 00 [23:18:40]Write to MH i2c: E2 08 00 3B 4E 80 11 00 00 00 00 00 00 03 [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 17 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 17 00 3B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [23:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:18:40]wFMCommunicate OK [23:18:40]requested_item fd.num is exist - process it [23:18:40]SAM_PROTO_GetFieldsCounters [23:18:40]wFMCommunicate request_size=4 [23:18:40]MH_SAM_APDU [23:18:40]CAPDU: 80 13 00 00 [23:18:40]Write to MH i2c: E2 08 00 3C 4E 80 13 00 00 00 00 00 00 06 [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 62 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 62 00 3C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [23:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:40]wFMCommunicate OK [23:18:40]SAM_PROTO_GetFieldsCounters done [23:18:40]requested_item shift.num is exist - process it [23:18:40]requested_item shift.opened is exist - process it [23:18:40]req_shift_opened [23:18:40]FM_GetShiftState [23:18:40]SAM_PROTO_GetShiftState [23:18:40]wFMCommunicate request_size=4 [23:18:40]MH_SAM_APDU [23:18:40]CAPDU: 80 13 01 00 [23:18:40]Write to MH i2c: E2 08 00 3D 4E 80 13 01 00 00 00 00 00 08 [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 0E 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 0E 00 3D 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D3 [23:18:40]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:18:40]wFMCommunicate OK [23:18:40]SAM_PROTO_GetShiftState done [23:18:40]FM_GetShiftState done [23:18:40]req_shift_opened done [23:18:40]requested_item shift.open_date is exist - process it [23:18:40]req_shift_open_date [23:18:40]req_shift_open_date done [23:18:40]produce_requested_data done [23:18:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166909,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:18:40]process_action_free close_receipt [23:18:40]json_value_free [23:18:40]json_value_free done [23:18:40]process_json_proto returns [23:18:40]Send response to host [23:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166909,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:18:40]free response buf [23:18:40]execute_script done [23:18:40]execute_script returns [23:18:40]free content buf [23:18:40]Sock 9.Close socket [23:18:40]Sock 9.Thread stoped [23:18:43]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:20]accept exits with 8 [23:25:20]New connection [23:25:20]New thread 3067178340 created [23:25:20]Thread 3067034980 joined [23:25:20]Waiting for new connection... [23:25:20] Sock 8.Parse request [23:25:20]Sock 8.Check first char [23:25:20]Sock 8.First char is OK [23:25:20]request: POST /json_proto HTTP/1.0 [23:25:20]Method: POST [23:25:20]URL: /json_proto [23:25:20]Method is POST - this is cgi request [23:25:20]url: /json_proto [23:25:20]query_string will be loaded in cgi processing [23:25:20]execute_cgi json_proto POST (null) [23:25:20]execute_cgi path=json_proto method=POST [23:25:20]POST find Content-Length [23:25:20]Host: 172.17.53.195:8080 [23:25:20]Content-Length: 676 [23:25:20]Content-Type: application/json [23:25:20] [23:25:20]POST finish read [23:25:20]Found Content-Length = 676 [23:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:20]execute_script... [23:25: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)221496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:20]POST & json_proto [23:25:20]process_json_proto [23:25:20]json parsed OK: [23:25:20]protocol is kg_v1.0 [23:25:20]action value=close_receipt [23:25:20]process_action close_receipt [23:25:20]cmd_close_receipt [23:25:20]MH_GetDate [23:25:20]Write to MH i2c: F0 00 00 3E 4E 7B [23:25:20]Write i2c OK [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: F0 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: F0 09 00 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: F0 09 00 3E 4E 00 E3 85 19 67 21 48 4A 65 84 [23:25:20]GetLastDocTimeStamp 1729725519 [23:25:20]current date 1729725923 [23:25:20]FM_GetShiftState [23:25:20]SAM_PROTO_GetShiftState [23:25:20]wFMCommunicate request_size=4 [23:25:20]MH_SAM_APDU [23:25:20]CAPDU: 80 13 01 00 [23:25:20]Write to MH i2c: E2 08 00 3F 4E 80 13 01 00 00 00 00 00 0A [23:25:20]Write i2c OK [23:25:20]MH_I2C_Read... [23:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:20]Read from MH i2c: E2 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: E2 0E 00 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: E2 0E 00 3F 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D5 [23:25:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:25:20]wFMCommunicate OK [23:25:20]SAM_PROTO_GetShiftState done [23:25:20]FM_GetShiftState done [23:25:20]opened in 1729643772 [23:25:20]opened+sec_in_day 1729730172 [23:25:20]quantity*price = 99974 [23:25:20]sum+1 = 99975 [23:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 325 23.10.2024 23:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166910 ФПД: 43840637687445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166910&fm=43840637687445&tin=02508201610067®Number=0000000000091764&sum=99900 [23:25:21]StoreToDocumentArchive [23:25:21]shift 537 fd 166910 [23:25:21]save to /storage/0537/doc_00166910 [23:25:21]save last doc name /storage/0537/doc_00166910 to /storage/kkm_last_doc_name [23:25:21]save OK [23:25:21]Clear old archive folders... [23:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:25:21]tlvbuf is 02114380 [23:25:21]SAM_PROTO_ClearQueue [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 09 00 00 [23:25:21]Write to MH i2c: E2 08 00 4C 4E 80 09 00 00 00 00 00 00 0C [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 4C 4E 00 90 00 0E [23:25:21]RAPDU: 90 00 [23:25:21]wFMCommunicate OK [23:25:21]SAM_PROTO_ClearQueue done [23:25:21]KKMCreateOFDPacket [23:25:21]OFDProtocolAddRootSTLVToBuf [23:25:21]FM_MakeSignedData [23:25:21]FM_MakeSignedData [23:25:21]SAM_PROTO_SignData [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 0D 01 02 [23:25:21]Write to MH i2c: E2 08 00 4D 4E 80 0D 01 02 00 00 00 00 14 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 4D 4E 00 90 00 0F [23:25:21]RAPDU: 90 00 [23:25:21]wFMCommunicate OK [23:25:21]wFMCommunicate request_size=255 [23:25:21]MH_SAM_APDU [23:25: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E3 85 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8B 02 00 35 04 06 00 27 DF 71 A2 [23:25:21]Write to MH i2c: E2 02 01 4E 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E3 85 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8B 02 00 35 04 06 00 27 DF 71 A2 00 00 66 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 4E 4E 00 90 00 10 [23:25:21]RAPDU: 90 00 [23:25:21]wFMCommunicate OK [23:25:21]wFMCommunicate request_size=7 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 0D 02 02 02 D6 95 [23:25:21]Write to MH i2c: E2 0A 00 4F 4E 80 0D 02 02 02 00 D6 95 00 00 86 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 03 00 4F 4E 00 90 00 11 [23:25:21]RAPDU: 90 00 [23:25:21]wFMCommunicate OK [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 0D 03 02 [23:25:21]Write to MH i2c: E2 08 00 50 4E 80 0D 03 02 00 00 00 00 19 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 0B 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 0B 00 50 4E 00 0F D9 4A EB CA 5A 82 19 90 00 F6 [23:25:21]RAPDU: 0F D9 4A EB CA 5A 82 19 90 00 [23:25:21]wFMCommunicate OK [23:25:21]SAM_PROTO_SignData done [23:25:21]FM_MakeSignedData done [23:25:21]CreateOFDProtocolMessage [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 11 00 00 [23:25:21]Write to MH i2c: E2 08 00 51 4E 80 11 00 00 00 00 00 00 19 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 17 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 17 00 51 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [23:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:25:21]wFMCommunicate OK [23:25:21]CreateOFDProtocolMessage done [23:25:21]OFDSenderStorePacket 166910 [23:25:21]StoreOFDPacket docnum=166910 [23:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 E1 04 01 EE B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E3 85 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8B 02 00 35 04 06 00 27 DF 71 A2 D6 95 0F D9 4A EB CA 5A 82 19 [23:25:21]CheckFolder [23:25:21]dirname=/storage/ofd_packets [23:25:21]CheckFolder done [23:25:21]ProducePacketName [23:25:21]name=ofd_packets/00166910 [23:25:21]NVStorageSaveData ofd_packets/00166910 [23:25:21]File name is /storage/ofd_packets/00166910 [23:25:21]Write 298 bytes [23:25:21]NVStorageSaveData done [23:25:21]OFDSenderStorePacket done [23:25:21]KKMCreateOFDPacket done [23:25:21]NVStorageSaveData kkm_last_timestamp [23:25:21]File name is /storage/kkm_last_timestamp [23:25:21]Write 4 bytes [23:25:21]NVStorageSaveData done [23:25:21]ExternCall_PrintAddStr [23:25:21]wPrintStart [23:25:21]Write to MH i2c: 01 00 00 52 4E A0 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: 01 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: 01 07 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: 01 07 00 52 4E 00 00 00 00 00 FF 0F B5 [23:25:21]RasterBufferAndPrint [23:25:21]line Счет N : (1)221496 [23:25:21]line ИНН: 02508201610067 [23:25:21]line Контрольно-Кассовый Чек [23:25:21]line ПРОДАЖА [23:25:21]line ТРК (МРК, ГНК) : 11 [23:25:21]line Товар: 2710194210 [23:25:21]line ДТ-К-5 [23:25:21]line 13.120 * 76.20 [23:25:21]line = 999.74 [23:25:21]line НДС 12% НСП 1% [23:25:21]line > о реализуемом товаре [23:25:21]line ОКРУГЛЕНИЕ: -0.74 [23:25:21]line ИТОГО: 999.00 [23:25:21]line Внесено: 1000.00 [23:25:21]line СДАЧА: 1.00 [23:25:21]line НСП 1% : 8.85 [23:25:21]line НДС 12% : 106.17 [23:25:21]line Наличными: 999.00 [23:25:21]line Безнал.: 0.00 [23:25:21]line Место: АЗС № 161 "Партнер Нефть" [23:25:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:25:21]line СНО: Общий режим [23:25:21]line Чек 325 23.10.2024 23:25 [23:25:21]line Смена: 537 ФФД: 1.0 [23:25:21]line ЗНМ: 0300000104 [23:25:21]line РНМ: 0000000000091764 [23:25:21]line Версия ККМ: 001 [23:25:21]line ФМ: 0000000000871759 [23:25:21]line ФД: 166910 [23:25:21]line ФПД: 43840637687445 [23:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166910&fm=43840637687445&tin=02508201610067®Number=0000000000091764&sum=99900 [23:25:22]OFD Sender: Processing packet 166910 [packets to send 48, broken 47] [23:25:22]ProducePacketName [23:25:22]name=ofd_packets/00166910 [23:25:22]OFD Sender: To server: pG, [23:25:22]CommunicateWithHost lk.salyk.kg:30040 [23:25:22]ConnectInit lk.salyk.kg [23:25:22]written 0, free lines is 4095 [23:25:22]Connected sock=10 [23:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 E1 04 01 EE B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E3 85 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8B 02 00 35 04 06 00 27 DF 71 A2 D6 95 0F D9 4A EB CA 5A 82 19 [23:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2D 2D 47 00 2F B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 8B 02 00 F4 03 04 00 49 2C 19 67 B6 04 01 00 00 AD D8 BD 80 48 5C 28 AA [23:25:22]CommunicateWithHost err = 0 [23:25:22]CheckOFDResponse [23:25:22]1017 (14) - 77093643461234 [23:25:22]1041 (16) - 0000000000871759 [23:25:22]1040 (4) - 166910 [23:25:22]1012 (4) - 23.10.2024 17:03 [23:25:22]1206 (1) - 0 [23:25:22]OFD Sender: Remove packet 166910 [23:25:22]ProducePacketName [23:25:22]name=ofd_packets/00166910 [23:25:22]NVStorageDeleteData [23:25:22]Write to MH i2c: 01 00 00 7D 4E CB [23:25:22]Write i2c OK [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: 01 [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: 01 07 00 [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: 01 07 00 7D 4E 00 00 00 00 00 A9 0C 87 [23:25:22]RasterBufferAndPrint [23:25:22]line [23:25:22]line [23:25:22]line [23:25:22]line [23:25:22]line [23:25:22]written 0, free lines is 3246 [23:25:22]MH_Cut [23:25:22]Write to MH i2c: D1 01 00 84 4E 01 A4 [23:25:22]Write i2c OK [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: D1 [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: D1 01 00 [23:25:22]MH_I2C_Read... [23:25:22]Read from MH i2c: D1 01 00 84 4E 00 A3 [23:25:22]Write to MH i2c: 01 00 00 85 4E D3 [23:25:22]Write i2c OK [23:25:22]MH_I2C_Read... [23:25:22]OFD Sender: No OFD packet to send [23:25:23]*** Cut start [23:25:23]*** Partial cut [23:25:23]*** CUTSNS_PIN = 1 [23:25:23]*** CUTSNS_PIN = 0 [23:25:23]*** Brake cut motor [23:25:24]Read from MH i2c: 01 [23:25:24]MH_I2C_Read... [23:25:24]*** Stop cut motor [23:25:24]*** Cut end [23:25:24]Read from MH i2c: 01 07 00 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: 01 07 00 85 4E 00 00 00 00 00 FF 0F E8 [23:25:24]process_action close_receipt done [23:25:24]requested_data is exist [23:25:24]produce_requested_data [23:25:24]requested_item fm.sn is exist - process it [23:25:24]wFMCommunicate request_size=4 [23:25:24]MH_SAM_APDU [23:25:24]CAPDU: 80 11 00 00 [23:25:24]Write to MH i2c: E2 08 00 86 4E 80 11 00 00 00 00 00 00 4E [23:25:24]Write i2c OK [23:25:24]MH_I2C_Read... [23:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:24]Read from MH i2c: E2 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 17 00 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 17 00 86 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [23:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:25:24]wFMCommunicate OK [23:25:24]requested_item fd.num is exist - process it [23:25:24]SAM_PROTO_GetFieldsCounters [23:25:24]wFMCommunicate request_size=4 [23:25:24]MH_SAM_APDU [23:25:24]CAPDU: 80 13 00 00 [23:25:24]Write to MH i2c: E2 08 00 87 4E 80 13 00 00 00 00 00 00 51 [23:25:24]Write i2c OK [23:25:24]MH_I2C_Read... [23:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:24]Read from MH i2c: E2 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 62 00 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 62 00 87 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [23:25:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:24]wFMCommunicate OK [23:25:24]SAM_PROTO_GetFieldsCounters done [23:25:24]requested_item shift.num is exist - process it [23:25:24]requested_item shift.opened is exist - process it [23:25:24]req_shift_opened [23:25:24]FM_GetShiftState [23:25:24]SAM_PROTO_GetShiftState [23:25:24]wFMCommunicate request_size=4 [23:25:24]MH_SAM_APDU [23:25:24]CAPDU: 80 13 01 00 [23:25:24]Write to MH i2c: E2 08 00 88 4E 80 13 01 00 00 00 00 00 53 [23:25:24]Write i2c OK [23:25:24]MH_I2C_Read... [23:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:24]Read from MH i2c: E2 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 0E 00 [23:25:24]MH_I2C_Read... [23:25:24]Read from MH i2c: E2 0E 00 88 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1E [23:25:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:25:24]wFMCommunicate OK [23:25:24]SAM_PROTO_GetShiftState done [23:25:24]FM_GetShiftState done [23:25:24]req_shift_opened done [23:25:24]requested_item shift.open_date is exist - process it [23:25:24]req_shift_open_date [23:25:24]req_shift_open_date done [23:25:24]produce_requested_data done [23:25:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166910,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:25:24]process_action_free close_receipt [23:25:24]json_value_free [23:25:24]json_value_free done [23:25:24]process_json_proto returns [23:25:24]Send response to host [23:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166910,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:25:24]free response buf [23:25:24]execute_script done [23:25:24]execute_script returns [23:25:24]free content buf [23:25:24]Sock 8.Close socket [23:25:24]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26: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:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:44]accept exits with 9 [23:34:44]New connection [23:34:44]New thread 3067034980 created [23:34:44]Thread 3067178340 joined [23:34:44]Waiting for new connection... [23:34:44] Sock 9.Parse request [23:34:44]Sock 9.Check first char [23:34:44]Sock 9.First char is OK [23:34:44]request: POST /json_proto HTTP/1.0 [23:34:44]Method: POST [23:34:44]URL: /json_proto [23:34:44]Method is POST - this is cgi request [23:34:44]url: /json_proto [23:34:44]query_string will be loaded in cgi processing [23:34:44]execute_cgi json_proto POST (null) [23:34:44]execute_cgi path=json_proto method=POST [23:34:44]POST find Content-Length [23:34:44]Host: 172.17.53.195:8080 [23:34:44]Content-Length: 677 [23:34:44]Content-Type: application/json [23:34:44] [23:34:44]POST finish read [23:34:44]Found Content-Length = 677 [23:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:44]execute_script... [23:34: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)221497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:44]POST & json_proto [23:34:44]process_json_proto [23:34:44]json parsed OK: [23:34:44]protocol is kg_v1.0 [23:34:44]action value=close_receipt [23:34:44]process_action close_receipt [23:34:44]cmd_close_receipt [23:34:44]MH_GetDate [23:34:44]Write to MH i2c: F0 00 00 89 4E C6 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 09 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 09 00 89 4E 00 17 88 19 67 21 48 4A 65 06 [23:34:44]GetLastDocTimeStamp 1729725923 [23:34:44]current date 1729726487 [23:34:44]FM_GetShiftState [23:34:44]SAM_PROTO_GetShiftState [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 13 01 00 [23:34:44]Write to MH i2c: E2 08 00 8A 4E 80 13 01 00 00 00 00 00 55 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0E 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0E 00 8A 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 20 [23:34:44]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:34:44]wFMCommunicate OK [23:34:44]SAM_PROTO_GetShiftState done [23:34:44]FM_GetShiftState done [23:34:44]opened in 1729643772 [23:34:44]opened+sec_in_day 1729730172 [23:34:44]quantity*price = 50041 [23:34:44]sum+1 = 50042 [23:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 326 23.10.2024 23:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166911 ФПД: 225089873090499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233448&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166911&fm=225089873090499&tin=02508201610067®Number=0000000000091764&sum=50000 [23:34:45]StoreToDocumentArchive [23:34:45]shift 537 fd 166911 [23:34:45]save to /storage/0537/doc_00166911 [23:34:45]save last doc name /storage/0537/doc_00166911 to /storage/kkm_last_doc_name [23:34:45]save OK [23:34:45]Clear old archive folders... [23:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:45]tlvbuf is 0206D310 [23:34:45]SAM_PROTO_ClearQueue [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 09 00 00 [23:34:45]Write to MH i2c: E2 08 00 97 4E 80 09 00 00 00 00 00 00 57 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 97 4E 00 90 00 59 [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]SAM_PROTO_ClearQueue done [23:34:45]KKMCreateOFDPacket [23:34:45]OFDProtocolAddRootSTLVToBuf [23:34:45]FM_MakeSignedData [23:34:45]FM_MakeSignedData [23:34:45]SAM_PROTO_SignData [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 01 02 [23:34:45]Write to MH i2c: E2 08 00 98 4E 80 0D 01 02 00 00 00 00 5F [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 98 4E 00 90 00 5A [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]wFMCommunicate request_size=255 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 18 88 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8B 02 00 35 04 06 00 CC [23:34:45]Write to MH i2c: E2 02 01 99 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 18 88 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8B 02 00 35 04 06 00 CC 00 00 CF [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 99 4E 00 90 00 5B [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]wFMCommunicate request_size=10 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 02 02 05 B7 D1 ED 97 C3 [23:34:45]Write to MH i2c: E2 0D 00 9A 4E 80 0D 02 02 05 00 B7 D1 ED 97 C3 00 00 3B [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 9A 4E 00 90 00 5C [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 03 02 [23:34:45]Write to MH i2c: E2 08 00 9B 4E 80 0D 03 02 00 00 00 00 64 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 0B 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 0B 00 9B 4E 00 6D 46 43 31 5B A5 6B 52 90 00 49 [23:34:45]RAPDU: 6D 46 43 31 5B A5 6B 52 90 00 [23:34:45]wFMCommunicate OK [23:34:45]SAM_PROTO_SignData done [23:34:45]FM_MakeSignedData done [23:34:45]CreateOFDProtocolMessage [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 11 00 00 [23:34:45]Write to MH i2c: E2 08 00 9C 4E 80 11 00 00 00 00 00 00 64 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 17 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 17 00 9C 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [23:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:34:46]wFMCommunicate OK [23:34:46]CreateOFDProtocolMessage done [23:34:46]OFDSenderStorePacket 166911 [23:34:46]StoreOFDPacket docnum=166911 [23:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 16 07 01 1D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 18 88 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8B 02 00 35 04 06 00 CC B7 D1 ED 97 C3 6D 46 43 31 5B A5 6B 52 [23:34:46]CheckFolder [23:34:46]dirname=/storage/ofd_packets [23:34:46]CheckFolder done [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00166911 [23:34:46]NVStorageSaveData ofd_packets/00166911 [23:34:46]File name is /storage/ofd_packets/00166911 [23:34:46]Write 301 bytes [23:34:46]NVStorageSaveData done [23:34:46]OFDSenderStorePacket done [23:34:46]KKMCreateOFDPacket done [23:34:46]NVStorageSaveData kkm_last_timestamp [23:34:46]File name is /storage/kkm_last_timestamp [23:34:46]Write 4 bytes [23:34:46]NVStorageSaveData done [23:34:46]ExternCall_PrintAddStr [23:34:46]wPrintStart [23:34:46]Write to MH i2c: 01 00 00 9D 4E EB [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 9D 4E 00 00 00 00 00 FF 0F 00 [23:34:46]RasterBufferAndPrint [23:34:46]line Счет N : (1)221497 [23:34:46]line ИНН: 02508201610067 [23:34:46]line Контрольно-Кассовый Чек [23:34:46]line ПРОДАЖА [23:34:46]line ТРК (МРК, ГНК) : 23 [23:34:46]line Товар: 2710124130 [23:34:46]line Аи-92-К-5 [23:34:46]line 7.480 * 66.90 [23:34:46]line = 500.41 [23:34:46]line НДС 12% НСП 1% [23:34:46]line > о реализуемом товаре [23:34:46]line ОКРУГЛЕНИЕ: -0.41 [23:34:46]line ИТОГО: 500.00 [23:34:46]line Внесено: 500.00 [23:34:46]line СДАЧА: 0.00 [23:34:46]line НСП 1% : 4.43 [23:34:46]line НДС 12% : 53.14 [23:34:46]line Наличными: 500.00 [23:34:46]line Безнал.: 0.00 [23:34:46]line Место: АЗС № 161 "Партнер Нефть" [23:34:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:34:46]line СНО: Общий режим [23:34:46]line Чек 326 23.10.2024 23:34 [23:34:46]line Смена: 537 ФФД: 1.0 [23:34:46]line ЗНМ: 0300000104 [23:34:46]line РНМ: 0000000000091764 [23:34:46]line Версия ККМ: 001 [23:34:46]line ФМ: 0000000000871759 [23:34:46]line ФД: 166911 [23:34:46]line ФПД: 225089873090499 [23:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233448&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166911&fm=225089873090499&tin=02508201610067®Number=0000000000091764&sum=50000 [23:34:46]OFD Sender: Processing packet 166911 [packets to send 48, broken 47] [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00166911 [23:34:46]OFD Sender: To server: pG, [23:34:46]CommunicateWithHost lk.salyk.kg:30040 [23:34:46]ConnectInit lk.salyk.kg [23:34:46]written 0, free lines is 4095 [23:34:46]Connected sock=10 [23:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 16 07 01 1D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 18 88 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8B 02 00 35 04 06 00 CC B7 D1 ED 97 C3 6D 46 43 31 5B A5 6B 52 [23:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4D 28 47 00 AD 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 8B 02 00 F4 03 04 00 7E 2E 19 67 B6 04 01 00 00 23 31 2B F3 80 16 A4 46 [23:34:46]CommunicateWithHost err = 0 [23:34:46]CheckOFDResponse [23:34:46]1017 (14) - 77093643461234 [23:34:46]1041 (16) - 0000000000871759 [23:34:46]1040 (4) - 166911 [23:34:46]1012 (4) - 23.10.2024 17:12 [23:34:46]1206 (1) - 0 [23:34:46]OFD Sender: Remove packet 166911 [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00166911 [23:34:46]NVStorageDeleteData [23:34:46]Write to MH i2c: 01 00 00 C8 4E 16 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 C8 4E 00 00 00 00 00 C2 0C EB [23:34:46]RasterBufferAndPrint [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]written 0, free lines is 3272 [23:34:46]MH_Cut [23:34:46]Write to MH i2c: D1 01 00 CF 4E 01 EF [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 01 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 01 00 CF 4E 00 EE [23:34:46]Write to MH i2c: 01 00 00 D0 4E 1E [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:47]OFD Sender: No OFD packet to send [23:34:47]*** Cut start [23:34:47]*** Partial cut [23:34:47]*** CUTSNS_PIN = 1 [23:34:47]*** CUTSNS_PIN = 0 [23:34:47]*** Brake cut motor [23:34:48]Read from MH i2c: 01 [23:34:48]MH_I2C_Read... [23:34:48]*** Stop cut motor [23:34:48]*** Cut end [23:34:48]Read from MH i2c: 01 07 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: 01 07 00 D0 4E 00 00 00 00 00 FF 0F 33 [23:34:48]process_action close_receipt done [23:34:48]requested_data is exist [23:34:48]produce_requested_data [23:34:48]requested_item fm.sn is exist - process it [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 11 00 00 [23:34:48]Write to MH i2c: E2 08 00 D1 4E 80 11 00 00 00 00 00 00 99 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 D1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [23:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:34:48]wFMCommunicate OK [23:34:48]requested_item fd.num is exist - process it [23:34:48]SAM_PROTO_GetFieldsCounters [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 00 00 [23:34:48]Write to MH i2c: E2 08 00 D2 4E 80 13 00 00 00 00 00 00 9C [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 D2 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 8B 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetFieldsCounters done [23:34:48]requested_item shift.num is exist - process it [23:34:48]requested_item shift.opened is exist - process it [23:34:48]req_shift_opened [23:34:48]FM_GetShiftState [23:34:48]SAM_PROTO_GetShiftState [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 01 00 [23:34:48]Write to MH i2c: E2 08 00 D3 4E 80 13 01 00 00 00 00 00 9E [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 D3 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 69 [23:34:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetShiftState done [23:34:48]FM_GetShiftState done [23:34:48]req_shift_opened done [23:34:48]requested_item shift.open_date is exist - process it [23:34:48]req_shift_open_date [23:34:48]req_shift_open_date done [23:34:48]produce_requested_data done [23:34:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166911,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:34:48]process_action_free close_receipt [23:34:48]json_value_free [23:34:48]json_value_free done [23:34:48]process_json_proto returns [23:34:48]Send response to host [23:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166911,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:34:48]free response buf [23:34:48]execute_script done [23:34:48]execute_script returns [23:34:48]free content buf [23:34:48]Sock 9.Close socket [23:34:48]Sock 9.Thread stoped [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]accept exits with 8 [23:44:37]New connection [23:44:37]New thread 3067178340 created [23:44:37]Thread 3067034980 joined [23:44:37]Waiting for new connection... [23:44:37] Sock 8.Parse request [23:44:37]Sock 8.Check first char [23:44:37]Sock 8.First char is OK [23:44:37]request: POST /json_proto HTTP/1.0 [23:44:37]Method: POST [23:44:37]URL: /json_proto [23:44:37]Method is POST - this is cgi request [23:44:37]url: /json_proto [23:44:37]query_string will be loaded in cgi processing [23:44:37]execute_cgi json_proto POST (null) [23:44:37]execute_cgi path=json_proto method=POST [23:44:37]POST find Content-Length [23:44:37]Host: 172.17.53.195:8080 [23:44:37]Content-Length: 679 [23:44:37]Content-Type: application/json [23:44:37] [23:44:37]POST finish read [23:44:37]Found Content-Length = 679 [23:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.360, "sum" : 1856.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1856.00, "total" : 1856.00, "payments": [ { "type": 0, "sum" : 1856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:37]execute_script... [23: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)221498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.360, "sum" : 1856.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1856.00, "total" : 1856.00, "payments": [ { "type": 0, "sum" : 1856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:37]POST & json_proto [23:44:37]process_json_proto [23:44:37]json parsed OK: [23:44:37]protocol is kg_v1.0 [23:44:37]action value=close_receipt [23:44:37]process_action close_receipt [23:44:37]cmd_close_receipt [23:44:37]MH_GetDate [23:44:37]Write to MH i2c: F0 00 00 D4 4E 11 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: F0 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: F0 09 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: F0 09 00 D4 4E 00 69 8A 19 67 21 48 4A 65 A5 [23:44:37]GetLastDocTimeStamp 1729726488 [23:44:37]current date 1729727081 [23:44:37]FM_GetShiftState [23:44:37]SAM_PROTO_GetShiftState [23:44:37]wFMCommunicate request_size=4 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 13 01 00 [23:44:37]Write to MH i2c: E2 08 00 D5 4E 80 13 01 00 00 00 00 00 A0 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 0E 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 0E 00 D5 4E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6B [23:44:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:44:37]wFMCommunicate OK [23:44:37]SAM_PROTO_GetShiftState done [23:44:37]FM_GetShiftState done [23:44:37]opened in 1729643772 [23:44:37]opened+sec_in_day 1729730172 [23:44:37]quantity*price = 185623 [23:44:37]sum+1 = 185624 [23:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1856.00 Внесено: 1856.00 СДАЧА: 0.00 НСП 1% : 16.43 НДС 12% : 197.12 Наличными: 1856.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 327 23.10.2024 23:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166912 ФПД: 191108914348421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166912&fm=191108914348421&tin=02508201610067®Number=0000000000091764&sum=185600 [23:44:38]StoreToDocumentArchive [23:44:38]shift 537 fd 166912 [23:44:38]save to /storage/0537/doc_00166912 [23:44:38]save last doc name /storage/0537/doc_00166912 to /storage/kkm_last_doc_name [23:44:38]save OK [23:44:38]Clear old archive folders... [23:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:44:38]tlvbuf is 01FE0F90 [23:44:38]SAM_PROTO_ClearQueue [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 09 00 00 [23:44:38]Write to MH i2c: E2 08 00 E2 4E 80 09 00 00 00 00 00 00 A2 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 E2 4E 00 90 00 A4 [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_ClearQueue done [23:44:38]KKMCreateOFDPacket [23:44:38]OFDProtocolAddRootSTLVToBuf [23:44:38]FM_MakeSignedData [23:44:38]FM_MakeSignedData [23:44:38]SAM_PROTO_SignData [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 0D 01 02 [23:44:38]Write to MH i2c: E2 08 00 E3 4E 80 0D 01 02 00 00 00 00 AA [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 E3 4E 00 90 00 A5 [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]wFMCommunicate request_size=255 [23:44:38]MH_SAM_APDU [23:44: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 28 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 4D 00 00 00 00 07 04 06 00 00 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 69 8A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8C 02 00 35 04 06 00 AD D0 02 F4 [23:44:38]Write to MH i2c: E2 02 01 E4 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 4D 00 00 00 00 07 04 06 00 00 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 69 8A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8C 02 00 35 04 06 00 AD D0 02 F4 00 00 A7 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 E4 4E 00 90 00 A6 [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]wFMCommunicate request_size=7 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 0D 02 02 02 01 85 [23:44:38]Write to MH i2c: E2 0A 00 E5 4E 80 0D 02 02 02 00 01 85 00 00 37 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 03 00 E5 4E 00 90 00 A7 [23:44:38]RAPDU: 90 00 [23:44:38]wFMCommunicate OK [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 0D 03 02 [23:44:38]Write to MH i2c: E2 08 00 E6 4E 80 0D 03 02 00 00 00 00 AF [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 0B 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 0B 00 E6 4E 00 62 10 9F 02 26 FD 6B A4 90 00 F5 [23:44:38]RAPDU: 62 10 9F 02 26 FD 6B A4 90 00 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_SignData done [23:44:38]FM_MakeSignedData done [23:44:38]CreateOFDProtocolMessage [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 11 00 00 [23:44:38]Write to MH i2c: E2 08 00 E7 4E 80 11 00 00 00 00 00 00 AF [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 17 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 17 00 E7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [23:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:44:39]wFMCommunicate OK [23:44:39]CreateOFDProtocolMessage done [23:44:39]OFDSenderStorePacket 166912 [23:44:39]StoreOFDPacket docnum=166912 [23:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B9 E3 04 01 A6 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 4D 00 00 00 00 07 04 06 00 00 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 69 8A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8C 02 00 35 04 06 00 AD D0 02 F4 01 85 62 10 9F 02 26 FD 6B A4 [23:44:39]CheckFolder [23:44:39]dirname=/storage/ofd_packets [23:44:39]CheckFolder done [23:44:39]ProducePacketName [23:44:39]name=ofd_packets/00166912 [23:44:39]NVStorageSaveData ofd_packets/00166912 [23:44:39]File name is /storage/ofd_packets/00166912 [23:44:39]Write 298 bytes [23:44:39]NVStorageSaveData done [23:44:39]OFDSenderStorePacket done [23:44:39]KKMCreateOFDPacket done [23:44:39]NVStorageSaveData kkm_last_timestamp [23:44:39]File name is /storage/kkm_last_timestamp [23:44:39]Write 4 bytes [23:44:39]NVStorageSaveData done [23:44:39]ExternCall_PrintAddStr [23:44:39]wPrintStart [23:44:39]Write to MH i2c: 01 00 00 E8 4E 36 [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 07 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 07 00 E8 4E 00 00 00 00 00 FF 0F 4B [23:44:39]RasterBufferAndPrint [23:44:39]line Счет N : (1)221498 [23:44:39]line ИНН: 02508201610067 [23:44:39]line Контрольно-Кассовый Чек [23:44:39]line ПРОДАЖА [23:44:39]line ТРК (МРК, ГНК) : 21 [23:44:39]line Товар: 2710194210 [23:44:39]line ДТ-К-5 [23:44:39]line 24.360 * 76.20 [23:44:39]line = 1856.23 [23:44:39]line НДС 12% НСП 1% [23:44:39]line > о реализуемом товаре [23:44:39]line ОКРУГЛЕНИЕ: -0.23 [23:44:39]line ИТОГО: 1856.00 [23:44:39]line Внесено: 1856.00 [23:44:39]line СДАЧА: 0.00 [23:44:39]line НСП 1% : 16.43 [23:44:39]line НДС 12% : 197.12 [23:44:39]line Наличными: 1856.00 [23:44:39]line Безнал.: 0.00 [23:44:39]line Место: АЗС № 161 "Партнер Нефть" [23:44:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:44:39]line СНО: Общий режим [23:44:39]line Чек 327 23.10.2024 23:44 [23:44:39]line Смена: 537 ФФД: 1.0 [23:44:39]line ЗНМ: 0300000104 [23:44:39]line РНМ: 0000000000091764 [23:44:39]line Версия ККМ: 001 [23:44:39]line ФМ: 0000000000871759 [23:44:39]line ФД: 166912 [23:44:39]line ФПД: 191108914348421 [23:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166912&fm=191108914348421&tin=02508201610067®Number=0000000000091764&sum=185600 [23:44:39]OFD Sender: Processing packet 166912 [packets to send 48, broken 47] [23:44:39]ProducePacketName [23:44:39]name=ofd_packets/00166912 [23:44:39]OFD Sender: To server: pG, [23:44:39]CommunicateWithHost lk.salyk.kg:30040 [23:44:39]ConnectInit lk.salyk.kg [23:44:39]written 0, free lines is 4095 [23:44:39]Connected sock=10 [23: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 31 37 35 39 0C 01 00 00 B9 E3 04 01 A6 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 4D 00 00 00 00 07 04 06 00 00 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 69 8A 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8C 02 00 35 04 06 00 AD D0 02 F4 01 85 62 10 9F 02 26 FD 6B A4 [23:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 2D 47 00 39 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8C 02 00 F4 03 04 00 CF 30 19 67 B6 04 01 00 00 94 C7 B3 09 E3 18 E6 71 [23:44:39]CommunicateWithHost err = 0 [23:44:39]CheckOFDResponse [23:44:39]1017 (14) - 77093643461234 [23:44:39]1041 (16) - 0000000000871759 [23:44:39]1040 (4) - 166912 [23:44:39]1012 (4) - 23.10.2024 17:22 [23:44:39]1206 (1) - 0 [23:44:39]OFD Sender: Remove packet 166912 [23:44:39]ProducePacketName [23:44:39]name=ofd_packets/00166912 [23:44:39]NVStorageDeleteData [23:44:39]Write to MH i2c: 01 00 00 13 4F 62 [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 07 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 07 00 13 4F 00 00 00 00 00 B7 0C 2C [23:44:39]RasterBufferAndPrint [23:44:39]line [23:44:39]line [23:44:39]line [23:44:39]line [23:44:39]line [23:44:39]written 0, free lines is 3262 [23:44:39]MH_Cut [23:44:39]Write to MH i2c: D1 01 00 1A 4F 01 3B [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: D1 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: D1 01 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: D1 01 00 1A 4F 00 3A [23:44:39]Write to MH i2c: 01 00 00 1B 4F 6A [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:40]OFD Sender: No OFD packet to send [23:44:40]*** Cut start [23:44:40]*** Partial cut [23:44:40]*** CUTSNS_PIN = 1 [23:44:40]*** CUTSNS_PIN = 0 [23:44:41]*** Brake cut motor [23:44:41]Read from MH i2c: 01 [23:44:41]MH_I2C_Read... [23:44:41]*** Stop cut motor [23:44:41]*** Cut end [23:44:41]Read from MH i2c: 01 07 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: 01 07 00 1B 4F 00 00 00 00 00 FF 0F 7F [23:44:41]process_action close_receipt done [23:44:41]requested_data is exist [23:44:41]produce_requested_data [23:44:41]requested_item fm.sn is exist - process it [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 11 00 00 [23:44:41]Write to MH i2c: E2 08 00 1C 4F 80 11 00 00 00 00 00 00 E5 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 17 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 17 00 1C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [23:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:44:41]wFMCommunicate OK [23:44:41]requested_item fd.num is exist - process it [23:44:41]SAM_PROTO_GetFieldsCounters [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 13 00 00 [23:44:41]Write to MH i2c: E2 08 00 1D 4F 80 13 00 00 00 00 00 00 E8 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 62 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 62 00 1D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [23: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:41]wFMCommunicate OK [23:44:41]SAM_PROTO_GetFieldsCounters done [23:44:41]requested_item shift.num is exist - process it [23:44:41]requested_item shift.opened is exist - process it [23:44:41]req_shift_opened [23:44:41]FM_GetShiftState [23:44:41]SAM_PROTO_GetShiftState [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 13 01 00 [23:44:41]Write to MH i2c: E2 08 00 1E 4F 80 13 01 00 00 00 00 00 EA [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 0E 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 0E 00 1E 4F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B5 [23:44:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:44:41]wFMCommunicate OK [23:44:41]SAM_PROTO_GetShiftState done [23:44:41]FM_GetShiftState done [23:44:41]req_shift_opened done [23:44:41]requested_item shift.open_date is exist - process it [23:44:41]req_shift_open_date [23:44:41]req_shift_open_date done [23:44:41]produce_requested_data done [23:44:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166912,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:44:41]process_action_free close_receipt [23:44:41]json_value_free [23:44:41]json_value_free done [23:44:41]process_json_proto returns [23:44:41]Send response to host [23:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166912,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:44:41]free response buf [23:44:41]execute_script done [23:44:41]execute_script returns [23:44:41]free content buf [23:44:41]Sock 8.Close socket [23:44:41]Sock 8.Thread stoped [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:30]accept exits with 9 [23:48:30]New connection [23:48:30]New thread 3067034980 created [23:48:30]Thread 3067178340 joined [23:48:30]Waiting for new connection... [23:48:30] Sock 9.Parse request [23:48:30]Sock 9.Check first char [23:48:30]Sock 9.First char is OK [23:48:30]request: POST /json_proto HTTP/1.0 [23:48:30]Method: POST [23:48:30]URL: /json_proto [23:48:30]Method is POST - this is cgi request [23:48:30]url: /json_proto [23:48:30]query_string will be loaded in cgi processing [23:48:30]execute_cgi json_proto POST (null) [23:48:30]execute_cgi path=json_proto method=POST [23:48:30]POST find Content-Length [23:48:30]Host: 172.17.53.195:8080 [23:48:30]Content-Length: 766 [23:48:30]Content-Type: application/json [23:48:30] [23:48:30]POST finish read [23:48:30]Found Content-Length = 766 [23:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:30]execute_script... [23:48: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)221499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:30]POST & json_proto [23:48:30]process_json_proto [23:48:30]json parsed OK: [23:48:30]protocol is kg_v1.0 [23:48:30]action value=close_receipt [23:48:30]process_action close_receipt [23:48:30]cmd_close_receipt [23:48:30]MH_GetDate [23:48:30]Write to MH i2c: F0 00 00 1F 4F 5D [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: F0 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: F0 09 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: F0 09 00 1F 4F 00 52 8B 19 67 21 48 4A 65 DB [23:48:30]GetLastDocTimeStamp 1729727081 [23:48:30]current date 1729727314 [23:48:30]FM_GetShiftState [23:48:30]SAM_PROTO_GetShiftState [23:48:30]wFMCommunicate request_size=4 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 13 01 00 [23:48:30]Write to MH i2c: E2 08 00 20 4F 80 13 01 00 00 00 00 00 EC [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 0E 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 0E 00 20 4F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B7 [23:48:30]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:48:30]wFMCommunicate OK [23:48:30]SAM_PROTO_GetShiftState done [23:48:30]FM_GetShiftState done [23:48:30]opened in 1729643772 [23:48:30]opened+sec_in_day 1729730172 [23:48:30]quantity*price = 150037 [23:48:30]sum+1 = 150039 [23:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 328 23.10.2024 23:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166913 ФПД: 90539710958471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166913&fm=90539710958471&tin=02508201610067®Number=0000000000091764&sum=150038 [23:48:31]StoreToDocumentArchive [23:48:31]shift 537 fd 166913 [23:48:31]save to /storage/0537/doc_00166913 [23:48:31]save last doc name /storage/0537/doc_00166913 to /storage/kkm_last_doc_name [23:48:31]save OK [23:48:31]Clear old archive folders... [23:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:48:31]tlvbuf is 01F8D670 [23:48:31]SAM_PROTO_ClearQueue [23:48:31]wFMCommunicate request_size=4 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 09 00 00 [23:48:31]Write to MH i2c: E2 08 00 2D 4F 80 09 00 00 00 00 00 00 EE [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 2D 4F 00 90 00 F0 [23:48:31]RAPDU: 90 00 [23:48:31]wFMCommunicate OK [23:48:31]SAM_PROTO_ClearQueue done [23:48:31]KKMCreateOFDPacket [23:48:31]OFDProtocolAddRootSTLVToBuf [23:48:31]FM_MakeSignedData [23:48:31]FM_MakeSignedData [23:48:31]SAM_PROTO_SignData [23:48:31]wFMCommunicate request_size=4 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 0D 01 02 [23:48:31]Write to MH i2c: E2 08 00 2E 4F 80 0D 01 02 00 00 00 00 F6 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 2E 4F 00 90 00 F1 [23:48:31]RAPDU: 90 00 [23:48:31]wFMCommunicate OK [23:48:31]wFMCommunicate request_size=255 [23:48:31]MH_SAM_APDU [23:48: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 52 8B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8C 02 00 35 04 06 00 52 58 6B 4F [23:48:31]Write to MH i2c: E2 02 01 2F 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 52 8B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8C 02 00 35 04 06 00 52 58 6B 4F 00 00 FB [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 2F 4F 00 90 00 F2 [23:48:32]RAPDU: 90 00 [23:48:32]wFMCommunicate OK [23:48:32]wFMCommunicate request_size=7 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 0D 02 02 02 4B 87 [23:48:32]Write to MH i2c: E2 0A 00 30 4F 80 0D 02 02 02 00 4B 87 00 00 CF [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 30 4F 00 90 00 F3 [23:48:32]RAPDU: 90 00 [23:48:32]wFMCommunicate OK [23:48:32]wFMCommunicate request_size=4 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 0D 03 02 [23:48:32]Write to MH i2c: E2 08 00 31 4F 80 0D 03 02 00 00 00 00 FB [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 0B 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 0B 00 31 4F 00 35 C3 D6 F4 F1 D3 66 53 90 00 3B [23:48:32]RAPDU: 35 C3 D6 F4 F1 D3 66 53 90 00 [23:48:32]wFMCommunicate OK [23:48:32]SAM_PROTO_SignData done [23:48:32]FM_MakeSignedData done [23:48:32]CreateOFDProtocolMessage [23:48:32]wFMCommunicate request_size=4 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 11 00 00 [23:48:32]Write to MH i2c: E2 08 00 32 4F 80 11 00 00 00 00 00 00 FB [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 17 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 17 00 32 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [23:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:48:32]wFMCommunicate OK [23:48:32]CreateOFDProtocolMessage done [23:48:32]OFDSenderStorePacket 166913 [23:48:32]StoreOFDPacket docnum=166913 [23:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 6E 04 01 00 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 52 8B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8C 02 00 35 04 06 00 52 58 6B 4F 4B 87 35 C3 D6 F4 F1 D3 66 53 [23:48:32]CheckFolder [23:48:32]dirname=/storage/ofd_packets [23:48:32]CheckFolder done [23:48:32]ProducePacketName [23:48:32]name=ofd_packets/00166913 [23:48:32]NVStorageSaveData ofd_packets/00166913 [23:48:32]File name is /storage/ofd_packets/00166913 [23:48:32]Write 298 bytes [23:48:32]NVStorageSaveData done [23:48:32]OFDSenderStorePacket done [23:48:32]KKMCreateOFDPacket done [23:48:32]NVStorageSaveData kkm_last_timestamp [23:48:32]File name is /storage/kkm_last_timestamp [23:48:32]Write 4 bytes [23:48:32]NVStorageSaveData done [23:48:32]ExternCall_PrintAddStr [23:48:32]wPrintStart [23:48:32]Write to MH i2c: 01 00 00 33 4F 82 [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: 01 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: 01 07 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: 01 07 00 33 4F 00 00 00 00 00 FF 0F 97 [23:48:32]RasterBufferAndPrint [23:48:32]line Счет N : (1)221499 [23:48:32]line ИНН: 02508201610067 [23:48:32]line Контрольно-Кассовый Чек [23:48:32]line ПРОДАЖА [23:48:32]line ТРК (МРК, ГНК) : 21 [23:48:32]line Товар: 2710194210 [23:48:32]line ДТ-К-5 [23:48:32]line 19.690 * 76.20 [23:48:32]line = 1500.38 [23:48:32]line НДС 12% НСП 1% [23:48:32]line > о реализуемом товаре [23:48:32]line ИТОГО: 1500.38 [23:48:32]line НСП 1% : 13.28 [23:48:32]line НДС 12% : 159.33 [23:48:32]line Наличными: 0.00 [23:48:32]line Безнал.: 1500.38 [23:48:32]line Место: АЗС № 161 "Партнер Нефть" [23:48:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:48:32]line СНО: Общий режим [23:48:32]line Чек 328 23.10.2024 23:48 [23:48:32]line Смена: 537 ФФД: 1.0 [23:48:32]line ЗНМ: 0300000104 [23:48:32]line РНМ: 0000000000091764 [23:48:32]line Версия ККМ: 001 [23:48:32]line Платежная система: Mbank [23:48:32]line ФМ: 0000000000871759 [23:48:32]line ФД: 166913 [23:48:32]line ФПД: 90539710958471 [23:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166913&fm=90539710958471&tin=02508201610067®Number=0000000000091764&sum=150038 [23:48:32]OFD Sender: Processing packet 166913 [packets to send 48, broken 47] [23:48:32]ProducePacketName [23:48:32]name=ofd_packets/00166913 [23:48:32]OFD Sender: To server: pG, [23:48:32]CommunicateWithHost lk.salyk.kg:30040 [23:48:32]ConnectInit lk.salyk.kg [23:48:32]written 0, free lines is 4095 [23:48:32]Connected sock=10 [23:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 6E 04 01 00 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 52 8B 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8C 02 00 35 04 06 00 52 58 6B 4F 4B 87 35 C3 D6 F4 F1 D3 66 53 [23:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BC 2C 47 00 87 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8C 02 00 F4 03 04 00 B8 31 19 67 B6 04 01 00 00 05 C4 15 09 DE AE 07 C3 [23:48:32]CommunicateWithHost err = 0 [23:48:32]CheckOFDResponse [23:48:32]1017 (14) - 77093643461234 [23:48:32]1041 (16) - 0000000000871759 [23:48:32]1040 (4) - 166913 [23:48:32]1012 (4) - 23.10.2024 17:26 [23:48:32]1206 (1) - 0 [23:48:32]OFD Sender: Remove packet 166913 [23:48:32]ProducePacketName [23:48:32]name=ofd_packets/00166913 [23:48:32]NVStorageDeleteData [23:48:33]Write to MH i2c: 01 00 00 5C 4F AB [23:48:33]Write i2c OK [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: 01 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: 01 07 00 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: 01 07 00 5C 4F 00 00 00 00 00 D9 0C 97 [23:48:33]RasterBufferAndPrint [23:48:33]line [23:48:33]line [23:48:33]line [23:48:33]line [23:48:33]line [23:48:33]written 0, free lines is 3295 [23:48:33]MH_Cut [23:48:33]Write to MH i2c: D1 01 00 63 4F 01 84 [23:48:33]Write i2c OK [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: D1 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: D1 01 00 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: D1 01 00 63 4F 00 83 [23:48:33]Write to MH i2c: 01 00 00 64 4F B3 [23:48:33]Write i2c OK [23:48:33]MH_I2C_Read... [23:48:33]OFD Sender: No OFD packet to send [23:48:33]*** Cut start [23:48:33]*** Partial cut [23:48:33]*** CUTSNS_PIN = 1 [23:48:34]*** CUTSNS_PIN = 0 [23:48:34]*** Brake cut motor [23:48:34]Read from MH i2c: 01 [23:48:34]MH_I2C_Read... [23:48:34]*** Stop cut motor [23:48:34]*** Cut end [23:48:34]Read from MH i2c: 01 07 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: 01 07 00 64 4F 00 00 00 00 00 FF 0F C8 [23:48:34]process_action close_receipt done [23:48:34]requested_data is exist [23:48:34]produce_requested_data [23:48:34]requested_item fm.sn is exist - process it [23:48:34]wFMCommunicate request_size=4 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 11 00 00 [23:48:34]Write to MH i2c: E2 08 00 65 4F 80 11 00 00 00 00 00 00 2E [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 17 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 17 00 65 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [23:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:48:34]wFMCommunicate OK [23:48:34]requested_item fd.num is exist - process it [23:48:34]SAM_PROTO_GetFieldsCounters [23:48:34]wFMCommunicate request_size=4 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 13 00 00 [23:48:34]Write to MH i2c: E2 08 00 66 4F 80 13 00 00 00 00 00 00 31 [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 62 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 62 00 66 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [23:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:34]wFMCommunicate OK [23:48:34]SAM_PROTO_GetFieldsCounters done [23:48:34]requested_item shift.num is exist - process it [23:48:34]requested_item shift.opened is exist - process it [23:48:34]req_shift_opened [23:48:34]FM_GetShiftState [23:48:34]SAM_PROTO_GetShiftState [23:48:34]wFMCommunicate request_size=4 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 13 01 00 [23:48:34]Write to MH i2c: E2 08 00 67 4F 80 13 01 00 00 00 00 00 33 [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 0E 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 0E 00 67 4F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FE [23:48:34]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:48:34]wFMCommunicate OK [23:48:34]SAM_PROTO_GetShiftState done [23:48:34]FM_GetShiftState done [23:48:34]req_shift_opened done [23:48:34]requested_item shift.open_date is exist - process it [23:48:34]req_shift_open_date [23:48:34]req_shift_open_date done [23:48:34]produce_requested_data done [23:48:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166913,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:48:34]process_action_free close_receipt [23:48:34]json_value_free [23:48:34]json_value_free done [23:48:34]process_json_proto returns [23:48:34]Send response to host [23:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166913,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:48:34]free response buf [23:48:34]execute_script done [23:48:34]execute_script returns [23:48:34]free content buf [23:48:34]Sock 9.Close socket [23:48:34]Sock 9.Thread stoped [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:12]accept exits with 8 [23:52:12]New connection [23:52:12]New thread 3067178340 created [23:52:12]Thread 3067034980 joined [23:52:12]Waiting for new connection... [23:52:12] Sock 8.Parse request [23:52:12]Sock 8.Check first char [23:52:12]Sock 8.First char is OK [23:52:12]request: POST /json_proto HTTP/1.0 [23:52:12]Method: POST [23:52:12]URL: /json_proto [23:52:12]Method is POST - this is cgi request [23:52:12]url: /json_proto [23:52:12]query_string will be loaded in cgi processing [23:52:12]execute_cgi json_proto POST (null) [23:52:12]execute_cgi path=json_proto method=POST [23:52:12]POST find Content-Length [23:52:12]Host: 172.17.53.195:8080 [23:52:12]Content-Length: 677 [23:52:12]Content-Type: application/json [23:52:12] [23:52:12]POST finish read [23:52:12]Found Content-Length = 677 [23:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:12]execute_script... [23:52:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:12]POST & json_proto [23:52:12]process_json_proto [23:52:12]json parsed OK: [23:52:12]protocol is kg_v1.0 [23:52:12]action value=close_receipt [23:52:12]process_action close_receipt [23:52:12]cmd_close_receipt [23:52:12]MH_GetDate [23:52:12]Write to MH i2c: F0 00 00 68 4F A6 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: F0 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: F0 09 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: F0 09 00 68 4F 00 30 8C 19 67 21 48 4A 65 03 [23:52:12]GetLastDocTimeStamp 1729727314 [23:52:12]current date 1729727536 [23:52:12]FM_GetShiftState [23:52:12]SAM_PROTO_GetShiftState [23:52:12]wFMCommunicate request_size=4 [23:52:12]MH_SAM_APDU [23:52:12]CAPDU: 80 13 01 00 [23:52:12]Write to MH i2c: E2 08 00 69 4F 80 13 01 00 00 00 00 00 35 [23:52:12]Write i2c OK [23:52:12]MH_I2C_Read... [23:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:12]Read from MH i2c: E2 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 0E 00 [23:52:12]MH_I2C_Read... [23:52:12]Read from MH i2c: E2 0E 00 69 4F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 00 [23:52:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:52:12]wFMCommunicate OK [23:52:12]SAM_PROTO_GetShiftState done [23:52:12]FM_GetShiftState done [23:52:12]opened in 1729643772 [23:52:12]opened+sec_in_day 1729730172 [23:52:12]quantity*price = 40006 [23:52:12]sum+1 = 40007 [23:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 329 23.10.2024 23:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166914 ФПД: 942222738823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T235216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166914&fm=942222738823&tin=02508201610067®Number=0000000000091764&sum=40000 [23:52:13]StoreToDocumentArchive [23:52:13]shift 537 fd 166914 [23:52:13]save to /storage/0537/doc_00166914 [23:52:13]save last doc name /storage/0537/doc_00166914 to /storage/kkm_last_doc_name [23:52:13]save OK [23:52:13]Clear old archive folders... [23:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:13]tlvbuf is 01FFA680 [23:52:13]SAM_PROTO_ClearQueue [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 09 00 00 [23:52:13]Write to MH i2c: E2 08 00 76 4F 80 09 00 00 00 00 00 00 37 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 76 4F 00 90 00 39 [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_ClearQueue done [23:52:13]KKMCreateOFDPacket [23:52:13]OFDProtocolAddRootSTLVToBuf [23:52:13]FM_MakeSignedData [23:52:13]FM_MakeSignedData [23:52:13]SAM_PROTO_SignData [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 01 02 [23:52:13]Write to MH i2c: E2 08 00 77 4F 80 0D 01 02 00 00 00 00 3F [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 77 4F 00 90 00 3A [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=255 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 30 8C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8C 02 00 35 04 06 00 00 [23:52:13]Write to MH i2c: E2 02 01 78 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 30 8C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8C 02 00 35 04 06 00 00 00 00 D5 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]OFD Sender: No OFD packet to send [23:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 78 4F 00 90 00 3B [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=10 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 02 02 05 DB 60 DA 05 87 [23:52:13]Write to MH i2c: E2 0D 00 79 4F 80 0D 02 02 05 00 DB 60 DA 05 87 00 00 ED [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 03 00 79 4F 00 90 00 3C [23:52:13]RAPDU: 90 00 [23:52:13]wFMCommunicate OK [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 0D 03 02 [23:52:13]Write to MH i2c: E2 08 00 7A 4F 80 0D 03 02 00 00 00 00 44 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:14]Read from MH i2c: E2 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 0B 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 0B 00 7A 4F 00 18 C8 1B 58 2B 04 B3 7B 90 00 F5 [23:52:14]RAPDU: 18 C8 1B 58 2B 04 B3 7B 90 00 [23:52:14]wFMCommunicate OK [23:52:14]SAM_PROTO_SignData done [23:52:14]FM_MakeSignedData done [23:52:14]CreateOFDProtocolMessage [23:52:14]wFMCommunicate request_size=4 [23:52:14]MH_SAM_APDU [23:52:14]CAPDU: 80 11 00 00 [23:52:14]Write to MH i2c: E2 08 00 7B 4F 80 11 00 00 00 00 00 00 44 [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:14]Read from MH i2c: E2 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 17 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 17 00 7B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [23:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:52:14]wFMCommunicate OK [23:52:14]CreateOFDProtocolMessage done [23:52:14]OFDSenderStorePacket 166914 [23:52:14]StoreOFDPacket docnum=166914 [23:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 C6 07 01 44 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 30 8C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8C 02 00 35 04 06 00 00 DB 60 DA 05 87 18 C8 1B 58 2B 04 B3 7B [23:52:14]CheckFolder [23:52:14]dirname=/storage/ofd_packets [23:52:14]CheckFolder done [23:52:14]ProducePacketName [23:52:14]name=ofd_packets/00166914 [23:52:14]NVStorageSaveData ofd_packets/00166914 [23:52:14]File name is /storage/ofd_packets/00166914 [23:52:14]Write 301 bytes [23:52:14]NVStorageSaveData done [23:52:14]OFDSenderStorePacket done [23:52:14]KKMCreateOFDPacket done [23:52:14]NVStorageSaveData kkm_last_timestamp [23:52:14]File name is /storage/kkm_last_timestamp [23:52:14]Write 4 bytes [23:52:14]NVStorageSaveData done [23:52:14]ExternCall_PrintAddStr [23:52:14]wPrintStart [23:52:14]Write to MH i2c: 01 00 00 7C 4F CB [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 07 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 07 00 7C 4F 00 00 00 00 00 FF 0F E0 [23:52:14]RasterBufferAndPrint [23:52:14]line Счет N : (1)221500 [23:52:14]line ИНН: 02508201610067 [23:52:14]line Контрольно-Кассовый Чек [23:52:14]line ПРОДАЖА [23:52:14]line ТРК (МРК, ГНК) : 13 [23:52:14]line Товар: 2710124130 [23:52:14]line Аи-92-К-5 [23:52:14]line 5.980 * 66.90 [23:52:14]line = 400.06 [23:52:14]line НДС 12% НСП 1% [23:52:14]line > о реализуемом товаре [23:52:14]line ОКРУГЛЕНИЕ: -0.06 [23:52:14]line ИТОГО: 400.00 [23:52:14]line Внесено: 400.00 [23:52:14]line СДАЧА: 0.00 [23:52:14]line НСП 1% : 3.54 [23:52:14]line НДС 12% : 42.48 [23:52:14]line Наличными: 400.00 [23:52:14]line Безнал.: 0.00 [23:52:14]line Место: АЗС № 161 "Партнер Нефть" [23:52:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:52:14]line СНО: Общий режим [23:52:14]line Чек 329 23.10.2024 23:52 [23:52:14]line Смена: 537 ФФД: 1.0 [23:52:14]line ЗНМ: 0300000104 [23:52:14]line РНМ: 0000000000091764 [23:52:14]line Версия ККМ: 001 [23:52:14]line ФМ: 0000000000871759 [23:52:14]line ФД: 166914 [23:52:14]line ФПД: 942222738823 [23:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T235216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166914&fm=942222738823&tin=02508201610067®Number=0000000000091764&sum=40000 [23:52:14]OFD Sender: Processing packet 166914 [packets to send 48, broken 47] [23:52:14]ProducePacketName [23:52:14]name=ofd_packets/00166914 [23:52:14]OFD Sender: To server: pG, [23:52:14]CommunicateWithHost lk.salyk.kg:30040 [23:52:14]ConnectInit lk.salyk.kg [23:52:14]written 0, free lines is 4095 [23:52:14]Connected sock=10 [23:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 C6 07 01 44 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 30 8C 19 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8C 02 00 35 04 06 00 00 DB 60 DA 05 87 18 C8 1B 58 2B 04 B3 7B [23:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE 57 47 00 08 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8C 02 00 F4 03 04 00 96 32 19 67 B6 04 01 00 00 E9 87 7F 0D A1 81 7D C1 [23:52:14]CommunicateWithHost err = 0 [23:52:14]CheckOFDResponse [23:52:14]1017 (14) - 77093643461234 [23:52:14]1041 (16) - 0000000000871759 [23:52:14]1040 (4) - 166914 [23:52:14]1012 (4) - 23.10.2024 17:29 [23:52:14]1206 (1) - 0 [23:52:14]OFD Sender: Remove packet 166914 [23:52:14]ProducePacketName [23:52:14]name=ofd_packets/00166914 [23:52:14]NVStorageDeleteData [23:52:14]Write to MH i2c: 01 00 00 A7 4F F6 [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 07 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: 01 07 00 A7 4F 00 00 00 00 00 BC 0C C5 [23:52:14]RasterBufferAndPrint [23:52:14]line [23:52:14]line [23:52:14]line [23:52:14]line [23:52:14]line [23:52:14]written 0, free lines is 3270 [23:52:14]MH_Cut [23:52:14]Write to MH i2c: D1 01 00 AE 4F 01 CF [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: D1 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: D1 01 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: D1 01 00 AE 4F 00 CE [23:52:14]Write to MH i2c: 01 00 00 AF 4F FE [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:15]OFD Sender: No OFD packet to send [23:52:15]*** Cut start [23:52:15]*** Partial cut [23:52:15]*** CUTSNS_PIN = 1 [23:52:15]*** CUTSNS_PIN = 0 [23:52:16]*** Brake cut motor [23:52:16]Read from MH i2c: 01 [23:52:16]MH_I2C_Read... [23:52:16]*** Stop cut motor [23:52:16]*** Cut end [23:52:16]Read from MH i2c: 01 07 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 AF 4F 00 00 00 00 00 FF 0F 13 [23:52:16]process_action close_receipt done [23:52:16]requested_data is exist [23:52:16]produce_requested_data [23:52:16]requested_item fm.sn is exist - process it [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 11 00 00 [23:52:16]Write to MH i2c: E2 08 00 B0 4F 80 11 00 00 00 00 00 00 79 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 B0 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [23:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:52:16]wFMCommunicate OK [23:52:16]requested_item fd.num is exist - process it [23:52:16]SAM_PROTO_GetFieldsCounters [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 13 00 00 [23:52:16]Write to MH i2c: E2 08 00 B1 4F 80 13 00 00 00 00 00 00 7C [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 62 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 62 00 B1 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8C 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_GetFieldsCounters done [23:52:16]requested_item shift.num is exist - process it [23:52:16]requested_item shift.opened is exist - process it [23:52:16]req_shift_opened [23:52:16]FM_GetShiftState [23:52:16]SAM_PROTO_GetShiftState [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 13 01 00 [23:52:16]Write to MH i2c: E2 08 00 B2 4F 80 13 01 00 00 00 00 00 7E [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0E 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0E 00 B2 4F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 49 [23:52:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_GetShiftState done [23:52:16]FM_GetShiftState done [23:52:16]req_shift_opened done [23:52:16]requested_item shift.open_date is exist - process it [23:52:16]req_shift_open_date [23:52:16]req_shift_open_date done [23:52:16]produce_requested_data done [23:52:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166914,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [23:52:16]process_action_free close_receipt [23:52:16]json_value_free [23:52:16]json_value_free done [23:52:16]process_json_proto returns [23:52:16]Send response to host [23:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166914,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [23:52:16]free response buf [23:52:16]execute_script done [23:52:16]execute_script returns [23:52:16]free content buf [23:52:16]Sock 8.Close socket [23:52:16]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]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